@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
	--color-bg: #7a96a8;
	--color-bg-deep: #5f7f92;
	--color-panel: #c5d4dc;
	--color-panel-light: rgba(255, 255, 255, 0.72);
	--color-panel-border: #9aacb8;
	--color-panel-separator: #a8b2b9;

	--color-primary: #1f7fb8;
	--color-primary-mid: #4a8eb4;
	--color-primary-dark: #14557c;

	--color-text: #2a3542;
	--color-text-muted: #5a6c7d;
	--color-heading: #1e3344;

	--font-heading: 'Cinzel', Georgia, serif;
	--font-body: 'Open Sans', 'Segoe UI', sans-serif;
	--font-ui: 'Open Sans', 'Segoe UI', sans-serif;

	--radius: 6px;
	--radius-lg: 8px;
	--shadow: 0 2px 8px rgba(20, 50, 70, 0.12);
	--shadow-lg: 0 4px 16px rgba(20, 50, 70, 0.18);
	--transition: 0.15s ease;

	/* Legacy aliases */
	--primary: var(--color-panel-light);
	--secondary: var(--color-bg);
	--surface: var(--color-panel);
	--border: var(--color-panel-border);
	--font-color: var(--color-text);
	--font-muted: var(--color-text-muted);
	--font-heading: var(--color-heading);
	--anchor: var(--color-primary-dark);
	--anchor-hover: var(--color-primary);
	--accent: var(--color-primary);
	--accent-glow: rgba(31, 127, 184, 0.12);

	--bg-danger: #fde8e8;
	--color-danger: #8b2020;
	--border-danger: #e8a0a0;
	--bg-warning: #fff5e0;
	--color-warning: #7b4b12;
	--border-warning: #e8c06a;
	--bg-info: #e0f2fb;
	--color-info: #14557c;
	--border-info: #8fd8ff;
	--bg-success: #e4f8ec;
	--color-success: #0a5c30;
	--border-success: #70e0a0;
	--bg-default: #eef3f6;
	--color-default: var(--color-primary-dark);
	--border-default: var(--color-panel-border);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 40%, #8eaeb8 100%);
	background-attachment: fixed;
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

body, ul { margin: 0; padding: 0; }
li { list-style: none; }

a {
	text-decoration: none;
	color: var(--color-primary-dark);
	font-weight: 600;
	transition: color var(--transition);
}
a:hover { color: var(--color-primary); }
a:hover, button:hover, input[type="submit"]:hover { cursor: pointer; }

/* Navigation — wiki-style top bar */
nav {
	background: var(--color-panel);
	border-bottom: 1px solid #a8b2b9;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.nav-logo-img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

nav .container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 12px;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}

nav .nav-container {
	flex-wrap: wrap;
}

nav .nav-menus {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	flex: 1 1 auto;
	width: 100%;
}

/* Desktop: horizontal top bar */
.helpdesk-ticket-row.is-current {
	background: var(--accent-glow);
	border-left: 4px solid var(--color-primary);
}

.helpdesk-thread-grid {
	align-items: start;
}

.helpdesk-thread-main .helpdesk-thread-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.helpdesk-thread-main .helpdesk-card,
.helpdesk-thread-main .alert-box {
	margin: 0;
}

.helpdesk-ticket-row.is-closed {
	opacity: 0.92;
	border-left: 4px solid #95a5a6;
}

.helpdesk-ticket-row.is-closed.is-current {
	border-left-color: var(--color-primary);
}

.helpdesk-ticket-list-history .helpdesk-ticket-row {
	background: rgba(255,255,255,0.45);
}

.helpdesk-tickets-heading {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-text-muted);
	margin: 16px 0 8px;
	font-weight: 700;
}

.helpdesk-tickets-heading:first-of-type {
	margin-top: 0;
}

.helpdesk-tickets-heading-history {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--color-panel-border);
}

.helpdesk-closed-meta {
	margin-top: 10px;
	padding: 10px 12px;
	background: rgba(255,255,255,0.55);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--color-text-muted);
}

.helpdesk-message-system {
	border-left: 4px solid #95a5a6;
	background: rgba(240,240,240,0.7);
	font-size: 13px;
	color: var(--color-text-muted);
}

.helpdesk-tickets-card {
	max-height: 720px;
	overflow-y: auto;
}

@media screen and (min-width: 901px) {
	nav .nav-container {
		flex-wrap: nowrap;
		align-items: stretch;
	}

	nav .nav-menus {
		display: flex !important;
		flex-direction: row;
	}
}

@media screen and (min-width: 1101px) {
	.feedContainer {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
	}

	.leftPane {
		flex: 1 1 68%;
		min-width: 0;
	}

	.rightPane {
		flex: 0 0 30%;
		min-width: 260px;
		max-width: 360px;
		display: block;
	}
}

nav .nav-menus > div > ul {
	display: flex;
	align-items: stretch;
}

nav .nav-menus > div > ul > li {
	position: relative;
	display: inline-block;
}

nav .nav-menus > div > ul > li > a {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	color: var(--color-text);
	font-weight: 600;
	font-size: 13px;
	font-family: var(--font-ui);
	border-left: 3px solid transparent;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

nav .nav-menus > div > ul > li > a:hover,
nav .nav-menus > div > ul > li:hover > a {
	color: var(--color-primary);
	background: rgba(255, 255, 255, 0.45);
	border-left-color: var(--color-primary-mid);
}

nav .nav-menus > div > ul > li > a i {
	margin-right: 6px;
	font-size: 12px;
	opacity: 0.8;
}

nav .nav-menus > div > ul > li > a.nav-external::after {
	content: '\f08e';
	font-family: FontAwesome;
	font-size: 10px;
	margin-left: 5px;
	opacity: 0.55;
	font-weight: normal;
}

nav .nav-menus > div > ul > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--color-panel);
	border: 1px solid var(--color-panel-border);
	border-top: none;
	box-shadow: var(--shadow-lg);
	padding: 6px 0;
	z-index: 200;
}

nav .nav-menus > div > ul > li:hover > ul { display: block; }

nav .nav-menus > div > ul > li > ul > li > a {
	display: block;
	padding: 7px 16px;
	font-size: 13px;
	color: var(--color-text);
	border-left: 3px solid transparent;
	background: transparent;
}

nav .nav-menus > div > ul > li > ul > li > a:hover {
	background: rgba(255, 255, 255, 0.5);
	color: var(--color-primary);
	border-left-color: var(--color-primary);
}

.modIcon > i:nth-child(2),
.modIcon:hover > i:nth-child(1) { display: none; }

/* Banner */
.banner {
	background: linear-gradient(135deg, #1b3052 0%, #264a7a 50%, #1b3052 100%);
	height: 108px;
	margin: 0 0 14px;
	padding: 12px 16px;
	border: none;
	border-bottom: 2px solid #0f1f38;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 100%, rgba(79, 156, 220, 0.18), transparent 70%);
	pointer-events: none;
}

.banner::after {
	content: none;
}

.banner-logo {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	height: auto;
	max-height: 88px;
	max-width: min(98%, 880px);
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

/* Main layout */
.main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 12px 28px;
}

.feedContainer {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.leftPane {
	flex: 1 1 68%;
	min-width: 0;
	float: none;
}

.rightPane {
	flex: 0 0 30%;
	min-width: 260px;
	float: none;
}

.feedContainer .pull-left,
.feedContainer .pull-right { float: none; }

.pull-left { float: left; }
.pull-right { float: right; }

/* Wiki-style content box */
.leftPane > h1,
.leftPane > h2,
.leftPane > h3 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	letter-spacing: 0.4px;
}

.leftPane > h1 {
	font-size: 28px;
	text-transform: uppercase;
	border-bottom: 2px solid var(--color-panel-separator);
	padding-bottom: 10px;
	margin-bottom: 16px;
}

/* Cards / Wells */
.well {
	background: var(--color-panel-light);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	margin-bottom: 12px;
	overflow: hidden;
}

.well .header,
.header {
	background: var(--color-panel);
	color: var(--color-primary-dark);
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--color-panel-border);
}

