.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HEADER ===== */
.commands-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #5865F2, #404EED);
    border-radius: 20px;
    color: white;
    margin: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.commands-header::before {
    content: "📋";
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    right: -20px;
    bottom: -30px;
    transform: rotate(10deg);
}
.commands-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.commands-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== ЛОГОТИП В НАВИГАЦИИ ===== */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white !important;
    text-decoration: none;
}

.navbar-logo span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
    transition: all 0.3s;
}

.navbar-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.6);
}

/* ===== СТАТИСТИКА ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: #5865F2;
}
.stat-card .label {
    color: #888;
    font-size: 0.9rem;
}

/* ===== ПОИСК ===== */
.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.search-box:focus-within {
    border-color: #5865F2;
    box-shadow: 0 4px 30px rgba(88, 101, 242, 0.2);
}
.search-box input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}
.search-box button {
    padding: 0.9rem 2rem;
    background: #5865F2;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.search-box button:hover { background: #4752c4; }

/* ===== ФИЛЬТРЫ ===== */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}
.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e0e2ff;
    background: white;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.filter-btn:hover {
    border-color: #5865F2;
    color: #5865F2;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: #5865F2;
    color: white;
    border-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* ===== КОМАНДЫ ===== */
.command-section { margin-bottom: 2.5rem; }
.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    color: #2C2F33;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e0e2ff;
}
.section-title .badge {
    background: #5865F2;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
}
.commands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}
.command-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid #5865F2;
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr 130px;
    align-items: center;
    gap: 1rem;
}
.command-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.command-card .cmd {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #5865F2;
    font-size: 1rem;
    background: #f0f2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}
.command-card .desc { color: #555; font-size: 0.95rem; }
.command-card .permission {
    font-size: 0.75rem;
    background: #fff3e0;
    color: #e65100;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    justify-self: end;
}
.command-card.moderation { border-left-color: #F04747; }
.command-card.moderation .cmd { color: #F04747; background: #ffebee; }
.command-card.moderation .permission { background: #ffebee; color: #c62828; }

.command-card.information { border-left-color: #43B581; }
.command-card.information .cmd { color: #43B581; background: #e8f5e9; }
.command-card.information .permission { background: #e8f5e9; color: #2e7d32; }

/* ===== КОМАНДЫ ДНЕЙ РОЖДЕНИЯ ===== */
.command-card.birthday { border-left-color: #e67e22; }
.command-card.birthday .cmd { color: #e67e22; background: #fff5e6; }
.command-card.birthday .permission { background: #fff5e6; color: #e67e22; }

/* ===== КОМАНДЫ ГОЛОСОВАНИЯ (Top.gg) ===== */
.command-card.voting { border-left-color: #faa61a; }
.command-card.voting .cmd { color: #faa61a; background: #fff8e6; }
.command-card.voting .permission { background: #fff8e6; color: #b8860b; }

/* ===== КОМАНДЫ ТИКЕТОВ ===== */
.command-card.ticket { border-left-color: #14b8a6; }
.command-card.ticket .cmd { color: #14b8a6; background: #e0f7f4; }
.command-card.ticket .permission { background: #e0f7f4; color: #0d9488; }

/* ===== КОМАНДЫ ЛОГИРОВАНИЯ ===== */
.command-card.logging { border-left-color: #7289DA; }
.command-card.logging .cmd { color: #7289DA; background: #f0f0ff; }
.command-card.logging .permission { background: #f0f0ff; color: #4752c4; }

/* ===== НЕТ РЕЗУЛЬТАТОВ ===== */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    display: none;
}
.no-results .emoji { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .commands-header { padding: 2rem 1.5rem; }
    .commands-header h1 { font-size: 2rem; }
    .command-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem;
    }
    .command-card .cmd { width: 100%; font-size: 1.1rem; padding: 0.4rem; }
    .command-card .permission {
        justify-self: center;
        width: auto;
        font-size: 0.7rem;
        padding: 0.2rem 1rem;
    }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .search-box input { padding: 0.7rem 1rem; font-size: 0.9rem; }
    .search-box button { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .filter-btn { padding: 0.4rem 1rem; font-size: 0.8rem; }
}
@media (max-width: 400px) {
    .stats-bar { grid-template-columns: 1fr; }
}