/*

TemplateMo 594 nexus flow

https://templatemo.com/tm-594-nexus-flow

*/

@charset "utf-8";
/* CSS Document */

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-grey: #e5e7eb;
            --primary-orange: #f97316;
            --primary-purple: #7c3aed;
            --secondary-amber: #fbbf24;
            --dark-bg: #1a0b2e;
            --darker-bg: #0f051a;
            --card-bg: rgba(229, 231, 235, 0.03);
            --border-color: rgba(229, 231, 235, 0.2);
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --primary-cyan: #00ffff;
            --primary-pink: #ff00ff;
        }

        body {
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            background: var(--darker-bg);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Enhanced Cyberpunk Background */
        .cyber-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker-bg);
            overflow: hidden;
            z-index: -5;
        }

        /* Animated gradient background */
        .cyber-gradient {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
            animation: gradientRotate 30s linear infinite;
            filter: blur(40px);
        }

        @keyframes gradientRotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }

        /* Matrix rain effect */
        .matrix-rain {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            opacity: 0.15;
        }

        .matrix-column {
            position: absolute;
            top: -100vh;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            color: var(--primary-cyan);
            text-shadow: 0 0 5px var(--primary-cyan);
            animation: matrixFall linear infinite;
            writing-mode: vertical-rl;
            text-orientation: upright;
            background: linear-gradient(to bottom, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .matrix-column:nth-child(3n) {
            color: var(--primary-pink);
            text-shadow: 0 0 5px var(--primary-pink);
            background: linear-gradient(to bottom, transparent 0%, var(--primary-pink) 50%, transparent 100%);
        }

        .matrix-column:nth-child(5n) {
            color: var(--primary-purple);
            text-shadow: 0 0 5px var(--primary-purple);
            background: linear-gradient(to bottom, transparent 0%, var(--primary-purple) 50%, transparent 100%);
        }

        @keyframes matrixFall {
            0% { transform: translateY(0); }
            100% { transform: translateY(200vh); }
        }

        /* Animated grid overlay */
        .grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }

        .grid-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
        }

        .grid-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 0, 255, 0.03) 2px, transparent 2px),
                linear-gradient(90deg, rgba(255, 0, 255, 0.03) 2px, transparent 2px);
            background-size: 100px 100px;
            animation: gridMove 30s linear infinite reverse;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* Floating particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-cyan);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary-cyan);
            animation: float 20s infinite;
            opacity: 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .particle:nth-child(odd) {
            background: var(--primary-pink);
            box-shadow: 0 0 10px var(--primary-pink);
            animation-duration: 25s;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) translateX(100px);
                opacity: 0;
            }
        }

        /* Glowing orbs */
        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            animation: orbFloat 20s ease-in-out infinite;
            pointer-events: none;
            z-index: -4;
        }

        .orb1 {
            width: 300px;
            height: 300px;
            background: var(--primary-cyan);
            top: 10%;
            left: -150px;
            animation-delay: 0s;
        }

        .orb2 {
            width: 400px;
            height: 400px;
            background: var(--primary-pink);
            bottom: 10%;
            right: -200px;
            animation-delay: 5s;
        }

        .orb3 {
            width: 250px;
            height: 250px;
            background: var(--primary-purple);
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes orbFloat {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            33% {
                transform: translate(100px, -50px) scale(1.1);
            }
            66% {
                transform: translate(-50px, 100px) scale(0.9);
            }
        }

        /* Scanlines effect */
        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .scanlines::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                transparent 0%,
                rgba(0, 255, 255, 0.03) 50%,
                transparent 100%
            );
            background-size: 100% 4px;
            animation: scanline 8s linear infinite;
        }

        .scanlines::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            pointer-events: none;
        }

        /* Noise texture overlay */
        .noise-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            z-index: -1;
            pointer-events: none;
            background-image: 
                repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
                repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0, 255, 255, 0.02) 2px, rgba(0, 255, 255, 0.02) 4px);
        }

        @keyframes scanline {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100%); }
        }

        /* =======================================
        GLOBAL TYPOGRAPHY (Nová Sekce)
        ======================================= */

        .page-title {
            /* Mírně větší nadpis s modro-zeleným glow */
            color: var(--color-primary-light); 
            text-align: center;
            font-size: 3.5rem;
            margin-top: 100px; /* Zajištění mezery pod navigací */
            margin-bottom: 0.5rem;
            text-shadow: 0 0 15px rgba(0, 192, 255, 0.6), 0 0 25px rgba(0, 255, 128, 0.3);
        }

        .page-subtitle {
            text-align: center;
            color: var(--color-text-secondary);
            font-size: 1.1rem;
            margin-bottom: 3rem;
        }

        /* Navigation (beze změn) */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: rgba(15, 15, 35, 0.9);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            z-index: 10000;
            transition: all 0.3s ease;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Mobile Menu Button, Hamburger, Mobile Menu (beze změn) */
        .mobile-menu-button {
            display: none;
            background: none;
            border: none;
            color: var(--primary-cyan);
            font-size: 1.5rem;
            cursor: pointer;
            position: relative;
            width: 30px;
            height: 30px;
            transition: all 0.3s ease;
        }
        .mobile-menu-button:hover {
            color: var(--primary-orange);
            transform: scale(1.1);
        }
        .hamburger {
            position: relative;
            width: 25px;
            height: 20px;
            margin: auto;
        }
        .hamburger span {
            display: block;
            position: absolute;
            height: 2px;
            width: 100%;
            background: var(--primary-cyan);
            border-radius: 1px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: all 0.25s ease-in-out;
            box-shadow: 0 0 5px var(--primary-cyan);
            transform-origin: center;
        }
        .hamburger span:nth-child(1) { top: 0px; }
        .hamburger span:nth-child(2) { top: 9px; }
        .hamburger span:nth-child(3) { top: 18px; }
        .mobile-menu-button.active .hamburger span:nth-child(1) {
            top: 9px;
            transform: rotate(135deg);
            background: var(--primary-orange);
        }
        .mobile-menu-button.active .hamburger span:nth-child(2) {
            opacity: 0;
            left: -25px;
        }
        .mobile-menu-button.active .hamburger span:nth-child(3) {
            top: 9px;
            transform: rotate(-135deg);
            background: var(--primary-orange);
        }
        .mobile-menu {
            position: fixed;
            top: 78px;
            right: -100%;
            width: 80%;
            max-width: 350px;
            height: calc(100vh - 78px);
            background: var(--darker-bg);
            backdrop-filter: blur(20px);
            border-left: 2px solid var(--border-color);
            z-index: 9999;
            transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            overflow-y: auto;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }
        .mobile-menu.active { right: 0; }
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
        .mobile-menu-header {
            padding: 2rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        .mobile-menu-logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-shadow: 0 0 15px var(--primary-cyan);
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }
        .mobile-menu-logo::before {
            content: '>';
            margin-right: 0.5rem;
            color: var(--primary-orange);
            transition: all 0.3s ease;
        }
        .mobile-menu-logo::after {
            content: '_';
            animation: blink 1s infinite;
            color: var(--primary-cyan);
        }
        .mobile-menu-logo:hover {
            text-shadow: 0 0 25px var(--primary-cyan);
            transform: scale(1.05);
        }
        .mobile-menu-logo:hover::before {
            margin-right: 0.8rem;
            text-shadow: 0 0 10px var(--primary-orange);
        }
        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--primary-cyan);
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .mobile-menu-close:hover {
            color: var(--primary-orange);
            transform: rotate(90deg);
        }
        .mobile-menu-nav {
            padding: 0;
            flex-grow: 1;
        }
        .mobile-menu-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .mobile-menu-nav li {
            margin: 0;
        }
        .mobile-menu-nav a {
            display: block;
            padding: 1.5rem 2rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            position: relative;
            border-bottom: 1px solid rgba(229, 231, 235, 0.1);
        }
        .mobile-menu-nav a:hover {
            color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.05);
            padding-left: 3rem;
            text-shadow: 0 0 10px var(--primary-cyan);
        }
        .mobile-menu-nav a::before {
            content: '>';
            position: absolute;
            left: 2rem;
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            color: var(--primary-orange);
        }
        .mobile-menu-nav a:hover::before {
            opacity: 1;
            transform: translateX(0);
        }
        .mobile-menu-nav li:last-child a { border-bottom: none; }
        .mobile-menu-cta {
            padding: 2rem;
            flex-shrink: 0;
            border-bottom: 1px solid var(--border-color);
        }
        .cyber-button {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            color: var(--darker-bg);
            padding: 1rem 2rem;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
            width: 100%;
            text-align: center;
        }
        .cyber-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes slideInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-shadow: 0 0 20px var(--primary-cyan);
            position: relative;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }
        .logo:hover {
            text-shadow: 0 0 30px var(--primary-cyan);
            transform: scale(1.05);
        }
        .logo::before {
            content: '>';
            margin-right: 0.5rem;
            color: var(--primary-orange);
            transition: all 0.3s ease;
        }
        .logo:hover::before {
            margin-right: 0.8rem;
            text-shadow: 0 0 10px var(--primary-orange);
        }
        .logo::after {
            content: '_';
            animation: blink 1s infinite;
            color: var(--primary-cyan);
        }
        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* Nav Links Base Styles (beze změn) */
        .nav-links {
            display: flex;
            list-style: none;
            gap: 2.5rem;
            margin: 0;
            padding: 0;
        }
        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
        }
        .nav-links a:hover {
            color: var(--primary-cyan);
            text-shadow: 0 0 10px var(--primary-cyan);
        }
        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--primary-cyan);
        }
        .nav-links a:hover::before {
            width: 100%;
        }


        /* --- DROPDOWN STYLES --- */

        /* 1. Desktop Dropdown Kontejner (beze změn) */
        .nav-links .dropdown {
            position: relative;
        }

        /* 2. Dropdown Menu (Změna: Odstranění transform: translateX(-50%) pro správné zarovnání doleva) */
        .dropdown-menu {
            position: absolute;
            top: 100%; 
            left: 0;
            transform: translateY(10px); 
            list-style: none;
            padding: 0.5rem 0;
            margin: 0.5rem 0 0 0;
            background: var(--darker-bg); 
            border: 1px solid var(--primary-cyan); 
            border-radius: 3px; 
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 5px 25px rgba(0, 0, 0, 0.8);
            min-width: 250px; /* Možná budete chtít toto rozšířit kvůli dlouhým názvům modulů */
            
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            z-index: 10;
            
            /* --- ZDE ZAČÍNÁ KLÍČOVÁ ÚPRAVA --- */
            max-height: 70vh; /* Nastavte maximální výšku na 70% výšky okna prohlížeče (vh) */
            overflow-y: auto; /* Povolí vertikální posuvník, pokud obsah přesáhne max-height */
            /* --- ZDE KONČÍ KLÍČOVÁ ÚPRAVA --- */

            overflow-x: hidden; /* Zabrání nechtěnému horizontálnímu posuvníku */
        }

        /* 3. Zobrazení Dropdown Menu po najetí myší (Změna: Odebrán horizontální posun z transform) */
        .nav-links .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0); /* Návrat na původní pozici */
        }

        /* 4. Styly pro odkazy v podmenu (Změna: Přidání font-weight a transition z hlavních odkazů) */
        .dropdown-menu li a {
            display: block;
            padding: 0.75rem 1.5rem;
            white-space: nowrap;
            font-size: 0.9rem; /* Stejná velikost jako hlavní menu */
            font-weight: 500; /* Stejná váha jako hlavní menu */
            color: var(--text-secondary); /* Zajištění správné barvy písma */
            text-decoration: none;
            text-transform: none; /* Podmenu obvykle není uppercase */
            letter-spacing: 0.5px; /* Lehce upravený spacing pro čitelnost */

            transition: all 0.3s ease; /* Plynulá změna při najetí */
        }

        .dropdown-menu li a:hover {
            color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.1);
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Jemný glow efekt pro podmenu */
        }

        /* Zajištění, že podtržení se nezobrazuje v podmenu */
        .dropdown-menu li a::before {
            display: none;
        }


        /* --- MOBILNÍ DROPDOWN STYLY (pro JS) --- */

        /* Styly pro mobilní menu dropdown (beze změn) */
        .mobile-menu-nav .dropdown-menu {
            position: static;
            top: auto;
            left: auto;
            transform: none;
            opacity: 1; 
            visibility: visible; 
            padding: 0;
            margin: 0;
            border: none;
            border-top: 1px solid rgba(229, 231, 235, 0.1);
            box-shadow: none;
            background: var(--darker-bg);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
        }
        .mobile-menu-nav .dropdown.open .dropdown-menu {
            max-height: 500px;
            transition: max-height 0.5s ease-in;
        }
        .mobile-menu-nav .dropdown-menu li a {
            padding-left: 3rem;
            font-size: 1rem;
            font-weight: 400;
            color: var(--text-secondary);
            border-bottom: 1px dashed rgba(229, 231, 235, 0.05);
        }
        .mobile-menu-nav .dropdown-menu li a:hover {
            background: rgba(0, 255, 255, 0.1);
            color: var(--primary-orange);
            padding-left: 3.5rem;
        }


        /* --- DESKTOP MEDIA QUERY (Váš originál, beze změn kromě odstranění duplikátů) --- */

        @media (min-width: 769px) {
            .mobile-menu-button {
                display: none !important;
            }
            
            .nav-container {
                flex-direction: row;
                align-items: center;
                gap: 0;
            }
            
            .nav-top {
                flex: 0 0 auto;
            }
            
            .nav-links {
                flex: 1;
                display: flex;
                flex-direction: row;
                justify-content: center;
                margin: 0 2rem;
                max-width: none;
            }
            
            .nav-links a {
                padding: 0;
                border-bottom: none;
                font-size: 0.9rem;
            }
            
            .nav-links a:hover {
                background: none;
                transform: none;
                padding-left: 0;
            }
            
            .nav-links a::before {
                display: none;
            }
            
            .nav-bottom {
                flex: 0 0 auto;
            }
            
            .cyber-button {
                width: auto;
                max-width: none;
            }
        }

        /* Hero Section */
        .hero {
            padding: 150px 2rem 100px;
            text-align: center;
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 900;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            cursor: pointer;
            line-height: 1.2;
        }

        .hero-nexus {
            background: linear-gradient(135deg, var(--primary-cyan), #00ccff);
            background: -webkit-linear-gradient(135deg, var(--primary-cyan), #00ccff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            transition: all 0.3s ease;
            animation: cyanPulse 3s ease-in-out infinite;
            position: relative;
        }

        .hero-flow {
            background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
            background: -webkit-linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-left: 0.1em;
            display: inline-block;
            transition: all 0.3s ease;
            animation: purplePulse 3s ease-in-out infinite;
            animation-delay: 1.5s;
            position: relative;
        }

        @keyframes cyanPulse {
            0%, 100% { 
                filter: brightness(1) drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
                transform: translateY(0) scale(1);
            }
            50% { 
                filter: brightness(1.1) drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
                transform: translateY(-2px) scale(1.01);
            }
        }

        @keyframes purplePulse {
            0%, 100% { 
                filter: brightness(1) drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
                transform: translateY(0) scale(1);
            }
            50% { 
                filter: brightness(1.1) drop-shadow(0 0 25px rgba(255, 0, 255, 0.8));
                transform: translateY(-2px) scale(1.01);
            }
        }

        /* Clean hover effect */
        .hero-title:hover .hero-nexus {
            transform: translateX(-3px) scale(1.02);
            filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 255, 255, 0.9));
        }

        .hero-title:hover .hero-flow {
            transform: translateX(3px) scale(1.02);
            filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 0, 255, 0.9));
        }

        /* Subtle background glow for each word */
        .hero-nexus::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
            filter: blur(50px);
            z-index: -1;
            animation: glowPulse 4s ease-in-out infinite;
            pointer-events: none;
        }

        .hero-flow::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 0, 255, 0.08) 0%, transparent 60%);
            filter: blur(50px);
            z-index: -1;
            animation: glowPulse 4s ease-in-out infinite;
            animation-delay: 2s;
            pointer-events: none;
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
            50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
        }

        /* Apply animation pause on hover */
        .hero-title:hover .hero-nexus,
        .hero-title:hover .hero-flow {
            animation-play-state: paused;
        }

        /* Border animation */
        .hero-nexus::after,
        .hero-flow::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 0;
            height: 3px;
            transition: width 0.3s ease;
        }

        .hero-nexus::after {
            background: linear-gradient(90deg, var(--primary-cyan), transparent);
        }

        .hero-flow::after {
            background: linear-gradient(90deg, transparent, var(--primary-pink));
            left: auto;
            right: 0;
        }

        .hero-title:hover .hero-nexus::after,
        .hero-title:hover .hero-flow::after {
            width: 100%;
        }

        /* Typing effect for hero text on load */
        @keyframes typeIn {
            0% { 
                opacity: 0;
                transform: translateY(20px);
            }
            100% { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Remove scanner line for cleaner look */

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-bottom: 3rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            font-weight: 300;
            opacity: 0.9;
            background: linear-gradient(135deg, var(--text-secondary), var(--primary-grey));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-buttons {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            color: var(--darker-bg);
            padding: 1.2rem 3rem;
            border: none;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-cyan);
            padding: 1.2rem 3rem;
            border: 2px solid var(--primary-cyan);
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
        }

        .btn-secondary:hover {
            background: var(--primary-cyan);
            color: var(--darker-bg);
            box-shadow: 0 0 30px var(--primary-cyan);
        }

        /* Features Section */
        .features {
            padding: 120px 2rem;
            position: relative;
        }

        .features-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary-cyan);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            position: relative;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
            box-shadow: 0 0 20px var(--primary-cyan);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            position: relative;
            transition: all 0.4s ease;
            backdrop-filter: blur(10px);
            clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
        }

        .feature-card:hover::before {
            opacity: 0.1;
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            font-size: 2rem;
            clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }

        .feature-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .feature-card p {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* Stats Section */
        .stats {
            padding: 80px 2rem;
            background: rgba(0, 255, 255, 0.02);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .stats-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            text-align: center;
        }

        .stat-item {
            position: relative;
        }

        .stat-number {
            font-size: 4rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: block;
            margin-bottom: 0.5rem;
            filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
        }

        .stat-label {
            font-size: 1.1rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Pricing Section */
        .pricing {
            padding: 120px 2rem;
        }

        .pricing-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            margin-top: 5rem;
        }

        .pricing-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            text-align: center;
            position: relative;
            transition: all 0.4s ease;
            backdrop-filter: blur(10px);
            clip-path: polygon(30px 0%, 100% 0%, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0% 100%, 0% 30px);
        }

        .pricing-card.featured {
            border-color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.05);
            transform: scale(1.05);
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        }

        .pricing-card.featured::before {
            content: 'MOST POPULAR';
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
            color: var(--darker-bg);
            padding: 0.5rem 2rem;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 2px;
            clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
        }

        .pricing-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
        }

        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-10px);
        }

        .plan-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 2rem;
            text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
        }

        .plan-price {
            font-size: 4rem;
            font-weight: 900;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            text-shadow: 0 0 20px var(--primary-cyan);
        }

        .plan-period {
            color: var(--text-secondary);
            margin-bottom: 3rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .plan-features {
            list-style: none;
            margin-bottom: 3rem;
            text-align: left;
        }

        .plan-features li {
            padding: 0.6rem 0;
            color: var(--text-secondary);
            position: relative;
            padding-left: 2rem;
            border-bottom: 1px solid rgba(0, 255, 255, 0.1);
        }

        .plan-features li::before {
            content: '▶';
            position: absolute;
            left: 0;
            color: var(--primary-cyan);
            font-size: 0.8rem;
        }

        /* Contact Section */
        .contact {
            padding: 120px 2rem;
            background: rgba(0, 255, 255, 0.02);
            border-top: 1px solid var(--border-color);
        }

        .contact-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .contact-form-wrapper {
            max-width: 600px;
            margin: 0 auto;
            margin-top: 4rem;
        }

        .contact-form {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            backdrop-filter: blur(10px);
            clip-path: polygon(30px 0%, 100% 0%, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0% 100%, 0% 30px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .form-group label {
            display: block;
            color: var(--primary-cyan);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
            margin-bottom: 0.8rem;
            text-shadow: 0 0 10px var(--primary-cyan);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem 1.5rem;
            background: rgba(0, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
            clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .btn-submit {
            width: 100%;
            cursor: pointer;
            font-size: 1rem;
            margin-top: 1rem;
            border: none;
            transition: all 0.3s ease;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(229, 231, 235, 0.4);
        }

        /* Footer */
        .footer {
            padding: 60px 2rem 40px;
            border-top: 1px solid var(--border-color);
            text-align: center;
            background: rgba(0, 0, 0, 0.5);
            margin-top: 80px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-links {
            margin-bottom: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 0 0.5rem;
        }

        .footer-links a:hover {
            color: var(--primary-cyan);
            text-shadow: 0 0 10px var(--primary-cyan);
            transform: translateY(-2px);
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 1px;
            background: var(--primary-cyan);
            transition: width 0.3s ease;
            box-shadow: 0 0 5px var(--primary-cyan);
        }

        .footer-links a:hover::after {
            width: 80%;
        }

        .footer-separator {
            color: var(--primary-cyan);
            opacity: 0.5;
            font-size: 0.8rem;
            margin: 0 0.2rem;
        }

        .footer-bottom {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .footer-bottom p {
            margin: 0.5rem 0;
        }

        .footer-credit {
            font-size: 0.85rem;
            opacity: 0.8;
            margin-top: 0.5rem;
        }

        .footer-credit a {
            color: var(--primary-cyan);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .footer-credit a:hover {
            color: var(--primary-pink);
            text-shadow: 0 0 10px var(--primary-pink);
            text-decoration: underline;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .mobile-menu-button {
                display: block !important;
            }
            
            .nav-links {
                display: none;
            }
            
            .nav-bottom .cyber-button {
                display: none;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn-primary, .btn-secondary {
                width: 100%;
                max-width: 300px;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-card.featured {
                transform: none;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .contact {
                padding: 80px 1rem;
            }
            
            .contact-form {
                padding: 2rem;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }
            
            .footer-links a {
                padding: 0.5rem 1rem;
            }
            
            .footer-separator {
                display: none;
            }
            
            .footer {
                margin-top: 40px;
                padding: 40px 1rem 30px;
            }
        }

        @media (max-width: 480px) {
            .mobile-menu {
                width: 90%;
                max-width: none;
            }
            
            .mobile-menu-header {
                padding: 1.5rem;
            }
            
            .mobile-menu-nav a {
                padding: 1.2rem 1.5rem;
                font-size: 1rem;
            }
            
            .mobile-menu-cta {
                padding: 1.5rem;
            }
            
            .cyber-button {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }
            
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-nexus, .hero-flow {
                display: block;
                margin: 0;
            }
        }

        /* Scroll animations */
        .fade-up {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Data streams */
        .data-streams {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
            pointer-events: none;
        }

        .data-stream {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
            opacity: 0;
            animation: dataFlow 3s ease-in-out infinite;
        }

        .data-stream:nth-child(odd) {
            background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
            animation-duration: 4s;
        }

        @keyframes dataFlow {
            0% {
                width: 0;
                opacity: 0;
                transform: translateX(0);
            }
            50% {
                width: 300px;
                opacity: 0.8;
            }
            100% {
                width: 0;
                opacity: 0;
                transform: translateX(100vw);
            }
        }

        /* Performance optimization for mobile */
        @media (max-width: 768px) {
            .matrix-rain {
                display: none;
            }
            
            .particles {
                opacity: 0.5;
            }
            
            .particle {
                animation-duration: 30s !important;
            }
            
            .orb {
                filter: blur(100px);
                opacity: 0.3;
            }
            
            .scanlines::before {
                animation: none;
                transform: translateY(0);
            }
            
            .data-streams {
                display: none;
            }
            
            .noise-overlay {
                display: none;
            }
        }

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            .cyber-gradient,
            .grid-lines,
            .grid-glow,
            .particle,
            .orb,
            .matrix-column,
            .scanlines::before,
            .data-stream {
                animation: none !important;
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--darker-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--primary-cyan), var(--primary-pink));
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(var(--primary-pink), var(--primary-cyan));
        }

/* NOVINKY Z WEBU*/

/* =======================================
   COMMANDS PAGE STYLES (commands.html)
   ======================================= */
/* --- Tag Buttons (Filtry) --- */

.command-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tag-button {
    background-color: var(--color-dark-2); /* Tmavé pozadí */
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-dark);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    
    /* Vzhled tlačítek */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.tag-button:hover {
    background-color: var(--color-dark-3);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.active-tag {
    /* Aktivní modrý/tyrkysový styl */
    background-color: rgba(0, 192, 255, 0.15); /* Světle modré průhledné pozadí */
    border-color: var(--color-primary-light); /* Modrý okraj */
    color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(0, 192, 255, 0.6);
}

/* --- Vyhledávací pole --- */

.command-search-bar {
    width: 100%;
    max-width: 800px; /* Omezení šířky pro desktop */
    margin: 0 auto 3rem;
}

.command-search-bar input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--color-dark-2);
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-primary);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    
    /* Neonový efekt */
    box-shadow: 0 0 10px rgba(0, 192, 255, 0.1);
}

.command-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(0, 192, 255, 0.4);
}


/* --- Seznam příkazů --- */

.command-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.command-item {
    display: grid;
    /* Rozložení sloupců: Příkaz | Popis | Modul | Šipka */
    grid-template-columns: 180px 1fr auto 50px; 
    align-items: center;
    padding: 15px 20px;
    background-color: var(--color-dark-3);
    border: 1px solid var(--color-border-dark);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.command-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 100, 200, 0.4); /* Růžový/fialový glow při najetí */
}

.command-name {
    font-family: 'Consolas', monospace; /* Fixní šířka pro příkaz */
    color: var(--color-primary-light);
    font-size: 1.1rem;
    font-weight: bold;
}

.command-description {
    color: var(--color-text-secondary);
    padding-right: 15px;
}

.command-module-tag {
    /* Modul Tag jako na obrázku */
    color: var(--color-accent);
    background-color: rgba(255, 100, 200, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
}

.command-link a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.command-link a:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-1);
    box-shadow: 0 0 10px var(--color-accent);
}

.command-link .arrow {
    transform: rotate(-90deg); /* Otočení šipky nahoru, jako na obrázku */
    display: block;
    font-weight: bold;
}

/* --- Responzivní úpravy pro mobilní zařízení --- */

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .command-item {
        /* Na mobilu přejdeme na dvousloupcové uspořádání */
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 5px 10px;
        padding: 12px 15px;
    }
    
    .command-name {
        grid-column: 1 / 2;
        font-size: 1rem;
    }
    
    .command-description {
        grid-column: 1 / 2;
        font-size: 0.9rem;
        padding-right: 0;
    }

    .command-module-tag {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        font-size: 0.75rem;
        padding: 4px 8px;
        text-align: right;
        align-self: flex-start;
    }

    .command-link {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        justify-self: end;
    }

    .command-tags {
        justify-content: start;
    }
    
    .tag-button {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/*NOVINKY/*
/* =======================================
   COMMANDS FILTROVÁNÍ (Klíčová třída)
   ======================================= */

/* Tato třída je klíčová pro filtrování a musí být deklarována! */
.is-hidden {
    /* Použijeme !important, aby to přebilo případné kolidující styly */
    display: none !important;
}

/* =======================================
   COMMANDS ACCORDION STYLES (commands.html)
   ======================================= */

/* Nový kontejner pro skupiny příkazů a rozbalování */
.command-list-groups {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Menší mezera mezi skupinami */
    max-width: 900px;
    margin: 0 auto;
}

/* Hlavní prvek řádku příkazu, který drží item a detail */
.command-group {
    border: 1px solid var(--color-border-dark);
    border-radius: 5px;
    background-color: var(--color-dark-3);
    transition: all 0.3s ease;
    /* Zajištění, aby JS mohl prvek skrýt/zobrazit, i bez !important */
    display: block; 
}

/* Základní řádek příkazu (uvnitř command-group) */
.command-item {
    display: grid;
    /* 4 sloupce: Název | Popis | Tag modulu | Tlačítko (50px) */
    grid-template-columns: 180px 1fr auto 50px; 
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}

.command-group:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 100, 200, 0.4); 
}

/* Aktivní styl pro rozbalený řádek */
.command-group.active {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(0, 192, 255, 0.4);
}

/* Toggle tlačítko místo odkazu */
.command-toggle-button {
    all: unset; /* Odstraníme výchozí styly tlačítek */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.command-toggle-button:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-1);
    box-shadow: 0 0 10px var(--color-accent);
}

/* Rotace šipky */
.command-toggle-button .arrow {
    transform: rotate(90deg); /* Výchozí stav: Šipka "doprava" */
    display: block;
    transition: transform 0.3s ease;
}

.command-toggle-button[aria-expanded="true"] .arrow {
    transform: rotate(180deg); /* Rozbalený stav: Šipka dolů */
}

/* --- Detaily příkazu (Rozbalená sekce) --- */

.command-detail-row {
    /* Zajišťuje animované rozbalování */
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 20px; /* Výchozí padding 0 */
}

/* Stav pro zobrazení */
.command-detail-row.is-open {
    max-height: 500px; /* Dostatečně velká hodnota pro plynulou animaci */
    padding: 15px 20px 20px 20px;
    border-top: 1px dashed var(--color-border-dark);
}

.detail-content {
    color: var(--color-text-primary);
}

.syntax {
    font-family: 'Consolas', monospace;
    color: #00ff80; /* Zelený text pro syntaxi */
    background-color: var(--color-dark-1);
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
    border-left: 3px solid #00ff80;
}

.syntax strong {
    font-weight: normal; /* Vypneme ztučnění markdown hvězdiček, necháme jen zelenou barvu */
}

.extended-description p {
    margin: 5px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.module-link-small {
    margin-top: 15px !important;
    font-size: 0.85rem !important;
    color: var(--color-text-secondary) !important;
}

.module-link-small a {
    color: var(--color-accent);
    text-decoration: none;
}


/* --- Responzivní úpravy pro mobilní zařízení --- */
@media (max-width: 768px) {
    /* Přizpůsobení gridu pro menší obrazovky */
    .command-item {
        grid-template-columns: 1fr 50px; /* Název, Popis/Tag a Tlačítko se srovnají */
        grid-template-rows: auto auto;
        gap: 5px 0;
    }
    
    .command-name {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .command-description {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        font-size: 0.85rem;
    }
    
    .command-module-tag {
        /* Na mobilu skryjeme, aby bylo více místa, nebo přesuneme */
        display: none; 
    }
    
    .command-toggle-button {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        justify-self: center;
        align-self: center;
        width: 40px;
        height: 40px;
    }
}

/* ========================================================= */
/* STATISTIKY BOTA (stats.html) */
/* ========================================================= */

/* 1. STATS CARDS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--color-background-darker);
    padding: 25px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.stat-card h4 {
    color: var(--color-text-light);
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary-accent);
    margin: 5px 0 0;
    display: block;
}

/* 2. STATUS BARVY */
.status-online { color: #00ff99 !important; text-shadow: 0 0 5px #00ff99; }
.status-offline, .status-err { color: #ff3366 !important; text-shadow: 0 0 5px #ff3366; }
.status-ok { color: #00ff99 !important; text-shadow: 0 0 5px #00ff99; }
.status-warn { color: #ffcc00 !important; text-shadow: 0 0 5px #ffcc00; }

/* 3. COGS LIST A GRAFY KONTEJNER */
.chart-container {
    background-color: var(--color-background-darker);
    padding: 30px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.chart-container h3 {
    color: var(--color-text-light);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

/* Styly pro seznam modulů (Cogs) */
.cogs-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px 20px;
}

.cogs-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border-light);
}

.cogs-list li:last-child {
    border-bottom: none;
}

.cog-label {
    color: var(--color-text);
}

.cog-value {
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

/* Styl pro varovný box */
.warn-box-active {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #ffcc00;
    background-color: #2a1a00;
    border: 1px solid #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* =========================================================
    STYLY PRO MODERÁTORSKÉ ZÁZNAMY (warns.html)
    ========================================================= */

/* --- Proměnné pro barvy akcí --- */
:root {
    --color-ban: #ff333321;       /* Červená pro Ban */
    --color-warn: #ffc40044;      /* Žlutá pro Warn */
    --color-kick: #ff8c0050;      /* Oranžová pro Kick */
    --color-mute: #8b5dff44;      /* Fialová pro Mute */
    --color-crossban: #00ff7f33;   /* NOVÉ: Zelená pro CrossBan */
    --color-default: #008bba4f;   /* Modrá pro ostatní */
}

/* Základní layout obsahu */
.content-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- Box modulu a vyhledávání ------------------- */
.logs-module-box {
    background-color: rgba(15, 15, 35, 0.9);
    border: 2px solid var(--primary-magenta-transparent);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.2);
}

.search-panel {
    margin-bottom: 25px;
    text-align: center;
}

/* NOVÉ: Kontejner pro tlačítka (Refresh a CrossBan filtr) */
.search-buttons-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.cyber-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--primary-cyan);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.cyber-input:focus {
    border-color: var(--primary-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.7);
    outline: none;
}

.search-info {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ------------------- STYLY PRO TLAČÍTKA FILTRŮ ------------------- */

/* Vizuální stav: Filtr je AKTIVNÍ (Zobrazuje se Jen bez CrossBanů) */
/* Pravidlo pro :not(.active-filter) bylo odebráno, protože bylo prázdné a způsobovalo varování/chybu.
   Standardní vzhled se aplikuje na všechny .cyber-button. */

.cyber-button.active-filter {
    /* Vizuální stav: Filtr je NEAKTIVNÍ (zobrazuje se Jen bez CrossBanů) 
       Tato třída se aplikuje, když je filtr AKTIVNÍ (schovává CrossBany) */
    background-color: var(--primary-magenta); /* Změna barvy, aby bylo vidět, že je aktivní */
    color: var(--text-dark);
    border-color: var(--primary-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.7);
}


/* ------------------- TABULKA STYLY ------------------- */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; 
    font-size: 0.9rem;
}

.cyber-table thead th {
    background-color: var(--primary-magenta);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px 10px;
    border-bottom: 3px solid var(--primary-cyan);
    text-align: center;
}

.cyber-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-light);
    text-align: center; 
    vertical-align: middle;
}

.cyber-table tbody tr:nth-child(even) {
    background-color: rgba(20, 20, 40, 0.8);
}

.cyber-table tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.15);
    transition: background-color 0.3s;
}

/* Specifické zarovnání pro delší text */
.cyber-table tbody td:nth-child(2), /* Uživatel */
.cyber-table tbody td:nth-child(4), /* Důvod */
.cyber-table tbody td:nth-child(5) /* Moderátor */ {
    text-align: left;
}


/* Loading a Error Row */
.loading-row {
    color: var(--primary-cyan);
    font-style: italic;
    text-align: center !important;
    padding: 20px 0 !important;
}

/* ------------------- BADGE STYLY PRO AKCE ------------------- */
.action-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8em;
    color: var(--text-dark);
}

.action-ban { background-color: var(--color-ban); color: white; }
.action-warn { background-color: var(--color-warn); }
.action-kick { background-color: var(--color-kick); }
.action-mute { background-color: var(--color-mute); color: white; }
.action-crossban { background-color: var(--color-crossban); color: var(--text-dark); } 
.action-default { background-color: var(--color-default); }

/* Status Texty pro chyby/varování */
.status-warn-text {
    color: var(--color-warn);
    font-weight: 600;
}

.status-err-text {
    color: var(--color-ban);
    font-weight: 600;
}


/* ------------------- RESPONZIVNÍ STYLY ------------------- */
@media screen and (max-width: 950px) {
    
    .logs-module-box {
        padding: 15px;
    }

    /* Responzivní pro panel tlačítek */
    .search-buttons-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-buttons-group .cyber-button {
        width: 100%;
        min-width: auto;
    }
    
    /* Na užších obrazovkách skryjeme záhlaví a změníme zobrazení řádků */
    .cyber-table {
        min-width: 100%;
        border: none;
    }

    .cyber-table thead {
        display: none;
    }

    .cyber-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--primary-magenta-transparent);
        border-radius: 5px;
        padding: 10px;
    }

    .cyber-table td {
        display: block;
        text-align: right !important;
        border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
        padding: 8px 5px;
        position: relative;
    }
    
    .cyber-table td:last-child {
        border-bottom: 0;
    }

    /* Přidání virtuálního záhlaví před obsah buňky */
    .cyber-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        color: var(--primary-cyan-light);
        text-transform: uppercase;
        margin-right: 1em;
        font-size: 0.85rem;
    }
    
    /* Nastavení data-label pro sloupce (používá se v HTML, ale pro jistotu zde) */
    .cyber-table tbody tr td:nth-child(1):before { content: "Datum"; }
    .cyber-table tbody tr td:nth-child(2):before { content: "Uživatel"; }
    .cyber-table tbody tr td:nth-child(3):before { content: "Akce"; }
    .cyber-table tbody tr td:nth-child(4):before { content: "Důvod"; }
    .cyber-table tbody tr td:nth-child(5):before { content: "Moderátor"; }
    .cyber-table tbody tr td:nth-child(6):before { content: "Server"; }
}
/* --- STYLY PRO STRÁNKOVÁNÍ --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(15, 15, 35, 0.7);
    border-radius: 8px;
    border: 1px solid var(--primary-cyan-transparent);
}

.page-status {
    color: var(--primary-cyan-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.pagination-controls .cyber-button {
    padding: 10px 20px;
    min-width: 120px;
}

/* Deaktivované tlačítko pro stránkování (vizuální styl) */
.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    box-shadow: none;
    transition: none;
}