.well .body { padding: 12px 14px; }
.body { padding: 8px 0; }

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.5);
}

td, th {
	padding: 8px 10px;
	border-bottom: 1px solid var(--color-panel-separator);
	font-size: 13px;
}

tr:nth-child(2n+1) { background: rgba(255, 255, 255, 0.35); }
tr:hover { background: rgba(255, 255, 255, 0.75); }

tr.yellow td,
tr.yellow th,
.yellow,
#highscoresTable tr:first-child,
#news tr.yellow td,
#changelogTable tr.yellow td {
	background: var(--color-panel) !important;
	color: var(--color-primary-dark) !important;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#news, #changelogTable, #highscoresTable {
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 14px;
	background: var(--color-panel-light);
}

#news td, #changelogTable td { padding: 12px 14px; }

/* Forms */
input, select, textarea {
	background: rgba(255, 255, 255, 0.85);
	color: var(--color-text);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 8px 12px;
	font-size: 13px;
	font-family: var(--font-body);
	transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--color-primary-mid);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="submit"],
button,
.submitButton,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1.3;
	border: 1px solid var(--color-primary-dark);
	border-radius: var(--radius);
	padding: 9px 16px;
	cursor: pointer;
	height: auto;
	box-shadow: none;
	transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

input[type="submit"]:hover,
button:hover,
.submitButton:hover,
.btn:hover {
	transform: none;
	box-shadow: none;
	background: var(--color-primary-dark);
	border-color: #0f3d5c;
	color: #fff;
}

input[type="submit"]:active,
button:active {
	transform: none;
	opacity: 0.92;
}

.btn-sm,
input[type="submit"].btn-sm,
button.btn-sm {
	padding: 6px 12px;
	font-size: 11px;
}

.btn-secondary,
input[type="submit"].btn-secondary,
button.btn-secondary {
	background: #5a6c7d;
	border-color: #4a5a68;
}
.btn-secondary:hover,
input[type="submit"].btn-secondary:hover,
button.btn-secondary:hover {
	background: #4a5a68;
	border-color: #3d4a56;
}

.btn-danger,
input[type="submit"].btn-danger,
button.btn-danger {
	background: #c0392b;
	border-color: #962d22;
}
.btn-danger:hover,
input[type="submit"].btn-danger:hover,
button.btn-danger:hover {
	background: #962d22;
	border-color: #7a2419;
}

.btn-info,
input[type="submit"].btn-info,
button.btn-info {
	background: #2d7fa8;
	border-color: #1f6a8f;
}

/* Login widget (sidebar) */
.sidebar-login-form .helpdesk-field {
	margin-bottom: 12px;
}
.sidebar-login-form label {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--color-text-muted);
}
.sidebar-login-form input[type="text"],
.sidebar-login-form input[type="password"] {
	width: 100%;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 9px 11px;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.9);
}
.sidebar-login-form input:focus {
	outline: none;
	border-color: var(--color-primary-mid);
	box-shadow: 0 0 0 3px var(--accent-glow);
}
.sidebar-login-optional {
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-text-muted);
	font-size: 10px;
}
.sidebar-login-twofa input {
	text-align: center;
	letter-spacing: 0.15em;
	font-weight: 600;
}
.sidebar-login-submit {
	width: 100%;
	margin-top: 4px;
	padding: 10px 16px;
}
.sidebar-login-footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--color-panel-separator);
	text-align: center;
}
.sidebar-login-register {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary-dark);
}
.sidebar-login-register:hover {
	color: var(--color-primary);
}
.sidebar-login-recover {
	margin: 0;
	font-size: 11px;
}
.sidebar-login-recover a {
	font-weight: 600;
}

.login-hint-notice {
	margin: 8px 0 0;
	padding: 8px 10px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--color-warning);
	background: var(--bg-warning);
	border: 1px solid var(--border-warning);
	border-radius: var(--radius);
	font-weight: 600;
}

/* Legacy loginForm (if used elsewhere) */
.loginForm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.loginForm .well {
	background: transparent;
	border: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.loginForm input {
	border: none;
	border-bottom: 1px solid var(--color-panel-border);
	border-radius: 0;
	background: transparent;
	padding: 6px 0;
}

.loginForm input[type="submit"] {
	border-radius: var(--radius);
	margin-top: 6px;
}

.loginForm .well label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-text-muted);
}

/* Login page (2FA / errors) */
.login-page { max-width: 480px; margin: 0 auto 24px; }
.login-card { padding: 24px 22px; }
.login-page-title {
	margin: 0 0 8px;
	font-size: 22px;
	color: var(--color-primary-dark);
}
.login-page-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.5;
}
.login-page-errors { margin-bottom: 16px; }
.login-page-errors ul { margin: 0; padding-left: 18px; }
.login-page-form { margin-top: 4px; }
.login-twofa-field input {
	font-size: 20px;
	letter-spacing: 0.25em;
	text-align: center;
	font-weight: 700;
}
.login-page-actions { margin: 8px 0 0; }
.login-page-help { margin: 16px 0 0; text-align: center; }

/* Quick-link pills (homepage style) */
.link-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--color-panel-separator);
}

.link-pill {
	display: inline-flex;
	padding: 5px 14px;
	border-radius: 100px;
	border: 1px solid var(--color-primary-mid);
	background: rgba(255, 255, 255, 0.65);
	color: var(--color-primary-dark);
	font-size: 12px;
	font-weight: 600;
	transition: all 0.12s;
}

.link-pill:hover {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* Alerts */
.alert-box {
	font-size: 14px;
	border-radius: var(--radius);
	margin-bottom: 12px;
	padding: 12px 14px;
	line-height: 1.5;
}
.helpdesk-page .alert-box,
.helpdesk-page .alert-box.alert-danger,
.helpdesk-page .alert-box.alert-success,
.helpdesk-page .alert-box.alert-warning {
	max-width: none;
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}
.alert-default { background: var(--bg-default); color: var(--color-default); border: 1px solid var(--border-default); }
.alert-info { background: var(--bg-info); color: var(--color-info); border: 1px solid var(--border-info); }
.alert-success { background: var(--bg-success); color: var(--color-success); border: 1px solid var(--border-success); }
.alert-warning { background: var(--bg-warning); color: var(--color-warning); border: 1px solid var(--border-warning); }
.alert-danger { background: var(--bg-danger); color: var(--color-danger); border: 1px solid var(--border-danger); }

/* Footer */
footer {
	background: var(--color-panel);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}

footer p {
	margin: 0;
	font-size: 11px;
	color: var(--color-text-muted);
}

/* Widgets */
.widget h3 { margin-bottom: 0; }
.smedia { font-size: 1.4rem; }
.smedia a { color: var(--color-primary-dark); }
.centralizeContent { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preventCollapse { overflow: visible; }

ul.linkbuttons {
	margin-top: 8px;
	padding: 0 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.linkbuttons li {
	flex: 1 1 calc(50% - 8px);
	border: 1px solid var(--color-primary-mid);
	border-radius: var(--radius);
	text-align: center;
	background: rgba(255,255,255,0.5);
	overflow: hidden;
}

ul.linkbuttons li a {
	padding: 10px 8px;
	display: block;
	width: 100%;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-primary-dark);
}

ul.linkbuttons li:hover {
	background: var(--accent-glow);
}

#myaccountContainer ul.linkbuttons li:last-child {
	flex: 1 1 100%;
}

#loginContainer li {
	text-align: left;
}

/* Character search */
.search_widget.well {
	overflow: visible;
	position: relative;
	z-index: 1;
}

.search_widget.well:focus-within {
	z-index: 250;
}

.search_widget .body {
	overflow: visible;
}

.search_widget form { margin: 0; }
.search_widget .char-search-autocomplete { width: 100%; }
.search_widget .char-search-autocomplete label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--color-text-muted);
}
.search_widget .char-search-autocomplete input {
	width: 100%;
	float: none;
}
.search_widget label { padding: 0; float: none; }
.search_widget input.search { width: 100%; float: none; }

