/* ============================================================================
   ESA GAMES — GAME PANEL  ·  "NEXUS" dark premium gaming UI
   ----------------------------------------------------------------------------
   Replaces csa-skinblue.css + csa-admin.css entirely.
   Loaded after: bootstrap.css, font-awesome, datatables, sweetalert2.
   Functional hooks kept for csa-panel.js:
     body.sidebar-mini / .sidebar-collapse / .sidebar-open
     .main-header  .main-sidebar  .sidebar  .sidebar-menu  .treeview(-menu)
     .content-wrapper  [data-toggle=offcanvas]
   ----------------------------------------------------------------------------
   INDEX
     01 tokens          02 base/reset        03 pace loader
     04 app layout      05 sidebar           06 topbar
     07 content header  08 cards/panels      09 buttons
     10 forms           11 tabs              12 tables/datatables
     13 badges/status   14 alerts            15 dropdowns
     16 modals/dialogs  17 sweetalert        18 tooltips/pagination
     19 dashboard       20 server hero       21 terminal console
     22 file manager    23 auth (login)      24 lockscreen
     25 empty states    26 legacy helpers    27 animations
     28 responsive
   ========================================================================== */

/* ====================== 01 · DESIGN TOKENS ====================== */
:root {
	--bg0: #04060b;
	--bg1: #070b13;
	--bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(23, 215, 115, .07), transparent 60%),
	           radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 238, .05), transparent 60%),
	           var(--bg1);
	--surface: #0b1120;
	--surface-2: #0e1626;
	--raised: #131c30;
	--line: rgba(141, 163, 199, .12);
	--line-strong: rgba(141, 163, 199, .22);

	--text: #e7eef9;
	--muted: #93a3bc;
	--dim: #5f6d86;

	--acc: #17d773;
	--acc-2: #0fb15f;
	--acc-rgb: 23, 215, 115;
	--acc-ink: #04210f;
	--acc-grad: linear-gradient(135deg, #1be381 0%, #0fb15f 100%);

	--cyan: #22d3ee;
	--blue: #3fa9ff;
	--violet: #a855f7;
	--amber: #ffb224;
	--red: #ff4d5e;
	--red-2: #d92638;

	--ok: var(--acc);
	--warn: var(--amber);
	--bad: var(--red);

	--r-lg: 18px;
	--r-md: 13px;
	--r-sm: 9px;

	--sb-w: 264px;
	--sb-mini: 76px;
	--th-h: 64px;

	--font-ui: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-display: 'Space Grotesk', 'Inter', sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

	--shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .5);
	--shadow-2: 0 16px 48px -16px rgba(0, 0, 0, .65);
	--glow-acc: 0 0 0 1px rgba(var(--acc-rgb), .35), 0 0 24px -4px rgba(var(--acc-rgb), .45);

	--ease: cubic-bezier(.22, .8, .32, 1);
}

/* admin area accent swap (violet) */
body[data-area="admin"] {
	--acc: #b06bff;
	--acc-2: #8b3fe0;
	--acc-rgb: 176, 107, 255;
	--acc-ink: #220a3d;
	--acc-grad: linear-gradient(135deg, #bd7dff 0%, #8b3fe0 100%);
	--ok: #17d773;
}

/* ====================== 02 · BASE / RESET ====================== */
html { height: 100%; }
body {
	background: var(--bg-grad);
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, legend, .panel-title {
	font-family: var(--font-display);
	color: var(--text);
	letter-spacing: -.01em;
}
a { color: var(--acc); transition: color .15s var(--ease); }
a:hover, a:focus { color: #4ff0a0; text-decoration: none; }
body[data-area="admin"] a:hover, body[data-area="admin"] a:focus { color: #d2a8ff; }
hr { border-color: var(--line); }
::selection { background: rgba(var(--acc-rgb), .35); color: #fff; }
code, kbd, pre, samp, .text-mono { font-family: var(--font-mono); }
code {
	background: rgba(var(--acc-rgb), .1);
	color: var(--acc);
	border: 1px solid rgba(var(--acc-rgb), .25);
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 12px;
	word-break: break-all;
}
fieldset { border: 0; }
legend {
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-size: 17px;
	padding-bottom: 8px;
}
label { color: var(--muted); font-weight: 600; }
img { max-width: 100%; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
	background: #233048;
	border-radius: 8px;
	border: 2px solid var(--bg1);
}
::-webkit-scrollbar-thumb:hover { background: #31425f; }
* { scrollbar-width: thin; scrollbar-color: #233048 transparent; }

.text-muted { color: var(--muted) !important; }
.centered { text-align: center; }
.pointer { cursor: pointer; }
.top { margin-top: 14px; }
.fa-1-4x { font-size: 1.4em; }

noscript {
	display: block;
	background: var(--red);
	color: #fff;
	text-align: center;
	padding: 8px;
	font-weight: 700;
}

/* modern spinner — replaces the legacy ajax-loader gifs everywhere */
img[src*="ajax-loader"] {
	content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><circle cx='13' cy='13' r='10' fill='none' stroke='%231b2837' stroke-width='3'/><path d='M13 3 a10 10 0 0 1 10 10' fill='none' stroke='%2317d773' stroke-width='3' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 13 13' to='360 13 13' dur='0.7s' repeatCount='indefinite'/></path></svg>");
	width: 26px !important;
	height: 26px !important;
}
body[data-area="admin"] img[src*="ajax-loader"] {
	content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><circle cx='13' cy='13' r='10' fill='none' stroke='%231b2837' stroke-width='3'/><path d='M13 3 a10 10 0 0 1 10 10' fill='none' stroke='%23b06bff' stroke-width='3' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 13 13' to='360 13 13' dur='0.7s' repeatCount='indefinite'/></path></svg>");
}
img[src*="ajax-loader-round"] { width: 18px !important; height: 18px !important; }

/* ====================== 03 · PACE LOADER ====================== */
.pace { pointer-events: none; user-select: none; }
.pace .pace-progress {
	position: fixed;
	z-index: 3000;
	top: 0; left: 0; right: 100%;
	height: 2px;
	background: var(--acc-grad);
	box-shadow: 0 0 12px rgba(var(--acc-rgb), .8);
}
.pace-inactive { display: none; }

/* ====================== 04 · APP LAYOUT ====================== */
.wrapper { min-height: 100vh; position: relative; }

.content-wrapper {
	margin-left: var(--sb-w);
	padding: calc(var(--th-h) + 22px) 28px 28px;
	min-height: 100vh;
	transition: margin-left .28s var(--ease);
	background: transparent;
}
section.content { padding: 0; }

body.sidebar-collapse .content-wrapper { margin-left: var(--sb-mini); }

.main-footer {
	margin-left: var(--sb-w);
	transition: margin-left .28s var(--ease);
	padding: 18px 28px;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 12.5px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
body.sidebar-collapse .main-footer { margin-left: var(--sb-mini); }
.main-footer a { color: var(--muted); }
.main-footer a:hover { color: var(--acc); }

/* ====================== 05 · SIDEBAR ====================== */
.main-sidebar {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: var(--sb-w);
	z-index: 1040;
	background: linear-gradient(180deg, #0a101e 0%, #070b14 100%);
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	transition: width .28s var(--ease), transform .28s var(--ease);
	overflow: visible;
}
.main-sidebar::after { /* accent edge light */
	content: "";
	position: absolute;
	top: 0; right: -1px; bottom: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb), .35) 18%, transparent 70%);
	pointer-events: none;
}
.sidebar {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-bottom: 14px;
}

/* brand */
.sb-brand {
	display: flex;
	align-items: center;
	min-height: var(--th-h);
	padding: 0 18px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .015);
	flex-shrink: 0;
}
.sb-brand a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	width: 100%;
	overflow: hidden;
}
.sb-brand .sb-logo-glyph {
	width: 38px; height: 38px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: var(--acc-grad);
	color: var(--acc-ink);
	font-size: 18px;
	box-shadow: 0 4px 16px -4px rgba(var(--acc-rgb), .6);
}
.sb-brand .sb-logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sb-brand .sb-logo-text img { height: 18px; width: auto; max-width: 150px; object-fit: contain; object-position: left; }
.sb-brand .sb-area {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: .28em;
	color: var(--acc);
	text-transform: uppercase;
	margin-top: 4px;
	white-space: nowrap;
}

/* user card */
.user-panel {
	margin: 16px 14px 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: linear-gradient(160deg, rgba(var(--acc-rgb), .07), rgba(255, 255, 255, .015) 55%);
	display: flex;
	align-items: center;
	gap: 11px;
	flex-shrink: 0;
	overflow: hidden;
}
.user-panel .image { position: relative; flex-shrink: 0; }
.user-panel img {
	width: 40px; height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(var(--acc-rgb), .5);
	display: block;
}
.user-panel .image::after {
	content: "";
	position: absolute;
	right: -1px; bottom: -1px;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--ok);
	border: 2px solid #0a101e;
	box-shadow: 0 0 8px rgba(var(--acc-rgb), .8);
}
.user-panel .info { min-width: 0; flex: 1; }
.user-panel .info p {
	margin: 0;
	font-weight: 600;
	font-size: 13px;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.user-panel .info a,
.user-panel .info .sb-session {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--muted);
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.user-panel .info a:hover { color: var(--acc); }

/* nav menu */
.sidebar-menu {
	list-style: none;
	margin: 10px 0 0;
	padding: 0 14px;
	flex-shrink: 0;
}
.sidebar-menu > li { position: relative; margin: 2px 0; }
.sidebar-menu > li.header {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--dim);
	padding: 18px 12px 8px;
}
.sidebar-menu > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--muted);
	font-weight: 500;
	font-size: 13.5px;
	border: 1px solid transparent;
	transition: all .18s var(--ease);
	position: relative;
	overflow: hidden;
}
.sidebar-menu > li > a > .fa {
	width: 20px;
	text-align: center;
	font-size: 15px;
	flex-shrink: 0;
	transition: transform .18s var(--ease);
}
.sidebar-menu > li > a > span { flex: 1; white-space: nowrap; }
.sidebar-menu > li > a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, .04);
	border-color: var(--line);
}
.sidebar-menu > li > a:hover > .fa { transform: translateX(2px); color: var(--acc); }
.sidebar-menu > li.active > a {
	color: #fff;
	background: linear-gradient(90deg, rgba(var(--acc-rgb), .16), rgba(var(--acc-rgb), .05));
	border-color: rgba(var(--acc-rgb), .3);
}
.sidebar-menu > li.active > a::before {
	content: "";
	position: absolute;
	left: 0; top: 18%; bottom: 18%;
	width: 3px;
	border-radius: 3px;
	background: var(--acc-grad);
	box-shadow: 0 0 10px rgba(var(--acc-rgb), .9);
}
.sidebar-menu > li.active > a > .fa { color: var(--acc); }
.sidebar-menu .pull-right { transition: transform .2s var(--ease); margin-left: auto; }
.sidebar-menu li.menu-open > a .fa-angle-left { transform: rotate(-90deg); }

