.commands-hero {
    padding: 150px 0 80px;
    background: var(--dark-bg);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    text-align: center;
}

.commands-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.commands-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-text);
    font-size: 1.2rem;
}

.commands-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.commands-search input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}

.commands-search input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.commands-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    font-size: 1.2rem;
    z-index: 2;
}

.commands-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    color: var(--gray-text);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.commands-list {
    padding: 80px 0;
    background-color: var(--darker-bg);
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.command-group {
    margin-bottom: 4rem;
}

.command-group-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.command-group-title i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.command-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.command-card {
    background: linear-gradient(145deg, rgba(31, 31, 46, 0.6), rgba(31, 31, 46, 0.8));
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.command-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.command-prefix {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 600;
    margin-left: 10px;
}

.command-description {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.command-usage {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: monospace;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    white-space: normal;
    word-break: break-word;
    overflow-x: auto;
}

.command-aliases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alias-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* New Loader */
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.loader::before, .loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

.loader::after {
    border-color: #FF3D00;
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% {transform: rotate(0deg)}
    100% {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0% {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25% {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.loading-screen.loaded {
    transform: scale(1.5);
    opacity: 0;
    pointer-events: none;
}

/* Flag icons */
.flag-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

.flag-icon-ru {
    background-image: url('../img/flags/ru.svg');
}

.flag-icon-gb {
    background-image: url('../img/flags/gb.svg');
}

.flag-icon-de {
    background-image: url('../img/flags/de.svg');
}

.mobile-languages {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.mobile-languages a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.mobile-languages a.active {
    background: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .commands-title {
        font-size: 2.8rem;
    }
    
    .commands-description {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .commands-title {
        font-size: 2.3rem;
    }
    
    .commands-description {
        font-size: 1rem;
    }
    
    .command-cards {
        grid-template-columns: 1fr;
    }
    
    .command-card {
        padding: 20px;
    }
    
    .command-name {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .command-prefix {
        margin-left: 0;
        margin-top: 5px;
    }
}