* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

code,
pre,
pre *,
.config-code,
.config-code *,
.command-code,
input,
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

body {
    cursor: default;
}

a,
button,
.btn,
.service-card,
.plugin-card,
.feature-card,
.command-card,
.hamburger,
.nav-close {
    cursor: pointer;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg, rgba(10, 21, 37, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nav-border, rgba(0, 212, 255, 0.1));
    padding: var(--spacing-sm) 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1003;
    text-decoration: none;
    position: relative;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--nav-title-gradient, linear-gradient(135deg, #00E5CC, #FF6B35));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-link-active, #00E5CC);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-link-hover, #00E5CC);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    z-index: 1003;
    background: none;
    border: none;
    position: relative;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--hamburger-color, #00E5CC);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.hamburger::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.nav-close {
    display: none;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: var(--nav-close-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--nav-close-border, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1003;
}

.nav-close:hover {
    background: var(--nav-close-hover-bg, rgba(255, 255, 255, 0.1));
    transform: rotate(90deg);
}

.nav-close::before,
.nav-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--nav-close-color, #00E5CC);
    border-radius: 2px;
}

.nav-close::before {
    transform: rotate(45deg);
}

.nav-close::after {
    transform: rotate(-45deg);
}

.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        background: var(--nav-mobile-bg, rgba(10, 21, 37, 0.98));
        backdrop-filter: blur(20px);
        padding: 100px var(--spacing-lg) var(--spacing-xl);
        gap: var(--spacing-md);
        border-left: 1px solid var(--nav-border, rgba(0, 212, 255, 0.2));
        transition: right 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        align-items: flex-start;
        z-index: 1002;
    }

    .nav-toggle:checked ~ .nav-links {
        right: 0;
    }

    .nav-toggle:checked ~ .nav-links .nav-close {
        display: flex;
    }

    .nav-toggle:checked ~ .hamburger {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-sm) 0;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-link::after {
        bottom: 0.5rem;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        z-index: 1001;
    }

    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-logo {
        width: 32px;
        height: 32px;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 100%;
        padding: 80px var(--spacing-md) var(--spacing-lg);
    }
}

.language-switcher {
    padding: 8px 16px;
    background: var(--lang-switcher-bg, rgba(10, 21, 37, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid var(--lang-switcher-border, rgba(0, 229, 204, 0.2));
    border-radius: var(--radius-sm, 8px);
    color: var(--lang-switcher-color, #A8D4C8);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--lang-switcher-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300E5CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"));
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
    min-width: 95px;
    font-family: var(--font-family, 'Space Grotesk', sans-serif);
}

.language-switcher option {
    background-color: var(--lang-switcher-option-bg, #0A1525);
    color: var(--lang-switcher-option-color, #A8D4C8);
    padding: 10px;
    font-weight: 500;
}

.language-switcher:hover {
    border-color: var(--lang-switcher-hover-border, rgba(0, 229, 204, 0.5));
    background-color: var(--lang-switcher-hover-bg, rgba(15, 31, 53, 0.9));
    color: var(--lang-switcher-hover-color, #00E5CC);
    box-shadow: var(--lang-switcher-hover-shadow, 0 0 15px rgba(0, 229, 204, 0.1));
}

.language-switcher:focus {
    border-color: var(--lang-switcher-focus-border, #00E5CC);
    box-shadow: var(--lang-switcher-focus-shadow, 0 0 0 3px rgba(0, 229, 204, 0.1));
    outline: none;
}

.language-switcher:active {
    transform: translateY(1px);
}

.language-switcher option:checked {
    background-color: var(--lang-switcher-option-checked-bg, rgba(0, 229, 204, 0.15));
    color: var(--lang-switcher-option-checked-color, #00E5CC);
}