.community-page {
    --community-ink: var(--text-main, #0d3e9a);
    --community-body: var(--text-body, #334155);
    --community-muted: var(--text-light, #64748b);
    --community-border: rgba(13, 62, 154, .1);
    --community-border-strong: rgba(13, 62, 154, .18);
    --community-soft: #f8fafc;
    --community-panel: #fff;
    --community-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    --community-shadow-hover: 0 20px 46px rgba(15, 23, 42, .1);
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 58%, #fff 100%);
}

.community-page .hero-compact {
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(226, 232, 240, .72);
    background: #fff;
}

.community-page .badge-pill {
    letter-spacing: 0;
}

.community-page .hero-title {
    max-width: min(100%, 900px);
    margin-right: auto;
    margin-left: auto;
    padding: 0 12px;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.community-page .hero-subtitle {
    max-width: min(100%, 760px);
    color: var(--community-muted);
    line-height: 1.68;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.community-page .scroll-reveal-delay-4 {
    transition-delay: .4s;
}

.community-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 760px);
    margin: 26px auto 0;
}

.community-stat-pill {
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid var(--community-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
    text-align: center;
}

.community-stat-pill strong,
.community-stat-pill span {
    display: block;
    letter-spacing: 0;
}

.community-stat-pill strong {
    color: var(--community-ink);
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: 1.22rem;
    line-height: 1.1;
}

.community-stat-pill span {
    margin-top: 5px;
    color: var(--community-muted);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}

.community-toolbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 740px);
    max-width: 100%;
    margin: 34px auto 0;
    padding: 8px;
    border: 1px solid var(--community-border);
    border-radius: 24px;
    background: var(--community-panel);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.community-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(100%, 760px);
    margin: 16px auto 0;
    padding: 8px 12px;
    border: 1px solid rgba(13, 62, 154, .1);
    border-radius: 999px;
    background: #fff;
    color: var(--community-muted);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.community-active-filter span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.community-active-filter a {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 900;
}

.community-toolbar.scroll-reveal.is-visible {
    transform: translateY(0);
}

.community-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin: -10px -4px;
    padding: 10px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.community-toolbar .toolbar-left::-webkit-scrollbar {
    display: none;
}

.community-toolbar .filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--community-muted);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.community-toolbar .filter-tab:hover {
    background: #f8fafc;
    color: var(--community-ink);
}

.community-toolbar .filter-tab.active {
    border: 0;
    padding: 0 18px;
    background: var(--vibe-gradient);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}

.community-toolbar-controls {
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid #e8eef7;
}

.community-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    width: auto;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.community-search-form:focus-within {
    background: transparent;
    box-shadow: none;
}

.community-search-form input[type="search"] {
    flex: 1 1 230px;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: 0;
    background: #f8fafc;
    color: var(--community-ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.community-search-form input[type="search"]:focus {
    border-color: rgba(13, 62, 154, .34);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 62, 154, .08);
}

.community-search-form input[type="search"]::-webkit-search-decoration,
.community-search-form input[type="search"]::-webkit-search-cancel-button,
.community-search-form input[type="search"]::-webkit-search-results-button,
.community-search-form input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.community-search-form input[type="search"]::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.community-sort-select {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin-left: 0;
    padding: 0 30px 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: 0;
    background-color: #f8fafc;
    background-image: 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='%23647792' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    color: var(--community-muted);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.community-search-form select.community-sort-select:not([multiple]):not([size]) {
    width: 100%;
    max-width: none;
}

.community-sort-select:focus {
    border-color: rgba(13, 62, 154, .34);
    background-color: #fff;
    color: var(--community-ink);
    box-shadow: 0 0 0 4px rgba(13, 62, 154, .08);
}

.community-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-left: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8fafc;
    color: #7c8da8;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.community-search-submit:hover {
    background: #eef4ff;
    border-color: rgba(13, 62, 154, .1);
    color: var(--primary);
    transform: translateY(-1px);
}

.community-search-submit svg {
    width: 18px;
    height: 18px;
}

.community-filter-menu {
    position: relative;
    flex: 0 0 auto;
}

.community-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 122px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(13, 62, 154, .1);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--community-ink);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.community-filter-trigger::-webkit-details-marker {
    display: none;
}

.community-filter-trigger:hover,
.community-filter-menu[open] .community-filter-trigger {
    border-color: rgba(13, 62, 154, .18);
    background: #eef4ff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(13, 62, 154, .08);
}

.community-filter-trigger em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--vibe-gradient);
    color: #fff;
    font-style: normal;
    font-size: .72rem;
    font-weight: 900;
}

.community-filter-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 40;
    display: grid;
    gap: 16px;
    width: min(360px, calc(100vw - 48px));
    padding: 16px;
    border: 1px solid rgba(13, 62, 154, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    text-align: left;
}