.player-autocomplete-list--floating {
	position: fixed !important;
	z-index: 9999 !important;
	right: auto !important;
}

.leftPane img { max-width: 100%; border-radius: var(--radius); }

#characterProfileTable #piv img,
#characterProfileTable #piv .txt {
	max-width: none;
	border-radius: 0;
}

#characterProfileTable #piv {
	overflow: visible;
}

#characterProfileTable #piv_flex {
	min-height: 240px;
}

/* Security page */
.security-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 16px;
}

.security-card {
	background: rgba(255,255,255,0.55);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 16px 18px;
}

.security-card h2 {
	font-family: var(--font-heading);
	font-size: 16px;
	color: var(--color-primary-dark);
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.security-qr {
	text-align: center;
	margin: 12px 0;
	background: #fff;
	padding: 12px;
	border-radius: var(--radius);
	display: inline-block;
}

.security-qr img { max-width: 200px; }

.security-note {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: 10px;
}

.recovery-key-box {
	background: #fff8e0;
	border: 2px dashed #c98a10;
	border-radius: var(--radius);
	padding: 14px;
	margin: 12px 0;
	text-align: center;
}

.recovery-key-value {
	font-family: monospace;
	font-size: 22px;
	font-weight: 700;
	color: #7b4b12;
	letter-spacing: 3px;
	margin-top: 8px;
}

.recovery-cooldown-box {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #fff4e5;
	border: 1px solid #e0a030;
	border-left: 4px solid #c98a10;
	border-radius: var(--radius);
	padding: 14px 16px;
	margin: 12px 0 0;
	color: #5c3d10;
	font-size: 14px;
	line-height: 1.5;
}

.recovery-cooldown-icon {
	color: #c98a10;
	font-size: 22px;
	line-height: 1;
	margin-top: 2px;
	flex-shrink: 0;
}

.recovery-cooldown-body {
	flex: 1;
	min-width: 0;
}

.recovery-cooldown-body strong {
	display: block;
	margin-bottom: 4px;
	color: #7b4b12;
	font-size: 14px;
}

.recovery-cooldown-body p {
	margin: 0;
}

.recovery-cooldown-timer {
	margin-top: 10px !important;
	font-size: 14px;
}

.recovery-cooldown-timer span {
	font-family: Consolas, "Courier New", monospace;
	font-weight: 700;
	font-size: 16px;
	color: #9a5f00;
	letter-spacing: 0.3px;
}

.recovery-key-warning {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #e8f2fb;
	border: 1px solid #8eb8e0;
	border-left: 4px solid #3d7ab8;
	border-radius: var(--radius);
	padding: 12px 14px;
	margin-top: 12px;
	font-size: 13px;
	color: #1e4a70;
	line-height: 1.5;
}

.recovery-key-warning i {
	color: #3d7ab8;
	font-size: 17px;
	margin-top: 1px;
	flex-shrink: 0;
}

.recovery-key-warning strong {
	color: #163a5c;
}

/* Server info page */
.info-section {
	margin-bottom: 24px;
}

.info-section h2 {
	font-family: var(--font-heading);
	font-size: 18px;
	color: var(--color-heading);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-bottom: 2px solid var(--color-panel-separator);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.info-list {
	margin: 0;
	padding-left: 20px;
	line-height: 1.8;
	font-size: 13px;
}

.wiki-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.wiki-card-static {
	padding: 12px 14px;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	background: rgba(255,255,255,0.55);
}

.wiki-card-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 4px;
}

.wiki-card-desc {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.45;
}

code {
	background: rgba(0,0,0,0.06);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}


/* Character profile header — outfit | name | flag in one row */
#characterProfileTable .profile-header th {
	padding: 10px 14px;
	text-transform: none;
	letter-spacing: normal;
}

.profile-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 68px;
}

.profile-header__outfit,
.profile-header__flag {
	flex: 0 0 64px;
	width: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.profile-header__outfit--empty,
.profile-header__flag--empty {
	visibility: hidden;
}

.profile-header__outfit img {
	display: block;
	max-width: 64px;
	max-height: 64px;
	width: auto;
	height: auto;
	image-rendering: pixelated;
}

.profile-header__flag img {
	display: block;
	width: 28px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-header__name {
	flex: 1 1 auto;
	margin: 0;
	padding: 0 8px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--color-primary-dark);
	text-transform: none;
	letter-spacing: 0.02em;
	line-height: 1.2;
	word-break: break-word;
}

.postHolder iframe { display: block; margin: auto; border-radius: var(--radius); }

.youtube .aspectratio {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
}
.youtube .aspectratio iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}

#countDownTimer {
	color: var(--color-primary);
	font-weight: 700;
	padding: 0 12px;
}

.outfitColumn img {
	image-rendering: pixelated;
	max-height: 64px;
}

/* Character profile outfit grid */
#piv_o_container .outfit-cell img {
	transition: opacity 0.15s ease, filter 0.15s ease;
}
#piv_o_container .outfit-cell.grayimg:hover img {
	opacity: 0.5;
}
#piv_o_container .outfit-cell.owned:hover img {
	opacity: 1;
}

/* Wiki body content area */
.wiki-body {
	background: rgba(255, 255, 255, 0.28);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	box-shadow: var(--shadow);
}

.wiki-hero-title {
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 700;
	color: var(--color-heading);
	margin: 0 0 8px;
	letter-spacing: 0.5px;
}

.wiki-hero-sub {
	font-size: 13px;
	color: var(--color-text-muted);
	margin: 0 0 14px;
	line-height: 1.7;
	max-width: 600px;
}

.wiki-muted {
	font-size: 13px;
	color: var(--color-text-muted);
	margin: 0 0 14px;
}

.wiki-sidebar .well {
	background: rgba(255, 255, 255, 0.55);
}