.disabled-btn:hover {
    background-color: var(--primary-cyan); /* Zamezení změny barvy při hoveru u disabled */
    color: var(--text-dark);
}

/* Úprava pro mobilní zobrazení */
@media screen and (max-width: 500px) {
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    .pagination-controls .cyber-button {
        width: 100%;
        min-width: auto;
    }
}

/* =========================================================
   STYLY PRO CRON GENERÁTOR (crongenerator.html)
   ========================================================= */

.cron-generator-box {
    background-color: rgba(15, 15, 35, 0.9);
    border: 2px solid var(--primary-cyan-transparent);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.cron-field-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 stejných sloupců */
    gap: 20px;
    margin-bottom: 30px;
}

.cron-field-group {
    display: flex;
    flex-direction: column;
}

.cron-label {
    color: var(--primary-cyan-light);
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cyber-select {
    width: 100%;
    padding: 5px;
    border: 2px solid var(--primary-magenta);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    /* Zajištění stejného vzhledu roletek ve všech prohlížečích */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cyber-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    outline: none;
}

/* Styly pro OPTION uvnitř SELECT - pro lepší čitelnost */
.cyber-select option {
    padding: 5px;
    background-color: #0d0d1e; 
    color: var(--text-light);
}

.cyber-select option:checked {
    background-color: var(--primary-magenta);
    color: var(--text-dark);
}

/* --- Výstupní box --- */
.cron-result-box {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--primary-magenta-transparent);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

.result-title {
    color: var(--text-light);
    border-bottom: 1px solid var(--primary-cyan-transparent);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cron-expression-output {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #0a0a1a;
    border: 2px solid var(--primary-cyan);
    border-radius: 5px;
    font-family: monospace;
}

.cron-code {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: bold;
}

.copy-button {
    min-width: 120px;
}

/* --- Vysvětlení CRONu --- */
.cron-explanation {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-magenta);
    border-radius: 3px;
}

.explanation-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

#explanationText {
    color: var(--text-muted);
    margin: 0;
}