/* treeview submenu */
.sidebar-menu li > .treeview-menu { display: none; }
.sidebar-menu li.active > .treeview-menu { display: block; }
.treeview-menu {
	list-style: none;
	margin: 4px 0 6px;
	padding: 4px 0 4px 16px;
	position: relative;
}
.treeview-menu::before {
	content: "";
	position: absolute;
	left: 21px; top: 6px; bottom: 6px;
	width: 1px;
	background: var(--line-strong);
}
.treeview-menu > li > a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 10px 7px 18px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 12.8px;
	position: relative;
}
.treeview-menu > li > a > .fa { width: 14px; text-align: center; font-size: 12px; }
.treeview-menu > li > a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, .035);
}
.treeview-menu > li.active > a { color: var(--acc); }

/* support card */
.sb-support {
	margin: auto 14px 8px;
	padding: 14px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background:
		radial-gradient(120px 80px at 90% -20%, rgba(var(--acc-rgb), .18), transparent 70%),
		var(--surface-2);
	flex-shrink: 0;
}
.sb-support .fa {
	font-size: 18px;
	color: var(--acc);
	margin-bottom: 8px;
	display: block;
}
.sb-support p { margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sb-support strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 12.5px; }
.sb-support a.btn { width: 100%; }

/* mini / collapsed sidebar */
body.sidebar-collapse .main-sidebar { width: var(--sb-mini); }
body.sidebar-collapse .sb-brand { padding: 0; justify-content: center; }
body.sidebar-collapse .sb-brand a { justify-content: center; }
body.sidebar-collapse .sb-brand .sb-logo-text,
body.sidebar-collapse .user-panel .info,
body.sidebar-collapse .sidebar-menu > li > a > span,
body.sidebar-collapse .sidebar-menu .pull-right,
body.sidebar-collapse .sidebar-menu > li.header,
body.sidebar-collapse .sb-support { display: none; }
body.sidebar-collapse .user-panel { justify-content: center; padding: 10px 8px; margin: 16px 10px 6px; }
body.sidebar-collapse .sidebar-menu { padding: 10px 12px 0; }
body.sidebar-collapse .sidebar-menu > li > a { justify-content: center; padding: 11px 8px; }
body.sidebar-collapse .sidebar { overflow: visible; }
/* flyout labels + submenus on hover */
body.sidebar-collapse .sidebar-menu > li:hover > a > span {
	display: block;
	position: absolute;
	left: calc(var(--sb-mini) - 14px);
	top: 50%;
	transform: translateY(-50%);
	background: var(--raised);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	padding: 7px 14px;
	white-space: nowrap;
	box-shadow: var(--shadow-2);
	z-index: 100;
	color: var(--text);
	font-size: 13px;
}
body.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
	display: block !important;
	position: absolute;
	left: calc(var(--sb-mini) - 14px);
	top: calc(50% + 18px);
	min-width: 200px;
	background: var(--raised);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	padding: 6px;
	box-shadow: var(--shadow-2);
	z-index: 99;
}
body.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu::before { display: none; }
body.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu > li > a { padding: 7px 12px; }

/* ====================== 06 · TOPBAR ====================== */
.main-header {
	position: fixed;
	top: 0;
	left: var(--sb-w);
	right: 0;
	height: var(--th-h);
	z-index: 1030;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 22px 0 14px;
	background: rgba(7, 11, 19, .78);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
	transition: left .28s var(--ease);
}
body.sidebar-collapse .main-header { left: var(--sb-mini); }

.sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 10px;
	color: var(--muted);
	border: 1px solid transparent;
	font-size: 16px;
	flex-shrink: 0;
}
.sidebar-toggle:hover {
	color: var(--acc);
	border-color: var(--line);
	background: rgba(255, 255, 255, .04);
}
.sidebar-toggle .icon-bar { display: none; }
.sidebar-toggle::before { content: "\f0c9"; font-family: FontAwesome; }

.mh-page { min-width: 0; margin-right: auto; }
.mh-page .mh-kicker {
	display: block;
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--acc);
}
.mh-page h1 {
	margin: 1px 0 0;
	font-size: 17px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mh-actions { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.mh-actions > li { list-style: none; }
.mh-btn,
.mh-actions > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .025);
	color: var(--muted);
	font-size: 14px;
	transition: all .18s var(--ease);
}
.mh-btn:hover,
.mh-actions > li > a:hover {
	color: var(--acc);
	border-color: rgba(var(--acc-rgb), .4);
	box-shadow: 0 0 14px -4px rgba(var(--acc-rgb), .5);
}

/* live ticking clock */
.mh-actions > li > a.mh-clock {
	width: auto;
	padding: 0 13px;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	letter-spacing: .06em;
}
.mh-clock span { min-width: 58px; text-align: center; }
.mh-clock .fa { color: var(--acc); font-size: 12px; }

/* user dropdown trigger */
.mh-user > a.dropdown-toggle {
	width: auto;
	padding: 0 12px 0 5px;
	gap: 9px;
}
.mh-user img.user-image {
	width: 30px; height: 30px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid rgba(var(--acc-rgb), .45);
}
.mh-user .mh-username {
	font-size: 12.8px;
	font-weight: 600;
	color: var(--text);
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mh-user .fa-angle-down { font-size: 12px; }

/* user dropdown panel */
.mh-user .dropdown-menu {
	left: auto; right: 0;
	margin-top: 10px;
	min-width: 240px;
	padding: 0;
	overflow: hidden;
}
.mh-user .dropdown-menu .user-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background:
		radial-gradient(160px 90px at 100% 0%, rgba(var(--acc-rgb), .22), transparent 70%),
		var(--surface-2);
	border-bottom: 1px solid var(--line);
}
.mh-user .dropdown-menu .user-header img {
	width: 44px; height: 44px;
	border-radius: 12px;
	border: 2px solid rgba(var(--acc-rgb), .5);
}
.mh-user .dropdown-menu .user-header p {
	margin: 0;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--text);
	word-break: break-all;
}
.mh-user .dropdown-menu .user-header small {
	display: block;
	color: var(--acc);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-top: 3px;
}
.mh-user .dropdown-menu .user-footer {
	display: flex;
	gap: 8px;
	padding: 10px;
}
.mh-user .dropdown-menu .user-footer > div { flex: 1; float: none !important; }
.mh-user .dropdown-menu .user-footer a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
}
.mh-user .dropdown-menu .user-footer a:hover {
	color: var(--text);
	border-color: rgba(var(--acc-rgb), .4);
	background: rgba(var(--acc-rgb), .08);
}

/* ====================== 07 · CONTENT HEADER ====================== */
.content-header {
	padding: 0 0 20px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.content-header h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.02em;
}
.content-header h1 small {
	display: block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--dim);
	margin-top: 6px;
}