/* Helpdesk */
.helpdesk-page { max-width: 100%; }
.helpdesk-header { margin-bottom: 18px; }
.helpdesk-header h1 {
	font-family: var(--font-heading);
	font-size: 28px;
	color: var(--color-heading);
	margin: 0 0 6px;
	text-transform: uppercase;
}
.helpdesk-subtitle {
	color: var(--color-text-muted);
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 10px;
}
.helpdesk-back {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
}
.helpdesk-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 16px;
}
.helpdesk-card {
	background: rgba(255,255,255,0.55);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 18px 20px;
}
.helpdesk-card h2 {
	font-family: var(--font-heading);
	font-size: 16px;
	color: var(--color-primary-dark);
	margin: 0 0 14px;
	text-transform: uppercase;
}
.helpdesk-form .helpdesk-field { margin-bottom: 14px; }
.helpdesk-form label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.helpdesk-form input[type="text"],
.helpdesk-form input[type="email"],
.helpdesk-form textarea,
.helpdesk-form select {
	width: 100%;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 10px 12px;
	font-size: 13px;
	background: rgba(255,255,255,0.85);
}
.helpdesk-form select {
	cursor: pointer;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--color-primary-dark) 50%), linear-gradient(135deg, var(--color-primary-dark) 50%, transparent 50%);
	background-position: calc(100% - 16px) calc(50% + 2px), calc(100% - 11px) calc(50% + 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 32px;
}
.helpdesk-form input:disabled {
	opacity: 0.75;
	background: rgba(240,245,250,0.9);
}
.helpdesk-field-note {
	font-size: 11px;
	color: var(--color-text-muted);
	margin: 4px 0 0;
}
.helpdesk-submit,
.helpdesk-btn-secondary,
.helpdesk-btn-danger,
input[type="submit"].helpdesk-submit,
input[type="submit"].helpdesk-btn-secondary,
input[type="submit"].helpdesk-btn-danger,
button.helpdesk-submit,
button.helpdesk-btn-secondary,
button.helpdesk-btn-danger {
	border: 1px solid transparent;
	border-radius: var(--radius);
	padding: 9px 16px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
.helpdesk-submit,
input[type="submit"].helpdesk-submit,
button.helpdesk-submit {
	background: var(--color-primary);
	border-color: var(--color-primary-dark);
	color: #fff;
}
.helpdesk-submit:hover,
input[type="submit"].helpdesk-submit:hover,
button.helpdesk-submit:hover {
	background: var(--color-primary-dark);
	border-color: #0f3d5c;
	color: #fff;
}
.helpdesk-btn-secondary,
input[type="submit"].helpdesk-btn-secondary,
button.helpdesk-btn-secondary {
	background: #5a6c7d;
	border-color: #4a5a68;
	color: #fff;
}
.helpdesk-btn-secondary:hover,
input[type="submit"].helpdesk-btn-secondary:hover,
button.helpdesk-btn-secondary:hover {
	background: #4a5a68;
	border-color: #3d4a56;
	color: #fff;
}
.helpdesk-btn-danger,
input[type="submit"].helpdesk-btn-danger,
button.helpdesk-btn-danger {
	background: #c0392b;
	border-color: #962d22;
	color: #fff;
}
.helpdesk-btn-danger:hover,
input[type="submit"].helpdesk-btn-danger:hover,
button.helpdesk-btn-danger:hover {
	background: #962d22;
	border-color: #7a2419;
	color: #fff;
}
.helpdesk-btn-sm,
input[type="submit"].helpdesk-btn-sm,
button.helpdesk-btn-sm {
	padding: 6px 12px;
	font-size: 11px;
}
.helpdesk-empty {
	color: var(--color-text-muted);
	font-size: 13px;
	margin: 0;
}
.helpdesk-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.helpdesk-ticket-row {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	background: rgba(255,255,255,0.7);
	text-decoration: none;
	color: inherit;
}
.helpdesk-ticket-row:hover { background: var(--accent-glow); }
.helpdesk-ticket-row.is-waiting { border-left: 4px solid #e67e22; }
.helpdesk-ticket-row-top,
.helpdesk-ticket-row-subject,
.helpdesk-ticket-row-date { display: block; }
.helpdesk-ticket-row-subject { font-weight: 600; margin: 4px 0; }
.helpdesk-ticket-row-date { font-size: 11px; color: var(--color-text-muted); }
.ticket-status {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	letter-spacing: 0.3px;
}
.ticket-status-open { background: #d4edda; color: #155724; }
.ticket-status-waiting { background: #fff3cd; color: #856404; }
.ticket-status-replied { background: #cce5ff; color: #004085; }
.ticket-status-closed { background: #e2e3e5; color: #383d41; }
.helpdesk-thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
	max-height: 420px;
	overflow-y: auto;
	padding-right: 4px;
}
.helpdesk-live-note {
	font-size: 11px;
	color: var(--color-text-muted);
	margin: 8px 0 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.helpdesk-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
	animation: helpdesk-pulse 2s infinite;
}
@keyframes helpdesk-pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
.helpdesk-message {
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
	background: rgba(255,255,255,0.7);
}
.helpdesk-message-staff {
	border-left: 4px solid var(--color-primary);
	background: rgba(230,240,255,0.75);
}
.helpdesk-message-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 11px;
	margin-bottom: 8px;
	color: var(--color-text-muted);
}
.helpdesk-message-body { font-size: 13px; line-height: 1.6; }
.helpdesk-admin-actions { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.helpdesk-admin-action-form { display: inline; margin: 0; }

/* Admin live ticket bubble */
.admin-ticket-bubble {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
}
.admin-ticket-bubble-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 0;
	background: var(--color-primary);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	position: relative;
}
.admin-ticket-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
}
.admin-ticket-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: 360px;
	max-height: 520px;
	background: #fff;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 40px rgba(0,0,0,0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.admin-ticket-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	background: var(--color-primary);
	color: #fff;
}
.admin-ticket-panel[hidden],
.admin-ticket-panel.is-closed {
	display: none !important;
}

.admin-ticket-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}
.admin-ticket-panel-body {
	padding: 12px;
	overflow-y: auto;
	max-height: 460px;
}
.admin-ticket-hint,
.admin-ticket-note,
.admin-ticket-footer-link {
	font-size: 11px;
	color: var(--color-text-muted);
}
.admin-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.admin-ticket-item {
	text-align: left;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 10px;
	background: #f8fbff;
	cursor: pointer;
}
.admin-ticket-item.is-waiting { border-left: 4px solid #e67e22; }
.admin-ticket-item-top,
.admin-ticket-item-subject,
.admin-ticket-item-meta { display: block; }
.admin-ticket-item-subject { font-weight: 600; margin: 4px 0; }
.admin-ticket-item-meta { font-size: 11px; color: var(--color-text-muted); }
.admin-ticket-hint-history {
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px solid var(--color-panel-border);
}

.admin-ticket-item.is-closed {
	opacity: 0.85;
}
.admin-ticket-back {
	border: 0;
	background: transparent;
	color: var(--color-primary-dark);
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 8px;
	padding: 0;
}
.admin-ticket-thread-meta h4 { margin: 0 0 6px; font-size: 14px; }
.admin-ticket-thread-messages {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0;
	max-height: 220px;
	overflow-y: auto;
}
.admin-ticket-msg {
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 8px 10px;
	font-size: 12px;
}
.admin-ticket-msg-staff { background: #eef5ff; border-left: 3px solid var(--color-primary); }
.admin-ticket-msg-head { font-size: 10px; color: var(--color-text-muted); margin-bottom: 4px; }
.admin-ticket-reply-form textarea {
	width: 100%;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 8px;
	font-size: 12px;
	resize: vertical;
}
.admin-ticket-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}
.admin-ticket-send,
.admin-ticket-close-ticket {
	border: 0;
	border-radius: var(--radius);
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}
.admin-ticket-send { background: var(--color-primary); color: #fff; }
.admin-ticket-close-ticket { background: #6c757d; color: #fff; }

/* Create character */
.create-character-page .create-char-card {
	max-width: 520px;
}
.create-char-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
	margin-bottom: 6px;
}
.create-char-form .helpdesk-field { margin-bottom: 16px; }
.create-char-slots {
	margin: 0 0 14px;
	padding: 8px 10px;
	background: var(--bg-info);
	border: 1px solid var(--border-info);
	border-radius: var(--radius);
}
.create-char-submit {
	min-width: 180px;
	margin-top: 4px;
}
.create-char-success { margin-bottom: 14px; }
.create-char-actions { margin: 0; }

/* Register page */
.register-page .helpdesk-header { margin-bottom: 20px; }
.register-grid {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: start;
}
.register-form-card h2,
.register-rules-card h2 {
	margin-top: 0;
}
.register-password-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.register-password-hint {
	margin: -6px 0 14px;
}
.register-form .helpdesk-field { margin-bottom: 16px; }
.register-rules-list {
	margin: 0 0 14px;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--color-text);
}
.register-rules-list li { margin-bottom: 8px; }
.register-rules-list li:last-child { margin-bottom: 0; }
.register-rules-note {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.55;
	color: #991b1b;
	padding: 12px 14px;
	background: #fee2e2;
	border: 1px solid #f87171;
	border-left: 4px solid #dc2626;
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}
.register-rules-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 18px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.5);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text);
}
.register-rules-check input {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--color-primary);
	cursor: pointer;
}
.register-rules-check a { font-weight: 600; }
.register-submit {
	min-width: 180px;
	margin-top: 0;
}
.register-captcha { margin-bottom: 16px; }
.register-errors { margin-bottom: 16px; }
.register-errors ul { margin: 0; padding-left: 18px; }
.register-success { margin-bottom: 16px; }
.register-page-actions { margin: 0 0 8px; }
.register-page-help {
	margin: 14px 0 0;
	text-align: left;
	font-size: 13px;
}
.register-info-card p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-text);
}
.register-info-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.register-grid { grid-template-columns: 1fr; }
	.register-password-grid { grid-template-columns: 1fr; }
}