/* --- Rychlé příklady --- */
.quick-examples {
    margin-top: 20px;
}

.examples-title {
    color: var(--primary-magenta);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.examples-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.examples-buttons .cyber-button {
    flex-grow: 1;
    min-width: 150px;
}


/* =========================================================
   STYLY PRO CRON POKYNY A TABULKY (Statická sekce)
   ========================================================= */

.cron-instructions-box {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 5px solid var(--primary-cyan);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.instructions-title {
    color: var(--primary-magenta);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-magenta-transparent);
    padding-bottom: 5px;
}

.command-code {
    display: block;
    background-color: #0d0d1e;
    color: var(--primary-cyan-light);
    padding: 10px;
    margin: 15px 0;
    font-family: monospace;
    border: 1px solid var(--primary-cyan-transparent);
    border-radius: 3px;
    font-size: 1.1rem;
}

.command-fields {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.command-fields li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.field-name {
    font-weight: bold;
    color: var(--text-light);
    margin-right: 5px;
}

.inline-code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    color: var(--primary-cyan-light);
}

.table-title {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.table-subtitle {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--primary-magenta-transparent);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
}

.cyber-table th, .cyber-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cyber-table th {
    background-color: rgba(255, 0, 255, 0.2);
    color: var(--primary-magenta-light);
    text-transform: uppercase;
    font-weight: 600;
}

.cyber-table td {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.cyber-table tbody tr:hover td {
    background-color: rgba(255, 0, 255, 0.1);
    transition: background-color 0.2s;
}

/* --- RESPONZIVITA PRO CRON GENERÁTOR --- */
@media screen and (max-width: 1200px) {
    .cron-field-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 sloupce pro menší desktopy */
    }
}

@media screen and (max-width: 768px) {
    .cron-field-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce pro tablety */
    }
    
    .cron-generator-box {
        padding: 15px;
    }
    
    .cyber-table th, .cyber-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 550px) {
    .cron-field-grid {
        grid-template-columns: 1fr; /* 1 sloupec pro telefony */
    }
    
    .cron-expression-output {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .cron-code {
        text-align: center;
        word-break: break-all;
    }

    .copy-button {
        width: 100%;
        min-width: auto;
    }

    .cyber-table th, .cyber-table td {
        padding: 8px 10px;
    }
    .instructions-title {
        font-size: 1.3rem;
    }
}

/* =========================================================
   STYLY PRO EMBED GENERÁTOR (embedgenerator.html)
   ========================================================= */

.embed-generator-main {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.embed-form, .embed-preview {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    background-color: rgba(15, 15, 35, 0.9);
    border: 2px solid var(--primary-cyan-transparent);
}

.embed-form {
    flex: 1; /* Zabere většinu místa */
    min-width: 400px;
}

.embed-preview {
    flex: 0 0 350px; /* Pevná šířka pro náhled (simulace Discordu) */
    padding: 10px;
    background-color: #36393f; /* Pozadí Discord kanálu */
    border: none;
    box-shadow: none;
    overflow: hidden;
    /* Zajištění, že se preview nezmenší víc, než je potřeba */
    min-width: 300px; 
}

/* ----------------------------------------------------- */
/* DISCORD EMBED MOCKUP STYLY */
/* ----------------------------------------------------- */
.discord-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-family: sans-serif; /* Použijte Discord font, pokud ho máte */
    font-size: 0.875rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #2f3136;
    flex-shrink: 0;
}

.message-content {
    flex-grow: 1;
}

.message-header {
    margin-bottom: 5px;
    line-height: 1.2;
}

.bot-name {
    color: #7289da; /* Barva jména bota */
    font-weight: 500;
}

.timestamp {
    color: #72767d;
    font-size: 0.75rem;
    margin-left: 5px;
}

.embed-wrapper {
    max-width: 520px; 
    margin-top: 5px;
    border-radius: 4px;
    background-color: #2f3136; /* Pozadí embedu */
    display: flex;
}

/* SIDE BAR (Barva) */
.embed-color-bar {
    width: 4px;
    border-radius: 4px 0 0 4px;
    background-color: #7289da; 
    flex-shrink: 0;
}

.embed-content {
    padding: 8px 10px 8px 12px;
    color: #dcddde;
    flex-grow: 1;
}

.embed-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.embed-author-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #36393f;
    object-fit: cover;
}