/* ====================== 08 · CARDS / PANELS / WELLS ====================== */
.panel, .well {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	margin-bottom: 22px;
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.well { padding: 20px; }
.well-lg { padding: 22px; }
.panel-primary, .panel-default, .panel-info, .panel-success, .panel-warning, .panel-danger {
	border-color: var(--line);
}
.panel:hover { border-color: var(--line-strong); }

.panel-heading {
	background: transparent !important;
	border-bottom: 1px solid var(--line) !important;
	color: var(--text) !important;
	padding: 15px 20px;
	border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
	position: relative;
}
.panel-heading::before {
	content: "";
	position: absolute;
	left: 20px; bottom: -1px;
	width: 46px; height: 2px;
	border-radius: 2px;
	background: var(--acc-grad);
	box-shadow: 0 0 8px rgba(var(--acc-rgb), .7);
}
.panel-title {
	font-size: 14.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 9px;
}
.panel-title .fa { color: var(--acc); font-size: 13px; }
.panel-title > a { /* "View All" style links in card headings → chip */
	margin-left: 12px;
	font-family: var(--font-mono);
	font-size: 10px !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px 11px;
	transition: all .18s var(--ease);
}
.panel-title > a:hover {
	color: var(--acc);
	border-color: rgba(var(--acc-rgb), .45);
	background: rgba(var(--acc-rgb), .06);
}
.panel-title > a span { font-size: inherit !important; font-weight: inherit !important; }
.panel-title .fa.pointer { margin-left: auto; color: var(--muted); }
.panel-title .fa.pointer:hover { color: var(--acc); transform: rotate(120deg); transition: all .25s var(--ease); }
.panel-body { padding: 20px; color: var(--text); }
.panel-body::before, .panel-body::after { content: " "; display: table; }
.panel-body::after { clear: both; }
.panel-footer {
	background: rgba(255, 255, 255, .015);
	border-top: 1px solid var(--line);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	padding: 12px 20px;
}

/* ====================== 09 · BUTTONS ====================== */
.btn {
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 13px;
	border-radius: 10px;
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	background: var(--raised);
	color: var(--text);
	transition: all .18s var(--ease);
	text-shadow: none;
	box-shadow: none;
	outline: none !important;
	position: relative;
}
.btn:hover, .btn:focus {
	color: #fff;
	background: #1a2540;
	border-color: var(--line-strong);
	transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn .fa { margin-right: 4px; }

.btn-primary {
	background: var(--acc-grad);
	border-color: transparent;
	color: var(--acc-ink) !important;
	box-shadow: 0 6px 20px -8px rgba(var(--acc-rgb), .7);
	overflow: hidden;
}
.btn-primary::after { /* sheen sweep */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
	transform: translateX(-130%);
	transition: transform .55s var(--ease);
	pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:active:hover, .btn-primary:active:focus {
	background: var(--acc-grad);
	border-color: transparent;
	filter: brightness(1.12);
	box-shadow: 0 8px 26px -8px rgba(var(--acc-rgb), .9);
	color: var(--acc-ink) !important;
}
.btn-success {
	background: rgba(23, 215, 115, .12);
	border-color: rgba(23, 215, 115, .4);
	color: #3fe896 !important;
}
.btn-success:hover, .btn-success:focus {
	background: rgba(23, 215, 115, .22);
	border-color: rgba(23, 215, 115, .65);
	box-shadow: 0 0 18px -6px rgba(23, 215, 115, .7);
	color: #6effb4 !important;
}
.btn-danger {
	background: rgba(255, 77, 94, .1);
	border-color: rgba(255, 77, 94, .4);
	color: #ff7a87 !important;
}
.btn-danger:hover, .btn-danger:focus {
	background: rgba(255, 77, 94, .22);
	border-color: rgba(255, 77, 94, .65);
	box-shadow: 0 0 18px -6px rgba(255, 77, 94, .7);
	color: #ffa3ac !important;
}
.btn-warning {
	background: rgba(255, 178, 36, .1);
	border-color: rgba(255, 178, 36, .4);
	color: #ffc75e !important;
}
.btn-warning:hover, .btn-warning:focus {
	background: rgba(255, 178, 36, .2);
	border-color: rgba(255, 178, 36, .6);
	color: #ffd687 !important;
}
.btn-info {
	background: rgba(34, 211, 238, .1);
	border-color: rgba(34, 211, 238, .4);
	color: #5fe0f5 !important;
}
.btn-info:hover, .btn-info:focus {
	background: rgba(34, 211, 238, .2);
	border-color: rgba(34, 211, 238, .6);
	color: #8ceaf8 !important;
}
.btn-default { color: var(--muted) !important; }
.btn-default:hover, .btn-default:focus { color: var(--text) !important; }
.btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: 7px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 26px; font-size: 14.5px; border-radius: 12px; }
.btn[disabled], .btn.disabled { opacity: .45; transform: none !important; }

/* ====================== 10 · FORMS ====================== */
.form-control {
	background: rgba(4, 8, 16, .6);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: var(--text);
	height: 40px;
	padding: 8px 14px;
	font-size: 13.5px;
	box-shadow: none;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.form-control:focus {
	background: rgba(4, 8, 16, .9);
	border-color: rgba(var(--acc-rgb), .65);
	box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .14);
	color: #fff;
}
.form-control::placeholder { color: var(--dim); }
/* Chrome/Safari autofill paints inputs white — force the dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
textarea:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #0a1322 inset !important;
	box-shadow: 0 0 0 1000px #0a1322 inset !important;
	-webkit-text-fill-color: var(--text) !important;
	caret-color: var(--text);
	border: 1px solid var(--line-strong);
	transition: background-color 99999s ease-out 0s;
}
.form-control[disabled], .form-control[readonly] { background: rgba(255,255,255,.03); opacity: .6; }
p.form-control { /* read-only value fields (database page etc.) */
	display: flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--acc);
	margin-bottom: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
select.form-control {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a3bc' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 34px;
}
select.form-control option { background: var(--raised); color: var(--text); }
textarea.form-control { height: auto; min-height: 90px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
.control-label { color: var(--muted); font-size: 13px; }
.form-control-static { color: var(--text); font-size: 13.5px; min-height: 0; }
.form-control-static a { word-break: break-all; }
.form-group { margin-bottom: 16px; }
.help-block { color: var(--dim); }
.input-group-addon {
	background: var(--raised);
	border: 1px solid var(--line-strong);
	color: var(--muted);
	border-radius: 10px;
}
.input-group .form-control:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 40px; }
input[type="checkbox"], input[type="radio"] {
	accent-color: var(--acc);
	width: 16px; height: 16px;
	cursor: pointer;
}

/* ====================== 11 · TABS ====================== */
.nav-tabs {
	border-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px;
	background: rgba(4, 8, 16, .55);
	border: 1px solid var(--line);
	border-radius: 14px;
	margin-bottom: 20px;
}
.nav-tabs > li { float: none; margin-bottom: 0; }
.nav-tabs > li > a {
	margin: 0;
	border: 1px solid transparent !important;
	border-radius: 9px !important;
	color: var(--muted);
	font-weight: 600;
	font-size: 12.8px;
	padding: 8px 15px;
	display: flex;
	align-items: center;
	gap: 7px;
	transition: all .18s var(--ease);
}
.nav-tabs > li > a .fa { font-size: 12px; }
.nav-tabs > li > a:hover {
	background: rgba(255, 255, 255, .05);
	color: var(--text);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	background: var(--acc-grad) !important;
	color: var(--acc-ink) !important;
	border-color: transparent !important;
	box-shadow: 0 5px 18px -6px rgba(var(--acc-rgb), .8);
}
.nav-tabs > li.active > a .fa { color: var(--acc-ink); }
.nav-tabs > li.dropdown .dropdown-toggle { color: var(--muted); }
/* bootstrap paints open dropdown triggers white (#eee) — keep them dark */
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
	background: rgba(255, 255, 255, .07) !important;
	border-color: transparent !important;
	color: var(--text) !important;
}
.nav-tabs > li.dropdown.open > a .fa { color: var(--acc); }
.tab-content { background: transparent; }
.tab-pane { animation: esaFadeUp .28s var(--ease); }

/* ====================== 12 · TABLES / DATATABLES ====================== */
.table {
	color: var(--text);
	background: transparent;
	margin-bottom: 10px;
}
.table > thead > tr > th {
	background: rgba(4, 8, 16, .55);
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--line-strong) !important;
	border-top: 0 !important;
	padding: 11px 12px;
	white-space: nowrap;
}
.table > tbody > tr > td {
	border-top: 1px solid var(--line) !important;
	padding: 11px 12px;
	vertical-align: middle;
	font-size: 13px;
}
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(even) { background: transparent; }
/* HARD reset on row/cell backgrounds — beats bootstrap stripes, datatables
   odd/even classes AND any stray inline/plugin styling. Zebra re-added below. */
.table > tbody > tr,
.table > tbody > tr > td,
.table > tbody > tr > th,
table.dataTable tbody tr,
table.dataTable tbody tr > td {
	background: transparent !important;
	background-color: transparent !important;
}
.table > tbody > tr > td { color: var(--text) !important; }
.table > thead > tr > th { background: rgba(4, 8, 16, .55) !important; }
.table-striped > tbody > tr:nth-child(odd),
table.dataTable tbody tr.odd { background: rgba(255, 255, 255, .025) !important; }
.table > tbody > tr:hover,
table.dataTable tbody tr:hover { background: rgba(var(--acc-rgb), .055) !important; }
.table > tbody > tr.active, .table > tbody > tr.active:hover { background: rgba(var(--acc-rgb), .09) !important; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td {
	border-color: var(--line) !important;
}
.table > tbody > tr { transition: background .15s var(--ease); }
.table > tbody > tr:hover { background: rgba(var(--acc-rgb), .045); }
.table > tbody > tr.pointer:hover td { color: #fff; }
table.dataTable { border-collapse: collapse !important; }

/* datatables chrome */
.dataTables_wrapper { color: var(--muted); }
.dataTables_filter input, .dataTables_length select {
	background: rgba(4, 8, 16, .6) !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: 9px !important;
	color: var(--text) !important;
	padding: 6px 12px !important;
	height: 36px;
	outline: none;
	margin-left: 8px;
}
.dataTables_filter input:focus {
	border-color: rgba(var(--acc-rgb), .6) !important;
	box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12);
}
.dataTables_info { color: var(--dim) !important; font-size: 12px; padding-top: 14px !important; }
.dataTables_processing {
	background: var(--raised) !important;
	color: var(--acc) !important;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
}
/* sort indicators: legacy PNG sprites → FontAwesome glyphs */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
	background-image: none !important;
	position: relative;
	padding-right: 26px !important;
	cursor: pointer;
}
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
	font-family: FontAwesome;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
}
table.dataTable thead .sorting::after { content: "\f0dc"; color: var(--dim); opacity: .7; }
table.dataTable thead .sorting_asc::after { content: "\f0de"; color: var(--acc); }
table.dataTable thead .sorting_desc::after { content: "\f0dd"; color: var(--acc); }
table.dataTable thead .sorting:hover::after { color: var(--muted); }

/* length + search controls */
div.dataTables_length label, div.dataTables_filter label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dim);
	font-weight: 600;
	margin-bottom: 0;
}
div.dataTables_length select {
	border-radius: 999px !important;
	min-width: 70px;
	padding: 6px 30px 6px 16px !important;
}
div.dataTables_filter input {
	border-radius: 999px !important;
	min-width: 220px;
	padding-left: 36px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Ccircle cx='5.5' cy='5.5' r='4.2' fill='none' stroke='%235f6d86' stroke-width='1.6'/%3E%3Cpath d='M8.8 8.8 L12 12' stroke='%235f6d86' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 13px center !important;
}
div.dataTables_filter input:focus { min-width: 250px; transition: min-width .25s var(--ease); }

/* clickable rows: accent edge on hover */
.table > tbody > tr.pointer:hover > td:first-child { box-shadow: inset 3px 0 0 rgba(var(--acc-rgb), .85); }
/* responsive child rows */
table.dataTable > tbody > tr.child { background: rgba(var(--acc-rgb), .04) !important; }
table.dataTable > tbody > tr.child td.child { color: var(--muted); }
table.dataTable > tbody > tr.child span.dtr-title { color: var(--dim); }

