:root {
	--bg-a: #66aef9;
	--bg-b: #9ed1ff;
	--panel: rgba(9, 30, 58, 0.66);
	--panel-soft: rgba(18, 46, 84, 0.55);
	--line: rgba(231, 245, 255, 0.20);
	--text: #f7fbff;
	--text-soft: rgba(247, 251, 255, 0.84);
	--accent: #37b8ff;
	--accent-2: #7ef0ff;
	--shadow: 0 24px 60px rgba(2, 12, 26, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: "Nunito", system-ui, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at 20% 18%, rgba(255,255,255,0.52), transparent 14%),
		radial-gradient(circle at 80% 22%, rgba(255,255,255,0.18), transparent 12%),
		linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
}

.bg-sky {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 12%, rgba(255,255,255,0.62), transparent 10%),
		radial-gradient(circle at 15% 16%, rgba(255,255,255,0.22), transparent 12%),
		radial-gradient(circle at 82% 28%, rgba(255,255,255,0.18), transparent 10%),
		linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
	opacity: 0.95;
}

.shell {
	position: relative;
	width: min(1380px, calc(100% - 28px));
	margin: 0 auto;
	padding: 28px 0 36px;
	z-index: 1;
}

.hero-card, .panel, .legal-card, .admin-card {
	background: linear-gradient(180deg, rgba(8, 25, 47, 0.78), rgba(8, 25, 47, 0.64));
	border: 1px solid var(--line);
	border-radius: 28px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}

.hero-card { padding: 28px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand {
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 0.95;
	font-weight: 900;
	letter-spacing: -0.04em;
	text-shadow: 0 6px 18px rgba(2, 10, 24, 0.26);
	margin: 0;
}
.tagline { color: var(--text-soft); margin: 8px 0 0; font-size: 1.05rem; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,0.11);
	border: 1px solid rgba(255,255,255,0.14);
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
}
.pill-active {
	background: rgba(55, 184, 255, 0.22);
	border-color: rgba(126, 240, 255, 0.40);
	box-shadow: 0 10px 24px rgba(26, 104, 208, 0.18);
}
.grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 18px;
	margin-top: 18px;
}
.panel { padding: 22px; }
.card-title { margin: 0 0 10px; font-size: 1.5rem; }
.muted { color: var(--text-soft); }
.two-col { grid-column: span 12; }
.full { grid-column: span 12; }
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 22px;
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,0.16);
	background: linear-gradient(180deg, rgba(59, 171, 255, 0.98), rgba(29, 125, 224, 0.95));
	color: white;
	text-decoration: none;
	font-weight: 900;
	box-shadow: 0 14px 30px rgba(26, 104, 208, 0.28);
}
.btn.secondary { background: rgba(255,255,255,0.09); }
.btn.danger { background: linear-gradient(180deg, rgba(255,108,108,0.96), rgba(197,55,55,0.94)); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.hero-image {
	width: min(100%, 360px);
	max-width: 100%;
	height: auto;
	display: block;
	margin-left: auto;
	filter: drop-shadow(0 18px 28px rgba(2, 10, 20, 0.28));
}
.kpi {
	background: rgba(255,255,255,0.10);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 22px;
	padding: 18px 18px;
	min-height: 112px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.kpi span {
	color: var(--text-soft);
	font-size: 0.98rem;
	font-weight: 700;
}
.kpi strong {
	display: block;
	font-size: clamp(1.65rem, 3vw, 2.6rem);
	line-height: 1;
	font-weight: 900;
}
.metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}
.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.panel-header .card-title {
	margin-bottom: 4px;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	color: var(--text-soft);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.table-wrap {
	overflow-x: auto;
	border-radius: 22px;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.04);
}
.legal-card { padding: 28px; }
.legal-card h1, .legal-card h2 { margin-top: 0; }
.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0;
	min-width: 760px;
}
.table th, .table td {
	padding: 12px 10px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	text-align: left;
	vertical-align: top;
}
.table th { color: var(--text-soft); font-weight: 800; }
.table tr:hover td {
	background: rgba(255,255,255,0.03);
}
.uid-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
}
.uid-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.84rem;
	white-space: nowrap;
}
.copy-btn,
.ghost-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.14);
	background: rgba(255,255,255,0.08);
	color: var(--text);
	font-weight: 800;
	cursor: pointer;
}
.copy-btn {
	padding: 8px 10px;
	min-width: 42px;
}
.player-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.player-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	font-size: 0.82rem;
	font-weight: 800;
}
.tag.good {
	background: rgba(97, 214, 165, 0.14);
	border-color: rgba(97, 214, 165, 0.24);
}
.tag.warn {
	background: rgba(255, 191, 89, 0.16);
	border-color: rgba(255, 191, 89, 0.26);
}
.tag.danger {
	background: rgba(255, 108, 108, 0.16);
	border-color: rgba(255, 108, 108, 0.26);
}
.action-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.btn.compact,
.ghost-btn.compact {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 0.92rem;
}
dialog.admin-dialog {
	width: min(520px, calc(100% - 24px));
	border: 0;
	padding: 0;
	background: transparent;
}
dialog.admin-dialog::backdrop {
	background: rgba(4, 14, 28, 0.58);
	backdrop-filter: blur(4px);
}
.dialog-card {
	padding: 24px;
	border-radius: 26px;
	border: 1px solid rgba(255,255,255,0.14);
	background: linear-gradient(180deg, rgba(8, 25, 47, 0.94), rgba(8, 25, 47, 0.88));
	box-shadow: var(--shadow);
}
.dialog-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}
.field,
.field-inline input,
.field-inline textarea,
.field-inline select,
.dialog-card input,
.dialog-card textarea {
	width: 100%;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.16);
	background: rgba(255,255,255,0.08);
	color: #fff;
	font: inherit;
}
.dialog-card textarea {
	min-height: 96px;
	resize: vertical;
}
.stats-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.stat-pill {
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.10);
	font-weight: 800;
}
code {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.10);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.84rem;
}
.leader-podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.leader-podium .kpi {
	min-height: 138px;
}
.kpi.highlight {
	background: linear-gradient(180deg, rgba(255, 216, 95, 0.32), rgba(255, 186, 57, 0.16));
	border-color: rgba(255, 224, 113, 0.34);
}
@media (min-width: 860px) {
	.two-col { grid-column: span 6; }
}
@media (max-width: 860px) {
	.hero-card {
		padding: 22px;
	}
	.shell {
		width: min(100%, calc(100% - 18px));
		padding-top: 18px;
	}
	.table {
		min-width: 680px;
	}
}