.community-filter-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(13, 62, 154, .12);
    border-left: 1px solid rgba(13, 62, 154, .12);
    background: #fff;
    transform: rotate(45deg);
}

.community-filter-group {
    display: grid;
    gap: 10px;
}

.community-filter-label {
    color: var(--community-ink);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.community-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.community-filter-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.community-filter-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.community-filter-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--community-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--community-muted);
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.community-filter-choice:hover span {
    border-color: rgba(13, 62, 154, .18);
    background: #eef4ff;
    color: var(--primary);
}

.community-filter-choice input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(13, 62, 154, .1);
}

.community-filter-choice.is-active span,
.community-filter-choice input:checked + span {
    border-color: transparent;
    background: var(--vibe-gradient);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .15);
}

.community-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.community-filter-actions a {
    color: var(--primary);
    font-size: .84rem;
    font-weight: 900;
}

.community-filter-actions .btn {
    min-width: 116px;
    min-height: 40px;
    padding: 8px 18px;
}

.community-section {
    position: relative;
    padding: 46px 0 104px;
    background: transparent;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
    gap: 22px;
}

.community-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 326px;
    padding: 22px;
    border: 1px solid var(--community-border);
    border-radius: 18px;
    background: var(--community-panel);
    box-shadow: var(--community-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    border-color: var(--community-border-strong);
    box-shadow: var(--community-shadow-hover);
}

@media (hover: hover) and (pointer: fine) {
    .community-card.scroll-reveal.is-visible:hover {
        transform: translateY(-4px) !important;
        transition-delay: 0s;
    }
}

.community-card-top,
.community-actions,
.community-stats,
.community-owner {
    display: flex;
    align-items: center;
}