/* ====================== 13 · BADGES / STATUS ====================== */
.label {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 11px 4px 22px;
	position: relative;
	display: inline-block;
	line-height: 1.4;
}
.label::before {
	content: "";
	position: absolute;
	left: 9px; top: 50%;
	transform: translateY(-50%);
	width: 6px; height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
}
.label-success { background: rgba(23, 215, 115, .12); color: #3fe896; border: 1px solid rgba(23, 215, 115, .35); }
.label-success::before { animation: esaPulse 2.4s infinite; }
.label-danger { background: rgba(255, 77, 94, .12); color: #ff7a87; border: 1px solid rgba(255, 77, 94, .35); }
.label-warning { background: rgba(255, 178, 36, .12); color: #ffc75e; border: 1px solid rgba(255, 178, 36, .35); }
.label-info { background: rgba(34, 211, 238, .12); color: #5fe0f5; border: 1px solid rgba(34, 211, 238, .35); }
.label-primary { background: rgba(var(--acc-rgb), .12); color: var(--acc); border: 1px solid rgba(var(--acc-rgb), .35); }
.label-default { background: rgba(147, 163, 188, .12); color: var(--muted); border: 1px solid rgba(147, 163, 188, .3); }
.badge { background: rgba(var(--acc-rgb), .18); color: var(--acc); border-radius: 8px; }

/* ip / mono chips */
.ip-chip, .esa-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--cyan);
	background: rgba(34, 211, 238, .08);
	border: 1px solid rgba(34, 211, 238, .25);
	border-radius: 8px;
	padding: 3px 10px;
	white-space: nowrap;
}
.esa-chip.is-copy { cursor: pointer; transition: all .15s var(--ease); }
.esa-chip.is-copy:hover { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 12px -4px rgba(34, 211, 238, .6); }
.esa-chip.is-copied { color: var(--acc); border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .1); }

/* player capacity fraction + mini bar (auto-formatted by esa-gp.js) */
.esa-players {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	min-width: 62px;
	vertical-align: middle;
}
.esa-players .ep-num {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	line-height: 1;
	white-space: nowrap;
}
.esa-players .ep-num b { color: var(--text); font-size: 13px; font-weight: 600; }
.esa-players i {
	display: block;
	height: 4px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .07);
	overflow: hidden;
	font-style: normal;
}
.esa-players i u {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: var(--acc-grad);
	box-shadow: 0 0 8px rgba(var(--acc-rgb), .6);
	transition: width .5s var(--ease);
	text-decoration: none;
}
.esa-players.is-full i u { background: linear-gradient(90deg, #ffb224, #ff4d5e); box-shadow: 0 0 8px rgba(255, 77, 94, .6); }
td .esa-players { align-items: center; }
td .esa-players i { width: 62px; }
.sc-row .esa-players { align-items: flex-end; }
.sc-row .esa-players i { width: 72px; }

/* live online counter badge (dashboard services heading) */
.esa-count-badge {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dim);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px 11px;
	transition: all .3s var(--ease);
}
.esa-count-badge.on {
	color: var(--acc);
	border-color: rgba(var(--acc-rgb), .4);
	background: rgba(var(--acc-rgb), .07);
	box-shadow: 0 0 12px -4px rgba(var(--acc-rgb), .5);
}
.esa-count-badge:empty { display: none; }

/* live status dot */
.esa-dot {
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--dim);
	flex-shrink: 0;
}
.esa-dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(23, 215, 115, .9); animation: esaPulse 2.2s infinite; }
.esa-dot.bad { background: var(--bad); box-shadow: 0 0 10px rgba(255, 77, 94, .8); }
.esa-dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(255, 178, 36, .8); }

/* ====================== 14 · ALERTS ====================== */
.alert {
	border-radius: var(--r-md);
	border: 1px solid;
	padding: 14px 44px 14px 48px;
	position: relative;
	font-size: 13.5px;
	background-image: none;
	box-shadow: var(--shadow-1);
}
.alert::before {
	font-family: FontAwesome;
	position: absolute;
	left: 17px; top: 13px;
	font-size: 16px;
}
.alert-success { background: rgba(23, 215, 115, .09); border-color: rgba(23, 215, 115, .35); color: #8af0bd; }
.alert-success::before { content: "\f058"; color: #3fe896; }
.alert-danger, .alert-error { background: rgba(255, 77, 94, .09); border-color: rgba(255, 77, 94, .35); color: #ffaab2; }
.alert-danger::before { content: "\f071"; color: #ff7a87; }
.alert-warning { background: rgba(255, 178, 36, .09); border-color: rgba(255, 178, 36, .35); color: #ffd99a; }
.alert-warning::before { content: "\f06a"; color: #ffc75e; }
.alert-info { background: rgba(34, 211, 238, .09); border-color: rgba(34, 211, 238, .35); color: #a7ecf7; }
.alert-info::before { content: "\f05a"; color: #5fe0f5; }
.alert .close {
	color: currentColor;
	opacity: .55;
	text-shadow: none;
	position: absolute;
	right: 14px; top: 12px;
	font-size: 18px;
}
.alert .close:hover { opacity: 1; color: currentColor; }
.alert a { color: inherit; text-decoration: underline; }

/* ====================== 15 · DROPDOWNS ====================== */
.dropdown-menu {
	background: var(--raised);
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	box-shadow: var(--shadow-2);
	padding: 6px;
	min-width: 180px;
	animation: esaFadeUp .18s var(--ease);
}
.dropdown-menu > li > a {
	color: var(--muted);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 9px;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
	background: rgba(var(--acc-rgb), .1);
	color: var(--text);
}
.dropdown-menu .divider { background: var(--line); margin: 6px 4px; }

/* ====================== 16 · MODALS / DIALOGS ====================== */
.modal-backdrop { background: #02040a; }
.modal-backdrop.in { opacity: .78; }
.modal-content {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line-strong);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-2), 0 0 60px -20px rgba(var(--acc-rgb), .25);
	color: var(--text);
}
.modal-header {
	border-bottom: 1px solid var(--line);
	padding: 16px 22px;
	background: transparent !important;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text) !important; }
.modal-header .close { color: var(--muted); opacity: 1; text-shadow: none; margin-top: 0; }
.modal-header .close:hover { color: var(--red); }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; }
.modal.fade .modal-dialog { transform: translateY(14px) scale(.98); transition: transform .22s var(--ease); }
.modal.in .modal-dialog { transform: none; }
/* bootstrap-dialog type headers → accent line instead of solid bg */
.bootstrap-dialog .modal-header { background: transparent !important; }
.bootstrap-dialog .bootstrap-dialog-title { color: var(--text) !important; font-family: var(--font-display); }
.bootstrap-dialog.type-danger .modal-header { box-shadow: inset 0 2px 0 var(--red); }
.bootstrap-dialog.type-warning .modal-header { box-shadow: inset 0 2px 0 var(--amber); }
.bootstrap-dialog.type-info .modal-header { box-shadow: inset 0 2px 0 var(--cyan); }
.bootstrap-dialog.type-primary .modal-header { box-shadow: inset 0 2px 0 var(--acc); }
.bootstrap-dialog.type-success .modal-header { box-shadow: inset 0 2px 0 var(--acc); }

/* jQuery UI dialogs (cron editor etc.) */
.ui-widget-overlay { background: #02040a; opacity: .78; }
.ui-dialog {
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-2);
	color: var(--text);
	padding: 6px;
}
.ui-dialog .ui-dialog-titlebar {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-family: var(--font-display);
	border-radius: 0;
	padding: 12px 16px;
}
.ui-dialog .ui-dialog-content { background: transparent; color: var(--text); }
.ui-dialog .ui-dialog-buttonpane {
	background: transparent;
	border-top: 1px solid var(--line);
}
.ui-widget-content a { color: var(--acc); }
.ui-state-default, .ui-widget-content .ui-state-default {
	background: var(--raised);
	border: 1px solid var(--line-strong);
	color: var(--text);
	border-radius: 8px;
}
.ui-state-hover, .ui-widget-content .ui-state-hover {
	background: #1a2540;
	border-color: rgba(var(--acc-rgb), .4);
	color: #fff;
}
.ui-dialog select, .ui-dialog input[type="text"] {
	background: rgba(4, 8, 16, .6);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	color: var(--text);
	padding: 5px 9px;
}

/* ====================== 17 · SWEETALERT2 ====================== */
.swal2-container.in { background: rgba(2, 4, 10, .78) !important; }
.swal2-modal, .swal2-popup {
	background: linear-gradient(180deg, var(--surface-2), var(--surface)) !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: var(--r-lg) !important;
	box-shadow: var(--shadow-2) !important;
	font-family: var(--font-ui) !important;
}
.swal2-modal .swal2-title, .swal2-popup .swal2-title {
	color: var(--text) !important;
	font-family: var(--font-display) !important;
}
.swal2-modal .swal2-content, .swal2-popup .swal2-content,
.swal2-modal #swal2-content, .swal2-popup #swal2-content {
	color: var(--muted) !important;
}
.swal2-modal .swal2-confirm, .swal2-popup .swal2-confirm {
	border-radius: 10px !important;
	font-weight: 600 !important;
}
.swal2-modal .swal2-cancel, .swal2-popup .swal2-cancel { border-radius: 10px !important; }
/* swal2 icons assume a white popup — re-theme for dark */
.swal2-icon.swal2-success::before,
.swal2-icon.swal2-success::after,
.swal2-icon.swal2-success .fix { background: transparent !important; background-color: transparent !important; }
.swal2-icon.swal2-success { border-color: rgba(var(--acc-rgb), .4) !important; }
.swal2-icon.swal2-success .placeholder { border-color: rgba(var(--acc-rgb), .3) !important; }
.swal2-icon.swal2-success .line { background-color: var(--acc) !important; box-shadow: 0 0 10px rgba(var(--acc-rgb), .6); }
.swal2-icon.swal2-error { border-color: rgba(255, 77, 94, .5) !important; }
.swal2-icon.swal2-error .line { background-color: var(--red) !important; }
.swal2-icon.swal2-warning { border-color: rgba(255, 178, 36, .55) !important; color: var(--amber) !important; }
.swal2-icon.swal2-info { border-color: rgba(34, 211, 238, .55) !important; color: var(--cyan) !important; }
.swal2-icon.swal2-question { border-color: var(--line-strong) !important; color: var(--muted) !important; }

/* ====================== 18 · TOOLTIPS / PAGINATION / MISC ====================== */
.tooltip-inner {
	background: var(--raised);
	color: var(--text);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	font-size: 12px;
	padding: 6px 11px;
	box-shadow: var(--shadow-1);
}
.tooltip.top .tooltip-arrow { border-top-color: var(--line-strong); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--line-strong); }
.tooltip.left .tooltip-arrow { border-left-color: var(--line-strong); }
.tooltip.right .tooltip-arrow { border-right-color: var(--line-strong); }
.tooltip.in { opacity: 1; }

.pagination > li > a, .pagination > li > span {
	background: var(--raised);
	border: 1px solid var(--line);
	color: var(--muted);
	margin: 0 3px;
	border-radius: 8px !important;
	font-size: 12.5px;
	padding: 6px 12px;
}
.pagination > li > a:hover {
	background: #1a2540;
	border-color: rgba(var(--acc-rgb), .4);
	color: var(--text);
}
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span {
	background: var(--acc-grad);
	border-color: transparent;
	color: var(--acc-ink);
	box-shadow: 0 4px 14px -6px rgba(var(--acc-rgb), .8);
}
.pagination > .disabled > a, .pagination > .disabled > span,
.pagination > .disabled > a:hover { background: var(--surface); border-color: var(--line); color: var(--dim); }

.progress {
	background: rgba(4, 8, 16, .7);
	border-radius: 999px;
	height: 8px;
	box-shadow: none;
	border: 1px solid var(--line);
}
.progress-bar {
	background: var(--acc-grad);
	box-shadow: 0 0 10px rgba(var(--acc-rgb), .6);
	border-radius: 999px;
}

.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb > li { font-size: 12px; color: var(--dim); }

/* ====================== 19 · DASHBOARD ====================== */
/* stat tiles */
.esa-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.esa-stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 20px;
	background: linear-gradient(160deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	overflow: hidden;
	transition: all .2s var(--ease);
}
.esa-stat::after {
	content: "";
	position: absolute;
	right: -30px; top: -30px;
	width: 110px; height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--acc-rgb), .12), transparent 70%);
	pointer-events: none;
}
.esa-stat:hover { transform: translateY(-2px); border-color: rgba(var(--acc-rgb), .35); }
.esa-stat-icon {
	width: 46px; height: 46px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	background: rgba(var(--acc-rgb), .1);
	border: 1px solid rgba(var(--acc-rgb), .3);
	color: var(--acc);
}
.esa-stat.is-cyan .esa-stat-icon { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); color: var(--cyan); }
.esa-stat.is-amber .esa-stat-icon { background: rgba(255,178,36,.1); border-color: rgba(255,178,36,.3); color: var(--amber); }
.esa-stat.is-red .esa-stat-icon { background: rgba(255,77,94,.1); border-color: rgba(255,77,94,.3); color: var(--red); }
.esa-stat.is-violet .esa-stat-icon { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.3); color: var(--violet); }
.esa-stat-meta { min-width: 0; }
.esa-stat-value {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.esa-stat-value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.esa-stat-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	margin-top: 4px;
}

