.pii-explorer,
.pii-explorer * {
	box-sizing: border-box;
}

.pii-explorer {
	width: 100%;
	max-width: 680px;
	margin: 24px auto;
	overflow: hidden;
	color: #f7f7fb;
	background: #11141d;
	border: 1px solid #242a3b;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
	font-family: Inter, Arial, sans-serif;
}

.pii-header {
	padding: 18px 16px 12px;
	text-align: center;
	background: #0d1018;
	border-bottom: 1px solid #252a38;
}

.pii-title {
	margin: 0;
	color: #fff;
	font-size: clamp(18px, 3vw, 23px);
	font-weight: 800;
	letter-spacing: 1.4px;
	line-height: 1.25;
}

.pii-subtitle {
	margin: 5px 0 0;
	color: #aeb6cc;
	font-size: 11px;
}

.pii-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	padding: 12px 14px;
	background: #10131c;
}

.pii-tab {
	min-height: 30px;
	padding: 6px 13px;
	color: #d9def0;
	background: #1c2231;
	border: 1px solid #343c51;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.pii-tab:hover {
	border-color: #ff2b9b;
	transform: translateY(-1px);
}

.pii-tab.is-active {
	color: #fff;
	background: #ff168c;
	border-color: #ff168c;
	box-shadow: 0 3px 12px rgba(255, 22, 140, .22);
}

.pii-content {
	padding: 16px 18px 20px;
}

.pii-member-name {
	margin: 0 0 7px;
	color: #fff;
	font-size: clamp(24px, 5vw, 32px);
	font-weight: 900;
	letter-spacing: 1.2px;
	line-height: 1.1;
	text-transform: uppercase;
}

.pii-rank-label {
	display: inline-block;
	min-height: 18px;
	margin-bottom: 12px;
	padding: 3px 8px;
	color: #fff;
	background: #ff168c;
	border-radius: 20px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.pii-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.pii-stat {
	display: flex;
	min-height: 66px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 9px 5px;
	background: #1a1f2d;
	border: 1px solid #30364a;
	border-radius: 9px;
	text-align: center;
}

.pii-stat span {
	color: #98a4c7;
	font-size: 8px;
	letter-spacing: .65px;
}

.pii-stat strong {
	margin-top: 5px;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.pii-chart-heading {
	margin: 19px 0 10px;
	color: #9da8c7;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .8px;
}

.pii-bar-row {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) 27px;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	font-size: 9px;
}

.pii-bar-name {
	overflow: hidden;
	color: #e4e8f4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pii-bar-track {
	height: 6px;
	overflow: hidden;
	background: #252b3c;
	border-radius: 20px;
}

.pii-bar-fill {
	display: block;
	height: 100%;
	background: #4b5268;
	border-radius: inherit;
	transition: width .35s ease, background .2s ease;
}

.pii-bar-fill.is-selected {
	background: #ff168c;
}

.pii-bar-value {
	color: #9ca6c1;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
	.pii-content { padding: 14px 12px 16px; }
	.pii-stats { gap: 6px; }
	.pii-stat { min-height: 62px; }
	.pii-stat span { font-size: 7px; }
	.pii-stat strong { font-size: 14px; }
	.pii-bar-row { grid-template-columns: 58px minmax(0, 1fr) 25px; gap: 6px; }
	.pii-tab { padding: 6px 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.pii-tab, .pii-bar-fill { transition: none; }
}
