.ccp-comparison-page {
	background:
		radial-gradient(1400px 500px at 12% -10%, rgba(14, 165, 233, 0.14), transparent),
		radial-gradient(1400px 500px at 88% -10%, rgba(99, 102, 241, 0.16), transparent),
		linear-gradient(180deg, #050a14 0%, #0b1224 100%);
	min-height: 100vh;
}

.ccp-comparison-page .site-header,
.ccp-comparison-page .site-footer {
	background: rgba(2, 6, 23, 0.6);
	backdrop-filter: blur(4px);
}

.ccp-comparison-page .site-header a,
.ccp-comparison-page .site-footer,
.ccp-comparison-page .site-footer a,
.ccp-comparison-page .entry-content,
.ccp-comparison-page .entry-content p {
	color: #dbeafe;
}

.ccp-comparison-page .entry-content > h1:first-child,
.ccp-comparison-page .entry-content > h2:first-child {
	font-size: clamp(2rem, 3.6vw, 3rem);
	letter-spacing: -0.02em;
	margin-bottom: 1.2rem;
}

.ccp-table-container {
	margin: 1.5rem 0;
	background:
		radial-gradient(1200px 220px at 15% -10%, rgba(56, 189, 248, 0.22), transparent),
		radial-gradient(800px 220px at 90% -10%, rgba(99, 102, 241, 0.22), transparent),
		linear-gradient(145deg, #0b1224, #0f172a);
	border: 1px solid #243043;
	border-radius: 16px;
	padding: 1.1rem;
	box-shadow: 0 14px 36px rgba(2, 8, 23, 0.45);
	position: relative;
	overflow: hidden;
}

.ccp-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.ccp-kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.ccp-kpi-card {
	min-width: 140px;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.75));
	border: 1px solid #334155;
	backdrop-filter: blur(4px);
}

.ccp-kpi-label {
	display: block;
	color: #94a3b8;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ccp-kpi-value {
	display: block;
	color: #f8fafc;
	font-size: 1.1rem;
}

.ccp-kpi-sub {
	display: block;
	color: #cbd5e1;
	font-size: 0.78rem;
}

.ccp-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ccp-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	color: #e5e7eb;
}

.ccp-controls label {
	font-size: 0.9rem;
	white-space: nowrap;
}

.ccp-controls select,
.ccp-controls input {
	background: #0f172a;
	color: #f8fafc;
	border: 1px solid #334155;
	border-radius: 8px;
	padding: 0.45rem 0.6rem;
}

.ccp-controls input {
	min-width: 180px;
}

.ccp-controls select:focus,
.ccp-controls input:focus {
	outline: none;
	border-color: #38bdf8;
	box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.ccp-type-insight {
	margin-bottom: 0.9rem;
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 0.8rem;
	padding: 0.85rem;
	border: 1px solid #243650;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(8, 47, 73, 0.38), rgba(30, 41, 59, 0.45));
}

.ccp-type-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
}

.ccp-type-pill {
	background: rgba(15, 23, 42, 0.78);
	color: #bfdbfe;
	border: 1px solid #334155;
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ccp-type-pill:hover {
	border-color: #38bdf8;
	color: #e0f2fe;
}

.ccp-type-pill.is-active {
	background: linear-gradient(90deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
	border-color: #38bdf8;
	color: #f8fafc;
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25) inset;
}

.ccp-type-badge {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a5f3fc;
	border: 1px solid rgba(56, 189, 248, 0.4);
	border-radius: 999px;
	padding: 0.18rem 0.5rem;
	margin-bottom: 0.3rem;
}

.ccp-type-insight-main h3 {
	margin: 0 0 0.35rem;
	color: #f8fafc;
	font-size: 1.05rem;
}

.ccp-type-insight-main p {
	margin: 0;
	color: #cbd5e1;
	font-size: 0.88rem;
}

.ccp-type-insight-side {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ccp-type-meta-line {
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid #334155;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
}

.ccp-type-meta-line span {
	display: block;
	color: #93c5fd;
	font-size: 0.72rem;
	text-transform: uppercase;
}

.ccp-type-meta-line strong {
	display: block;
	color: #f8fafc;
	font-size: 0.84rem;
	font-weight: 600;
}

.ccp-type-ranking {
	margin-bottom: 0.9rem;
	padding: 0.75rem;
	border: 1px solid #23324a;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.56);
}

.ccp-type-ranking h4 {
	margin: 0 0 0.65rem;
	color: #e2e8f0;
	font-size: 0.88rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ccp-top-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

.ccp-top-card {
	padding: 0.55rem;
	border-radius: 10px;
	border: 1px solid #334155;
	background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.88));
}

.ccp-top-card span {
	display: block;
	color: #7dd3fc;
	font-size: 0.72rem;
}

.ccp-top-card strong {
	display: block;
	margin-top: 0.2rem;
	color: #f8fafc;
	font-size: 0.88rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ccp-top-card em {
	display: block;
	margin-top: 0.2rem;
	color: #34d399;
	font-style: normal;
	font-weight: 600;
}

.ccp-comparison-table {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	color: #e5e7eb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.95rem;
	line-height: 1.45;
}

.ccp-comparison-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #182338;
	color: #f8fafc;
	font-weight: 600;
	letter-spacing: 0.015em;
	padding: 0.8rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid #374151;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.ccp-comparison-table thead th:hover {
	background: #243247;
}

.ccp-comparison-table tbody td {
	padding: 0.75rem;
	border-bottom: 1px solid #1f2937;
	white-space: nowrap;
	vertical-align: middle;
}

.ccp-comparison-table tbody tr:nth-child(even) {
	background: rgba(30, 41, 59, 0.38);
}

.ccp-comparison-table tbody tr:hover {
	background: rgba(56, 189, 248, 0.09);
}

.ccp-comparison-table thead th.ccp-sort-asc::after,
.ccp-comparison-table thead th.ccp-sort-desc::after {
	margin-left: 0.45rem;
	font-size: 0.78rem;
	opacity: 0.85;
}

.ccp-comparison-table thead th.ccp-sort-asc::after {
	content: "▲";
}

.ccp-comparison-table thead th.ccp-sort-desc::after {
	content: "▼";
}

.ccp-rank-col {
	font-weight: 600;
	color: #93c5fd;
}

.ccp-success-cell {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.ccp-success-meter {
	width: 78px;
	height: 6px;
	background: #1e293b;
	border-radius: 6px;
	overflow: hidden;
}

.ccp-success-meter span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.ccp-filter-empty {
	margin: 0.75rem 0 0;
	color: #cbd5e1;
	font-size: 0.88rem;
}

.ccp-type-note {
	margin: 0.7rem 0 0;
	font-size: 0.83rem;
	color: #93c5fd;
}

.ccp-empty-state {
	padding: 1rem;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	color: #334155;
	background: #f8fafc;
}

@media (max-width: 768px) {
	.ccp-table-container {
		padding: 0.85rem;
	}

	.ccp-controls input {
		min-width: 140px;
	}

	.ccp-type-insight {
		grid-template-columns: 1fr;
	}

	.ccp-top-grid {
		grid-template-columns: 1fr;
	}

	.ccp-type-switch {
		overflow-x: auto;
		padding-bottom: 0.2rem;
		flex-wrap: nowrap;
	}

	.ccp-comparison-table {
		font-size: 0.9rem;
	}
}