/* server cards grid */
.server-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 18px;
}
.server-card {
	position: relative;
	background: linear-gradient(165deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	overflow: hidden;
	transition: all .22s var(--ease);
	display: flex;
	flex-direction: column;
	animation: esaFadeUp .35s var(--ease) backwards;
}
.server-card::before { /* top accent line */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .8), transparent);
	opacity: 0;
	transition: opacity .22s var(--ease);
}
.server-card:hover {
	transform: translateY(-3px);
	border-color: rgba(var(--acc-rgb), .4);
	box-shadow: var(--shadow-2), 0 0 32px -12px rgba(var(--acc-rgb), .4);
}
.server-card:hover::before { opacity: 1; }
.sc-head {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 16px 18px 14px;
	border-bottom: 1px solid var(--line);
	position: relative;
	overflow: hidden;
}
.sc-bg {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 65%;
	background-size: cover;
	background-position: center right;
	opacity: .16;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.sc-head > *:not(.sc-bg) { position: relative; z-index: 1; }
.sc-glyph {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: rgba(var(--acc-rgb), .1);
	border: 1px solid rgba(var(--acc-rgb), .3);
	color: var(--acc);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.sc-title { min-width: 0; flex: 1; }
.sc-title h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sc-title .sc-type {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--dim);
	margin-top: 2px;
	display: block;
}
.sc-status { flex-shrink: 0; }
.sc-status img { width: 18px; height: 18px; }
.sc-body { padding: 14px 18px; flex: 1; }
.sc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 12.8px;
	min-height: 32px;
}
.sc-row + .sc-row { border-top: 1px dashed var(--line); }
.sc-row .sc-k {
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}
.sc-row .sc-k .fa { color: var(--acc); width: 13px; text-align: center; }
.sc-row .sc-v {
	color: var(--text);
	text-align: right;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sc-row .sc-v img { width: 16px; height: 16px; }
.sc-foot {
	padding: 13px 18px;
	border-top: 1px solid var(--line);
	background: rgba(4, 8, 16, .35);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.sc-foot .btn { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 6px; }

/* dashboard 2-col info row */
.esa-duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }

/* recent events feed */
.esa-feed { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.esa-feed li {
	position: relative;
	padding: 9px 0 9px 24px;
	font-size: 12.8px;
	color: var(--muted);
	border-bottom: 1px dashed var(--line);
}
.esa-feed li:last-child { border-bottom: 0; }
.esa-feed li::before {
	content: "";
	position: absolute;
	left: 6px; top: 16px;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: rgba(var(--acc-rgb), .8);
	box-shadow: 0 0 8px rgba(var(--acc-rgb), .6);
}
.esa-feed .esa-feed-time {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--dim);
	margin-bottom: 1px;
}

/* info list (client info card) */
.esa-kv { margin: 0; }
.esa-kv .esa-kv-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 13px;
}
.esa-kv .esa-kv-row:last-child { border-bottom: 0; }
.esa-kv .esa-kv-k {
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.esa-kv .esa-kv-k .fa { color: var(--acc); width: 14px; text-align: center; }
.esa-kv .esa-kv-v {
	color: var(--text);
	text-align: right;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ====================== 20 · SERVER HERO ====================== */
.server-hero {
	position: relative;
	background:
		radial-gradient(420px 200px at 92% -30%, rgba(var(--acc-rgb), .16), transparent 70%),
		linear-gradient(165deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	padding: 22px 24px;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	overflow: hidden;
}
.server-hero::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .85), transparent);
}
.sh-glyph {
	width: 62px; height: 62px;
	border-radius: 17px;
	background: var(--acc-grad);
	color: var(--acc-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	flex-shrink: 0;
	box-shadow: 0 10px 30px -10px rgba(var(--acc-rgb), .8);
}
/* ambient game-art backdrop inside the hero */
.sh-bg {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 52%;
	background-size: cover;
	background-position: center right;
	opacity: .22;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	filter: saturate(1.1);
}
.server-hero > *:not(.sh-bg) { position: relative; z-index: 1; }
.sh-meta { min-width: 0; flex: 1; }
.sh-kicker {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--acc);
}
.sh-meta h2 {
	margin: 3px 0 7px;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sh-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sh-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	margin-left: auto;
}
.sh-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 11px;
	font-size: 13px;
}
.sh-actions .btn .fa { margin: 0; }

/* suspended banner */
.esa-suspended {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	border-radius: var(--r-md);
	background: rgba(255, 77, 94, .08);
	border: 1px solid rgba(255, 77, 94, .35);
	color: #ffaab2;
	font-weight: 600;
	font-size: 13.5px;
}
.esa-suspended .fa { color: var(--red); font-size: 17px; }