/* Cookie consent (GDPR) */
body.cookie-consent-open {
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0));
	background: rgba(16, 34, 50, 0.97);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.24);
	color: #e8eef3;
	transform: translateY(110%);
	transition: transform 0.28s ease;
	backdrop-filter: blur(8px);
}
.cookie-consent.is-visible {
	transform: translateY(0);
}
.cookie-consent__inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
}
.cookie-consent__main {
	flex: 1 1 320px;
	min-width: 0;
}
.cookie-consent__title {
	margin: 0 0 4px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.cookie-consent__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #c5d4dc;
}
.cookie-consent__text a {
	color: #8ecdf5;
	font-weight: 600;
	text-decoration: none;
}
.cookie-consent__text a:hover {
	text-decoration: underline;
}
.cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}
.cookie-consent__btn {
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 9px 14px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cookie-consent__btn--primary {
	background: var(--color-primary);
	border-color: var(--color-primary-dark);
	color: #fff;
}
.cookie-consent__btn--primary:hover {
	background: var(--color-primary-dark);
}
.cookie-consent__btn--secondary {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}
.cookie-consent__btn--secondary:hover {
	background: rgba(255, 255, 255, 0.16);
}
.cookie-consent__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
	color: #b8c9d4;
}
.cookie-consent__btn--ghost:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

/* Browser notification prompt */
body.retrodus-notify-prompt-open {
	padding-top: env(safe-area-inset-top, 0);
}
.retrodus-notify-prompt {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10060;
	padding: 10px 12px;
	background: linear-gradient(180deg, #1a3550 0%, #152a3f 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
	color: #e8eef3;
	transform: translateY(-110%);
	transition: transform 0.28s ease;
}
.retrodus-notify-prompt.is-visible {
	transform: translateY(0);
}
.retrodus-notify-prompt__inner {
	max-width: 980px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px 16px;
	position: relative;
	padding-right: 28px;
}
.retrodus-notify-prompt__icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(126, 200, 240, 0.16);
	color: #8ecdf5;
	font-size: 16px;
}
.retrodus-notify-prompt__body {
	flex: 1 1 240px;
	min-width: 0;
}
.retrodus-notify-prompt__title {
	margin: 0 0 2px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.retrodus-notify-prompt__text {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #b8c9d4;
}
.retrodus-notify-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}
.retrodus-notify-prompt__btn {
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 8px 14px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}
.retrodus-notify-prompt__btn--primary {
	background: #3d8fd4;
	border-color: #2f7fbf;
	color: #fff;
}
.retrodus-notify-prompt__btn--primary:hover {
	background: #3583c4;
}
.retrodus-notify-prompt__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.22);
	color: #d5dee6;
}
.retrodus-notify-prompt__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.retrodus-notify-prompt__close {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #9fb0bd;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
}
.retrodus-notify-prompt__close:hover {
	color: #fff;
}

.cookies-page .cookies-section { margin-bottom: 14px; }
.cookies-page .cookies-section h2 {
	margin-top: 0;
	font-size: 16px;
}
.cookies-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.65;
}
.cookies-list li { margin-bottom: 8px; }

@media (max-width: 640px) {
	.cookie-consent__actions {
		width: 100%;
	}
	.cookie-consent__btn {
		flex: 1 1 calc(33.333% - 6px);
		min-width: 90px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.retrodus-notify-prompt__inner {
		flex-wrap: wrap;
		padding-right: 0;
		padding-top: 4px;
	}
	.retrodus-notify-prompt__close {
		top: 4px;
		right: 0;
		transform: none;
	}
	.retrodus-notify-prompt__actions {
		width: 100%;
	}
	.retrodus-notify-prompt__btn {
		flex: 1 1 auto;
	}
}

/* Guild logos */
.guild-logo {
	display: block;
	margin: auto;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: var(--radius);
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 4px;
}
.guild-logo-lg {
	width: 100px;
	height: 100px;
	padding: 6px;
}
#guildsTable td:first-child {
	width: 88px;
	text-align: center;
	vertical-align: middle;
}

/* Guild page */
.guild-page { margin-bottom: 20px; }
.guild-hero { margin-bottom: 14px; }
.guild-hero-main {
	display: flex;
	align-items: center;
	gap: 18px;
}
.guild-hero-text h1 {
	margin: 0 0 6px;
	font-size: 26px;
	color: var(--color-primary-dark);
}
.guild-hero-motd {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--color-text);
}
.guild-hero-stats {
	margin: 0;
	font-size: 12px;
	color: var(--color-text-muted);
}
.guild-table {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
}
.guild-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.guild-status-online { background: #d1fae5; color: #065f46; }
.guild-status-offline { background: #e2e8f0; color: #475569; }
.guild-manage { margin-top: 18px; }
.guild-manage-header h2 {
	margin: 0 0 4px;
	font-size: 20px;
	color: var(--color-primary-dark);
}
.guild-manage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin-top: 12px;
}
.guild-manage-card-wide { grid-column: 1 / -1; }
.guild-manage-card-danger,
.guild-danger-zone {
	border-color: #f5c6cb;
	background: rgba(255, 245, 245, 0.92);
}
.guild-danger-title { color: #922b21; }
.guild-danger-text {
	margin: 0 0 12px;
	font-size: 13px;
	color: #7f1d1d;
}
.guild-danger-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.guild-confirm-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 12px;
	font-size: 12px;
	color: var(--color-text);
	cursor: pointer;
}
.guild-confirm-check input { margin-top: 2px; }
.guild-rank-grid,
.guild-war-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}
.guild-inline-form {
	display: inline-block;
	margin: 6px 6px 0 0;
}
.guild-war-info { text-align: center; font-size: 12px; }
.guild-leave-card { margin-top: 14px; }
.guild-members-card,
.guild-invites-card,
.guild-war-overview-card { margin-bottom: 14px; }
.guild-table-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.guild-table .guild-inline-form {
	display: inline;
	margin: 0;
}

.guild-create-card { margin-top: 14px; }
.guild-create-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 4px;
}

/* Success page */
.success-page { max-width: 560px; margin: 0 auto 24px; }
.success-card { text-align: center; padding: 28px 24px 24px; }
.success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bg-success);
	color: var(--color-success);
	border: 2px solid var(--border-success);
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 14px;
}
.success-title {
	margin: 0 0 8px;
	font-size: 24px;
	color: var(--color-primary-dark);
}
.success-message {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.5;
}
.success-details {
	list-style: none;
	margin: 0 0 20px;
	padding: 12px 14px;
	text-align: left;
	background: rgba(255,255,255,0.55);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
}
.success-details li {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--color-text);
}
.success-details li:last-child { margin-bottom: 0; }
.success-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.success-btn-primary,
.success-btn-secondary {
	display: inline-block;
	text-decoration: none;
	text-align: center;
}

/* Player name autocomplete */
.player-autocomplete {
	position: relative;
}
.player-autocomplete-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.player-autocomplete-item {
	display: block;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--color-panel-separator);
	background: transparent;
	text-align: left;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--color-text);
	cursor: pointer;
}
.player-autocomplete-item:last-child { border-bottom: 0; }
.player-autocomplete-item:hover,
.player-autocomplete-item.is-active {
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary-dark);
}

/* Homepage news + changelog feed */
.home-changelog {
	margin-bottom: 18px;
	padding: 14px 16px 12px;
	background: linear-gradient(135deg, rgba(31, 127, 184, 0.14) 0%, rgba(255, 255, 255, 0.78) 100%);
	border: 1px solid rgba(31, 127, 184, 0.35);
	border-left: 4px solid var(--color-primary);
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(20, 85, 124, 0.1);
}

.home-changelog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(31, 127, 184, 0.22);
}

.home-changelog__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.home-changelog__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--color-primary);
	color: #fff;
	line-height: 1;
}

.home-changelog__heading {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary-dark);
	line-height: 1.2;
}

.home-changelog__more {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-primary-dark);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(31, 127, 184, 0.35);
	border-radius: var(--radius);
	transition: background 0.15s ease, color 0.15s ease;
}

