.plugins-page {
    margin-top: 120px;
    padding: 0 50px 50px 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.plugins-header {
    margin-bottom: 24px;
}

.plugins-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plugins-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.plugins-title-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.plugins-count {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.plugins-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: stretch;
}

.search-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 16px;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    padding: 14px 0;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.plugin-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    min-width: 170px;
}

.plugin-select:hover,
.plugin-select:focus {
    background: #1e1e1e;
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.plugin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.plugin-stat {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 16px;
}

.plugin-stat strong {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

.plugin-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 205px;
}

.plugin-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #0d0d0f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plugin-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.plugin-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugin-icon {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.plugin-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.plugin-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.plugin-chip {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.76rem;
    font-weight: 700;
}

.plugin-chip.secretcoord {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.plugin-authors {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.8rem;
    margin-top: 14px;
}

.plugins-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 48px 0;
    font-weight: 600;
}

.plugins-load-more {
    height: 1px;
    width: 100%;
}

.plugins-grid.loading::before {
    content: "Loading plugin index...";
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .plugins-page {
        padding: 0 20px 40px 20px;
        margin-top: 100px;
    }
    .plugins-title-wrapper h1 {
        font-size: 1.8rem;
    }
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    .plugins-toolbar {
        flex-direction: column;
    }
    .plugin-select {
        min-width: 0;
        padding: 14px 12px;
    }
}