.embed-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.embed-description {
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: #dcddde;
}

/* POLE (Fields) */
.embed-fields {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
}

.embed-field {
    margin-bottom: 8px;
    padding-right: 15px;
    /* Důležité pro to, aby pole "Inline" fungovala */
    flex-grow: 1; 
    min-width: 150px; 
}

.embed-field.inline {
    /* Pole, které má jít vedle sebe */
    flex: 1 1 45%; 
    max-width: 50%;
}

.embed-field-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.embed-field-value {
    font-size: 0.85rem;
    color: #dcddde;
    /* Umožňuje zalomení řádků */
    white-space: pre-wrap; 
}

/* FOOTER */
.embed-footer {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #72767d;
}

.embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

/* ----------------------------------------------------- */
/* FORMULÁŘ STYLY */
/* ----------------------------------------------------- */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-magenta);
    font-weight: 600;
}

.form-group input[type="text"], 
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--primary-cyan-transparent);
    background-color: #0a0a1a;
    color: var(--text-light);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 35px;
    padding: 0;
    border: 2px solid var(--primary-magenta);
    cursor: pointer;
    background: #0a0a1a;
    border-radius: 4px;
}

.field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.field-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.fields-container {
    border: 1px dashed var(--primary-magenta-transparent);
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}

.field-item {
    border: 1px solid var(--primary-cyan-transparent);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: rgba(0, 255, 255, 0.05);
}