.home-changelog__more:hover {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.changelog-feed {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.changelog-item--expandable-wrap {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: start;
	padding: 0;
	background: transparent;
	border: 0;
}

.changelog-item--expandable-wrap .changelog-item--expandable {
	display: block;
	min-width: 0;
}

.changelog-item--line,
.changelog-item--expandable > summary {
	display: grid;
	grid-template-columns: 158px 1fr;
	gap: 12px;
	align-items: center;
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.45;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(31, 127, 184, 0.15);
	border-radius: calc(var(--radius) - 2px);
}

.changelog-item--expandable > summary {
	list-style: none;
	cursor: pointer;
}

.changelog-item--expandable > summary::-webkit-details-marker { display: none; }

.changelog-item--expandable > summary:hover {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(31, 127, 184, 0.3);
}

.changelog-item--expandable > summary:hover .changelog-item__preview {
	color: var(--color-primary-dark);
}

.changelog-item--expandable[open] > summary {
	border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
	margin-bottom: 0;
}

.changelog-item__time {
	font-size: 11px;
	font-weight: 600;
	color: var(--color-primary-dark);
	white-space: nowrap;
	padding: 4px 8px;
	background: rgba(31, 127, 184, 0.12);
	border-radius: calc(var(--radius) - 2px);
	justify-self: start;
}

.changelog-item__text,
.changelog-item__preview {
	color: var(--color-text);
	font-weight: 500;
}

.changelog-item__preview {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.changelog-item__full {
	font-size: 12px;
	line-height: 1.55;
	color: var(--color-text);
	padding: 8px 10px 10px;
	margin: 0 0 6px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(31, 127, 184, 0.15);
	border-top: 0;
	border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

.changelog-more {
	display: none;
}

.home-admin-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--color-panel-separator);
}

.home-admin-actions--inline {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	justify-content: flex-end;
	align-self: center;
}

.changelog-item--line {
	grid-template-columns: 158px 1fr auto;
}

.changelog-item--line .home-admin-actions--inline {
	grid-column: 3;
}

.home-admin-form {
	margin: 0;
}

.home-admin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 1px solid rgba(31, 127, 184, 0.35);
	border-radius: calc(var(--radius) - 2px);
	background: rgba(255, 255, 255, 0.9);
	color: var(--color-primary-dark);
	cursor: pointer;
}

.home-admin-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.home-admin-btn--danger {
	border-color: rgba(185, 28, 28, 0.35);
	color: #b91c1c;
}

.home-admin-btn--danger:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
}

.home-admin-alert {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: var(--radius);
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #166534;
	font-size: 12px;
	font-weight: 600;
}

.home-admin-alert--error {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.35);
	color: #991b1b;
}

.home-news { margin-top: 0; }

.home-news__head {
	margin-bottom: 14px;
}

.home-news__heading {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-muted);
	margin: 0 0 4px;
	text-transform: none;
}

.home-news__sub,
.home-news__back {
	font-size: 12px;
	color: var(--color-text-muted);
	margin: 0;
}

.news-feed { display: flex; flex-direction: column; gap: 10px; }

.news-card {
	background: rgba(255, 255, 255, 0.42);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: none;
}

.news-card--featured {
	border-color: var(--color-panel-border);
	box-shadow: none;
}

.news-card__hero {
	background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
	line-height: 0;
	padding: 0;
}

.news-card__hero img {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	display: block;
}

.news-card__hero a { display: block; }

.news-card__details > summary,
.news-card__static { padding: 12px 14px; }

.news-card__details > summary {
	list-style: none;
	cursor: pointer;
}

.news-card__details > summary::-webkit-details-marker { display: none; }

.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--color-text-muted);
	margin-bottom: 6px;
}

.news-card__meta time { font-weight: 500; color: var(--color-text-muted); }

.news-card__dot { opacity: 0.5; }

.news-card__author a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}

.news-card__title {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-heading);
	margin: 0 0 6px;
}

.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--color-primary); }

.news-card--featured .news-card__title { font-size: 15px; }

.news-card__excerpt {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--color-text);
}

.news-card__body {
	padding: 0;
}

.news-card__static .news-card__body {
	margin-top: 4px;
}

.news-card__content {
	font-size: 12px;
	line-height: 1.65;
	color: var(--color-text);
}

.news-card__content p { margin: 0 0 10px; }
.news-card__content p:last-child { margin-bottom: 0; }
.news-card__content strong { font-weight: 700; color: var(--color-heading); }
.news-card__content a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}
.news-card__content a:hover { text-decoration: underline; }
.news-card__content ul.news-bb-list,
.news-card__content ul {
	margin: 8px 0 10px 18px;
	padding: 0;
}
.news-card__content li { margin-bottom: 4px; }

.news-card__inline-image img,
.news-bb-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin: 8px 0 12px;
	display: block;
	object-fit: contain;
}

.news-card__permalink {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 600;
}

.news-bb-center { text-align: center; }

.news-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.news-pagination__btn,
.news-pagination__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 34px;
	padding: 0 12px;
	border-radius: var(--radius);
	border: 1px solid var(--color-panel-border);
	background: rgba(255, 255, 255, 0.7);
	color: var(--color-primary-dark);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.news-pagination__page.is-active {
	background: var(--color-primary);
	border-color: var(--color-primary-dark);
	color: #fff;
}

.news-pagination__btn--disabled {
	opacity: 0.45;
	pointer-events: none;
}

.news-pagination__pages { display: flex; gap: 6px; flex-wrap: wrap; }

.news-pagination__meta {
	text-align: center;
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--color-text-muted);
}

.news-empty {
	padding: 24px;
	text-align: center;
	color: var(--color-text-muted);
	background: rgba(255, 255, 255, 0.45);
	border: 1px dashed var(--color-panel-border);
	border-radius: var(--radius-lg);
}

/* News admin editor */
.news-admin-editor {
	margin-bottom: 1.5rem;
}
.news-admin-editor h3 {
	margin-top: 0;
	font-family: var(--font-heading);
	color: var(--color-primary-dark);
	text-transform: uppercase;
}
.news-admin-editing-label {
	font-weight: 600;
	color: var(--color-primary-dark);
}
.news-admin-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 4px;
}
.news-admin-title-field {
	grid-column: 1 / -1;
}
.news-admin-form .cke,
.changelog-admin-form .cke,
.news-admin-editor-field .cke {
	border: 1px solid var(--color-panel-border) !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow);
	width: 100% !important;
}
.news-admin-form .cke_chrome,
.changelog-admin-form .cke_chrome,
.news-admin-editor-field .cke_chrome {
	width: 100% !important;
}
.news-admin-form .cke_top,
.changelog-admin-form .cke_top,
.news-admin-editor-field .cke_top {
	border-bottom: 1px solid var(--color-panel-border) !important;
}
.news-admin-form .cke_contents,
.changelog-admin-form .cke_contents,
.news-admin-editor-field .cke_contents {
	min-height: 280px;
}
.news-admin-editor-field textarea,
.changelog-admin-form textarea {
	width: 100%;
	min-height: 280px;
	display: block;
}
.cke_dialog {
	z-index: 10100 !important;
}
.cke {
	z-index: 2;
}
.news-admin-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.news-admin-edit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 12px;
	text-decoration: none !important;
}
.news-admin-table .news-admin-row--active {
	background: rgba(31, 127, 184, 0.12) !important;
}
.news-admin-lang {
	display: inline-block;
	min-width: 28px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(31, 127, 184, 0.12);
	color: var(--color-primary-dark);
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.04em;
}