.community-card-top {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.community-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.community-plan {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 100%;
    padding: 0 11px;
    border: 1px solid color-mix(in srgb, var(--community-plan-color, #0d3e9a) 22%, #fff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--community-plan-color, #0d3e9a) 10%, #fff);
    color: var(--community-plan-color, #0d3e9a);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.community-new-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: 999px;
    background: var(--success-bg, #f0fdf4);
    color: var(--success, #10b981);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.community-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 56px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(13, 62, 154, .12);
    border-radius: 999px;
    background: #fff;
    color: #73829b;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: 0;
    cursor: pointer !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, .05);
    transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.community-like-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .14s ease, fill .14s ease;
}

.community-like-btn:hover {
    border-color: rgba(237, 9, 164, .32);
    background: #fff7fb;
    color: var(--accent);
    box-shadow: 0 10px 22px rgba(237, 9, 164, .1);
    transform: translateY(-1px);
}

.community-like-btn:active {
    transform: translateY(0) scale(.98);
}

.community-like-btn.is-liked {
    border-color: rgba(237, 9, 164, .32);
    background: #fff7fb;
    color: var(--accent);
}

.community-like-btn.is-liked svg {
    fill: currentColor;
}

.community-like-btn:disabled {
    cursor: pointer !important;
    opacity: 1;
}

.community-domain-title {
    margin: 0 0 12px;
    color: var(--community-ink);
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: clamp(1.1rem, 1.36vw, 1.28rem);
    line-height: 1.34;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.community-domain-title a {
    display: inline;
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(90deg, var(--primary), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: color .18s ease, background-size .18s ease;
}

.community-domain-title a:hover {
    color: var(--primary);
    background-size: 100% 2px;
}

.community-slug {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 10px;
    background: #f8fafc;
    color: #65758f;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.community-slug span {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.community-slug code {
    color: #475569;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .84rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.community-owner {
    gap: 10px;
    color: var(--community-body);
    font-size: .9rem;
    font-weight: 700;
    min-width: 0;
}

.community-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--vibe-gradient);
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .1);
    overflow: hidden;
}

.community-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.community-owner div {
    min-width: 0;
    text-align: left;
}

.community-owner-label,
.community-owner strong {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-owner-label {
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.community-owner strong {
    margin-top: 3px;
    color: var(--community-body);
    font-size: .9rem;
    line-height: 1.2;
}

.community-stats {
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef3f8;
    color: var(--community-muted);
    font-size: .86rem;
}

.community-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 999px;
    background: #f8fafc;
}

.community-stats strong {
    color: var(--primary);
    font-weight: 900;
}

.community-actions {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

.community-actions .btn {
    min-height: 42px;
    border-radius: 999px;
    white-space: nowrap;
}

.community-actions .btn-primary {
    box-shadow: 0 10px 22px rgba(171, 28, 199, .18);
}

.community-actions .btn-outline {
    border-color: #dbeafe;
    background: #fff;
    color: #1d4ed8;
}

.community-actions .btn-outline:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.community-copy-btn.is-copied {
    border-color: rgba(16, 185, 129, .3);
    background: var(--success-bg, #f0fdf4);
    color: var(--success, #10b981);
}

.community-pagination {
    margin-top: 44px;
}

.community-empty {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 38px 28px;
    border: 1px dashed rgba(13, 62, 154, .2);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--community-shadow);
    text-align: center;
}

.community-empty h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.community-empty p {
    margin: 0;
    color: var(--community-muted);
}

html[data-theme="dark"] .community-page {
    --community-ink: #e6edf7;
    --community-body: #cbd5e1;
    --community-muted: #96a5b8;
    --community-border: rgba(148, 163, 184, .16);
    --community-border-strong: rgba(139, 181, 255, .28);
    --community-soft: #101827;
    --community-panel: #111827;
    --community-shadow: 0 16px 38px rgba(0, 0, 0, .28);
    --community-shadow-hover: 0 22px 52px rgba(0, 0, 0, .36);
    background: linear-gradient(180deg, #0b1020 0%, #0f172a 58%, #0b1020 100%);
}

html[data-theme="dark"] .community-page .hero-compact {
    border-bottom-color: rgba(148, 163, 184, .14);
    background: #0b1020;
}

html[data-theme="dark"] .community-toolbar,
html[data-theme="dark"] .community-card,
html[data-theme="dark"] .community-stat-pill,
html[data-theme="dark"] .community-active-filter,
html[data-theme="dark"] .community-empty {
    background: #111827;
}

html[data-theme="dark"] .community-toolbar-controls {
    border-left-color: rgba(148, 163, 184, .14);
}

html[data-theme="dark"] .community-toolbar .filter-tab:hover,
html[data-theme="dark"] .community-search-form input[type="search"],
html[data-theme="dark"] .community-sort-select,
html[data-theme="dark"] .community-search-submit,
html[data-theme="dark"] .community-filter-trigger,
html[data-theme="dark"] .community-filter-choice span,
html[data-theme="dark"] .community-slug,
html[data-theme="dark"] .community-stats span {
    background: #182235;
}

html[data-theme="dark"] .community-filter-panel {
    border-color: rgba(148, 163, 184, .16);
    background: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .community-filter-panel::before {
    border-color: rgba(148, 163, 184, .16);
    background: #111827;
}

html[data-theme="dark"] .community-filter-trigger,
html[data-theme="dark"] .community-filter-choice span {
    border-color: rgba(148, 163, 184, .14);
    color: #cbd5e1;
}

html[data-theme="dark"] .community-filter-trigger:hover,
html[data-theme="dark"] .community-filter-menu[open] .community-filter-trigger,
html[data-theme="dark"] .community-filter-choice:hover span {
    border-color: rgba(139, 181, 255, .28);
    background: rgba(96, 165, 250, .12);
    color: #93c5fd;
}

html[data-theme="dark"] .community-stat-pill,
html[data-theme="dark"] .community-active-filter {
    border-color: rgba(148, 163, 184, .16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .community-search-form:focus-within {
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .community-search-form input[type="search"]:focus,
html[data-theme="dark"] .community-sort-select:focus {
    border-color: rgba(139, 181, 255, .38);
    background-color: #111827;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .1);
}

html[data-theme="dark"] .community-search-form input[type="search"],
html[data-theme="dark"] .community-sort-select {
    color: #e6edf7;
}

html[data-theme="dark"] .community-search-form input[type="search"]::placeholder {
    color: #76869b;
}

html[data-theme="dark"] .community-sort-select {
    border-color: transparent;
    background-image: 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='%23a6b3c6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .community-like-btn,
html[data-theme="dark"] .community-actions .btn-outline {
    border-color: rgba(148, 163, 184, .16);
    background: #111827;
    color: #cbd5e1;
}

html[data-theme="dark"] .community-like-btn:hover,
html[data-theme="dark"] .community-like-btn.is-liked {
    border-color: rgba(244, 114, 182, .34);
    background: rgba(244, 114, 182, .12);
    color: #f472b6;
}

html[data-theme="dark"] .community-plan {
    border-color: color-mix(in srgb, var(--community-plan-color, #60a5fa) 32%, #111827);
    background: color-mix(in srgb, var(--community-plan-color, #60a5fa) 20%, #111827);
}

html[data-theme="dark"] .community-new-badge {
    border-color: rgba(52, 211, 153, .26);
    background: rgba(16, 185, 129, .12);
    color: #6ee7b7;
}

html[data-theme="dark"] .community-slug span,
html[data-theme="dark"] .community-owner-label {
    color: #7f8fa5;
}

html[data-theme="dark"] .community-slug code {
    color: #cbd5e1;
}

html[data-theme="dark"] .community-stats,
html[data-theme="dark"] .community-card .community-stats {
    border-top-color: rgba(148, 163, 184, .14);
}

html[data-theme="dark"] .community-actions .btn-outline:hover {
    border-color: rgba(96, 165, 250, .32);
    background: rgba(96, 165, 250, .12);
    color: #93c5fd;
}

@media (max-width: 1080px) {
    .community-hero-stats {
        width: min(100%, 680px);
    }

    .community-toolbar {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 760px);
        max-width: 100%;
        padding: 12px;
        border-radius: 20px;
    }

    .community-toolbar .toolbar-left {
        max-width: 100%;
        margin: -10px -4px 0;
    }

    .community-toolbar-controls {
        width: 100%;
        padding: 12px 0 0;
        border-top: 1px solid #e8eef7;
        border-left: 0;
    }

    html[data-theme="dark"] .community-toolbar-controls {
        border-top-color: rgba(148, 163, 184, .14);
    }
}

@media (max-width: 768px) {
    .community-page .hero-compact {
        padding-bottom: 34px;
    }

    .community-page .hero-title {
        font-size: 2rem;
        line-height: 1.18;
    }

    .community-page .hero-text-gradient {
        display: block;
    }

    .community-page .hero-subtitle {
        max-width: 580px;
        padding: 0 16px;
        font-size: .95rem;
        line-height: 1.6;
        text-wrap: balance;
    }

    .community-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 520px);
        margin-top: 22px;
    }

    .community-toolbar {
        margin-top: 26px;
    }

    .community-active-filter {
        align-items: flex-start;
        border-radius: 16px;
        text-align: left;
    }

    .community-section {
        padding: 36px 0 104px;
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .community-card {
        min-height: 0;
        padding: 20px;
        border-radius: 16px;
    }

    .community-owner-label,
    .community-owner strong {
        max-width: 58vw;
    }
}

@media (max-width: 560px) {
    .community-page .hero-title {
        max-width: calc(100vw - 40px);
        padding-right: 0;
        padding-left: 0;
        overflow-wrap: anywhere;
    }

    .community-page .hero-text-gradient {
        display: inline;
    }

    .community-stat-pill {
        padding: 13px 10px;
    }

    .community-stat-pill strong {
        font-size: 1.1rem;
    }

    .community-stat-pill span {
        font-size: .74rem;
    }

    .community-active-filter {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .community-toolbar .toolbar-left {
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .community-toolbar .filter-tab {
        flex: 1 1 calc(50% - 8px);
        min-height: 40px;
        padding: 0 14px;
        font-size: .86rem;
    }

    .community-search-form {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        border-radius: 16px;
    }

    .community-search-form input[type="search"] {
        order: 1;
        flex: 0 0 calc(100% - 50px);
        width: calc(100% - 50px);
        height: 42px;
        padding-left: 14px;
    }

    .community-search-submit {
        order: 2;
        width: 42px;
        height: 42px;
        margin-left: 0;
    }

    .community-sort-select {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        height: 42px;
        margin-left: 0;
        padding-left: 14px;
        border: 1px solid transparent;
        border-radius: 999px;
        background-position: right 12px center;
    }

    .community-search-form select.community-sort-select:not([multiple]):not([size]) {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .community-filter-trigger {
        min-width: 112px;
        padding: 0 14px;
    }

    .community-filter-panel {
        position: fixed;
        top: auto;
        right: 20px;
        bottom: calc(var(--bottom-nav-height, 60px) + env(safe-area-inset-bottom, 0px) + 22px);
        left: 20px;
        z-index: 10002;
        width: auto;
        max-height: min(420px, 64vh);
        overflow-y: auto;
        padding: 14px;
        border-radius: 16px;
    }

    .community-filter-panel::before {
        display: none;
    }

    .community-card-top {
        align-items: flex-start;
    }

    .community-slug {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .community-actions .btn {
        flex: 1 1 138px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .community-page .hero-title {
        font-size: 1.82rem;
    }

    .community-toolbar {
        gap: 6px;
        padding: 7px;
    }

    .community-filter-trigger {
        min-width: 46px;
        width: 46px;
        padding: 0;
    }

    .community-filter-trigger span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .community-filter-trigger em {
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .community-hero-stats {
        gap: 8px;
    }

    .community-like-btn {
        min-width: 52px;
    }

    .community-stats span {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Community discovery refresh */
.community-page {
    --community-danger: var(--danger, #ef4444);
    --community-danger-soft: var(--danger-bg, #fef2f2);
    --community-danger-border: var(--danger-border, #fecaca);
    overflow-x: hidden;
}

.community-toolbar {
    width: min(100%, 1040px);
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
}

.community-toolbar > * {
    min-width: 0;
}

.community-search-form {
    flex: 1 1 330px;
    width: 100%;
    max-width: 100%;
}

.community-search-form input[type="search"] {
    flex-basis: 0;
    width: 0;
}

.community-sort-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 999px;
    background: #f8fafc;
}

.community-sort-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--community-muted);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.community-sort-tabs a:hover {
    border-color: rgba(13, 62, 154, .12);
    background: #fff;
    color: var(--primary);
}

.community-sort-tabs a.is-active {
    border-color: rgba(13, 62, 154, .14);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(13, 62, 154, .08);
}

.community-sort-tabs svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.community-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}

.community-results-head span {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.community-results-head h2 {
    margin: 0;
    color: var(--community-ink);
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.community-results-head p {
    max-width: 520px;
    margin: 0;
    color: var(--community-muted);
    font-size: .95rem;
    line-height: 1.65;
}

.community-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 318px), 1fr));
    align-items: stretch;
}

.community-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 438px;
    padding: 0;
    border-radius: 20px;
}

.community-card-cover {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 188px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--community-plan-color, #0d3e9a) 16%, #fff), #ffffff 62%),
        linear-gradient(135deg, rgba(13, 62, 154, .08), rgba(237, 9, 164, .08));
}

.community-card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .45s ease, opacity .2s ease;
    z-index: 1;
}

.community-card:hover .community-card-cover img {
    transform: scale(1.035);
}

.community-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, .08) 0%, rgba(15, 23, 42, .02) 42%, rgba(15, 23, 42, .34) 100%);
    pointer-events: none;
}

.community-cover-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    color: var(--community-ink);
}

.community-card-cover.has-cover-image .community-cover-fallback {
    opacity: 0;
}

.community-card-cover.has-cover-error .community-cover-fallback,
.community-card-cover.has-cover-fallback .community-cover-fallback {
    opacity: 1;
    z-index: 3;
}

.community-cover-fallback span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--vibe-gradient);
    color: #fff;
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: 1.25rem;
    box-shadow: 0 16px 30px rgba(13, 62, 154, .18);
}

.community-cover-fallback strong {
    display: block;
    max-width: 100%;
    color: var(--community-ink);
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: 1.08rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-cover-fallback em {
    color: var(--community-muted);
    font-style: normal;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.community-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.community-card-top {
    align-items: flex-start;
    margin-bottom: 15px;
}

.community-card-badges {
    justify-content: flex-end;
    margin-bottom: 0;
}

.community-plan {
    border-color: color-mix(in srgb, var(--community-plan-color, #0d3e9a) 22%, #fff);
    background: color-mix(in srgb, var(--community-plan-color, #0d3e9a) 10%, #fff);
    color: var(--community-plan-color, #0d3e9a);
}

.community-like-floating {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    border-color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.community-like-btn:hover {
    border-color: rgba(239, 68, 68, .32);
    background: var(--community-danger-soft);
    color: var(--community-danger);
    box-shadow: 0 10px 22px rgba(239, 68, 68, .12);
}

.community-like-btn.is-liked {
    border-color: rgba(239, 68, 68, .34);
    background: var(--community-danger-soft);
    color: var(--community-danger);
}

.community-like-btn.is-liked svg {
    fill: currentColor;
}

.community-like-btn[data-pending="1"] {
    pointer-events: none;
    opacity: .72;
}

.community-stats {
    margin-top: 12px;
}

html[data-theme="dark"] .community-sort-tabs {
    border-color: rgba(148, 163, 184, .14);
    background: #182235;
}

html[data-theme="dark"] .community-sort-tabs a:hover,
html[data-theme="dark"] .community-sort-tabs a.is-active {
    border-color: rgba(139, 181, 255, .22);
    background: #111827;
    color: #8bb5ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .community-card-cover {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--community-plan-color, #60a5fa) 22%, #111827), #111827 62%),
        linear-gradient(135deg, rgba(96, 165, 250, .13), rgba(244, 114, 182, .11));
}

html[data-theme="dark"] .community-card-cover::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, .12) 0%, rgba(2, 6, 23, .08) 42%, rgba(2, 6, 23, .58) 100%);
}

html[data-theme="dark"] .community-like-floating {
    border-color: rgba(148, 163, 184, .2);
    background: rgba(17, 24, 39, .9);
}

html[data-theme="dark"] .community-like-btn:hover,
html[data-theme="dark"] .community-like-btn.is-liked {
    border-color: rgba(248, 113, 113, .36);
    background: rgba(239, 68, 68, .14);
    color: #f87171;
}

html[data-theme="dark"] .community-plan {
    border-color: color-mix(in srgb, var(--community-plan-color, #60a5fa) 32%, #111827);
    background: color-mix(in srgb, var(--community-plan-color, #60a5fa) 20%, #111827);
}

@media (max-width: 980px) {
    .community-search-form {
        flex-basis: 100%;
    }

    .community-sort-tabs {
        flex: 1 1 auto;
    }

    .community-filter-menu {
        margin-left: auto;
    }

    .community-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .community-toolbar {
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .community-search-form {
        flex-basis: 100%;
        min-width: 0;
    }

    .community-search-form input[type="search"] {
        flex: 1 1 0;
        width: 0;
    }

    .community-search-submit {
        flex: 0 0 42px;
        width: 42px;
    }

    .community-sort-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        order: 2;
        width: 100%;
        padding: 4px;
    }

    .community-sort-tabs a {
        gap: 5px;
        min-width: 0;
        padding: 0 8px;
        font-size: .72rem;
    }

    .community-sort-tabs svg {
        width: 14px;
        height: 14px;
    }

    .community-filter-menu {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .community-filter-trigger {
        width: 100%;
        min-width: 0;
    }

    .community-results-head {
        margin-bottom: 18px;
    }

    .community-results-head p {
        font-size: .9rem;
    }

    .community-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-card {
        border-radius: 18px;
    }

    .community-card-cover {
        min-height: 172px;
    }

    .community-card-body {
        padding: 18px;
    }

    .community-card-badges {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-top: 12px;
    }

    .community-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 420px) {
    .community-sort-tabs {
        width: 100%;
    }

    .community-sort-tabs a span {
        min-width: 0;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-filter-trigger {
        width: 100%;
        min-width: 0;
        padding: 0 14px;
    }

    .community-filter-trigger span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .community-filter-trigger em {
        position: static;
    }
}

@media (max-width: 768px) {
    .community-page .hero-title {
        max-width: min(100%, calc(100vw - 40px));
        font-size: clamp(1.78rem, 7.6vw, 2rem);
        line-height: 1.18;
    }

    .community-page .hero-text-gradient {
        display: block;
    }

    .community-sort-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        order: 2;
        width: 100%;
        overflow: hidden;
    }

    .community-sort-tabs a {
        min-width: 0;
    }

    .community-sort-tabs a span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-filter-menu {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .community-filter-trigger {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .community-page .hero-title {
        font-size: 1.72rem;
    }
}

/* Community card detail refresh */
.community-card {
    border-radius: 22px;
}

.community-card-body {
    gap: 0;
    padding: 22px;
}

.community-card-top {
    margin-bottom: 12px;
}

.community-owner {
    align-items: flex-start;
    width: 100%;
}

.community-owner div {
    flex: 1 1 auto;
}

.community-owner-label,
.community-owner strong {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.community-owner strong {
    color: var(--community-ink);
    font-size: .98rem;
    line-height: 1.28;
}

.community-domain-title {
    margin: 2px 0 11px;
    font-size: clamp(1.16rem, 1.45vw, 1.34rem);
    line-height: 1.3;
}

.community-seo-title {
    display: grid;
    gap: 5px;
    margin: 0 0 10px;
    padding: 11px 12px;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.community-seo-title span {
    color: #7c8da8;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.community-seo-title strong {
    color: var(--community-ink);
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.community-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--community-muted);
    font-size: .88rem;
    line-height: 1.58;
}

.community-summary.is-seo-summary {
    color: #53657f;
}

.community-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.community-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 999px;
    background: #fff;
    color: var(--community-body);
    font-size: .74rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.community-tag.community-plan {
    border-color: color-mix(in srgb, var(--community-plan-color, #0d3e9a) 22%, #fff);
    background: color-mix(in srgb, var(--community-plan-color, #0d3e9a) 10%, #fff);
    color: var(--community-plan-color, #0d3e9a);
}

.community-tag.community-new-badge {
    border-color: rgba(16, 185, 129, .2);
    background: #ecfdf5;
    color: #059669;
}

.community-tag-seo {
    border-color: rgba(13, 62, 154, .12);
    background: #eff6ff;
    color: var(--primary);
}

.community-tag-muted {
    border-radius: 12px;
    background: #f8fafc;
    color: var(--community-muted);
    font-weight: 800;
}

.community-stats {
    margin-top: 16px;
}

.community-stats span {
    flex: 1 1 126px;
    justify-content: center;
}

html[data-theme="dark"] .community-seo-title {
    border-color: rgba(148, 163, 184, .13);
    background: linear-gradient(180deg, #172033, #121a2b);
}

html[data-theme="dark"] .community-seo-title span,
html[data-theme="dark"] .community-summary {
    color: #94a3b8;
}

html[data-theme="dark"] .community-seo-title strong,
html[data-theme="dark"] .community-owner strong {
    color: #e5edff;
}

html[data-theme="dark"] .community-tag {
    border-color: rgba(148, 163, 184, .14);
    background: #182235;
    color: #dbeafe;
}

html[data-theme="dark"] .community-tag.community-plan {
    border-color: color-mix(in srgb, var(--community-plan-color, #60a5fa) 32%, #111827);
    background: color-mix(in srgb, var(--community-plan-color, #60a5fa) 20%, #111827);
    color: #dbeafe;
}

html[data-theme="dark"] .community-tag.community-new-badge {
    border-color: rgba(52, 211, 153, .24);
    background: rgba(16, 185, 129, .13);
    color: #6ee7b7;
}

html[data-theme="dark"] .community-tag-seo {
    border-color: rgba(139, 181, 255, .22);
    background: rgba(37, 99, 235, .14);
    color: #8bb5ff;
}

html[data-theme="dark"] .community-tag-muted {
    color: #a9b7ce;
}

@media (max-width: 640px) {
    .community-card-body {
        padding: 20px;
    }

    .community-seo-title {
        padding: 10px 11px;
    }

    .community-summary {
        -webkit-line-clamp: 4;
        font-size: .87rem;
    }

    .community-tag {
        border-radius: 14px;
    }
}

/* Community save filter and social action refresh */
.community-saved-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(239, 68, 68, .12);
    border-radius: 999px;
    background: #fff;
    color: var(--community-muted);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.community-saved-toggle:hover,
.community-saved-toggle.is-active {
    border-color: rgba(239, 68, 68, .24);
    background: var(--community-danger-soft);
    color: var(--community-danger);
    box-shadow: 0 10px 22px rgba(239, 68, 68, .1);
}

.community-saved-toggle:hover {
    transform: translateY(-1px);
}

.community-saved-toggle svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.community-saved-toggle.is-active svg {
    fill: currentColor;
}

.community-filter-switch {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
}

.community-filter-switch input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.community-filter-switch span {
    text-align: left;
}

.community-tag-ai {
    border-color: rgba(237, 9, 164, .16);
    background: rgba(237, 9, 164, .07);
    color: #c20b88;
}

.community-tag-auto {
    border-color: rgba(13, 62, 154, .11);
    background: #f8fbff;
    color: var(--primary);
}

.community-tag-profile {
    border-color: rgba(124, 58, 237, .16);
    background: rgba(124, 58, 237, .07);
    color: #6d28d9;
}

.community-engagement-minimal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
    padding-top: 2px;
    border-top: 0;
    color: var(--community-muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;
}

.engagement-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 16px;
    line-height: 1;
}

.engagement-time-label {
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--community-muted);
}

.engagement-icon-only {
    width: 18px;
    justify-content: center;
}

.engagement-time-compact {
    color: var(--community-muted);
    font-size: .78rem;
    font-weight: 650;
}

.engagement-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--community-muted);
}

.engagement-item strong {
    display: inline-flex;
    align-items: center;
    height: 14px;
    color: var(--community-ink);
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-weight: 700;
    line-height: 14px;
    transform: translateY(-1px);
}

.engagement-item.is-like svg {
    color: #ef4444;
}

.engagement-item.is-save-btn {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--community-muted);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    transition: all .2s ease;
    outline: none;
}

.engagement-item.is-save-btn:hover {
    color: #f59e0b;
}

.engagement-item.is-save-btn:hover svg {
    color: #f59e0b;
}

.engagement-item.is-save-btn.is-saved {
    color: #f59e0b;
}

.engagement-item.is-save-btn.is-saved svg {
    color: #f59e0b;
    fill: #fbbf24;
}

html[data-theme="dark"] .engagement-item.is-save-btn:hover,
html[data-theme="dark"] .engagement-item.is-save-btn.is-saved {
    color: #fbbf24;
}

html[data-theme="dark"] .engagement-item.is-save-btn:hover svg,
html[data-theme="dark"] .engagement-item.is-save-btn.is-saved svg {
    color: #fbbf24;
}

.engagement-item.is-like-btn {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--community-muted);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    transition: all .2s ease;
    outline: none;
}

.engagement-item.is-like-btn:hover {
    color: #ef4444;
}

.engagement-item.is-like-btn:hover svg {
    color: #ef4444;
}

.engagement-item.is-like-btn.is-liked {
    color: #ef4444;
}

.engagement-item.is-like-btn.is-liked svg {
    color: #ef4444;
    fill: currentColor;
}

html[data-theme="dark"] .engagement-item.is-like-btn:hover,
html[data-theme="dark"] .engagement-item.is-like-btn.is-liked {
    color: #f87171;
}

html[data-theme="dark"] .engagement-item.is-like-btn:hover svg,
html[data-theme="dark"] .engagement-item.is-like-btn.is-liked svg {
    color: #f87171;
}

.community-actions-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 0;
}

.community-visit-btn-new {
    flex: 1;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 50px !important;
    font-family: 'SVN-Gilroy Bold', sans-serif;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 4px 12px rgba(108, 46, 231, .16) !important;
}

.community-action-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid rgba(13, 62, 154, .08);
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: all .2s cubic-bezier(.25,.8,.25,1);
}

.community-action-btn-icon svg {
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

.community-action-btn-icon:hover {
    border-color: rgba(13, 62, 154, .18);
    background: #eef4ff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 62, 154, .06);
}

.community-action-btn-icon.is-saved {
    border-color: rgba(237, 9, 164, .2);
    background: #fff7fb;
    color: var(--accent);
}

.community-action-btn-icon.is-saved svg {
    fill: currentColor;
}

.community-action-btn-icon.is-copied {
    border-color: rgba(16, 185, 129, .2);
    background: #f0fdf4;
    color: var(--success);
}

.community-action-btn-icon.is-copied .community-copy-icon {
    display: none;
}

.community-action-btn-icon.is-copied .community-check-icon {
    display: block !important;
}

html[data-theme="dark"] .community-saved-toggle,
html[data-theme="dark"] .community-action-btn-icon {
    border-color: rgba(148, 163, 184, .14);
    background: #182235;
    color: #a9b7ce;
}

html[data-theme="dark"] .community-saved-toggle:hover,
html[data-theme="dark"] .community-saved-toggle.is-active {
    border-color: rgba(248, 113, 113, .3);
    background: rgba(239, 68, 68, .14);
    color: #f87171;
}

html[data-theme="dark"] .community-tag-ai {
    border-color: rgba(244, 114, 182, .22);
    background: rgba(237, 9, 164, .15);
    color: #f9a8d4;
}

html[data-theme="dark"] .community-tag-auto {
    border-color: rgba(139, 181, 255, .18);
    background: rgba(37, 99, 235, .12);
    color: #8bb5ff;
}

html[data-theme="dark"] .community-tag-profile {
    border-color: rgba(167, 139, 250, .24);
    background: rgba(124, 58, 237, .16);
    color: #c4b5fd;
}

html[data-theme="dark"] .engagement-item strong {
    color: #e5edff;
}

html[data-theme="dark"] .community-action-btn-icon:hover,
html[data-theme="dark"] .community-action-btn-icon.is-copied {
    border-color: rgba(139, 181, 255, .24);
    background: #111827;
    color: #8bb5ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .community-action-btn-icon.is-saved {
    border-color: rgba(244, 114, 182, .22);
    background: rgba(237, 9, 164, .15);
    color: #f9a8d4;
}

@media (max-width: 980px) {
    .community-saved-toggle {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .community-saved-toggle {
        order: 3;
        width: 100%;
        min-width: 0;
    }

    .community-filter-menu {
        order: 4;
    }

    .community-actions-minimal {
        gap: 6px;
    }

    .community-visit-btn-new {
        padding: 0 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 420px) {
    .community-copy-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .community-copy-action {
        width: 42px;
        max-width: 42px;
        padding: 0;
    }
}

/* Separate TikTok-style actions: visit, share, save */
.community-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(13, 62, 154, .1);
    border-radius: 14px;
    background: #fff;
    color: var(--community-body);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.community-action-btn:hover,
.community-action-btn.is-copied {
    border-color: rgba(13, 62, 154, .18);
    background: #f8fafc;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(13, 62, 154, .08);
    transform: translateY(-1px);
}

.community-action-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.community-action-btn span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: nowrap;
}

.community-action-visit {
    flex: 1 1 0;
    justify-content: space-between;
    min-width: 0;
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 52%, #ed09a4 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(171, 28, 199, .18);
}

.community-action-visit:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #6d28d9 0%, #a21caf 52%, #d10f8f 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(171, 28, 199, .24);
}

.community-action-share,
.community-action-save {
    flex: 0 0 auto;
    padding-right: 10px;
    padding-left: 10px;
}

.community-action-save:hover,
.community-action-save.is-saved {
    border-color: rgba(245, 158, 11, .32);
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 10px 20px rgba(245, 158, 11, .12);
}

.community-action-save.is-saved svg {
    fill: currentColor;
}

.community-action-btn[data-pending="1"] {
    pointer-events: none;
    opacity: .72;
}

.community-action-share.is-copied .community-copy-icon {
    display: none;
}

.community-action-share.is-copied .community-check-icon {
    display: block;
}

.community-saved-toggle {
    border-color: rgba(245, 158, 11, .14);
}

.community-saved-toggle:hover,
.community-saved-toggle.is-active {
    border-color: rgba(245, 158, 11, .3);
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .1);
}

html[data-theme="dark"] .community-action-btn {
    border-color: rgba(148, 163, 184, .14);
    background: #182235;
    color: #a9b7ce;
}

html[data-theme="dark"] .community-action-visit {
    border-color: transparent;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 54%, #f43f9f 100%);
    color: #fff;
}

html[data-theme="dark"] .community-action-visit:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 54%, #e11d8a 100%);
    color: #fff;
}

html[data-theme="dark"] .community-action-btn:hover,
html[data-theme="dark"] .community-action-share.is-copied {
    border-color: rgba(139, 181, 255, .24);
    background: #111827;
    color: #8bb5ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .community-action-save:hover,
html[data-theme="dark"] .community-action-save.is-saved,
html[data-theme="dark"] .community-saved-toggle:hover,
html[data-theme="dark"] .community-saved-toggle.is-active {
    border-color: rgba(251, 191, 36, .32);
    background: rgba(245, 158, 11, .14);
    color: #fbbf24;
}

@media (max-width: 640px) {
    .community-actions-minimal {
        gap: 6px;
    }
}