/* live game info grid (ajax #gameinfo) */
.gi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}
.gi-item {
	background: rgba(4, 8, 16, .45);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 12px 14px;
	min-width: 0;
}
.gi-label {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
}
.gi-label .fa { color: var(--acc); }
.gi-value {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gi-value.gi-mono { font-family: var(--font-mono); font-size: 12.5px; }
.gi-meter {
	margin-top: 8px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	overflow: hidden;
}
.gi-meter > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--acc-grad);
	box-shadow: 0 0 10px rgba(var(--acc-rgb), .7);
	transition: width .6s var(--ease);
}
.gi-meter.is-hot > span { background: linear-gradient(90deg, #ffb224, #ff4d5e); box-shadow: 0 0 10px rgba(255, 77, 94, .7); }

/* announcements */
.esa-announce {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 14px 16px;
	margin-bottom: 12px;
	background: rgba(4, 8, 16, .35);
}
.esa-announce:last-child { margin-bottom: 0; }
.esa-announce header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.esa-announce h5 { margin: 0; font-size: 13.5px; color: var(--acc); display: flex; align-items: center; gap: 8px; }
.esa-announce .esa-announce-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.esa-announce .content { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.title-announcements h5 { color: var(--acc); }

/* game artwork tiles (common/game-icon.tpl) */
.game-ico {
	width: 42px; height: 42px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	background:
		radial-gradient(60px 40px at 70% 0%, rgba(var(--acc-rgb), .18), transparent 70%),
		#0a0f1b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	vertical-align: middle;
	transition: all .2s var(--ease);
}
.game-ico img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--ease); }
.server-card:hover .game-ico img,
tr:hover .game-ico img,
.server-hero:hover .game-ico img { transform: scale(1.1); }
.game-ico img.is-logo { width: 62%; height: 62%; object-fit: contain; }
.game-ico .fa { color: var(--acc); font-size: 17px; }
.game-ico.sm { width: 32px; height: 32px; border-radius: 9px; }
.game-ico.sm .fa { font-size: 13px; }
.game-ico.md { width: 44px; height: 44px; }
.game-ico.lg {
	width: 62px; height: 62px;
	border-radius: 17px;
	border-color: rgba(var(--acc-rgb), .45);
	box-shadow: 0 10px 30px -10px rgba(var(--acc-rgb), .65), 0 0 0 1px rgba(var(--acc-rgb), .15);
}
.game-ico.lg .fa { font-size: 24px; }
/* table cell pairing: icon + name */
td .game-ico.sm { margin-right: 10px; }
tr:hover .game-ico { border-color: rgba(var(--acc-rgb), .5); }
.svc-name { font-weight: 600; color: var(--text); vertical-align: middle; }

/* live map thumbnail (server info grid) */
.gi-map {
	position: relative;
	margin-top: 4px;
	height: 76px;
	border-radius: 9px;
	overflow: hidden;
	border: 1px solid var(--line);
	background:
		repeating-linear-gradient(45deg, rgba(141, 163, 199, .05) 0 2px, transparent 2px 11px),
		linear-gradient(160deg, #121b2e, #0a101d);
}
.gi-map img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.gi-map span {
	position: absolute;
	left: 8px; bottom: 8px;
	z-index: 2;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: .04em;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
	background: rgba(2, 5, 12, .72);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, .14);
	padding: 3px 10px;
	border-radius: 7px;
	max-width: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* live map strip on dashboard server cards */
.sc-map { line-height: 0; }
.sc-map .js-mapthumb-dash { display: none; }
.sc-map .gi-map-cell {
	display: block;
	width: 100%;
	height: 76px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	vertical-align: top;
}
.sc-map .gi-map-cell img { transition: transform .35s var(--ease); }
.server-card:hover .sc-map .gi-map-cell img { transform: scale(1.04); }
.sc-map .gi-map-cell.no-img span { margin: 28px 12px 0; max-width: none; }

/* live map thumb inside list tables (filled by esa-gp.js via esa-map.php) */
.gi-map-cell {
	display: inline-block;
	width: 92px;
	height: 48px;
	margin: 0;
	vertical-align: middle;
}
.gi-map-cell img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.gi-map-cell.no-img span { position: static; display: inline-block; margin: 14px 6px 0; max-width: 80px; }
tr:hover .gi-map-cell { border-color: rgba(var(--acc-rgb), .5); }
@media (max-width: 767px) {
	.gi-map-cell { width: 70px; height: 38px; }
}

/* FTP info blocks on manage page */
.esa-ftp-clients { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.esa-ftp-clients a {
	flex: 1;
	min-width: 150px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(4, 8, 16, .4);
	color: var(--text);
	font-weight: 600;
	transition: all .18s var(--ease);
}
.esa-ftp-clients a:hover { border-color: rgba(var(--acc-rgb), .45); transform: translateY(-2px); }
.esa-ftp-clients img { width: 26px; height: 26px; object-fit: contain; }

/* ====================== 21 · TERMINAL CONSOLE ====================== */
.console-modal-content { display: flex; flex-direction: column; gap: 0; }
#console.console-panel,
.console-panel {
	background: #05080f;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md) !important;
	overflow: hidden;
	box-shadow: inset 0 0 50px rgba(0, 0, 0, .6);
	margin-bottom: 0;
}
.console-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 15px;
	background: linear-gradient(180deg, #0d1422, #0a0f1b);
	border-bottom: 1px solid var(--line);
}
.console-header::before { /* terminal traffic dots */
	content: "";
	width: 11px; height: 11px;
	border-radius: 50%;
	background: #ff5f57;
	box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
	margin-right: 32px;
	flex-shrink: 0;
}
.console-header h2 {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.console-header h2::after {
	content: "● LIVE";
	margin-left: 12px;
	font-size: 9px;
	letter-spacing: .14em;
	color: var(--ok);
	animation: esaPulse 2s infinite;
}
.console-header .icon-align-left { display: none; }
.console-actions { display: flex; gap: 8px; flex-shrink: 0; }
.console-actions .btn { padding: 5px 12px; font-size: 11.5px; border-radius: 7px; }
.console-panel .panel-content { padding: 0; }
#screencon {
	height: min(44vh, 420px);
	min-height: 240px;
	overflow-y: auto;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
		#05080f;
	padding: 14px 16px;
}
#screencon pre {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
	color: #9defbd;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
	text-shadow: 0 0 6px rgba(23, 215, 115, .25);
}
#screencon img { margin: 14px; }
/* command bar */
.console-command { margin-top: 12px; padding: 0 !important; float: none !important; }
.console-command .form-group { margin: 0; }
.console-command .control-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	padding-bottom: 6px;
	text-align: left !important;
}
.console-command div.col-sm-12 { padding: 0; position: relative; }
.console-command label.col-sm-12 { padding: 0; position: static; }
#sendcommand {
	background: #05080f;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: #c9f7dd;
	font-family: var(--font-mono);
	font-size: 13px;
	height: 44px;
	padding-left: 38px;
	width: 100%;
}
#sendcommand:focus {
	border-color: rgba(var(--acc-rgb), .6);
	box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12);
	outline: none;
}
.console-command div.col-sm-12::before {
	content: "❯";
	position: absolute;
	left: 15px;
	top: 11px;
	color: var(--acc);
	font-family: var(--font-mono);
	font-weight: 700;
	z-index: 2;
	pointer-events: none;
}
#commandresponse { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
#commandresponse:empty { display: none; margin: 0; }
#commandresponse pre {
	background: #05080f;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: #9defbd;
	font-size: 11.5px;
	padding: 10px 12px;
}
/* console inside bootstrap-dialog → wider, no inner scroll, no dead space */
.bootstrap-dialog .console-modal-content { min-width: 0; }
.bootstrap-dialog .modal-body:has(.console-modal-content) {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}
.bootstrap-dialog .modal-body > div[style] { height: auto !important; }
@media (min-width: 992px) {
	.bootstrap-dialog .modal-dialog:has(.console-modal-content) { width: 880px; }
}
/* affirmative (last) dialog button reads as primary */
.bootstrap-dialog .modal-footer .btn:last-child {
	background: var(--acc-grad);
	border-color: transparent;
	color: var(--acc-ink) !important;
	box-shadow: 0 6px 18px -8px rgba(var(--acc-rgb), .7);
}
.bootstrap-dialog .modal-footer .btn:last-child:hover { filter: brightness(1.12); }

/* ====================== 22 · FILE MANAGER ====================== */
.fm-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(4, 8, 16, .45);
	margin-bottom: 14px;
}
.fm-path {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--cyan);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fm-path .fa { color: var(--acc); flex-shrink: 0; }
.fm-mode {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px 11px;
	flex-shrink: 0;
}
.fm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
#webftp_interface .table .fa-folder, #webftp_interface .table .fa-folder-o,
#ftp_files .fa-folder, .table .fa-folder { color: var(--amber); }
.table .fa-file, .table .fa-file-o, .table .fa-file-text-o { color: var(--cyan); }
.table .fa-file-archive-o { color: var(--violet); }
.table .fa-file-image-o, .table .fa-picture-o { color: #3fe896; }
.table .fa-file-code-o { color: var(--acc); }
#webftp_interface { border-radius: var(--r-lg); }
/* quickedit editor area */
#editfile textarea, .ace_editor { border-radius: var(--r-md); }

/* ====================== 23 · AUTH / LOGIN ====================== */
body.esa-auth-page {
	min-height: 100vh;
	margin: 0;
	background: var(--bg0);
	overflow-x: hidden;
}
.esa-auth-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(900px 480px at 80% -10%, rgba(var(--acc-rgb), .13), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(34, 211, 238, .09), transparent 60%),
		var(--bg0);
	overflow: hidden;
}
.esa-auth-bg::before { /* perspective grid */
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(141, 163, 199, .065) 1px, transparent 1px),
		linear-gradient(90deg, rgba(141, 163, 199, .065) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 75%);
	mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 75%);
}
.esa-auth-bg::after { /* drifting glow orb */
	content: "";
	position: absolute;
	width: 480px; height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--acc-rgb), .16), transparent 65%);
	top: 12%; left: 56%;
	animation: esaDrift 16s ease-in-out infinite alternate;
	filter: blur(8px);
}
.esa-auth {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
}
/* the panel core echoes its license/version bar inside this flex container —
   force any stray child to a full-width bottom row instead of a side column */