.shop-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}
.shop-category-nav .nav_link {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: var(--radius);
	background: rgba(31, 127, 184, 0.12);
	color: var(--anchor);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.shop-category-nav .nav_link:hover {
	background: rgba(31, 127, 184, 0.22);
}
.shop-offers-card {
	margin-top: 1rem;
}
.shop-offers-table {
	width: 100%;
	margin-top: 0.5rem;
}
.shop-offers-table img {
	vertical-align: middle;
}
.shop-offers-table .hide {
	display: none;
}
.shop-points-card p {
	margin: 0.25rem 0;
}
a.shop-ingame-btn {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	background: #1f7fb8;
	color: #fff !important;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
a.shop-ingame-btn:hover {
	background: #166391;
	text-decoration: none;
}

/* Admin panel (sidebar + pages) */
.admin-panel-widget {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(22, 99, 145, 0.18);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 14px;
}
.admin-panel-widget__header {
	padding: 12px 14px 10px;
	border-bottom: 1px solid rgba(22, 99, 145, 0.1);
	background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,250,255,0.9));
}
.admin-panel-widget__title {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-heading);
	letter-spacing: 0.4px;
	text-transform: uppercase;
}
.admin-panel-widget__body { padding: 12px; }
.admin-panel-widget__featured {
	display: block;
	padding: 12px 14px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: linear-gradient(135deg, #166391, #1f7fb8);
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(22, 99, 145, 0.22);
}
.admin-panel-widget__featured:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
}
.admin-panel-widget__featured-title {
	display: block;
	font-weight: 700;
	font-size: 13px;
}
.admin-panel-widget__featured-sub {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	opacity: 0.9;
}
.admin-panel-widget__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.admin-panel-widget__grid a {
	display: block;
	padding: 9px 8px;
	border-radius: 10px;
	border: 1px solid rgba(22, 99, 145, 0.14);
	background: rgba(255,255,255,0.85);
	color: var(--color-primary-dark);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	line-height: 1.25;
}
.admin-panel-widget__grid a:hover {
	background: var(--accent-glow);
	text-decoration: none;
}
.admin-panel-widget__grid--user .admin-panel-widget__logout {
	grid-column: 1 / -1;
	background: rgba(255,245,245,0.95);
	border-color: rgba(180, 40, 40, 0.18);
	color: #8f1f1f;
}
.admin-panel-widget__badge {
	display: inline-block;
	min-width: 18px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #d64545;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.admin-top-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255,255,255,0.72);
	border: 1px solid rgba(22, 99, 145, 0.12);
	box-shadow: var(--shadow);
}
.admin-top-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(22, 99, 145, 0.12);
	color: var(--color-primary-dark);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.admin-top-nav__link:hover,
.admin-top-nav__link.is-active {
	background: #166391;
	border-color: #166391;
	color: #fff;
	text-decoration: none;
}
.admin-top-nav__badge {
	display: inline-block;
	min-width: 18px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #d64545;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.admin-page .admin-search-card { margin-bottom: 16px; }
.admin-search-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-heading);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.admin-search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.admin-search-form__row input[type="text"] {
	flex: 1 1 280px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(22, 99, 145, 0.18);
	font-size: 14px;
}
.admin-search-form__submit {
	padding: 12px 18px;
	border: 0;
	border-radius: 12px;
	background: #166391;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.admin-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.admin-stat-card {
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255,255,255,0.82);
	border: 1px solid rgba(22, 99, 145, 0.12);
	box-shadow: var(--shadow);
}
.admin-stat-card__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-text-muted);
}
.admin-stat-card__value {
	margin-top: 6px;
	font-size: 28px;
	font-weight: 700;
	color: var(--color-heading);
	line-height: 1;
}
.admin-stat-card__meta {
	margin-top: 6px;
	font-size: 12px;
	color: var(--color-text-muted);
}
.admin-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.admin-meta-table td:first-child,
.admin-meta-table th:first-child {
	width: 38%;
	color: var(--color-text-muted);
	font-weight: 600;
}
.admin-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.admin-action-btn {
	display: inline-block;
	padding: 9px 14px;
	border-radius: 10px;
	background: #166391;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}
.admin-action-btn--ghost {
	background: rgba(255,255,255,0.9);
	color: var(--color-primary-dark) !important;
	border: 1px solid rgba(22, 99, 145, 0.18);
}
.admin-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(22, 99, 145, 0.1);
	color: var(--color-primary-dark);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}
.admin-tag--online {
	background: rgba(34, 150, 78, 0.14);
	color: #1d7a41;
}
.admin-inline-link {
	font-size: 12px;
	font-weight: 700;
}
.admin-characters-table__actions {
	white-space: nowrap;
}
.admin-characters-table__actions .admin-inline-link + .admin-inline-link {
	margin-left: 8px;
}
.admin-characters-table__row--focus {
	background: rgba(31, 127, 184, 0.12);
}
.admin-characters-table__row--focus td {
	border-top: 1px solid rgba(22, 99, 145, 0.2);
	border-bottom: 1px solid rgba(22, 99, 145, 0.2);
}
.admin-context-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(22,99,145,0.12), rgba(31,127,184,0.08));
	border: 1px solid rgba(22, 99, 145, 0.18);
}
.admin-context-bar__label {
	padding: 4px 8px;
	border-radius: 999px;
	background: #166391;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.admin-context-bar a {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-primary-dark);
}
.admin-highscore-link {
	margin-left: 4px;
	font-size: 12px;
	opacity: 0.65;
	text-decoration: none;
}
.admin-highscore-link:hover { opacity: 1; }
.admin-legacy-card .admin-legacy-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.admin-legacy-card .admin-legacy-list > li {
	padding: 14px 0;
	border-top: 1px solid rgba(22, 99, 145, 0.1);
}
.admin-legacy-card .admin-legacy-list > li:first-child { border-top: 0; padding-top: 0; }
.admin-legacy-card input[type="text"],
.admin-legacy-card select {
	margin: 4px 6px 4px 0;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(22, 99, 145, 0.18);
}
.admin-legacy-card input[type="submit"] {
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: #166391;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 900px) {
	.guild-hero-main { flex-direction: column; text-align: center; }
	.guild-manage-grid { grid-template-columns: 1fr; }
	.guild-manage-card-wide { grid-column: auto; }
}

@media (max-width: 900px) {
	.helpdesk-grid { grid-template-columns: 1fr; }
	.admin-ticket-panel { width: calc(100vw - 44px); }
	.admin-stat-grid,
	.admin-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Modern sidebar (right column) ===== */
.wiki-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wiki-sidebar .sidebar-card,
.wiki-sidebar .admin-panel-widget {
	background: #ffffff;
	border: 1px solid rgba(20, 85, 124, 0.12);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(20, 50, 70, 0.14);
	margin-bottom: 0 !important;
	overflow: hidden;
}

.wiki-sidebar .sidebar-card__head,
.wiki-sidebar .admin-panel-widget__header {
	padding: 13px 16px;
	background: linear-gradient(135deg, #124f73 0%, #1a7cb0 100%);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	border-bottom: none;
}

.wiki-sidebar .sidebar-card__body,
.wiki-sidebar .admin-panel-widget__body {
	padding: 14px;
}

.wiki-sidebar .sidebar-card__welcome {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.4;
}

.wiki-sidebar .sidebar-featured-link,
.wiki-sidebar .admin-panel-widget__featured {
	display: block;
	margin-bottom: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0f5f8d, #1f9ad6);
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(15, 95, 141, 0.28);
}

.wiki-sidebar .sidebar-featured-link:hover,
.wiki-sidebar .admin-panel-widget__featured:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.wiki-sidebar .sidebar-featured-link__title,
.wiki-sidebar .admin-panel-widget__featured-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.wiki-sidebar .sidebar-featured-link__title .fa,
.wiki-sidebar .sidebar-featured-link__sub .fa {
	margin-right: 6px;
}

.wiki-sidebar .sidebar-featured-link__sub,
.wiki-sidebar .admin-panel-widget__featured-sub {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	opacity: 0.92;
}

.wiki-sidebar .sidebar-btn-grid,
.wiki-sidebar .admin-panel-widget__grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wiki-sidebar .sidebar-btn-grid a,
.wiki-sidebar .admin-panel-widget__grid a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 10px 8px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(20, 85, 124, 0.14) !important;
	background: #f4f9fc !important;
	color: #14557c !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-align: center;
	text-decoration: none !important;
	line-height: 1.2;
	box-sizing: border-box;
}

.wiki-sidebar .sidebar-btn-grid a:hover,
.wiki-sidebar .admin-panel-widget__grid a:hover {
	background: #e3f2fa !important;
	border-color: rgba(20, 85, 124, 0.28) !important;
	color: #0f5f8d !important;
}

.wiki-sidebar .sidebar-btn-grid--user .sidebar-btn-logout,
.wiki-sidebar .admin-panel-widget__grid--user .admin-panel-widget__logout {
	grid-column: 1 / -1;
	background: #fff4f4 !important;
	border-color: rgba(180, 40, 40, 0.2) !important;
	color: #9b2323 !important;
}

.wiki-sidebar .sidebar-btn-wide {
	grid-column: 1 / -1;
}

.wiki-sidebar .sidebar-badge,
.wiki-sidebar .admin-panel-widget__badge {
	display: inline-block;
	min-width: 18px;
	margin-left: 4px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #e04b4b;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	vertical-align: middle;
}

.wiki-sidebar .sidebar-input,
.wiki-sidebar .sidebar-search-form select,
.wiki-sidebar .sidebar-search-form input[type="text"] {
	display: block;
	width: 100%;
	margin: 6px 0 10px;
	padding: 11px 12px;
	border: 1px solid rgba(20, 85, 124, 0.18);
	border-radius: 10px;
	background: #fff;
	font-size: 13px;
	color: var(--color-text);
	box-sizing: border-box;
}

.wiki-sidebar .sidebar-search-form label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--color-text-muted);
}