.field-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.field-controls input[type="checkbox"] {
    margin-right: 5px;
}

.remove-field-btn {
    background: none;
    border: none;
    color: var(--primary-magenta);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    margin-left: 15px;
}

.remove-field-btn:hover {
    color: #ff5555;
}

.add-field-btn {
    width: 100%;
    margin-top: 10px;
}

/* ----------------------------------------------------- */
/* JSON VÝSTUPNÍ SEKCE */
/* ----------------------------------------------------- */

.json-output-box {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid var(--primary-magenta);
    background-color: #0a0a1a;
    border-radius: 8px;
}

.json-output-box h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.json-code-output {
    position: relative;
}

#jsonOutput {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #0d0d1e;
    color: var(--primary-cyan-light);
    border: 1px solid var(--primary-cyan-transparent);
    border-radius: 4px;
    resize: vertical;
}

.json-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.json-copy-btn:hover {
     opacity: 1;
}

/* ----------------------------------------------------- */
/* RESPONZIVITA */
/* ----------------------------------------------------- */
@media screen and (max-width: 1000px) {
    .embed-generator-main {
        flex-direction: column;
    }

    .embed-form {
        min-width: 100%;
    }

    .embed-preview {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .embed-wrapper {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
     .field-row {
         flex-direction: column;
     }
     .embed-field.inline {
        flex: 1 1 100%; 
        max-width: 100%;
     }
}

/* --- Sekce Server Carousel - SEZNAM SERVERŮ NA DOMOVSKÉ STRÁNCE--- */
.server-carousel {
    padding: 60px 0;
    overflow: hidden; /* Skryje části, které jsou mimo viditelnou oblast */
    
    /* Zajišťuje transparentní pozadí, aby sekce splynula s pozadím webu */
    background-color: transparent; 

    border-top: 1px solid rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.server-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    /* Pevná výška, aby se nenačtené prvky nezhroutily */
    min-height: 140px; 
}

.server-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 30px; 
    padding: 10px;
    width: 120px; /* ⬅️ ZVĚTŠENO pro lepší zalamování/delší text */
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: default;
    flex-shrink: 0;
}

.server-icon {
    width: 80px; /* Zvětšeno z 60px */
    height: 80px; /* Zvětšeno z 60px */
    border-radius: 50%;
    background-color: #0d121c; /* Výchozí barva/pozadí pro ikonu */
    border: 2px solid #0ff; /* Neonový rámeček */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* Zvětšeno z 24px */
    color: #fff;
    overflow: hidden;
    margin-bottom: 8px;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-name {
    font-size: 0.85rem;
    color: #fff;
    text-shadow: 0 0 5px #0ff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip; /* Odstraní "..." */
    white-space: normal; /* ⬅️ POVOLÍ VÍCE ŘÁDKŮ */
    line-height: 1.2; /* Volitelné, pro lepší čitelnost */
}

/* Keyframes pro animaci posuvu zprava doleva (opraveno) */
@keyframes scroll-left {
    0% {
        /* Začíná na pozici prvního setu */
        transform: translateX(0%);
    }
    100% {
        /* 💡 ZMĚNA: Posun o přesně 1/3 (nebo 1/2, pokud necháte duplikaci 2x)
           Díky duplikaci 3x, je -33.3333% přesně šířka jednoho setu.
           V tento moment prohlížeč skočí zpět na 0% (neviditelný skok). */
        transform: translateX(-33.3333%); /* Upraveno z -50% */
    }
}

/* 💡 DŮLEŽITÉ: Musíme také prodloužit dobu animace, jinak by to bylo moc rychlé
   a skok by byl vidět. Zde jsem zvolil 60s pro 3x duplikovaný obsah. */
.carousel-track {
    display: flex;
    white-space: nowrap; 
    /* 💡 ZMĚNA: Pro delší smyčku a 3x duplikovaný obsah je potřeba delší čas. */
    animation: scroll-left 60s linear infinite; 
}

/* Styl pro chybovou hlášku (beze změny) */
.server-error {
    color: #ff0044;
    font-size: 1.1rem;
    padding: 40px;
    text-align: center;
    display: block;
    width: 100%;
}

/* =========================================================
   STYLY PRO SEKCI PODĚKOVÁNÍ (thanks.html)
   ========================================================= */

/* --- Obecná mřížka pro karty --- */
.acknowledgement-grid {
    display: grid;
    /* Dva sloupce pro desktop, flexibilní velikost */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contributor-card {
    background-color: rgba(30, 40, 50, 0.6); /* Tmavší pozadí pro kartu */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    /* Cyber záře, využívající primární barvu */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Zarovnání obsahu doleva */
    position: relative;
    overflow: hidden;
}

.contributor-card::after {
    /* Vizuální prvek v pozadí karty */
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-right: 3px solid var(--primary-magenta);
    border-bottom: 3px solid var(--primary-magenta);
    opacity: 0.3;
}

.contributor-card:hover {
    transform: translateY(-5px); /* Efekt při najetí myší */
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.6);
}

/* --- Styly pro Avatar --- */
.contributor-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Kulatý tvar */
    overflow: hidden;
    margin-bottom: 15px;
    /* Kybernetický rámeček s barvou */
    border: 3px solid var(--primary-cyan-light); 
    box-shadow: 0 0 12px var(--primary-cyan);
    background-color: #111; 
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Styly pro text v kartě --- */
.contributor-name {
    color: var(--primary-magenta); /* Použijeme magenta barvu pro jméno */
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

.contributor-role {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.9;
}


/* --- Zvláštní styly pro sekci s protokolem (tabulky) --- */
/* Zde ponecháváme pouze nové styly, které byly přidány v předchozí odpovědi (viz hero-archive-box) */
.hero-archive-box {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.4); 
    border: 1px solid var(--primary-cyan-transparent);
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15); 
    position: relative;
}

.hero-archive-box::before {
    content: "ARCHIVE STATUS: ONLINE / ENTITIES FOUND";
    position: absolute;
    top: 0;
    left: 20px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    text-shadow: 1px 0 0 rgba(255, 0, 255, 0.5), -1px 0 0 rgba(0, 255, 255, 0.5); 
}
/* ... ostatní styly hero-table, protocol-entry atd. */

/* --- RESPONZIVITA --- */
@media screen and (max-width: 768px) {
    .acknowledgement-grid {
        grid-template-columns: 1fr; /* Jeden sloupec pro mobily */
    }
}