.card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
}
.card.active {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 24px rgba(56, 189, 248, 0.18);
	background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(30, 41, 59, 0.95));
	transform: translateY(-2px);
}
.card.active .badge {
	background: rgba(56, 189, 248, 0.18);
	color: #e0f2fe;
	border: 1px solid rgba(56, 189, 248, 0.35);
}
.cluster-section {
	margin-top: 34px;
	margin-bottom: 28px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.55));
}

.categories {
	margin-top: 28px;
	margin-bottom: 28px;
}

.posts-section {
	margin-top: 28px;
}

.cluster-section.is-hidden {
	display: none;
}

.intro-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.intro-actions-left,
.intro-actions-right {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.intro-actions-left {
	justify-content: flex-start;
}

.intro-actions-right {
	justify-content: flex-end;
	margin-left: auto;
}

.intro-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid var(--border);
	font-size: 0.95rem;
	min-width: 140px;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
	cursor: pointer;
	background: var(--card-bg);
	color: var(--text-main);
	font: inherit;
}

.intro-action-btn:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
}

.intro-action-btn--primary {
	color: var(--accent);
	border-color: var(--accent);
	background: rgba(56, 189, 248, 0.12);
}

.intro-action-btn--secondary {
	background: rgba(255, 255, 255, 0.02);
}

.intro-action-btn--toggle {
	background: rgba(2, 8, 23, 0.55);
	color: var(--text-main);
	border-color: var(--accent);
}

.cluster-header h3 {
	margin: 0;
	color: var(--accent);
	font-size: 1.25rem;
}

.cluster-header p {
	margin: 8px 0 14px;
	color: var(--text-muted);
}

.cluster-controls {
	display: grid;
	grid-template-columns: auto minmax(120px, 190px) auto minmax(150px, 220px) auto;
	gap: 8px 10px;
	align-items: center;
}

.cluster-controls label {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.cluster-controls select,
.cluster-controls input[type="range"] {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: rgba(2, 8, 23, 0.7);
	color: var(--text-main);
	padding: 6px 8px;
}

.cluster-controls input[type="range"] {
	padding: 0;
}

.cluster-score-value {
	color: var(--accent);
	font-weight: 700;
	font-size: 0.82rem;
}

.cluster-source-note {
	margin: 10px 0 12px;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.cluster-graph {
	border: 1px solid var(--border);
	border-radius: 12px;
	min-height: 250px;
	background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.08), transparent 45%), rgba(2, 8, 23, 0.65);
	padding: 12px;
}

.cluster-loading {
	color: var(--text-muted);
	font-size: 0.92rem;
}

.cluster-svg {
	width: 100%;
	height: auto;
	display: block;
}

.cluster-node-label {
	fill: var(--text-main);
	font-size: 12px;
	font-weight: 700;
}

.cluster-node-count {
	fill: var(--text-muted);
	font-size: 11px;
}

.cluster-insights {
	margin-top: 12px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.cluster-insight-item {
	border: 1px solid var(--border);
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.44);
	padding: 10px 12px;
}

.cluster-insight-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 6px;
}

.cluster-insight-head strong {
	color: var(--text-main);
	font-size: 0.9rem;
}

.cluster-insight-head span {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
}

.cluster-insight-link {
	display: block;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.84rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cluster-insight-link:hover {
	color: var(--accent);
}

@media (max-width: 860px) {
	.intro-actions {
		justify-content: center;
	}

	.intro-actions-left,
	.intro-actions-right {
		justify-content: center;
		margin-left: 0;
	}

	.cluster-controls {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.cluster-insights {
		grid-template-columns: 1fr;
	}
}