.esa-auth > *:not(.esa-auth-brand):not(.esa-auth-side) {
	flex: 1 1 100%;
	order: 10;
	align-self: flex-end;
	text-align: center;
	padding: 14px;
	color: var(--dim);
	font-size: 12px;
	border-top: 1px solid var(--line);
}
.esa-auth-brand { flex: 1.15 1 0; }
.esa-auth-side { flex: 1 1 0; }
@media (max-width: 991px) {
	.esa-auth-side { flex: 1 1 100%; width: 100%; }
}
/* left brand panel */
.esa-auth-brand {
	flex: 1.15;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px 56px;
	border-right: 1px solid var(--line);
	background: linear-gradient(200deg, rgba(255, 255, 255, .018), transparent 40%);
	position: relative;
	overflow: hidden;
}
.esa-auth-brand .ab-logo { display: flex; align-items: center; gap: 14px; }
.esa-auth-brand .ab-logo .sb-logo-glyph {
	width: 44px; height: 44px;
	border-radius: 13px;
	background: var(--acc-grad);
	color: var(--acc-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 8px 26px -8px rgba(var(--acc-rgb), .8);
}
.esa-auth-brand .ab-logo img { height: 22px; width: auto; }
.esa-auth-brand .ab-mid { max-width: 480px; }
.esa-auth-brand .ab-kicker {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.esa-auth-brand .ab-kicker::before {
	content: "";
	width: 28px; height: 1px;
	background: var(--acc);
	box-shadow: 0 0 8px rgba(var(--acc-rgb), .8);
}
.esa-auth-brand h1 {
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.12;
	margin: 0 0 18px;
}
.esa-auth-brand h1 em {
	font-style: normal;
	background: var(--acc-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.esa-auth-brand .ab-sub { color: var(--muted); font-size: 14.5px; max-width: 400px; margin-bottom: 30px; }
.esa-auth-brand .ab-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.esa-auth-brand .ab-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 13.5px;
}
.esa-auth-brand .ab-points .fa {
	width: 30px; height: 30px;
	border-radius: 9px;
	background: rgba(var(--acc-rgb), .1);
	border: 1px solid rgba(var(--acc-rgb), .3);
	color: var(--acc);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}
.esa-auth-brand .ab-foot {
	display: flex;
	gap: 26px;
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.esa-auth-brand .ab-foot b { color: var(--acc); margin-right: 6px; }

/* right form panel */
.esa-auth-side {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 28px;
	position: relative;
}
.esa-auth-side > form {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.esa-auth-card {
	width: 100%;
	max-width: 420px;
	background: linear-gradient(170deg, rgba(19, 28, 48, .92), rgba(11, 17, 32, .92));
	border: 1px solid var(--line-strong);
	border-radius: 22px;
	box-shadow: var(--shadow-2), 0 0 70px -28px rgba(var(--acc-rgb), .45);
	padding: 34px 32px 28px;
	position: relative;
	animation: esaFadeUp .45s var(--ease);
}
.esa-auth-card::before {
	content: "";
	position: absolute;
	top: 0; left: 24px; right: 24px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .9), transparent);
}
.ea-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--acc);
	background: rgba(var(--acc-rgb), .08);
	border: 1px solid rgba(var(--acc-rgb), .3);
	border-radius: 999px;
	padding: 5px 13px;
	margin-bottom: 16px;
}
.ea-badge .esa-dot { width: 6px; height: 6px; }
.ea-badge.is-admin {
	color: var(--amber);
	background: rgba(255, 178, 36, .08);
	border-color: rgba(255, 178, 36, .35);
}
.esa-auth-card h2 { margin: 0 0 6px; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.esa-auth-card .ea-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.ea-field { position: relative; margin-bottom: 15px; }
.ea-field > .fa {
	position: absolute;
	left: 15px; top: 50%;
	transform: translateY(-50%);
	color: var(--dim);
	font-size: 14px;
	z-index: 2;
	transition: color .18s var(--ease);
	pointer-events: none;
}
.ea-field .form-control {
	height: 48px;
	padding-left: 43px;
	border-radius: 12px;
	font-size: 14px;
	background: rgba(4, 8, 16, .65);
}
.ea-field .form-control:focus ~ .fa, .ea-field:focus-within > .fa { color: var(--acc); }
.ea-field select.form-control { padding-left: 43px; }

.ea-submit {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 13px;
	background: var(--acc-grad);
	color: var(--acc-ink);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 12px 30px -10px rgba(var(--acc-rgb), .75);
	transition: all .2s var(--ease);
	margin-top: 6px;
}
.ea-submit:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
	box-shadow: 0 16px 36px -10px rgba(var(--acc-rgb), .9);
	color: var(--acc-ink);
}
.ea-submit:active { transform: translateY(0); }
.ea-links { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ea-links a { color: var(--muted); font-size: 12.8px; }
.ea-links a:hover { color: var(--acc); }
.ea-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.ea-secure .fa { color: var(--acc); }

/* admin auth variant */
body.esa-auth-admin .esa-auth-card { box-shadow: var(--shadow-2), 0 0 70px -28px rgba(255, 178, 36, .35); }
body.esa-auth-admin .esa-auth-card::before { background: linear-gradient(90deg, transparent, rgba(255, 178, 36, .9), transparent); }

/* pinched (ajax login messages) */
.pinched { width: 100%; max-width: 420px; margin: 0 auto; }
.pinched-danger, .pinched-success {
	position: relative;
	border-radius: var(--r-md);
	padding: 13px 40px 13px 44px;
	margin-bottom: 14px;
	font-size: 13px;
	animation: esaFadeUp .3s var(--ease);
}
.pinched-danger { background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .4); color: #ffaab2; }
.pinched-success { background: rgba(23, 215, 115, .12); border: 1px solid rgba(23, 215, 115, .4); color: #8af0bd; }
.pinched-danger > span::before, .pinched-success > span::before {
	font-family: FontAwesome;
	position: absolute;
	left: 16px; top: 12px;
	font-size: 15px;
}
.pinched-danger > span::before { content: "\f071"; color: var(--red); }
.pinched-success > span::before { content: "\f058"; color: var(--acc); }
.pinched .close {
	position: absolute;
	right: 12px; top: 10px;
	color: currentColor;
	opacity: .6;
	text-shadow: none;
}

/* legacy login container ids kept by templates */
.login-box { width: auto; margin: 0; }

/* ====================== 24 · LOCKSCREEN ====================== */
body.lockscreen {
	background: var(--bg0);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lockscreen-wrapper {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}
.lockscreen .content-box {
	background: linear-gradient(170deg, rgba(19, 28, 48, .92), rgba(11, 17, 32, .92));
	border: 1px solid var(--line-strong);
	border-radius: 22px;
	box-shadow: var(--shadow-2), 0 0 70px -28px rgba(var(--acc-rgb), .45);
	padding: 34px 32px 26px;
	text-align: center;
	position: relative;
}
.lockscreen .content-box::before {
	content: "";
	position: absolute;
	top: 0; left: 24px; right: 24px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .9), transparent);
}
.lockscreen-logo { margin-bottom: 18px; }
.lockscreen-logo img { height: 24px; width: auto; }
.lockscreen-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	color: var(--text);
	margin-bottom: 18px;
	word-break: break-all;
}
.lockscreen-item { margin-bottom: 16px; }
.lockscreen-image { margin-bottom: 18px; }
.lockscreen-image img {
	width: 84px; height: 84px;
	border-radius: 50%;
	border: 3px solid rgba(var(--acc-rgb), .5);
	box-shadow: 0 0 30px -8px rgba(var(--acc-rgb), .6);
	object-fit: cover;
}
.lockscreen-credentials .input-group { width: 100%; }
.lockscreen-credentials .form-control {
	height: 48px;
	border-radius: 12px 0 0 12px;
	font-size: 14px;
}
.lockscreen-credentials .btn {
	height: 48px;
	border-radius: 0 12px 12px 0;
	background: var(--acc-grad);
	color: var(--acc-ink) !important;
	border: 0;
	padding: 0 18px;
}
.lockscreen-credentials .btn .fa { margin: 0; color: var(--acc-ink); }
.lockscreen .help-block { color: var(--muted); font-size: 12.5px; }
.lockscreen a { font-size: 12.8px; }

/* ====================== 25 · EMPTY / ERROR STATES ====================== */
.esa-empty {
	text-align: center;
	padding: 44px 20px;
	color: var(--muted);
}
.esa-empty .fa {
	font-size: 34px;
	color: var(--dim);
	display: block;
	margin-bottom: 14px;
	opacity: .8;
}
.esa-empty strong { color: var(--text); display: block; font-size: 15px; margin-bottom: 4px; font-family: var(--font-display); }
.esa-empty p { font-size: 13px; margin: 0; }

.esa-error-state {
	max-width: 520px;
	margin: 8vh auto;
	text-align: center;
	background: linear-gradient(170deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line-strong);
	border-radius: 22px;
	padding: 42px 36px;
	box-shadow: var(--shadow-2);
}
.esa-error-state .ee-code {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 12px;
}
.esa-error-state .fa {
	font-size: 40px;
	color: var(--red);
	margin-bottom: 16px;
	display: inline-block;
}
.esa-error-state h2 { font-size: 20px; margin: 0 0 10px; }
.esa-error-state p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ====================== 26 · LEGACY HELPERS ====================== */
/* AdminLTE .box (user profile pages etc.) → same look as panels */
.box {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	margin-bottom: 22px;
	position: relative;
}
.box.box-primary, .box.box-default, .box.box-info, .box.box-success, .box.box-warning, .box.box-danger { border-top: 1px solid var(--line); }
.box-header {
	padding: 15px 20px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
}
.box-header .box-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; margin: 0; }
.box-body { padding: 20px; }
.box-footer {
	padding: 12px 20px;
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, .015);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.box-profile { text-align: center; }
.profile-user-img {
	width: 96px; height: 96px;
	margin: 6px auto 12px;
	border-radius: 50%;
	border: 3px solid rgba(var(--acc-rgb), .5);
	box-shadow: 0 0 28px -8px rgba(var(--acc-rgb), .6);
	object-fit: cover;
}
.profile-username { font-size: 17px; margin: 4px 0 2px; word-break: break-all; }
.box-profile .btn-block { margin-top: 14px; }

/* machine install guide */
.install-guide {
	background: rgba(4, 8, 16, .45);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 16px 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}
.install-guide code, .install-guide pre {
	display: block;
	margin: 8px 0;
	padding: 10px 14px;
	background: #05080f;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	color: #9defbd;
	font-size: 12px;
	white-space: pre-wrap;
	word-break: break-all;
}

/* row hover highlight applied per-cell by csa-panel.js (CreateDatatable) */
.table td.datatable_highlight,
.table th.datatable_highlight,
table.dataTable td.datatable_highlight {
	background: rgba(var(--acc-rgb), .08) !important;
	color: #fff !important;
}
/* jQuery UI sortable placeholder (manage games config ordering) */
tr.datatable_highlight, li.datatable_highlight, div.datatable_highlight {
	background: rgba(var(--acc-rgb), .1) !important;
	border: 1px dashed rgba(var(--acc-rgb), .5) !important;
	border-radius: 8px;
	height: 40px;
}

