/* Unified premium sidebar for the Xephiron blue template. */
.xe-sidebar-card {
	position: relative;
	width: 100%;
	margin: 0 0 18px;
	overflow: hidden;
	border: 1px solid #294b64;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(9, 24, 38, .99), rgba(4, 13, 23, .99));
	box-shadow: 0 13px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(88, 215, 255, .04);
	color: #dcecff;
}

.xe-sidebar-card:before {
	position: absolute;
	top: 0;
	left: 8%;
	width: 84%;
	height: 1px;
	z-index: 2;
	content: "";
	background: linear-gradient(90deg, transparent, #1598ff, #70e4ff, #1598ff, transparent);
	box-shadow: 0 0 9px rgba(88, 215, 255, .48);
}

.xe-sidebar-heading {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 61px;
	padding: 12px 13px;
	align-items: center;
	gap: 9px;
	border-bottom: 1px solid #2b4960;
	background:
		radial-gradient(circle at 14% 0, rgba(21, 152, 255, .14), transparent 34%),
		linear-gradient(90deg, rgba(15, 40, 60, .95), rgba(6, 18, 31, .98));
}

.xe-sidebar-heading-icon {
	display: flex;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(88, 215, 255, .34);
	border-radius: 50%;
	background: rgba(21, 152, 255, .08);
	color: #62dcff;
	font-size: 10px;
	font-weight: 700;
	box-shadow: 0 0 13px rgba(21, 152, 255, .09);
}

.xe-sidebar-heading-icon.is-user { font-size: 9px; }
.xe-sidebar-heading-icon.is-server { color: #71e9b4; border-color: rgba(72, 233, 160, .31); background: rgba(72, 233, 160, .07); }
.xe-sidebar-heading-icon.is-castle { color: #f2d276; border-color: rgba(243, 201, 91, .38); background: rgba(243, 201, 91, .07); font-size: 16px; }

.xe-sidebar-heading > div {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
}

.xe-sidebar-heading > div strong,
.xe-sidebar-heading > div small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-heading > div strong {
	color: #eff9ff;
	font-family: 'Cinzel', 'PT Sans', sans-serif;
	font-size: 12px;
	line-height: 17px;
}

.xe-sidebar-heading > div small {
	margin-top: 2px;
	color: #69859a;
	font-size: 8px;
}

.xe-sidebar-heading-action {
	max-width: 94px;
	padding: 5px 7px;
	overflow: hidden;
	border: 1px solid #377fa8;
	border-radius: 3px;
	background: rgba(21, 152, 255, .1);
	color: #70ddff !important;
	font-size: 7px;
	font-weight: 700;
	line-height: 11px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-heading-action:hover {
	border-color: #71e3ff;
	background: rgba(21, 152, 255, .22);
	color: #fff !important;
}

.xe-sidebar-heading-action.is-logout {
	border-color: rgba(255, 82, 107, .34);
	background: rgba(255, 82, 107, .07);
	color: #ff9cab !important;
}

.xe-sidebar-heading-action.is-logout:hover {
	border-color: #ff8293;
	background: rgba(255, 82, 107, .17);
	color: #fff !important;
}

.xe-sidebar-body {
	padding: 14px;
}

/* LOGIN */
.xe-sidebar-login-form label {
	display: block;
	margin: 0 0 6px;
	color: #708ba0;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .45px;
	text-transform: uppercase;
}

.xe-sidebar-input {
	position: relative;
	display: flex;
	width: 100%;
	margin-bottom: 12px;
	align-items: center;
}

.xe-sidebar-input > span {
	position: absolute;
	left: 11px;
	z-index: 1;
	display: flex;
	width: 19px;
	height: 19px;
	align-items: center;
	justify-content: center;
	border: 1px solid #31536c;
	border-radius: 50%;
	background: rgba(21, 152, 255, .07);
	color: #59d6ff;
	font-size: 7px;
	font-weight: 700;
}

.xe-sidebar-input .form-control {
	width: 100%;
	height: 42px;
	padding: 9px 11px 9px 39px;
	border: 1px solid #2b4a62 !important;
	border-radius: 4px;
	background: rgba(3, 14, 24, .86) !important;
	box-shadow: inset 0 2px 7px rgba(0, 0, 0, .24) !important;
	color: #eaf7ff !important;
	font-size: 10px;
}

.xe-sidebar-input .form-control::placeholder { color: #526d82; }
.xe-sidebar-input .form-control:hover { border-color: #39657f !important; }
.xe-sidebar-input .form-control:focus {
	border-color: #35bfff !important;
	box-shadow: 0 0 0 3px rgba(21, 152, 255, .1), 0 0 16px rgba(21, 152, 255, .08) !important;
}

.xe-sidebar-login-button.btn-primary {
	position: relative;
	display: flex;
	width: 100%;
	height: 42px;
	margin-top: 3px;
	padding: 0 13px;
	overflow: hidden;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #4ac8ff !important;
	border-radius: 4px;
	background: linear-gradient(180deg, #1db1f3, #087dcc) !important;
	box-shadow: 0 7px 19px rgba(0, 123, 207, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
	color: #fff !important;
	font-size: 10px;
	font-weight: 700;
}

.xe-sidebar-login-button:before {
	position: absolute;
	top: 0;
	left: -52%;
	width: 35%;
	height: 100%;
	content: "";
	transform: skewX(-24deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
	transition: left .42s ease;
}

.xe-sidebar-login-button:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #35c2ff, #0b8ddd) !important;
	box-shadow: 0 9px 22px rgba(21, 152, 255, .31) !important;
}

.xe-sidebar-login-button:hover:before { left: 118%; }
.xe-sidebar-login-button span,
.xe-sidebar-login-button strong { position: relative; z-index: 1; }
.xe-sidebar-login-button strong { font-size: 14px; }

.xe-sidebar-secure {
	display: flex;
	margin-top: 11px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #587287;
	font-size: 8px;
}

.xe-sidebar-secure span {
	display: flex;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(72, 233, 160, .29);
	border-radius: 50%;
	color: #6ce8af;
	font-size: 6px;
}

/* USER MENU */
.xe-sidebar-usercp .xe-sidebar-body { padding: 9px; }
.xe-sidebar-user-menu {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xe-sidebar-user-menu li {
	width: 100%;
	margin: 0 0 6px;
}

.xe-sidebar-user-menu li:last-child { margin-bottom: 0; }

.xe-sidebar-user-menu li > a {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 43px;
	padding: 6px 9px;
	align-items: center;
	gap: 9px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: rgba(7, 23, 37, .58);
	color: #cfe4f3 !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.xe-sidebar-user-menu li > a:before {
	position: absolute;
	top: 20%;
	left: 0;
	width: 2px;
	height: 60%;
	content: "";
	background: #1598ff;
	opacity: 0;
	box-shadow: 0 0 7px rgba(21, 152, 255, .65);
	transition: opacity .18s ease;
}

.xe-sidebar-user-menu li > a:hover {
	transform: translateX(2px);
	border-color: #315875;
	background: rgba(15, 43, 65, .78);
	color: #fff !important;
}

.xe-sidebar-user-menu li > a:hover:before { opacity: 1; }

.xe-sidebar-user-icon {
	display: flex;
	width: 31px;
	height: 31px;
	flex: 0 0 31px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #355b75;
	border-radius: 4px;
	background: #030c15;
	box-shadow: 0 4px 9px rgba(0, 0, 0, .28);
}

.xe-sidebar-user-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.xe-sidebar-user-title {
	min-width: 0;
	flex: 1;
	overflow: hidden;
	font-size: 10px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-user-arrow {
	color: #315c79;
	font-size: 15px;
	transition: color .18s ease;
}

.xe-sidebar-user-menu li > a:hover .xe-sidebar-user-arrow { color: #63dcff; }

/* SERVER INFORMATION */
.xe-sidebar-live,
.xe-sidebar-castle-state {
	display: inline-flex;
	padding: 5px 7px;
	align-items: center;
	gap: 5px;
	border: 1px solid rgba(72, 233, 160, .27);
	border-radius: 14px;
	background: rgba(72, 233, 160, .055);
	color: #74eab6;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.xe-sidebar-live i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #48e9a0;
	box-shadow: 0 0 7px rgba(72, 233, 160, .75);
}

.xe-sidebar-server-list { padding: 9px; }

.xe-sidebar-server-row {
	display: grid;
	min-width: 0;
	min-height: 42px;
	padding: 6px 8px;
	grid-template-columns: 27px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #1f374a;
	transition: background .18s ease;
}

.xe-sidebar-server-row:last-child { border-bottom: 0; }
.xe-sidebar-server-row:hover { background: rgba(21, 152, 255, .045); }

.xe-sidebar-server-icon {
	display: flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	border: 1px solid #2d5069;
	border-radius: 50%;
	background: rgba(21, 152, 255, .06);
	color: #5cd8ff;
	font-size: 7px;
	font-weight: 700;
}

.xe-sidebar-server-label {
	min-width: 0;
	overflow: hidden;
	color: #8da5b8;
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-server-row > strong {
	max-width: 90px;
	overflow: hidden;
	color: #e9f6ff;
	font-size: 10px;
	font-weight: 700;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-server-row.is-total .xe-sidebar-server-icon {
	border-color: rgba(141, 116, 255, .28);
	background: rgba(141, 116, 255, .055);
	color: #ad9aff;
}

.xe-sidebar-server-row.is-online .xe-sidebar-server-icon {
	border-color: rgba(72, 233, 160, .3);
	background: rgba(72, 233, 160, .06);
	color: #48e9a0;
	font-size: 6px;
}

.xe-sidebar-server-row.is-online > strong { color: #58e8a8; text-shadow: 0 0 8px rgba(72, 233, 160, .22); }

/* CASTLE SIEGE */
.xe-sidebar-castle {
	background:
		linear-gradient(180deg, rgba(6, 19, 32, .92), rgba(3, 11, 20, .99)),
		url('../img/castle_owner_bg.jpg') top right / cover no-repeat;
}

.xe-sidebar-castle:before {
	background: linear-gradient(90deg, transparent, #1598ff, #f3c95b, #1598ff, transparent);
}

.xe-sidebar-castle-state {
	border-color: rgba(243, 201, 91, .28);
	background: rgba(243, 201, 91, .055);
	color: #e8ca72;
}

.xe-sidebar-castle-state.is-vacant {
	border-color: #31516a;
	background: rgba(2, 10, 18, .48);
	color: #7892a6;
}

.xe-sidebar-castle-body { padding: 13px; }

.xe-sidebar-castle-owner {
	display: grid;
	min-width: 0;
	grid-template-columns: 94px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.xe-sidebar-castle-mark {
	position: relative;
	display: flex;
	width: 94px;
	height: 94px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(243, 201, 91, .34);
	background: rgba(2, 8, 14, .84);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .38), inset 0 0 18px rgba(243, 201, 91, .045);
}

.xe-sidebar-castle-mark:before,
.xe-sidebar-castle-mark:after {
	position: absolute;
	width: 18px;
	height: 18px;
	content: "";
	border-color: #f3c95b;
}

.xe-sidebar-castle-mark:before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.xe-sidebar-castle-mark:after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.xe-sidebar-castle-mark img { width: 82px !important; height: 82px !important; image-rendering: pixelated; }

.xe-sidebar-castle-owner-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.xe-sidebar-castle-owner-copy small {
	margin-bottom: 3px;
	color: #81785a;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.xe-sidebar-castle-owner-copy strong,
.xe-sidebar-castle-owner-copy strong a {
	overflow: hidden;
	color: #f0d477 !important;
	font-family: 'Cinzel', serif;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-castle-owner-copy > span,
.xe-sidebar-castle-owner-copy > span a {
	overflow: hidden;
	color: #d7e8f4 !important;
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xe-sidebar-castle-owner-copy small:nth-of-type(2) { margin-top: 12px; }

.xe-sidebar-castle-details {
	display: grid;
	margin-top: 13px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.xe-sidebar-castle-details > div {
	display: flex;
	min-width: 0;
	min-height: 67px;
	padding: 9px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border: 1px solid #29475d;
	background: rgba(5, 18, 30, .78);
	text-align: center;
}

.xe-sidebar-castle-details small {
	color: #6f899d;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.xe-sidebar-castle-details strong {
	margin-top: 5px;
	color: #e9f5fc;
	font-size: 9px;
	font-weight: 700;
	line-height: 13px;
}

.xe-sidebar-castle-details .is-countdown {
	border-color: rgba(243, 201, 91, .25);
	background: rgba(243, 201, 91, .04);
}

.xe-sidebar-castle-details .is-countdown strong { color: #f2d47b; }

.xe-sidebar-castle-button {
	display: flex;
	width: 100%;
	height: 39px;
	margin-top: 10px;
	padding: 0 12px;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #4ac6f8;
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(22, 152, 216, .92), rgba(7, 91, 149, .95));
	box-shadow: 0 6px 16px rgba(0, 105, 173, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
	color: #fff !important;
	font-size: 9px;
	font-weight: 700;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.xe-sidebar-castle-button strong { font-size: 14px; }
.xe-sidebar-castle-button:hover {
	transform: translateY(-1px);
	border-color: #8ce9ff;
	background: linear-gradient(180deg, #27b8ef, #0879bf);
	box-shadow: 0 9px 21px rgba(21, 152, 255, .27);
	color: #fff !important;
}

/* SIDEBAR BANNERS */
.sidebar-banner {
	position: relative;
	margin: 0 0 18px;
}

.sidebar-banner a {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid #294b64;
	border-radius: 7px;
	background: #06111e;
	box-shadow: 0 11px 25px rgba(0, 0, 0, .3);
}

.sidebar-banner a:after {
	position: absolute;
	inset: 0;
	content: "";
	border: 1px solid rgba(88, 215, 255, 0);
	box-shadow: inset 0 0 20px rgba(21, 152, 255, 0);
	transition: border-color .2s ease, box-shadow .2s ease;
	pointer-events: none;
}

.sidebar-banner img {
	display: block;
	width: 100%;
	height: auto;
	border: 0 !important;
	border-radius: 6px;
	box-shadow: none !important;
	transition: transform .25s ease, filter .25s ease;
}

.sidebar-banner a:hover:after { border-color: rgba(88, 215, 255, .42); box-shadow: inset 0 0 20px rgba(21, 152, 255, .09); }
.sidebar-banner a:hover img { transform: scale(1.025); filter: brightness(1.09); }

@media (max-width: 760px) {
	.xe-sidebar-heading { min-height: 57px; }
	.xe-sidebar-heading-action { max-width: 82px; }
}

/* 2026-08-26 sidebar readability / layout patch */
.xe-sidebar-heading > div strong { font-size: 14px; line-height: 19px; }
.xe-sidebar-heading > div small { font-size: 10px; line-height: 14px; }
.xe-sidebar-heading-action,
.xe-sidebar-live,
.xe-sidebar-castle-state { font-size: 9px; }
.xe-sidebar-user-title { font-size: 12px; }
.xe-sidebar-server-label { font-size: 11px; }
.xe-sidebar-server-row > strong { font-size: 12px; }
.xe-sidebar-server-icon { font-size: 9px; }
.xe-sidebar-castle-owner-copy small,
.xe-sidebar-castle-details small { font-size: 9px; }
.xe-sidebar-castle-owner-copy strong,
.xe-sidebar-castle-owner-copy strong a { font-size: 14px; }
.xe-sidebar-castle-owner-copy > span,
.xe-sidebar-castle-owner-copy > span a,
.xe-sidebar-castle-details strong { font-size: 11px; line-height: 15px; }
.xe-sidebar-castle-button { font-size: 11px; }

@media (max-width: 420px) {
  .xe-sidebar-heading { padding: 11px; gap: 8px; }
  .xe-sidebar-heading-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .xe-sidebar-heading-action { max-width: 78px; padding: 5px 6px; }
  .xe-sidebar-castle-owner { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .xe-sidebar-castle-mark { width: 82px; height: 82px; }
  .xe-sidebar-castle-mark img { width: 72px !important; height: 72px !important; }
}
