:root {
	--bg: #101820;
	--panel: #192630;
	--ink: #edf4f2;
	--muted: #a0afb5;
	--line: #30414c;
	--orange: #aa9aee;
	--orange-soft: #393552;
	--orange-secondary: #f0a36f;
	--green: #54d08d;
	--purple: #b49fff;
	--shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
		radial-gradient(circle at 75% -20%, #30484b 0, #101820 44%), var(--bg);
	background-size: 48px 48px, 48px 48px, auto;
	color: var(--ink);
	font-family: "DM Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }

/* Base App Shell & Layout Structure */
.app-shell { min-height: 100vh; }
.main-content { width: 100%; min-width: 0; }

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 50px;
	padding: 0 5.2%;
	border-bottom: 1px solid rgba(125, 151, 159, .16);
	background: rgba(16, 24, 32, .88);
	backdrop-filter: blur(16px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #f4f7f4;
	font: 700 21px "Space Grotesk", sans-serif;
	letter-spacing: 0;
}

.brand-mark {
	display: block;
	width: 27px;
	height: 27px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--orange);
	border: 1px solid rgba(255, 255, 255, .2);
	box-shadow: 0 0 0 4px rgba(156, 145, 209, .08);
}

.topbar-actions { display: flex; align-items: center; gap: 17px; }

.server-pill { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
.server-pill i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(84, 208, 141, .12);
}

/* Page Architecture */
.page-content {
	max-width: 1220px;
	margin: 0 auto;
	padding: 43px 5.2% 60px;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
	gap: 20px;
	align-items: start;
}

.main-column,
.side-column {
	display: grid;
	gap: 20px;
	min-width: 0;
}

/* Welcome Summary Block */
.welcome-row {
	display: flex;
	justify-content: space-between;
	margin: 0;
	align-items: center;
	flex-direction: column;
	gap: 20px;
}

.welcome-row > div:first-child { max-width: 590px; }

.eyebrow { margin: 0 0 10px; color: #a7b6b9; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; }
.eyebrow span { margin: 0 7px; color: var(--orange); }

h1 {
	margin-top: 0;
	color: #f2f6f4;
	font: 600 clamp(35px, 5vw, 59px) "Space Grotesk", sans-serif;
	line-height: 1.03;
	letter-spacing: 0;
	margin-bottom: 13px;
	text-wrap: balance;
}
h1 em { color: var(--orange); font-style: normal; }

.welcome-copy {
	margin-bottom: 0;
	max-width: 560px;
	color: #adbdc1;
	font-size: 14px;
	line-height: 1.65;
}

.server-address {
	display: grid;
	grid-template-columns: 1fr auto;
	width: 100%;
	padding: 15px 15px 13px;
	border: 1px solid rgba(156, 145, 209, .78);
	border-radius: 9px;
	background: rgba(27, 40, 50, .96);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .2), 0 0 0 4px rgba(156, 145, 209, .05);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.server-address:hover,
.server-address:focus-within {
	border-color: var(--orange);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .24), 0 0 0 4px rgba(156, 145, 209, .1);
	transform: translateY(-2px);
}

.server-address span { grid-column: 1 / -1; margin-bottom: 7px; color: #a0b0b5; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.server-address strong { color: #d8e7e3; font: 600 14px "Space Grotesk", sans-serif; }

.server-address button {
	padding: 0 0 0 15px;
	background: none;
	color: var(--orange-secondary);
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
	border-radius: 50px;
	transition: color 160ms ease, background 160ms ease;
}

.server-address button:hover,
.server-address button:focus-visible {
	background: rgba(240, 163, 111, .12);
	color: #ffd0a9;
}

.useful-commands {
	display: grid;
	grid-template-columns: 1fr auto;
	width: 100%;
	padding: 15px 15px 13px;
	border: 1px solid rgba(151, 174, 181, .28);
	border-radius: 9px;
	background: rgba(20, 30, 38, .82);
	box-shadow: 0 11px 30px rgba(0, 0, 0, .15);
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.useful-commands:hover,
.useful-commands:focus-visible {
	border-color: var(--orange);
	background: #253541;
	transform: translateY(-1px);
	outline: none;
}

.useful-commands strong { color: var(--orange); font: 600 14px "Space Grotesk", sans-serif; }
.useful-commands strong span { color: var(--orange-secondary); }

/* Panels & Components */
.panel {
	min-width: 0;
	padding: 24px 23px;
	border: 1px solid rgba(125, 151, 159, .24);
	border-radius: 11px;
	background: rgba(25, 38, 48, .96);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.panel:hover {
	border-color: rgba(156, 145, 209, .38);
	box-shadow: 0 22px 56px rgba(0, 0, 0, .26);
}

.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 23px; }
.panel-heading h2 { margin-top: 0; margin-bottom: 5px; color: #ecf4f1; font: 600 17px "Space Grotesk", sans-serif; letter-spacing: .01em; }
.panel-heading p { margin: 0; color: #a0afb5; font-size: 11px; }
.panel-heading .stats-note { margin-top: 4px; color: #91a2a8; font-size: 10px; }

.text-link { color: var(--orange); font-size: 11px; font-weight: 700; }
.text-link span { margin-left: 5px; font-size: 15px; }
.text-link:hover { color: #fff; }

.chart-panel { min-height: 330px; }
.activity-panel { min-height: 300px; }

/* Activity Analytics (Inline SVG Graph) */
.chart-heading-meta { display: grid; justify-items: end; gap: 7px; }
.chart-legend { color: #a6b2b3; font-size: 10px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--orange); }
.chart-latest { color: #e9f3ef; font: 600 11px "Space Grotesk", sans-serif; }
#chart-latest { color: var(--orange-secondary); }

.chart-wrap { position: relative; padding-top: 5px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: #354752; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-area { fill: url(#chart-fill); }
.chart-line { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.chart-point {
	fill: var(--orange);
	stroke: #192630;
	stroke-width: 4;
	cursor: help;
	transition: r 160ms ease, opacity 160ms ease;
}
.chart-point:hover { opacity: 1 !important; }
.chart-points .chart-point:not(:last-child) { opacity: .72; }

.chart-y-labels text { fill: #91a2a8; font: 10px "DM Sans", sans-serif; }
.chart-labels { display: flex; justify-content: space-between; padding-top: 10px; color: #91a2a8; font-size: 9px; }
.chart-labels span { min-width: 42px; }
.chart-labels span:nth-child(2) { text-align: center; }
.chart-labels span:last-child { text-align: right; }
.chart-empty { position: absolute; top: 48%; left: 0; width: 100%; color: #a0afb5; font-size: 11px; text-align: center; }

/* Dashboard Widgets & User Displays */
.count-badge {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 22px;
	margin-left: 5px;
	border-radius: 8px;
	background: rgba(240, 163, 111, .14);
	color: #ffc18f;
	font: 600 10px "DM Sans", sans-serif;
	vertical-align: 2px;
}

.activity-list { display: grid; gap: 13px; }
.empty-state { padding: 30px 0; color: #a0afb5; font-size: 11px; text-align: center; }
.plus-more {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid rgba(125, 151, 159, .12);
	color: var(--orange);
	font-size: 10px;
	font-weight: 700;
	text-align: center;
}

.online-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(84, 208, 141, .1); }
	50% { box-shadow: 0 0 0 7px rgba(84, 208, 141, 0); }
}

/* Community Callouts */
.community-card {
	width: 100%;
	padding: 18px 20px;
	border: 1px solid rgba(151, 174, 181, .28);
	border-radius: 11px;
	background: linear-gradient(135deg, #203440, #192630);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.community-card:hover {
	border-color: rgba(156, 145, 209, .38);
	box-shadow: 0 22px 56px rgba(0, 0, 0, .26);
}

.community-card p { margin: 0 0 14px; color: #adbdc1; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.community-card div { display: flex; gap: 9px; }

.community-card a {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1;
	min-width: 0;
	padding: 8px 9px;
	border: 1px solid rgba(170, 154, 238, .62);
	border-radius: 7px;
	background: #2a3c47;
	color: #dce9e7;
	font-size: 10px;
	font-weight: 700;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.community-card a:hover,
.community-card a:focus-visible {
	border-color: var(--orange);
	background: #354c59;
	transform: translateY(-2px);
}

.community-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }
.discord-icon { background: #30294d; color: #b9a9ff; }
.youtube-icon { background: #4a2829; color: #ff8e86; }

/* Statistical Matrices Metrics */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 35px; margin: 0; }

.stat-card {
	position: relative;
	min-height: 145px;
	padding: 22px 22px 17px;
	overflow: hidden;
	border: 1px solid rgba(151, 174, 181, .28);
	border-radius: 11px;
	background: rgba(25, 38, 48, .96);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
	border-color: rgba(156, 145, 209, .38);
	box-shadow: 0 22px 56px rgba(0, 0, 0, .26);
}
.stat-header { display: flex; justify-content: space-between; align-items: center; color: #adbdc1; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.stat-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: rgba(240, 163, 111, .14); color: var(--orange-secondary); font-size: 13px; }
.stat-icon.green { background: #172e27; color: var(--green); }
.stat-icon.blue { background: #1b2e3e; color: #76b7e9; }
.stat-value { display: block; margin: 14px 0 4px; color: #f4f8f6; font: 600 29px "Space Grotesk", sans-serif; letter-spacing: -1px; }
.stat-change { margin: 0; font-size: 10px; font-weight: 700; color: #a0afb5; }
.stat-change em { margin-left: 4px; color: #a0afb5; font-size: 10px; font-style: normal; font-weight: 400; }
.progress-track { height: 5px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #354752; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.progress-label { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 0; color: #a0afb5; font-size: 9px; }
.location-card { min-height: 125px !important; }
.location-name { display: block; margin-top: 15px; color: #f4f8f6; font: 600 22px "Space Grotesk", sans-serif; letter-spacing: -.7px; }
.location-detail { margin: 5px 0 0; color: #a0afb5; font-size: 10px; }
.restart-detail { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 0; padding-top: 11px; border-top: 1px solid rgba(151, 174, 181, .22); color: #a0afb5; font-size: 10px; }
.restart-detail strong { color: var(--orange-secondary); font-size: 10px; font-weight: 600; text-align: right; }
.stats-grid > .community-card a.useful-commands { border-color: rgba(240, 163, 111, .42); background: rgba(240, 163, 111, .08); }
.stats-grid > .community-card a.useful-commands strong { color: var(--orange-secondary); }
.stats-grid > .community-card a.useful-commands:hover,
.stats-grid > .community-card a.useful-commands:focus-visible { border-color: var(--orange-secondary); background: rgba(240, 163, 111, .16); }
/* Updates List Configurations */
.updates-card { grid-area: updates; }
.latest-updates { display: grid; gap: 8px; }
.update-preview {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 12px;
border: 1px solid rgba(125, 151, 159, .15);
border-radius: 8px;
background: rgba(255, 255, 255, .025);
color: inherit;
text-align: left;
transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.update-preview:hover {
border-color: rgba(156, 145, 209, .4);
background: rgba(156, 145, 209, .06);
transform: translateY(-1px);
}
.update-preview strong, .update-preview span { display: block; }
.update-preview strong { color: #d9e4e1; font-size: 11px; }
.update-preview div span { margin-top: 4px; color: #9aaab0; font-size: 9px; }
.update-arrow { color: var(--orange-secondary); font-size: 15px; }
#view-updates { padding: 0; border: 0; background: none; color: var(--orange); font-size: 11px; font-weight: 700; cursor: pointer; }
#view-updates span { margin-left: 5px; font-size: 15px; }
#view-updates:hover, #view-updates:focus-visible { color: #fff; outline: none; }
#view-updates:focus-visible { box-shadow: 0 0 0 3px rgba(156, 145, 209, .22); border-radius: 4px; }
#join-discord-updates {padding: 0; border: 0; background: none; color: var(--orange); font-size: 11px; font-weight: 700; cursor: pointer;}
/* Global Update Articles */
.updates-list { display: grid; gap: 0; padding: 24px 36px 30px; }
.update-item {
display: grid;
grid-template-columns: 52px minmax(0, 1fr);
gap: 15px;
padding: 16px 0;
border-bottom: 1px solid rgba(125, 151, 159, .14);
}
.update-item:first-child { padding-top: 0; }
.update-item:last-child { padding-bottom: 0; border-bottom: 0; }
.update-date {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 52px;
height: 52px;
border: 1px solid rgba(156, 145, 209, .2);
border-radius: 9px;
background: rgba(156, 145, 209, .08);
}
.update-date span { color: var(--orange-secondary); font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.update-date strong { margin-top: 2px; color: #edf4f2; font: 600 20px "Space Grotesk", sans-serif; line-height: 1; }
.update-body { min-width: 0; }
.update-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #9aaab0; font-size: 9px; }
.update-tag { padding: 3px 6px; border-radius: 4px; background: rgba(240, 163, 111, .13); color: #ffc18f; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.update-body h3 { margin: 0 0 5px; color: #d9e4e1; font: 600 13px "Space Grotesk", sans-serif; }
.update-body p { margin: 0; color: #a0afb5; font-size: 10px; line-height: 1.5; }
/* Interactive Overlays Engine (Modals) */
body.modal-open { overflow: hidden; }
.text-link, .community-card a, .server-address button { outline: none; }
:is(.text-link, .community-card a, .server-address button):focus-visible { box-shadow: 0 0 0 3px rgba(156, 145, 209, .22); }
.info-modal[hidden], .updates-modal[hidden] { display: none; }
.info-modal, .updates-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.info-modal-backdrop, .updates-modal-backdrop { position: fixed; inset: 0; background: rgba(3, 7, 11, .82); backdrop-filter: blur(8px); }
.info-modal-panel, .updates-modal-panel {
position: relative;
width: min(100%, 980px);
max-height: calc(100vh - 48px);
overflow: auto;
border: 1px solid rgba(156, 145, 209, .38);
border-radius: 14px;
	background: linear-gradient(145deg, #20323b, #121d26 55%, #192630);
box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.updates-modal-panel { width: min(100%, 850px); }
.info-modal-header, .updates-modal-header { display: flex; justify-content: space-between; gap: 24px; padding: 34px 36px 28px; border-bottom: 1px solid rgba(125, 151, 159, .18); }
.info-modal-header h2, .updates-modal-header h2 { margin: 0 0 8px; color: #f2f7f5; font: 600 clamp(26px, 4vw, 42px) "Space Grotesk", sans-serif; }
.info-modal-header p:last-child, .updates-modal-header p:last-child { margin: 0; color: #a8b8bc; font-size: 13px; }
.modal-close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(125, 151, 159, .25); border-radius: 50%; background: transparent; color: #a6b5b8; font-size: 25px; line-height: 1; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.modal-close:hover, .modal-close:focus-visible { border-color: var(--orange); background: rgba(156, 145, 209, .12); color: #fff; outline: none; }
.command-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 36px 30px; }
.command-group { min-width: 0; padding: 18px; border: 1px solid rgba(125, 151, 159, .18); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.command-group-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.command-index { color: var(--orange); font: 700 11px "Space Grotesk", sans-serif; letter-spacing: 1px; }
.command-group h3 { margin: 0 0 5px; color: #eaf3f0; font: 600 16px "Space Grotesk", sans-serif; }
.command-group-heading p { margin: 0; color: #a0afb5; font-size: 11px; line-height: 1.45; }
.command-list { display: grid; gap: 10px; }
.command-list > div { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(125, 151, 159, .12); }
.command-list code { color: var(--orange); font: 600 11px "Space Grotesk", monospace; overflow-wrap: anywhere; }
.command-list span { color: #a0afb5; font-size: 10px; line-height: 1.4; }
.info-modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 36px; border-top: 1px solid rgba(125, 151, 159, .18); color: #819298; font-size: 11px; }
.info-modal-footer a { color: var(--orange); font-weight: 700; }
.info-modal-footer a:hover, .info-modal-footer a:focus-visible { color: #ffffff; outline: none; }
/* Screen Layout Breakpoints */
@media (max-width: 900px) {
.page-content { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .8fr); }
}
@media (max-width: 760px) {
.info-modal, .updates-modal { padding: 12px; }
.info-modal-panel, .updates-modal-panel { max-height: calc(100vh - 24px); }
.info-modal-header, .updates-modal-header { padding: 26px 22px 22px; }
.command-layout { grid-template-columns: 1fr; padding: 18px 22px 24px; }
.updates-list { padding: 20px 22px 24px; }
.info-modal-footer { padding: 15px 22px; }
}
@media (max-width: 680px) {
.topbar { padding: 0 20px; }
.page-content { display: flex; flex-direction: column; gap: 14px; }
.main-column, .side-column { width: 100%; gap: 14px; }
.welcome-row { gap: 28px; }
.welcome-row > div:first-child { max-width: none; }
.welcome-copy { font-size: 13px; }
.server-address { align-self: stretch; width: 100%; transform: none !important; box-shadow: 0 12px 30px rgba(0, 0, 0, .2) !important; }
.chart-panel, .updates-panel, .activity-panel, .community-card, .stats-grid { width: 100%; }
.update-item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.update-date { width: 48px; height: 48px; }
.community-card a { padding: 10px 9px; }
}
@media (max-width: 520px) {
.server-pill { display: none; }
.info-modal-header h2 { font-size: 28px; }
.info-modal-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* Player Display Elements */
.player-row { 
	display: flex;
	align-items: center; 
	gap: 10px;
	padding: 7px 0; 
}

.player-row p { 
	flex: 1; 
	margin: 1px 0 0;
	color: #a0afb5; 
	font-size: 10px; 
	line-height: 1.45; 
}

.player-row strong { 
	color: #d9e4e1; 
	font-weight: 700; 
}