.wiki-sidebar .sidebar-submit-btn {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 11px 14px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #14557c, #1f7fb8);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.wiki-sidebar .sidebar-submit-btn:hover {
	filter: brightness(1.05);
}

.wiki-sidebar .sidebar-card__body--flush {
	padding: 0;
}

.wiki-sidebar .sidebar-rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wiki-sidebar .sidebar-rank-list li {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	border-bottom: 1px solid rgba(20, 85, 124, 0.08);
}

.wiki-sidebar .sidebar-rank-list li:last-child {
	border-bottom: 0;
}

.wiki-sidebar .sidebar-rank-list__pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #e8f3fa;
	color: #14557c;
	font-size: 11px;
	font-weight: 700;
}

.wiki-sidebar .sidebar-rank-list a {
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wiki-sidebar .sidebar-rank-list__meta {
	font-size: 11px;
	font-weight: 700;
	color: var(--color-text-muted);
}

.wiki-sidebar .well {
	background: #ffffff;
	border: 1px solid rgba(20, 85, 124, 0.12);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(20, 50, 70, 0.14);
}

/* Quickstart / play-now landing */
.quickstart-layout .leftPane {
	flex: 1 1 100%;
	max-width: 100%;
}

.quickstart-layout .wiki-body {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.quickstart-page {
	max-width: 1080px;
	margin: 0 auto;
}

.quickstart-hero {
	margin: 0 0 20px;
	padding: 28px 32px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgba(20, 85, 124, 0.92) 0%, rgba(27, 48, 82, 0.96) 55%, rgba(15, 40, 62, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 18px 40px rgba(12, 35, 55, 0.28);
	color: #f4f8fb;
}

.quickstart-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.quickstart-hero h1 {
	margin: 0 0 10px;
	font-family: var(--font-heading);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: 0.4px;
	color: #fff;
}

.quickstart-lead {
	margin: 0;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.quickstart-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 18px;
	align-items: start;
	margin-bottom: 18px;
}

.quickstart-panel {
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
	padding: 22px 24px;
	box-shadow: var(--shadow);
}

.quickstart-panel h2 {
	margin: 0 0 14px;
	font-family: var(--font-heading);
	font-size: 18px;
	color: var(--color-primary-dark);
	text-transform: uppercase;
}

.quickstart-checklist {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.quickstart-checklist li {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid rgba(20, 85, 124, 0.1);
}

.quickstart-checklist li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.quickstart-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--color-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.quickstart-checklist strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	color: var(--color-heading);
}

.quickstart-checklist p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--color-text-muted);
}

.quickstart-perks {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--bg-info);
	border: 1px solid var(--border-info);
	font-size: 13px;
	line-height: 1.6;
}

.quickstart-muted {
	margin: 0;
	font-size: 13px;
	color: var(--color-text-muted);
}

.quickstart-fieldset {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.quickstart-fieldset legend {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 1px solid rgba(20, 85, 124, 0.12);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

.quickstart-password-grid,
.quickstart-char-grid {
	display: grid;
	gap: 14px;
}

.quickstart-password-grid {
	grid-template-columns: 1fr 1fr;
}

.quickstart-char-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quickstart-form .helpdesk-field {
	margin-bottom: 14px;
}

.quickstart-rules {
	margin: 4px 0 16px;
}

.quickstart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.quickstart-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.quickstart-btn-primary {
	background: linear-gradient(180deg, #1f7ab0 0%, #14557c 100%);
	color: #fff;
	border-color: #0f4566;
	box-shadow: 0 8px 18px rgba(20, 85, 124, 0.28);
}

.quickstart-btn-primary:hover {
	color: #fff;
	box-shadow: 0 10px 22px rgba(20, 85, 124, 0.34);
}

.quickstart-btn-secondary {
	background: rgba(255, 255, 255, 0.9);
	color: var(--color-primary-dark);
	border-color: rgba(20, 85, 124, 0.22);
}

.quickstart-btn-secondary:hover {
	color: var(--color-primary-dark);
	background: #fff;
}

.quickstart-btn-ghost {
	background: transparent;
	color: var(--color-primary);
	border-color: rgba(20, 85, 124, 0.18);
}

.quickstart-submit {
	width: 100%;
	border: 0;
}

.quickstart-errors {
	margin-bottom: 16px;
}

.quickstart-success-panel {
	text-align: center;
	padding: 36px 28px;
	margin-bottom: 18px;
}

.quickstart-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 32px;
	font-weight: 700;
}

.quickstart-success-panel h2 {
	margin: 0 0 10px;
	font-family: var(--font-heading);
	font-size: 28px;
	color: var(--color-heading);
	text-transform: none;
}

.quickstart-success-panel p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--color-text);
}

.quickstart-steps {
	max-width: 420px;
	margin: 20px auto;
	text-align: left;
	padding: 16px 18px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(20, 85, 124, 0.12);
}

.quickstart-steps h3 {
	margin: 0 0 10px;
	font-size: 14px;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

.quickstart-steps ol {
	margin: 0;
	padding-left: 20px;
	font-size: 13px;
	line-height: 1.65;
}

.quickstart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
}

.quickstart-logged-panel {
	text-align: center;
	margin-bottom: 18px;
}

.quickstart-rules-panel {
	margin-bottom: 18px;
}

.quickstart-community {
	margin-top: 8px;
	padding: 22px 24px;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius-lg);
}

.quickstart-community h2 {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-size: 18px;
	color: var(--color-primary-dark);
	text-transform: uppercase;
}

.quickstart-community-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.quickstart-community-card {
	display: grid;
	gap: 4px;
	padding: 16px 14px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(20, 85, 124, 0.12);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quickstart-community-card:hover {
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(20, 85, 124, 0.28);
	box-shadow: 0 10px 22px rgba(20, 50, 70, 0.12);
}

.quickstart-community-card strong {
	font-size: 14px;
	color: var(--color-heading);
}

.quickstart-community-card span:last-child {
	font-size: 12px;
	line-height: 1.45;
	color: var(--color-text-muted);
}

.quickstart-community-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 4px;
	border-radius: 10px;
	background: #e8f3fa;
	color: #14557c;
	font-size: 16px;
}

.shop-audit-table {
	font-size: 12px;
}
.shop-audit-table td,
.shop-audit-table th {
	white-space: nowrap;
}
.helpdesk-card .shop-audit-table {
	display: block;
	overflow-x: auto;
	max-width: 100%;
}
	.quickstart-grid,
	.quickstart-community-grid {
		grid-template-columns: 1fr;
	}

	.quickstart-password-grid,
	.quickstart-char-grid {
		grid-template-columns: 1fr;
	}

	.quickstart-hero {
		padding: 22px 20px;
	}
}
