* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #ebf4ff 0%, #eef8f9 100%);
    color: #0f172a;
}

.app {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 40px 0;
}

.top-bar {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
}

.main-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-icon {
    color: #ef4444;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #d7dde8;
    cursor: pointer;
}

.list-header {
    margin: 48px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header h1 {
    font-size: 32px;
}

.filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    border: 1px solid #d7dde8;
    border-radius: 999px;
    padding: 10px 18px;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.filter-btn.active {
    background: #f25c54;
    color: #ffffff;
    border-color: #f25c54;
}

.extensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.extension-card {
    background: #ffffff;
    border: 1px solid #dce3ee;
    border-radius: 18px;
    padding: 18px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.extension-logo {
    width: 60px;
    height: 60px;
}

.extension-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.extension-card p {
    color: #475569;
    line-height: 1.4;
    font-size: 15px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.toggle-btn {
    width: 46px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #94a3b8;
    padding: 3px;
    cursor: pointer;
}

.toggle-btn span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
}

.toggle-btn.on {
    background: #f25c54;
}

.toggle-btn.on span {
    margin-left: auto;
}

@media (max-width: 900px) {
    .extensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app {
        padding: 24px 0;
    }

    .list-header {
        flex-direction: column;
        gap: 20px;
    }

    .extensions-grid {
        grid-template-columns: 1fr;
    }
}

body.dark {
    background: #091540;
    color: #ffffff;
}

body.dark .top-bar {
    background: #1f2940;
}

body.dark .theme-btn {
    background: #2b3653;
}

body.dark .extension-card {
    background: #1f2940;
    border-color: #394867;
}

body.dark .extension-card h2 {
    color: #ffffff;
}

body.dark .extension-card p {
    color: #cbd5e1;
}

body.dark .remove-btn {
    background: transparent;
    color: #ffffff;
    border-color: #4b5b7c;
}

body.dark .filter-btn {
    background: #1f2940;
    color: white;
    border-color: #394867;
}

body.dark .filter-btn.active {
    background: #f25c54;
    border-color: #f25c54;
}

#themeIcon {
    width: 22px;
    height: 22px;
    display: block;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .main-logo {
    filter: brightness(0) invert(1);
}

.main-logo {
    height: 40px;
    width: auto;
    display: block;
}