.nz-community-section,
.nz-community-profile-panel {
    position: relative;
}

.nz-community-head,
.nz-community-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.nz-community-title {
    margin-bottom: 4px;
}

.nz-community-subtitle,
.nz-community-profile-seen {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.nz-community-live-pill,
.nz-community-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.08);
    color: #bbf7d0;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.nz-community-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    animation: nz-community-pulse 1.8s ease-out infinite;
}

.nz-community-feed-list {
    display: grid;
    gap: 10px;
}

.nz-community-event {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border-radius: 12px;
    padding: 11px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nz-community-event:hover {
    transform: translateY(-1px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 22px rgba(168, 85, 247, 0.12);
}

.nz-community-event-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.22);
}

.nz-community-color-emerald { background: linear-gradient(135deg, #10b981, #22c55e); }
.nz-community-color-violet,
.nz-community-color-purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.nz-community-color-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.nz-community-color-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.nz-community-color-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.nz-community-color-fuchsia { background: linear-gradient(135deg, #d946ef, #ec4899); }

.nz-community-event-body {
    min-width: 0;
}

.nz-community-event-title {
    color: var(--text-main, #fff);
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nz-community-event-message,
.nz-community-event-time {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.35;
}

.nz-community-event-link {
    color: rgba(255, 255, 255, 0.55);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nz-community-event-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nz-community-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
}

@keyframes nz-community-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
    .nz-community-head,
    .nz-community-profile-head {
        flex-direction: column;
        align-items: stretch;
    }

    .nz-community-live-pill,
    .nz-community-current {
        width: fit-content;
        max-width: 100%;
    }

    .nz-community-event {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .nz-community-event-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .nz-community-event-link {
        display: none;
    }
}