/* TinyMCE 4 chrome → dark (editing canvas stays white: emails render on white) */
.mce-tinymce, .mce-panel {
	background: var(--surface-2) !important;
	background-image: none !important;
	border-color: var(--line-strong) !important;
}
.mce-tinymce { border-radius: var(--r-md) !important; overflow: hidden !important; box-shadow: var(--shadow-1) !important; }
.mce-toolbar-grp, .mce-menubar, .mce-statusbar { background: var(--surface-2) !important; border-color: var(--line) !important; }
.mce-btn {
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 7px !important;
}
.mce-btn button { color: var(--muted) !important; text-shadow: none !important; }
.mce-btn .mce-ico { color: var(--muted) !important; }
.mce-btn:hover, .mce-btn:focus {
	background: rgba(255, 255, 255, .06) !important;
	border-color: var(--line) !important;
}
.mce-btn:hover .mce-ico, .mce-btn.mce-active .mce-ico { color: var(--text) !important; }
.mce-btn.mce-active, .mce-btn.mce-active:hover {
	background: rgba(var(--acc-rgb), .15) !important;
	border-color: rgba(var(--acc-rgb), .4) !important;
}
.mce-menubtn button span { color: var(--muted) !important; }
.mce-menu {
	background: var(--raised) !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: 10px !important;
	box-shadow: var(--shadow-2) !important;
}
.mce-menu-item { background: transparent !important; }
.mce-menu-item .mce-text, .mce-menu-item .mce-ico { color: var(--muted) !important; }
.mce-menu-item:hover, .mce-menu-item.mce-selected, .mce-menu-item:focus {
	background: rgba(var(--acc-rgb), .12) !important;
}
.mce-menu-item:hover .mce-text, .mce-menu-item.mce-selected .mce-text { color: var(--text) !important; }
.mce-path-item, .mce-statusbar .mce-path .mce-divider { color: var(--dim) !important; }
.mce-edit-area { background: #fff !important; border-color: var(--line) !important; }
.mce-window {
	background: var(--surface-2) !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: var(--r-lg) !important;
}
.mce-window-head { background: transparent !important; border-bottom: 1px solid var(--line) !important; }
.mce-window-head .mce-title { color: var(--text) !important; }
.mce-window .mce-foot { background: transparent !important; border-top: 1px solid var(--line) !important; }
.mce-textbox, .mce-listbox {
	background: rgba(4, 8, 16, .6) !important;
	border: 1px solid var(--line-strong) !important;
	color: var(--text) !important;
	border-radius: 8px !important;
}
.mce-label { color: var(--muted) !important; text-shadow: none !important; }
/* admin dash legacy machine-status list filled by ajax */
.site-stats { list-style: none; margin: 0; padding: 0; }
.site-stats li { margin-bottom: 10px; }
.site-stats .cc {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(4, 8, 16, .4);
}
.site-stats .cc .fa { color: var(--acc); font-size: 19px; width: 28px; text-align: center; }
.site-stats .cc strong {
	font-family: var(--font-display);
	font-size: 19px;
	color: var(--text);
}
.site-stats .cc small {
	color: var(--dim);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
/* graphs */
#graphs img, .graphs img { border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; padding: 4px; }
canvas { max-width: 100%; }

/* old inline color spans in templates */
span[style*="color:red"], span[style*="color: red"] { color: #ff7a87 !important; }
span[style*="color:green"], span[style*="color: green"] { color: #3fe896 !important; }

/* custom checkbox (.cr pattern used across admin forms) */
.checkbox label, .radio label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox .cr, .radio .cr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	background: rgba(4, 8, 16, .6);
	transition: all .18s var(--ease);
	flex-shrink: 0;
}
.checkbox .cr .cr-icon, .radio .cr .cr-icon {
	font-size: 12px;
	color: var(--acc-ink);
	opacity: 0;
	transform: scale(.4);
	transition: all .18s var(--ease);
}
.checkbox label input[type="checkbox"], .radio label input[type="radio"] { display: none; }
.checkbox label input[type="checkbox"]:checked + .cr,
.radio label input[type="radio"]:checked + .cr {
	background: var(--acc-grad);
	border-color: transparent;
	box-shadow: 0 0 12px -3px rgba(var(--acc-rgb), .7);
}
.checkbox label input[type="checkbox"]:checked + .cr > .cr-icon,
.radio label input[type="radio"]:checked + .cr > .cr-icon { opacity: 1; transform: scale(1); }

/* subuser permission pickers */
.subuser-perms { width: 100%; }
.subuser-perms td { padding: 4px 6px; }
.perm-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: rgba(4, 8, 16, .4);
	color: var(--muted);
	font-weight: 500;
	font-size: 12.8px;
	cursor: pointer;
	transition: all .15s var(--ease);
	margin-bottom: 0;
	width: 100%;
}
.perm-option:hover { border-color: rgba(var(--acc-rgb), .4); color: var(--text); }
.perm-option input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.subuser-perms-list { width: 100%; }
.subuser-perms-list > tbody > tr > td { padding: 6px; vertical-align: top; }

/* legacy "float:right action button above a panel" pattern on admin lists */
section.content > div[style*="float:right"],
section.content > div[style*="float: right"] {
	margin-bottom: 12px;
}
section.content > div[style*="float:right"] + .panel,
section.content > div[style*="float: right"] + .panel,
section.content > div[style*="float:right"] + .row,
section.content > div[style*="float: right"] + .row { clear: both; }

/* core license/version bar (emitted by panel PHP, markup not editable) */
.footer {
	padding: 14px 28px;
	color: var(--dim);
	font-size: 12px;
	border-top: 1px solid var(--line);
	background: transparent;
}
.footer a, .footer > a { color: var(--muted); }
.footer a:hover, .footer > a:hover { color: var(--acc); }

/* ====================== 27 · ANIMATIONS ====================== */
@keyframes esaFadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}
@keyframes esaPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .45; }
}
@keyframes esaDrift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-90px, 60px) scale(1.15); }
}
.server-card:nth-child(2) { animation-delay: .05s; }
.server-card:nth-child(3) { animation-delay: .1s; }
.server-card:nth-child(4) { animation-delay: .15s; }
.server-card:nth-child(5) { animation-delay: .2s; }
.server-card:nth-child(6) { animation-delay: .25s; }
section.content > .row, section.content > .panel, section.content > .server-hero,
section.content > .esa-stats, section.content > .server-grid, section.content > form {
	animation: esaFadeUp .32s var(--ease) backwards;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ====================== 28 · RESPONSIVE ====================== */
@media (min-width: 1600px) {
	.content-wrapper { padding-left: 36px; padding-right: 36px; }
	.server-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}

@media (max-width: 1199px) {
	.esa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.esa-duo { grid-template-columns: 1fr; }
	.esa-auth-brand { padding: 40px; }
	.esa-auth-brand h1 { font-size: 32px; }
}

@media (max-width: 991px) {
	.esa-auth-brand { display: none; }
	.esa-auth-side { padding: 32px 20px; }
	.sh-actions { margin-left: 0; width: 100%; }
	.sh-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 767px) {
	/* sidebar becomes drawer */
	.main-sidebar {
		transform: translateX(calc(-1 * var(--sb-w) - 20px));
		width: var(--sb-w) !important;
		box-shadow: none;
	}
	body.sidebar-open .main-sidebar {
		transform: translateX(0);
		box-shadow: 40px 0 80px rgba(0, 0, 0, .6);
	}
	body.sidebar-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 1035;
		background: rgba(2, 4, 10, .6);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
		pointer-events: none;
	}
	body.sidebar-open .main-sidebar { z-index: 1041; }
	/* collapse state irrelevant on mobile */
	body.sidebar-collapse .sb-brand .sb-logo-text,
	body.sidebar-collapse .user-panel .info,
	body.sidebar-collapse .sidebar-menu > li > a > span,
	body.sidebar-collapse .sidebar-menu .pull-right,
	body.sidebar-collapse .sidebar-menu > li.header,
	body.sidebar-collapse .sb-support { display: block; }
	body.sidebar-collapse .sidebar-menu > li.header { display: block; }
	body.sidebar-collapse .sidebar-menu > li > a { justify-content: flex-start; }
	body.sidebar-collapse .sb-brand { padding: 0 18px; justify-content: flex-start; }

	.main-header { left: 0 !important; padding: 0 12px; gap: 10px; }
	.content-wrapper, .main-footer { margin-left: 0 !important; }
	.content-wrapper { padding: calc(var(--th-h) + 16px) 14px 20px; }
	.mh-page h1 { font-size: 14.5px; }
	.mh-user .mh-username { display: none; }
	#clock, #gototop { display: none; }
	.content-header h1 { font-size: 21px; }

	.esa-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.esa-stat { padding: 13px 14px; gap: 11px; }
	.esa-stat-value { font-size: 18px; }
	.esa-stat-icon { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
	.server-grid { grid-template-columns: 1fr; }

	.server-hero { padding: 18px 16px; gap: 14px; }
	.sh-glyph { width: 50px; height: 50px; font-size: 21px; border-radius: 14px; }
	.sh-meta h2 { font-size: 19px; white-space: normal; }

	.nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.nav-tabs > li { flex-shrink: 0; }

	.panel-body { padding: 15px; }
	.well, .well-lg { padding: 14px; }

	/* form stacking */
	.form-horizontal .control-label {
		text-align: left;
		margin-bottom: 5px;
		padding-top: 0;
	}

	/* tables scroll horizontally instead of breaking layout */
	.panel-body > .table, .panel-body .dataTables_wrapper {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	div.dataTables_filter, div.dataTables_length { float: none !important; text-align: left !important; }
	div.dataTables_filter input { width: 100%; margin-left: 0; }
	div.dataTables_filter label { width: 100%; }

	.modal-dialog { margin: 12px; }
	#screencon { height: 52vh; min-height: 220px; }
	.console-header { flex-wrap: wrap; }
	.console-header::before { margin-right: 28px; }
	.console-actions { width: 100%; }
	.console-actions .btn { flex: 1; }

	.esa-auth-card { padding: 26px 20px 22px; }
	.fm-actions .btn { flex: 1; min-width: calc(50% - 8px); }
	.sc-foot { flex-wrap: wrap; }
	.main-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
	.esa-stats { grid-template-columns: 1fr; }
	.mh-actions > li > a, .mh-btn { width: 34px; height: 34px; }
	.sh-actions .btn { min-width: calc(50% - 6px); }
}
