/*
	@Theme Name  : Drahy's Modern
	@Description : Dark gold WoW-style theme built from a single mockup image.
	@Version     : 1.0.0

	-------------------------------------------------------------------------

	01. Base + variables
	02. Page frame
	03. Top strip
	04. Main navigation + logo crest
	05. Hero slider + CTA
	06. Content layout
	07. Boxes (CMS .box) + sideboxes
	08. Welcome box + feature cards
	09. Realm status sidebox
	10. Tables, forms, buttons
	11. Dropdowns, pills, popups
	12. Footer
	13. Responsive
*/

/* ------------------------------------------------------------------------- */
/* 01. Base + variables                                                       */
/* ------------------------------------------------------------------------- */

:root {
	--m-width: 1200px;
	/* Single frame asset via border-image — corners stay sharp, rails repeat.
	   Slim accent frame (~33% narrower than v1.1.7). */
	--m-frame-border: 42px;
	--m-frame-clip-x: 17px;
	--m-frame-clip-t: 16px;
	--m-frame-clip-b: 17px;
	--m-frame-inset-x: 12px;
	--m-frame-inset-t: 13px;
	--m-frame-inset-b: 9px;
	--m-bg: #0a0704;
	--m-panel: #16100a;
	--m-panel-2: #120c06;
	--m-border: #3f2e14;
	--m-border-strong: #6b5020;
	--m-gold: #e4c06a;
	--m-gold-bright: #f5ddb0;
	--m-gold-dim: #b89448;
	--m-item-hover-border: rgba(212, 173, 98, 0.38);
	--m-item-hover-bg: rgba(212, 173, 98, 0.06);
	--m-item-hover-shadow: 0 0 10px rgba(212, 173, 98, 0.1), inset 0 0 8px rgba(0, 0, 0, 0.28);
	--m-text: #c8bba8;
	--m-text-dim: #948676;
	--m-red: #b3362a;
	--m-green: #58a86a;
	--m-font-display: "Cinzel", Georgia, "Times New Roman", serif;
	--m-font-body: "Roboto", Arial, sans-serif;
}

/* Background composed for 1200px centred panel: flags sit in far left/right margins. */
body {
	margin: 0;
	font-family: var(--m-font-body);
	font-size: 13px;
	line-height: 1.55;
	color: var(--m-text);
	background:
		linear-gradient(180deg, rgba(8, 5, 2, 0.1) 0%, rgba(8, 5, 2, 0.04) 30%, rgba(6, 4, 2, 0.12) 70%, rgba(6, 4, 2, 0.22) 100%),
		url("../images/background.jpg?v=2") no-repeat center center / cover fixed,
		linear-gradient(180deg, #1a120b 0%, #120c07 45%, #0a0704 100%);
	background-color: var(--m-bg);
}

a {
	color: var(--m-gold);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--m-gold-bright);
}

::selection {
	background: rgba(176, 125, 31, 0.6);
	color: #fff;
}

::-webkit-scrollbar {
	width: 10px;
	background: #0d0905;
}

::-webkit-scrollbar-thumb {
	background: #392a13;
	border-radius: 5px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--m-font-display);
	color: var(--m-gold);
	font-weight: 600;
}

/* ------------------------------------------------------------------------- */
/* 02. Page frame                                                             */
/* ------------------------------------------------------------------------- */

/*
 * Outer shell: one frame asset applied as border-image on an overlay.
 * Corners render 1:1, rails repeat — nothing gets stretched, no seams.
 */
.modern-page {
	width: var(--m-width);
	max-width: calc(100% - 24px);
	margin: 32px auto 0; /* top gap for the plaque crystal; copyright fills the bottom gap */
	/* dark panel only INSIDE the frame rails; background shows around the page */
	border-style: solid;
	border-color: transparent;
	border-width: var(--m-frame-clip-t) var(--m-frame-clip-x) var(--m-frame-clip-b);
	background: linear-gradient(180deg, rgba(24, 16, 9, 0.99), rgba(13, 9, 5, 1));
	background-clip: padding-box;
	padding: var(--m-frame-inset-t) var(--m-frame-inset-x) var(--m-frame-inset-b);
	position: relative;
	overflow: visible;
}

/* No z-index here: children (logo crest z50, dropdowns) must be able to
   stack above .modern-frame (z40) inside the same stacking context. */
.modern-page-inner {
	position: relative;
	background: linear-gradient(180deg, rgba(24, 16, 9, 0.98), rgba(15, 10, 5, 0.99));
	box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
}

.modern-frame {
	position: absolute;
	/* span the full border-box (inset:0 would only cover the padding box) */
	inset: calc(-1 * var(--m-frame-clip-t)) calc(-1 * var(--m-frame-clip-x)) calc(-1 * var(--m-frame-clip-b));
	z-index: 40; /* above content so corner ornaments overlay it, like the mockup */
	pointer-events: none;
	border: var(--m-frame-border) solid transparent;
	border-image: url("../images/frame.png") 210 round;
	filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.75));
}

/* ------------------------------------------------------------------------- */
/* 03. Status + user (integrated into the main nav row)                       */
/* ------------------------------------------------------------------------- */

/* Keep open account menus above the decorative frame without changing the
   frame's layering over page content. */
.modern-header {
	position: relative;
	z-index: 60;
}

.modern-status-label {
	color: var(--m-red);
	font-weight: 700;
}

.modern-status-label.is-online {
	color: var(--m-green);
}

/* Navigation keeps the managers' restrained gold treatment without glow. */
.modern-header,
#mobileMenu {
	--m-item-hover-shadow: none;
}

.modern-header .nav-item,
.modern-header .dropdown-item,
#mobileMenu .nav-item,
#mobileMenu .nav-link,
#mobileMenu .dropdown-item {
	text-shadow: none;
}

.modern-nav-user {
	flex: 0 0 auto;
	position: relative;
	z-index: 60;
	align-self: center;
}

.modern-nav-user .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	color: #e8d090;
	cursor: pointer;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--m-font-body);
	font-size: 10.5px;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	padding: 4px 9px;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.modern-nav-user .dropdown-toggle::after {
	display: none;
}

.modern-nav-user .dropdown-toggle:hover,
.modern-nav-user .dropdown-toggle:focus-visible,
.modern-nav-user .dropdown-toggle[aria-expanded="true"] {
	color: var(--m-gold);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.modern-nav-user .dropdown-toggle i {
	font-size: 10px;
}

.modern-nav-user .dropdown-menu {
	z-index: 2000;
	min-width: 220px;
	margin: 9px 0 0;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(154, 111, 39, 0.76);
	border-radius: 4px;
	background: linear-gradient(180deg, rgba(25, 16, 8, 0.995), rgba(12, 8, 4, 0.995));
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 226, 151, 0.06);
}

.modern-nav-user .dropdown-menu::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 24px;
	width: 10px;
	height: 10px;
	border-top: 1px solid rgba(154, 111, 39, 0.76);
	border-left: 1px solid rgba(154, 111, 39, 0.76);
	background: #191008;
	transform: rotate(45deg);
}

.modern-nav-user .dropdown-menu > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.modern-nav-user .dropdown-menu > li + li {
	border-top: 1px solid rgba(107, 80, 32, 0.35);
}

.modern-nav-user .account-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #d8bf83;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.modern-nav-user .account-menu-item i {
	flex: 0 0 20px;
	width: 20px;
	color: #9f7b35;
	font-size: 12px;
	text-align: center;
}

.modern-nav-user .account-menu-item:hover,
.modern-nav-user .account-menu-item:focus-visible {
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	color: var(--m-gold-bright);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.modern-nav-user .account-menu-item:hover i,
.modern-nav-user .account-menu-item:focus-visible i {
	color: #efc865;
}

.modern-nav-user .account-menu-signout:hover,
.modern-nav-user .account-menu-signout:focus {
	border-color: rgba(176, 74, 61, 0.4);
	background: rgba(130, 38, 29, 0.12);
	color: #e9b0a6;
}

.modern-nav-user .account-menu-signout:hover i,
.modern-nav-user .account-menu-signout:focus i {
	color: #cf7768;
}

.modern-toggler {
	position: relative;
	z-index: 60;
	display: none;
	flex: 0 0 auto;
	align-self: center;
	margin-left: 10px;
	border: 1px solid var(--m-border-strong);
	background: rgba(20, 12, 5, 0.8);
	border-radius: 4px;
	padding: 4px 8px;
}

.modern-toggler .navbar-toggler-icon {
	filter: invert(0.75) sepia(0.5);
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------------- */
/* 04. Main navigation + logo crest                                           */
/* ------------------------------------------------------------------------- */

.modern-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 64px;
	padding: 0 48px; /* keep login clear of the frame corners */
	background: linear-gradient(180deg, rgba(30, 20, 10, 0.96), rgba(18, 11, 5, 0.98));
	border-bottom: 1px solid rgba(87, 64, 27, 0.55);
	box-shadow: 0 1px 0 rgba(212, 173, 98, 0.08);
	position: relative;
}

.modern-nav-side {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	align-items: stretch;
}

.modern-nav-side--left {
	padding-right: 180px;
}

.modern-nav-side--right {
	padding-left: 180px;
}

.modern-nav-side--right .modern-nav-user { flex: 0 0 auto; margin-left: 6px; }

/* space-between keeps the outer gaps identical on both sides: first item
   sits exactly at the nav padding, last item at the logo-side padding */
.modern-nav-list {
	flex: 1 1 auto;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}

.modern-nav-side--left .modern-nav-list {
	padding-right: 0;
}

.modern-nav-side--right .modern-nav-list {
	padding-left: 0;
}

@media (min-width: 1200px) {
	.modern-nav-side--right {
		justify-content: flex-end;
		gap: 10px;
	}

	.modern-nav-side--right .modern-nav-list {
		flex: 0 0 auto;
		gap: 10px;
		padding-left: 0;
	}

	.modern-nav-side--right .modern-nav-list > .nav-item > .nav-link {
		padding-right: 2px;
		padding-left: 2px;
	}

	.modern-nav-side--right .modern-nav-user {
		margin-left: 0;
	}
}

.modern-nav-list > .nav-item {
	display: flex;
	position: relative;
}

.modern-nav-list > .nav-item > .nav-link {
	display: flex;
	align-items: center;
	align-self: center;
	height: 38px;
	margin: 13px 1px;
	/* compact enough that "Account Manager" fits next to the logo */
	padding: 0 5px;
	font-family: var(--m-font-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #dcc078;
	text-shadow: none;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Mini-icon from menu.tpl (Font Awesome) — replaces the old star bullet */
.modern-nav-list > .nav-item > .nav-link > i:not(.dropdown-arrow) {
	margin-right: 5px;
	font-size: 10.5px;
	color: #9a7a42;
	opacity: 0.9;
	flex: 0 0 auto;
}

.modern-nav-list > .nav-item > .nav-link:hover > i:not(.dropdown-arrow),
.modern-nav-list > .nav-item > .nav-link:focus-visible > i:not(.dropdown-arrow),
.modern-nav-list > .nav-item > .nav-link[aria-expanded="true"] > i:not(.dropdown-arrow),
.modern-nav-list > .nav-item > .nav-link.active > i:not(.dropdown-arrow) {
	color: var(--m-gold-bright);
	opacity: 1;
}

.modern-nav-list > .nav-item > .nav-link:hover,
.modern-nav-list > .nav-item > .nav-link:focus-visible,
.modern-nav-list > .nav-item > .nav-link[aria-expanded="true"] {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.modern-nav-list > .nav-item > .nav-link.active {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: none;
}

/* Hide Bootstrap's built-in chevron — we render our own spaced arrow */
.modern-nav-list .dropdown-toggle::after {
	display: none !important;
}

.modern-nav-toggle,
.modern-app-switcher-toggle {
	appearance: none;
	background: transparent;
	border: 0;
	font: inherit;
	cursor: pointer;
}

/* Standalone Account/Restore pages do not load Bootstrap's dropdown display
   rule. Keep this switcher closed unless its own lightweight controller opens
   it, otherwise it looks selected and remains visible after page changes. */
.modern-header .dropdown > .dropdown-menu,
#mobileMenu .dropdown > .dropdown-menu {
	display: none;
}

.modern-header .dropdown > .dropdown-menu.show,
#mobileMenu .dropdown > .dropdown-menu.show {
	display: block;
}

/* A pointer click can leave focus on the previously chosen application after
   browser history restoration. Do not render that stale mouse focus as a
   second selected menu row; keyboard focus remains visible via :focus-visible. */
.modern-nav-list > .modern-app-switcher.show > .dropdown-menu .dropdown-item:focus:not(:focus-visible) {
	border-color: transparent;
	background: transparent;
	color: #d8bf83;
}

.modern-nav-list > .modern-app-switcher.show > .dropdown-menu .dropdown-item:focus:not(:focus-visible) i {
	color: #9f7b35;
}

/* Every navigation dropdown uses the same compact panel as the Guest menu. */
.modern-nav-list > .dropdown > .dropdown-menu {
	z-index: 2000;
	position: absolute !important;
	/* Nav items stretch to the full header height. Position this from the
	   centered 38px trigger instead, matching the Guest menu's 10px gap. */
	top: calc(50% + 20px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	width: max-content;
	min-width: 220px;
	max-width: calc(100vw - 32px);
	list-style: none;
	margin: 9px 0 0;
	padding: 6px;
	border: 1px solid rgba(154, 111, 39, 0.76);
	border-radius: 4px;
	background: linear-gradient(180deg, rgba(25, 16, 8, 0.995), rgba(12, 8, 4, 0.995));
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 226, 151, 0.06);
}

.modern-nav-list > .dropdown > .dropdown-menu::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	right: auto;
	transform: translateX(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	border-top: 1px solid rgba(154, 111, 39, 0.76);
	border-left: 1px solid rgba(154, 111, 39, 0.76);
	background: #191008;
	transform: rotate(45deg);
}

.modern-header .dropdown-menu > li,
.modern-mobile-menu .dropdown-menu > li {
	list-style: none;
}

.modern-nav-list > .dropdown > .dropdown-menu > li + li {
	border-top: 1px solid rgba(107, 80, 32, 0.35);
}

.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #d8bf83;
	font-family: var(--m-font-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item i {
	flex: 0 0 20px;
	width: 20px;
	color: #9f7b35;
	font-size: 12px;
	text-align: center;
}

.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item:hover,
.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item:focus-visible,
.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item.active {
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	color: var(--m-gold-bright);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item:hover i,
.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item:focus-visible i,
.modern-nav-list > .dropdown > .dropdown-menu .dropdown-item.active i {
	color: #efc865;
}

.modern-nav .dropdown-arrow {
	margin-left: 10px;
	border: solid #8a6c3c;
	border-width: 0 1.5px 1.5px 0;
	display: inline-block;
	padding: 2.5px;
	transform: rotate(45deg) translateY(-1px);
	flex: 0 0 auto;
}

/* Logo: ornate "DRAHY'S LEGACY" plaque (real-alpha PNG, text baked in).
   The flex item just reserves horizontal space; the plaque itself hangs
   over the nav bar and the top of the hero, like in the mockup. */
.modern-logo {
	position: absolute;
	top: 0;
	left: 50%;
	width: 320px;
	height: 64px;
	transform: translateX(-50%);
	z-index: 60;
}

/* Plaque straddles the frame's top rail — offline = original red gem, online = green variant */
.modern-logo-crest {
	display: block;
	position: absolute;
	left: 50%;
	top: calc(-1 * var(--m-frame-clip-t) - var(--m-frame-inset-t) - 22px);
	transform: translateX(-50%);
	width: 320px;
	height: 163px;
	background: url("../images/plaque.png?v=7") no-repeat center / contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
	z-index: 50;
	transition: filter 0.15s ease;
}

.modern-logo-crest.is-online {
	background-image: url("../images/plaque-online.png?v=7");
}

.modern-logo:hover .modern-logo-crest {
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7)) brightness(1.1);
}

/* Wordmark is baked into the plaque image */
.modern-logo-text {
	display: none;
}

/* ------------------------------------------------------------------------- */
/* 05. Hero slider + CTA                                                      */
/* ------------------------------------------------------------------------- */

.modern-hero {
	position: relative;
	height: 410px;
	margin: -1px 0 -34px;
	overflow: hidden;
	border: 1px solid #57401b;
	border-radius: 0 0 4px 4px;
	background: #0c0805;
	box-shadow: 0 0 0 1px #000, inset 0 0 60px rgba(0, 0, 0, 0.6), 0 18px 30px rgba(0, 0, 0, 0.48);
}

.modern-hero-language {
	position: absolute;
	top: 10px;
	right: 18px;
	z-index: 4;
}

.modern-hero-language .site-language {
	gap: 2px;
	padding: 0;
	border: 0;
	background: transparent;
}

.modern-hero-language .site-language a {
	position: relative;
	min-width: 32px;
	min-height: 36px;
	color: #d1bd91;
	background: transparent;
}

.modern-hero-language .site-language a[aria-current="true"],
.modern-hero-language .site-language a:hover {
	color: #ffe2a0;
	background: transparent;
}

.modern-hero-language .site-language a[aria-current="true"]::after {
	content: "";
	position: absolute;
	right: 6px;
	bottom: 4px;
	left: 6px;
	height: 1px;
	background: #967337;
}

.modern-hero-slider,
.modern-hero-slider .owl-stage-outer,
.modern-hero-slider .owl-stage,
.modern-hero-slider .owl-item,
.modern-hero-slide {
	height: 410px;
}

.modern-hero-slider,
.modern-hero-slider .owl-stage-outer {
	overflow: hidden;
}

.modern-hero-slider .owl-stage {
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.modern-hero-slider .owl-item {
	backface-visibility: hidden;
}

.modern-hero-slide {
	background-repeat: no-repeat;
	background-position: center 22%;
	background-size: cover;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.modern-hero-slide--fellowship,
.modern-hero-slide--citadel,
.modern-hero-slide--ruins {
	background-position: center 44%;
}

.modern-hero-slide--expedition,
.modern-hero-slide--dragon-graveyard {
	background-position: center 54%;
}

.modern-hero-slide--glacial-vault {
	background-position: center 52%;
}

.modern-hero-slider:not(.owl-loaded) .modern-hero-slide:not(:first-child) {
	display: none;
}

/* Localized shade keeps the CTA readable without splitting the artwork. */
.modern-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(ellipse 42% 76% at 84% 50%, rgba(8, 5, 3, 0.94) 0%, rgba(8, 5, 3, 0.82) 33%, rgba(8, 5, 3, 0.38) 64%, rgba(8, 5, 3, 0) 100%),
		linear-gradient(180deg, rgba(10, 7, 4, 0.34) 0%, rgba(10, 7, 4, 0) 28%, rgba(10, 7, 4, 0.58) 100%);
	pointer-events: none;
	z-index: 2;
}

.modern-hero-cta {
	position: absolute;
	top: 50%;
	right: 44px;
	transform: translateY(-50%);
	width: 280px;
	text-align: center;
	z-index: 3;
}

.modern-hero-cta h2 {
	margin: 0 0 14px;
	font-family: var(--m-font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	color: #ecd9ae;
	text-shadow: 0 2px 6px #000, 0 0 24px rgba(0, 0, 0, 0.6);
}

.modern-hero-cta p {
	margin: 0 0 20px;
	font-size: 12.5px;
	line-height: 1.6;
	color: #c5b393;
	text-shadow: 0 1px 3px #000;
}

/* Accessible artwork switcher: small visuals, generous click targets. */
.modern-hero-controls {
	position: absolute;
	left: 50%;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 2px;
	transform: translateX(-50%);
	padding: 2px 3px;
	border: 1px solid rgba(212, 173, 98, 0.22);
	border-radius: 4px;
	background: rgba(9, 6, 3, 0.78);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
	z-index: 6;
}

.modern-hero-pagination {
	display: flex;
	align-items: center;
}

.modern-hero .modern-hero-pagination .owl-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.modern-hero .modern-hero-pagination .owl-dot span {
	display: block;
	width: 11px;
	height: 11px;
	margin: 0;
	background: rgba(212, 173, 98, 0.25);
	border: 1px solid rgba(212, 173, 98, 0.5);
	border-radius: 50%;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.modern-hero .modern-hero-pagination .owl-dot:hover span,
.modern-hero .modern-hero-pagination .owl-dot:focus-visible span {
	border-color: #efc968;
	background: rgba(212, 173, 98, 0.55);
	transform: scale(1.25);
}

.modern-hero .modern-hero-pagination .owl-dot:focus-visible,
.modern-hero-lock:focus-visible {
	outline: 2px solid #efc968;
	outline-offset: 1px;
}

.modern-hero .modern-hero-pagination .owl-dot.active span {
	background: var(--m-gold);
	box-shadow: 0 0 8px rgba(212, 173, 98, 0.7);
	transform: scale(1.2);
}

.modern-hero-lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(212, 173, 98, 0.22);
	border-radius: 0 3px 3px 0;
	background: transparent;
	color: #9f8147;
	font-size: 13px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, text-shadow 0.15s ease;
}

.modern-hero-lock:hover {
	color: #efc968;
	background: rgba(212, 173, 98, 0.08);
}

.modern-hero.is-artwork-locked .modern-hero-lock {
	color: #f2ce70;
	background: rgba(212, 173, 98, 0.13);
	text-shadow: 0 0 8px rgba(212, 173, 98, 0.55);
}

/* Buttons */
.modern-btn {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 10px;
	padding: 11px 18px;
	font-family: var(--m-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	border-radius: 3px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.modern-btn-sm {
	display: inline-block;
	width: auto;
	padding: 8px 18px;
	font-size: 11px;
}

.modern-btn-gold {
	color: #f7dfaa !important;
	background: linear-gradient(180deg, rgba(91, 61, 20, 0.9), rgba(34, 20, 7, 0.98));
	border: 1px solid #d2a84e;
	box-shadow:
		inset 0 1px 0 rgba(255, 234, 173, 0.28),
		inset 0 0 0 1px rgba(255, 204, 91, 0.08),
		0 0 0 1px rgba(58, 38, 10, 0.95),
		0 3px 10px rgba(0, 0, 0, 0.58),
		0 0 13px rgba(210, 168, 78, 0.12);
	text-shadow: 0 1px 2px #000;
}

.modern-btn-gold:hover {
	color: #fff2cc !important;
	background: linear-gradient(180deg, rgba(119, 82, 28, 0.95), rgba(48, 29, 9, 0.99));
	border-color: #f0ca68;
	box-shadow:
		inset 0 1px 0 rgba(255, 239, 190, 0.38),
		inset 0 0 0 1px rgba(255, 214, 112, 0.12),
		0 0 0 1px rgba(73, 48, 12, 0.95),
		0 4px 12px rgba(0, 0, 0, 0.62),
		0 0 18px rgba(228, 192, 106, 0.2);
	transform: translateY(-1px);
}

.modern-btn-gold:active {
	background: linear-gradient(180deg, rgba(44, 27, 9, 0.99), rgba(76, 51, 16, 0.94));
	box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(58, 38, 10, 0.95);
	transform: translateY(0);
}

.modern-btn-outline {
	color: #f0d898 !important;
	background: rgba(10, 6, 3, 0.72);
	border: 1px solid #a88030;
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.modern-btn-outline:hover {
	color: #fff4d8 !important;
	border-color: #e4c06a;
	background: rgba(16, 10, 5, 0.85);
}

/* ------------------------------------------------------------------------- */
/* 06. Content layout                                                         */
/* ------------------------------------------------------------------------- */

.modern-content {
	position: relative;
	z-index: 10;
}

.modern-content-inner {
	position: relative;
	z-index: 3;
	padding: 22px 22px 10px;
}

.modern-hero + .modern-content-inner {
	padding-top: 18px;
}

.modern-layout-row {
	--bs-gutter-x: 20px;
}

/* ------------------------------------------------------------------------- */
/* 07. Boxes (CMS .box) + sideboxes                                           */
/* ------------------------------------------------------------------------- */

.box {
	position: relative;
	margin: 0 0 20px;
	background: linear-gradient(180deg, var(--m-panel), var(--m-panel-2));
	border: 1px solid #3f2d14;
	border-radius: 6px;
	box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(212, 173, 98, 0.08), inset 0 0 50px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.55);
	overflow: visible;
}

.box [box-overlay] {
	display: none;
}

.box-head {
	padding: 12px 16px 10px;
	font-family: var(--m-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--m-gold);
	text-shadow: 0 1px 2px #000;
	border-bottom: 1px solid rgba(212, 173, 98, 0.16);
	background: linear-gradient(180deg, rgba(212, 173, 98, 0.07), rgba(212, 173, 98, 0));
	border-radius: 6px 6px 0 0;
}

.box-head::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 9px;
	transform: rotate(45deg) translateY(-2px);
	background: var(--m-gold);
	box-shadow: 0 0 6px rgba(212, 173, 98, 0.8);
}

.box-body {
	padding: 14px 16px;
	color: var(--m-text);
}

.box-body p {
	margin: 0 0 10px;
}

/* Sidebox menu (Quick Links) */
.box.type-menu .navbar {
	padding: 0;
}

.box.type-menu .navbar-nav {
	width: 100%;
	flex-direction: column;
	gap: 4px;
}

.box.type-menu .nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	font-family: var(--m-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #bd9a64;
	background: rgba(8, 5, 2, 0.45);
	border: 1px solid rgba(51, 36, 15, 0.85);
	border-radius: 4px;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.box.type-menu .nav-link::after {
	content: "\203A";
	font-family: Georgia, serif;
	font-size: 14px;
	color: #6e5226;
}

.box.type-menu .nav-link:hover,
.box.type-menu .nav-link:focus-visible,
.box.type-menu .nav-link.active {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.box.type-menu .nav-link.active {
	color: #160e03;
	border-color: #d7b84f;
	background: linear-gradient(135deg, #efd467 0%, #bd8e24 100%);
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.18);
}

.box.type-menu .nav-link > i {
	margin-right: 8px;
	font-size: 11px;
	color: #9a7a42;
	flex: 0 0 auto;
}

.box.type-menu .nav-link:hover > i,
.box.type-menu .nav-link.active > i {
	color: var(--m-gold-bright);
}

/* Login / user info sidebox */
.box.type-info_login .card-body {
	padding: 0;
}

.box.type-info_login .input-group {
	border: 1px solid var(--m-border-strong);
	border-radius: 4px;
	overflow: hidden;
	background: rgba(10, 6, 3, 0.82);
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.box.type-info_login .input-group.border-danger {
	border-color: var(--m-red) !important;
	box-shadow: inset 0 0 8px rgba(179, 54, 42, 0.35);
}

.box.type-info_login .input-group-text {
	width: auto;
	min-width: 42px;
	padding: 0 10px;
	color: var(--m-gold-dim);
	background: rgba(18, 11, 5, 0.95);
	border: none;
	border-right: 1px solid rgba(63, 46, 20, 0.65);
}

.box.type-info_login .input-group-text i {
	margin: 0;
	font-size: 13px;
	color: #9a7a42;
}

.box.type-info_login .form-control {
	padding: 10px 12px;
	font-size: 12.5px;
	color: #d6c4a2;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.box.type-info_login .form-control:focus {
	color: var(--m-gold-bright);
	background: transparent;
	box-shadow: none;
}

.box.type-info_login .form-control::placeholder {
	color: #5d5142;
}

/* Captcha — stacked layout (image row + full-width input) */
.box.type-info_login .modern-captcha {
	border: 1px solid var(--m-border-strong);
	border-radius: 4px;
	overflow: hidden;
	background: rgba(10, 6, 3, 0.82);
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.box.type-info_login .modern-captcha.border-danger {
	border-color: var(--m-red) !important;
	box-shadow: inset 0 0 8px rgba(179, 54, 42, 0.35);
}

.box.type-info_login .modern-captcha-image {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid rgba(63, 46, 20, 0.55);
	background: rgba(8, 5, 2, 0.92);
}

.box.type-info_login .modern-captcha-image img {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	height: 34px;
	object-fit: contain;
	object-position: center;
	padding: 4px 6px;
	background: rgba(8, 5, 2, 0.95);
	border: none;
}

.box.type-info_login .modern-captcha-refresh {
	flex: 0 0 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #9a7a42;
	background: rgba(18, 11, 5, 0.95);
	border: none;
	border-left: 1px solid rgba(63, 46, 20, 0.65);
	cursor: pointer;
	transition: color 0.15s ease;
}

.box.type-info_login .modern-captcha-refresh:hover {
	color: var(--m-gold-bright);
}

.box.type-info_login .side-captcha-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 12.5px;
	color: #d6c4a2;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.box.type-info_login .side-captcha-input:focus {
	color: var(--m-gold-bright);
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(212, 173, 98, 0.25);
}

.box.type-info_login .card-links {
	font-size: 11px;
	color: var(--m-text-dim);
}

.box.type-info_login .form-check-input {
	background-color: rgba(10, 6, 3, 0.9);
	border-color: var(--m-border-strong);
}

.box.type-info_login .form-check-input:checked {
	background-color: var(--m-gold-dim);
	border-color: var(--m-gold);
}

.box.type-info_login .form-check-label {
	color: var(--m-text-dim);
}

.box.type-info_login .card-link {
	font-size: 11px;
	color: var(--m-gold-dim);
}

.box.type-info_login .card-link:hover {
	color: var(--m-gold-bright);
}

.box.type-info_login .modern-user-gateway {
	text-align: center;
}

.box.type-info_login .box-body,
.box.type-discord .box-body {
	container-type: inline-size;
}

.box.type-info_login .modern-user-gateway-actions > a,
.box.type-info_login .modern-account-actions > a {
	white-space: nowrap;
}

.box.type-info_login .modern-user-gateway-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--m-gold-bright);
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 215, 126, 0.22), transparent 62%),
		rgba(12, 7, 3, 0.86);
	border: 1px solid var(--m-border-strong);
	border-radius: 50%;
	box-shadow:
		inset 0 0 18px rgba(0, 0, 0, 0.72),
		0 0 18px rgba(199, 145, 44, 0.16);
}

.box.type-info_login .modern-user-gateway-icon i {
	margin: 0;
	font-size: 22px;
}

.box.type-info_login .modern-user-gateway-text {
	margin: 0 0 16px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--m-text-dim);
}

.box.type-info_login .modern-user-gateway-actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.box.type-info_login .modern-user-gateway-actions i {
	margin-right: 7px;
	font-size: 12px;
}

.box.type-info_login .modern-user-gateway-primary {
	width: 100%;
	margin: 0;
}

.box.type-info_login .modern-user-gateway-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 10px;
	font-family: var(--m-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--m-gold);
	background: rgba(10, 6, 3, 0.55);
	border: 1px solid rgba(151, 105, 36, 0.45);
	border-radius: 4px;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}

.box.type-info_login .modern-user-gateway-link:hover {
	color: var(--m-gold-bright);
	background: rgba(42, 27, 10, 0.72);
	border-color: rgba(212, 173, 98, 0.8);
}

.box.type-info_login .alert-danger {
	margin-bottom: 10px;
	padding: 8px 10px;
	font-size: 11.5px;
	color: #f0b0a8;
	background: rgba(80, 18, 12, 0.55);
	border: 1px solid rgba(179, 54, 42, 0.45);
	border-radius: 4px;
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.box.type-info_login .form-group.text-center {
	margin-top: 14px !important;
}

.box.type-info_login .card-footer.nice_button,
.box.type-info_login button.nice_button {
	width: 100%;
	margin: 0;
}

/* Logged-in account summary */
.box.type-info_login .modern-account-summary {
	display: grid;
	gap: 14px;
}

.box.type-info_login .modern-account-identity {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding-bottom: 13px;
	border-bottom: 1px solid rgba(92, 63, 23, 0.58);
}

.box.type-info_login .modern-account-avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--m-gold-bright);
	background: rgba(12, 7, 3, 0.9);
	border: 1px solid var(--m-border-strong);
	border-radius: 50%;
	box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.75), 0 0 12px rgba(199, 145, 44, 0.12);
}

.box.type-info_login .modern-account-avatar i {
	margin: 0;
	font-size: 15px;
}

.box.type-info_login .modern-account-name {
	min-width: 0;
}

.box.type-info_login .modern-account-name small,
.box.type-info_login .modern-account-name strong {
	display: block;
}

.box.type-info_login .modern-account-name small {
	margin-bottom: 2px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8f7b5b;
}

.box.type-info_login .modern-account-name strong {
	overflow: hidden;
	font-family: var(--m-font-heading);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--m-gold-bright);
}

.box.type-info_login .modern-account-status {
	padding: 4px 6px;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	border-radius: 3px;
}

.box.type-info_login .modern-account-status.is-active {
	color: #86c88e;
	background: rgba(31, 88, 42, 0.18);
}

.box.type-info_login .modern-account-status.is-restricted {
	color: #dd7770;
	background: rgba(110, 30, 25, 0.2);
}

.box.type-info_login .modern-account-stats {
	display: grid;
}

.box.type-info_login .modern-account-stat {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	min-height: 36px;
	padding: 6px 2px;
	font-size: 11px;
	color: var(--m-text-dim);
	border-bottom: 1px solid rgba(60, 42, 17, 0.55);
}

.box.type-info_login .modern-account-stat:first-child {
	border-top: 1px solid rgba(60, 42, 17, 0.55);
}

.box.type-info_login .modern-account-stat i {
	margin: 0;
	font-size: 12px;
	color: #a98542;
}

.box.type-info_login .modern-account-stat strong {
	padding-left: 8px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--m-gold-bright);
}

.box.type-info_login a.modern-account-stat {
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.box.type-info_login a.modern-account-stat:hover,
.box.type-info_login a.modern-account-stat:focus-visible {
	color: var(--m-gold-bright);
	background: var(--m-item-hover-bg);
	box-shadow: inset 0 0 0 1px var(--m-item-hover-border), var(--m-item-hover-shadow);
	outline: none;
}

.box.type-info_login .modern-account-actions {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 8px;
}

.box.type-info_login .modern-account-actions i {
	flex-shrink: 0;
	margin-right: 6px;
	font-size: 10px;
}

.box.type-info_login .modern-account-primary {
	grid-column: 1 / -1;
	width: 100%;
	margin: 0;
}

.box.type-info_login .modern-account-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 34px;
	padding: 7px 6px;
	font-family: var(--m-font-heading);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-gold);
	background: rgba(9, 5, 2, 0.65);
	border: 1px solid rgba(111, 76, 25, 0.7);
	border-radius: 4px;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.box.type-info_login .modern-account-secondary span {
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	margin-left: 5px;
	padding: 0 4px;
	font-family: var(--m-font-body);
	font-size: 9px;
	letter-spacing: 0;
	color: #120b03;
	background: var(--m-gold-bright);
	border-radius: 9px;
}

.box.type-info_login .modern-account-secondary:hover,
.box.type-info_login .modern-account-secondary:focus-visible {
	color: var(--m-gold-bright);
	background: var(--m-item-hover-bg);
	border-color: var(--m-item-hover-border);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.box.type-info_login .modern-account-gm {
	padding-right: 8px;
	padding-left: 8px;
	white-space: nowrap;
}

.box.type-info_login .modern-account-logout {
	grid-column: 1 / -1;
	color: #b59c78;
}

.box.type-discord .modern-discord-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: min(270px, 100%);
	min-height: 43px;
	margin: 0 auto;
	padding: 10px;
	border: 1px solid rgba(179, 135, 49, 0.48);
	border-radius: 5px;
	font-family: var(--m-font-display);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
	text-transform: uppercase;
	color: #d5b867;
	background:
		linear-gradient(90deg, rgba(91, 41, 51, 0.1), rgba(88, 101, 242, 0.11)),
		rgba(6, 4, 3, 0.7);
	box-shadow: inset 0 1px rgba(255, 235, 188, 0.035), 0 7px 18px rgba(0, 0, 0, 0.2);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.box.type-discord .modern-discord-link:hover,
.box.type-discord .modern-discord-link:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(229, 183, 83, 0.76);
	color: var(--m-gold-bright);
	background:
		linear-gradient(90deg, rgba(130, 45, 42, 0.13), rgba(88, 101, 242, 0.17)),
		rgba(13, 8, 4, 0.82);
	box-shadow: inset 0 1px rgba(255, 235, 188, 0.06), 0 0 18px rgba(186, 137, 49, 0.12), 0 9px 20px rgba(0, 0, 0, 0.28);
	outline: none;
}

.box.type-discord .modern-discord-link > .fa-discord {
	font-size: 17px;
	color: #8993f7;
	filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.25));
}

.box.type-discord .modern-discord-link > .fa-angle-right {
	margin-left: 3px;
	font-size: 9px;
	color: #8d7953;
}

.box.type-discord .modern-discord-link > i {
	flex-shrink: 0;
}

/* Both locales use the same compact layout when the sidebar itself is narrow. */
@container (max-width: 210px) {
	.box.type-info_login .modern-account-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.box.type-info_login .modern-account-primary,
	.box.type-info_login .modern-user-gateway-primary {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 10px;
		letter-spacing: 0.06em;
	}

	.box.type-info_login .modern-user-gateway-link {
		letter-spacing: 0.06em;
	}

	.box.type-discord .modern-discord-link {
		padding-right: 8px;
		padding-left: 8px;
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	.box.type-discord .modern-discord-link > .fa-angle-right {
		display: none;
	}
}

/* ------------------------------------------------------------------------- */
/* 08. Welcome box + feature cards                                            */
/* ------------------------------------------------------------------------- */

/* Homepage news replaces the former static welcome and feature-card area.
   The CMS remains the source of article content; artwork gives each current
   article the same visual prominence without creating fixed promotional copy. */
.modern-home-news {
	overflow: hidden;
}

.modern-home-news .news-header {
	margin: 0;
	padding: 12px 16px 10px;
	border-bottom: 1px solid rgba(212, 173, 98, 0.16);
	background: linear-gradient(180deg, rgba(212, 173, 98, 0.07), rgba(212, 173, 98, 0));
	border-radius: 6px 6px 0 0;
}

.modern-home-news .news-header .row {
	--bs-gutter-x: 0;
}

.modern-home-news .news-header .header-text {
	margin: 0;
	font-family: var(--m-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--m-gold);
	text-shadow: 0 1px 2px #000;
}

.modern-home-news .news-header .header-text::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 9px;
	transform: rotate(45deg) translateY(-2px);
	background: var(--m-gold);
	box-shadow: 0 0 6px rgba(212, 173, 98, 0.8);
}

.modern-home-news #content_ajax > .news-article {
	position: relative;
	min-height: 176px;
	margin: 16px 16px 0;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(90deg, rgba(12, 8, 4, 0.97) 0%, rgba(19, 12, 5, 0.96) 63%, rgba(12, 8, 4, 0.92) 100%);
	border: 1px solid #3f2d14;
	border-radius: 6px;
	box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(212, 173, 98, 0.08), 0 3px 10px rgba(0, 0, 0, 0.48);
}

.modern-home-news #content_ajax > .news-article:last-of-type {
	margin-bottom: 16px;
}

.modern-home-news #content_ajax > .news-article [glow] {
	display: none;
}

.modern-home-news .article-head,
.modern-home-news .article-body,
.modern-home-news .article-foot {
	position: relative;
	z-index: 1;
}

.modern-home-news .article-title a {
	font-family: var(--m-font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--m-gold-bright);
}

.modern-home-news .article-metadata {
	margin-top: 5px;
	font-size: 11px;
	color: #a9987d;
}

.modern-home-news .article-content {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.65;
	color: var(--m-text);
}

.modern-home-news .article-foot {
	margin-top: 12px;
}

.modern-home-news .btn-readmore {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 12px;
	font-family: var(--m-font-display);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.modern-home-news .news-archive-entry {
	margin: 0 16px 16px;
}

.modern-welcome {
	position: relative;
}

.modern-welcome .box-body {
	padding-right: 120px;
}

.modern-welcome-flame {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-44%);
	width: 110px;
	height: 110px;
	background: url("../images/flame.png") no-repeat center / contain;
	pointer-events: none;
}

.modern-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 0 20px;
}

.modern-card {
	background: linear-gradient(180deg, var(--m-panel), var(--m-panel-2));
	border: 1px solid #3f2d14;
	border-radius: 6px;
	padding: 14px;
	box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(212, 173, 98, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
}

.modern-card h3 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--m-gold);
}

.modern-card-thumb {
	display: block;
	height: 96px;
	margin: 0 0 10px;
	border: 1px solid #3c2b12;
	border-radius: 4px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
	transition: filter 0.15s ease;
}

.modern-card-thumb:hover {
	filter: brightness(1.15);
}

.modern-card p {
	flex: 1 1 auto;
	margin: 0 0 10px;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--m-text);
}

.modern-card-more {
	font-family: var(--m-font-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--m-gold);
}

.modern-card-more i {
	margin-left: 4px;
	font-size: 9px;
}

/* ------------------------------------------------------------------------- */
/* 09. Realm status sidebox                                                   */
/* ------------------------------------------------------------------------- */

.box.type-status [__realmStatusAjax__] {
	display: block;
	width: 100%;
	min-height: 72px;
}

.box.type-status [__realmStatusAjax__] > img:only-child {
	display: block;
	margin: 24px auto;
}

.box.type-status [__realmStatusAjax__] .legacy-realm-data {
	display: none !important;
}

.box.type-status [__realmStatusAjax__] .realm {
	width: 100%;
	clear: both;
}

.box.type-status [__realmStatusAjax__] .realm.type-list {
	margin-top: 8px;
}

.box.type-status [__realmStatusAjax__] .row {
	--bs-gutter-x: 0.75rem;
	margin-left: 0;
	margin-right: 0;
}

.realm.type-status {
	margin: 0 0 14px;
}

.realm .realm-name {
	font-family: var(--m-font-display);
	font-size: 12.5px;
	font-weight: 600;
	color: #cdab72;
}

.realm .realm-status {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-red);
}

.realm.is-online .realm-status {
	color: var(--m-green);
}

.realm_bar {
	height: 7px;
	margin-top: 7px;
	border-radius: 4px;
	background: #241808;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}

.realm_bar_fill {
	height: 100%;
	background: linear-gradient(90deg, #7da33e, #aacf52);
	box-shadow: 0 0 8px rgba(170, 207, 82, 0.4);
}

.realm.type-list .realm-list {
	margin-top: 4px;
	padding: 8px 10px;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--m-text-dim);
	background: rgba(8, 5, 2, 0.5);
	border: 1px dashed rgba(87, 64, 27, 0.6);
	border-radius: 4px;
	text-align: center;
}

.realm.type-list .realm-list span {
	color: var(--m-gold);
}

/* The existing sidebar box supplies the outer frame. Artwork follows the approved 617-unit reference. */
.box.type-status .box-body:has(.realm-status-widget) { padding: 0; }
.realm-status-widget { container-type: inline-size; width: 100%; color: #ede4cd; background: radial-gradient(ellipse at 50% 42%, #171106 0, #0c0b06 67%, #100c05 100%); }
.realm-status-widget, .realm-status-widget * { box-sizing: border-box; }
.realm-status-card { width: 100%; margin: 0; font-family: var(--m-font-body, Arial, sans-serif); font-weight: 400; font-style: normal; }
.realm-status-card + .realm-status-card { margin-top: 3.889789cqi; border-top: 1px solid #786029; }
.realm-status-card__hero { position: relative; isolation: isolate; height: 51.863857cqi; overflow: hidden; text-align: center; background: linear-gradient(90deg, transparent 24%, #060c12dd 34%, #060c12ee 66%, transparent 76%), url("../images/status/legacy/hero-background.webp") center / 100% 100% no-repeat; }
.realm-status-card__hero::before, .realm-status-card__hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.realm-status-card__hero::before { z-index: -1; background: url("../images/status/legacy/hero-original-top.png") top / 100% 7.293355cqi no-repeat, url("../images/status/legacy/hero-original-mid-divider.png") 0 23.987034cqi / 100% 3.403566cqi no-repeat, url("../images/status/legacy/hero-original-bottom.png") bottom / 100% 2.593193cqi no-repeat; mask-image: linear-gradient(#000 5.996759cqi, transparent 7.293355cqi, transparent 23.987034cqi, #000 24.797407cqi, #000 26.418152cqi, transparent 27.390600cqi, transparent 49.270665cqi, #000 50.243112cqi); }
.realm-status-card__hero::after { z-index: -2; background: url("../images/status/legacy/hero-original-left.png") left / 25.931929cqi 100% no-repeat, url("../images/status/legacy/hero-original-right.png") right / 24.797407cqi 100% no-repeat; mask-image: linear-gradient(90deg, #000 23.500810cqi, transparent 25.931929cqi, transparent 75.202593cqi, #000 77.633712cqi); }
.realm-status-card .realm-status-card__name { position: absolute; top: 7.779579cqi; left: 0; width: 100%; margin: 0; padding: 0; color: #ffe9ad; font: 400 6.969206cqi/8.589951cqi var(--m-font-body, Arial, sans-serif); letter-spacing: 0; text-transform: none; text-shadow: none; }
.realm-status-card__state { position: absolute; top: 17.990276cqi; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 2.755267cqi; color: #6bff5d; font: 400 4.538088cqi/5.996759cqi var(--m-font-body, Arial, sans-serif); letter-spacing: 0.081037cqi; text-transform: uppercase; text-shadow: none; }
.realm-status-card__state-dot { display: inline-block; flex: none; width: 3.241491cqi; height: 3.241491cqi; border: 0.324149cqi solid #90ff82; border-radius: 50%; background: #32f94c; box-shadow: 0 0 1.944895cqi #37d62c88, inset 0 0 0.810373cqi #99ff8b; }
.realm-status-card.is-offline .realm-status-card__state { color: #e76b60; }
.realm-status-card.is-offline .realm-status-card__state > .realm-status-card__state-dot, .realm-status-card__details .is-offline > .realm-status-card__state-dot { border-color: #f5a18b; background: #e44f46; box-shadow: 0 0 1.620746cqi #b3312c66; }
.realm-status-card__population { position: absolute; inset: 26.418152cqi 0 auto; height: 22.690438cqi; display: flex; align-items: center; flex-direction: column; }
.realm-status-card__total { position: relative; display: block; color: #ffdf83; font: 400 16.531605cqi/16.693679cqi var(--m-font-body, Arial, sans-serif); letter-spacing: 0; font-variant-numeric: lining-nums; text-shadow: none; }
.realm-status-card__population > span { position: absolute; top: 15.883306cqi; left: 0; width: 100%; display: block; margin-top: -0.324149cqi; color: #e8ddc2; font: 400 4.862237cqi/6.158833cqi var(--m-font-body, Arial, sans-serif); text-shadow: none; }
.realm-status-card__factions { position: relative; height: 26.094003cqi; background: radial-gradient(ellipse at 66% 48%, #57050040, transparent 40%), radial-gradient(ellipse at 33% 48%, #0036533b, transparent 40%); }
.realm-status-card__factions::after { content: ""; position: absolute; left: 47.649919cqi; top: 2.269044cqi; width: 4.213938cqi; height: 23.824959cqi; background: url("../images/status/legacy/faction-divider.png") center / 100% 100% no-repeat; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); pointer-events: none; }
.realm-status-card__faction { position: absolute; inset: 0 50% 0 0; color: #64b9f9; }
.realm-status-card__faction--horde { inset: 0 0 0 50%; color: #fa3d42; }
.realm-status-card__banner { position: absolute; top: -0.324149cqi; left: 1.458671cqi; width: 21.880065cqi; height: 27.3906cqi; max-width: none; }
.realm-status-card__faction--horde .realm-status-card__banner { left: auto; right: 1.620746cqi; width: 22.204214cqi; }
.realm-status-card__faction-values { position: absolute; left: 23.014587cqi; top: 3.889789cqi; width: 21.555916cqi; height: 20.583468cqi; text-align: center; font-family: var(--m-font-body, Arial, sans-serif); text-shadow: none; }
.realm-status-card__faction--horde .realm-status-card__faction-values { left: 5.105348cqi; width: 21.231767cqi; }
.realm-status-card__faction-name { display: block; font: 400 3.889789cqi/5.510535cqi var(--m-font-body, Arial, sans-serif); text-transform: uppercase; }
.realm-status-card__faction-name::after { content: ""; position: absolute; top: 4.862237cqi; left: 0; width: 100%; height: 2.106969cqi; background: url("../images/status/legacy/alliance-underline.png") center / 100% 100% no-repeat; mask-image: linear-gradient(transparent, #000 20%, #000 78%, transparent); }
.realm-status-card__faction--horde .realm-status-card__faction-name::after { background-image: url("../images/status/legacy/horde-underline.png"); }
.realm-status-card__faction-values > strong { position: absolute; top: 5.834684cqi; left: 0; width: 100%; color: #ffedb4; font: 400 8.427877cqi/8.9141cqi var(--m-font-body, Arial, sans-serif); }
.realm-status-card__percentage { position: absolute; top: 16.045381cqi; left: 0; width: 100%; color: #a3e9ef; font: 400 4.700162cqi/5.510535cqi var(--m-font-body, Arial, sans-serif); white-space: nowrap; }
.realm-status-card__faction--horde .realm-status-card__percentage { color: #f9dfba; }
.realm-status-card__balance { position: relative; height: 11.993517cqi; width: 100%;  }
.realm-status-card__balance::before, .realm-status-card__balance::after { content: ""; position: absolute; top: 0.810373cqi; height: 10.048622cqi; z-index: 2; pointer-events: none; background: center / 100% 100% no-repeat; }
.realm-status-card__balance::before { left: 1.296596cqi; width: 5.996759cqi; background-image: url("../images/status/legacy/bar-left-cap.png"); }
.realm-status-card__balance::after { right: 1.458671cqi; width: 6.158833cqi; background-image: url("../images/status/legacy/bar-right-cap.png"); }
.realm-status-card__balance.is-horde-only::before { background-image: url("../images/status/legacy/bar-right-cap.png"); transform: scaleX(-1); }
.realm-status-card__balance.is-alliance-only::after { background-image: url("../images/status/legacy/bar-left-cap.png"); transform: scaleX(-1); }
.realm-status-card__balance.is-empty::before, .realm-status-card__balance.is-empty::after { filter: grayscale(.9) brightness(.65); }
.realm-status-card__balance-track { position: absolute; inset: 1.458671cqi 4.538088cqi 1.458671cqi 4.700162cqi; display: flex; background: #29251b; }
.realm-status-card__balance-track > span { display: flex; position: relative; align-items: center; justify-content: center; min-width: 0; height: 100%; overflow: hidden; transition: width .6s ease; }
.realm-status-card__balance-label { z-index: 3; position: absolute; top: 2.917342cqi; width: 16.207455cqi; color: #fff8e3; font: 400 4.051864cqi/6.482982cqi Arial, sans-serif; white-space: nowrap; text-align: center; text-shadow: none; }
.realm-status-card__balance-label--alliance { left: 18.962723cqi; }
.realm-status-card__balance-label--horde { right: 17.666126cqi; }
.realm-status-card__balance-alliance { background: url("../images/status/legacy/bar-top-rail-blue.png") left top / 100% 1.944895cqi no-repeat, url("../images/status/legacy/bar-bottom-rail-blue.png") left bottom / 100% 2.269044cqi no-repeat, url("../images/status/legacy/bar-blue-texture.png") center / 100% 5.34846cqi no-repeat, #0752d8; }
.realm-status-card__balance-horde { border-left: 0.324149cqi solid #c89a56; background: url("../images/status/legacy/bar-top-rail-red.png") left top / 100% 1.944895cqi no-repeat, url("../images/status/legacy/bar-bottom-rail-red.png") left bottom / 100% 2.269044cqi no-repeat, url("../images/status/legacy/bar-red-texture.png") center / 100% 5.34846cqi no-repeat, #b50016; }
.realm-status-card__balance-jewel { z-index: 4; position: absolute; left: 47.487844cqi; width: 4.700162cqi; height: 4.376013cqi; pointer-events: none; }
.realm-status-card__balance-jewel--top { top: 0; background: url("../images/status/legacy/bar-top-jewel.png") center / 100% 100%; clip-path: polygon(0 38%, 31% 36%, 51% 0, 71% 37%, 100% 43%, 74% 60%, 51% 100%, 25% 61%); }
.realm-status-card__balance-jewel--bottom { bottom: 0; background: url("../images/status/legacy/bar-bottom-jewel.png") center / 100% 100%; clip-path: polygon(0 38%, 30% 34%, 51% 0, 73% 35%, 100% 43%, 75% 61%, 51% 100%, 25% 62%); }
.realm-status-card__balance.is-empty .realm-status-card__balance-alliance, .realm-status-card__balance.is-empty .realm-status-card__balance-horde { width: 0 !important; border: 0; }
.realm-status-card__balance .realm-status-card__balance-empty { position: absolute; inset: 0; color: #c3af80; font-size: 4.213938cqi; border-block: 1px solid #765826; }
.realm-status-card__notice { margin: 0 3.079417cqi 1.134522cqi; color: #c2b79b; font: 3.241491cqi/4.538088cqi Arial, sans-serif; text-align: center; }
.realm-status-card__details { display: grid; gap: 1.296596cqi; margin: 1.134522cqi 3.241491cqi 0 3.079417cqi; padding: 0; }
.realm-status-card__details > div { display: flex; align-items: center; justify-content: space-between; gap: 1.944895cqi; height: 8.265802cqi; padding: 0 2.917342cqi 0 0; border: 1px solid #59401c99; border-radius: 0.972447cqi; background: linear-gradient(110deg, #1d160c66, #110e0866); box-shadow: inset 0 0 0.810373cqi #6a4b1918; }
.realm-status-card__details dt { position: relative; display: flex; align-items: center; height: 100%; margin: 0; padding-left: 15.072934cqi; color: #eee5cf; font: normal 3.403566cqi/4.538088cqi Arial, sans-serif; white-space: nowrap; }
.realm-status-card__detail-icon { position: absolute; left: 2.917342cqi; top: 50%; transform: translateY(-50%); width: 6.320908cqi; height: 6.320908cqi; background: center / contain no-repeat; }
.realm-status-card__detail-icon--login { background-image: url("../images/status/legacy/icon-login.png"); }
.realm-status-card__detail-icon--world { background-image: url("../images/status/legacy/icon-world.png"); }
.realm-status-card__detail-icon--uptime { background-image: url("../images/status/legacy/icon-uptime.png"); }
.realm-status-card__details dd { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2.106969cqi; flex: none; margin: 0; color: #f4e6bb; font: normal 3.403566cqi/4.538088cqi Arial, sans-serif; white-space: nowrap; }
.realm-status-card__details .realm-status-card__uptime { font: 400 3.889789cqi/4.862237cqi var(--m-font-body, Arial, sans-serif); }
.realm-status-card__details .realm-status-card__state-dot { width: 2.269044cqi; height: 2.269044cqi; border-width: 0.243112cqi; }
.realm-status-card__details .is-online { color: #64ff5c; }
.realm-status-card__details .is-offline { color: #ee8b7a; }
.realm-status-connect { position: relative; display: grid; grid-template-columns: minmax(0,288fr) minmax(0,280fr); gap: 1.944895cqi; height: 14.58671cqi; margin: 2.593193cqi 2.917342cqi 0 3.079417cqi; padding: 0; }
.realm-status-connect__address { position: relative; display: flex; align-items: center; min-width: 0; height: 13.938412cqi; padding: 0 9.724473cqi 0 11.02107cqi; border: 1px solid #b18a37; border-radius: 0.972447cqi; background: linear-gradient(100deg, #23180b44, #08080466); }
.realm-status-connect__icon { position: absolute; left: 2.755267cqi; top: 4.051864cqi; width: 5.834684cqi; height: 6.320908cqi; background: url("../images/status/legacy/icon-realm.png") center / contain no-repeat; }
.realm-status-connect__text { transform: translateY(0.486224cqi); }
.realm-status-connect__label { display: block; color: #bfb9a8; font: 3.079417cqi/3.889789cqi Arial, sans-serif; }
.realm-status-connect__address code { display: block; padding: 0; color: #fff0c0; background: none; font: 400 4.538088cqi/5.186386cqi var(--m-font-body, Arial, sans-serif); white-space: nowrap; }
.realm-status-connect__address button { position: absolute; top: 3.56564cqi; right: 2.106969cqi; display: grid; place-items: center; width: 7.293355cqi; height: 7.13128cqi; min-height: 0; padding: 0; border: 1px solid #a07932; border-radius: 0.810373cqi; background: #100c05; box-shadow: inset 0 0 0.648298cqi #e8bf4644; }
.realm-status-connect__address button > span { display: block; width: 3.889789cqi; height: 4.538088cqi; background: url("../images/status/legacy/icon-copy.png") center / contain no-repeat; }
.realm-status-connect__address button:hover { filter: brightness(1.25); }
.realm-status-connect__address button:focus-visible, .realm-status-connect__guide:focus-visible { outline: 2px solid #ffe6a1; outline-offset: 3px; }
.realm-status-connect__guide { position: relative; display: flex; align-items: center; height: 14.58671cqi; min-width: 0; margin: -0.324149cqi 0 0; padding: 0 0 0 12.965964cqi; color: #ffedbf; font: 400 3.403566cqi/4.862237cqi var(--m-font-body, Arial, sans-serif); letter-spacing: 0.113452cqi; text-decoration: none; text-transform: uppercase; text-shadow: none; background:
 url("../images/status/legacy/button-gold-top-left.png") left top / 2.755267cqi 3.079417cqi no-repeat,
 url("../images/status/legacy/button-gold-top-right.png") right top / 3.079417cqi 3.079417cqi no-repeat,
 url("../images/status/legacy/button-gold-bottom-left.png") left bottom / 2.755267cqi 2.917342cqi no-repeat,
 url("../images/status/legacy/button-gold-bottom-right.png") right bottom / 3.079417cqi 2.917342cqi no-repeat,
 url("../images/status/legacy/button-gold-top.png") 2.755267cqi top / calc(100% - 5.834684cqi) 2.106969cqi no-repeat,
 url("../images/status/legacy/button-gold-bottom.png") 2.755267cqi bottom / calc(100% - 5.834684cqi) 1.944895cqi no-repeat,
 url("../images/status/legacy/button-gold-left.png") left 3.079417cqi / 1.944895cqi calc(100% - 5.996759cqi) no-repeat,
 url("../images/status/legacy/button-gold-right.png") right 3.079417cqi / 1.620746cqi calc(100% - 5.996759cqi) no-repeat,
 url("../images/status/legacy/button-gold-surface.png") center / 100% 100% no-repeat;
}
.realm-status-connect__guide > span { position: absolute; left: 3.56564cqi; top: 3.727715cqi; width: 7.455429cqi; height: 7.293355cqi; background: url("../images/status/legacy/icon-link.png") center / contain no-repeat; }
.realm-status-connect__guide:hover { color: #fff8e1; filter: brightness(1.12); }
.realm-status-connect__feedback { position: absolute; top: 100%; left: 0; z-index: 1; padding: 0.324149cqi 0.972447cqi; color: #b1e79b; background: #100c05; font: 2.593193cqi/3.56564cqi Arial, sans-serif; }
.realm-status-connect__feedback:empty { display: none; }
.realm-status-widget__demo { display: flex; align-items: center; justify-content: center; gap: 2.755267cqi; height: 5.834684cqi; margin: 3.241491cqi 7.455429cqi 0; padding-bottom: 1.944895cqi; color: #bdb9b2; font: 3.079417cqi/3.889789cqi Arial, sans-serif; white-space: nowrap; }
.realm-status-widget__demo::before, .realm-status-widget__demo::after { content: ""; flex: 1; height: 1px; background: #8a692b; }
.realm-status-widget:not(:has(.realm-status-widget__demo)) { padding-bottom: 3.241491%; }
@media (prefers-reduced-motion: reduce) { .realm-status-card__balance-track > span { transition: none; } }

/* ------------------------------------------------------------------------- */
/* 10. Tables, forms, buttons                                                 */
/* ------------------------------------------------------------------------- */

table {
	color: var(--m-text);
}

.nice_table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
}

.nice_table thead th,
table.dataTable thead th {
	padding: 9px 10px;
	font-family: var(--m-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--m-gold);
	background: rgba(212, 173, 98, 0.06);
	border-bottom: 1px solid rgba(212, 173, 98, 0.2);
	text-align: left;
}

.nice_table td,
table.dataTable td {
	padding: 8px 10px;
	font-size: 12px;
	border-bottom: 1px solid rgba(51, 36, 15, 0.55);
	background: transparent;
}

.nice_table tbody tr:hover td,
table.dataTable tbody tr:hover td {
	background: var(--m-item-hover-bg);
	border-top-color: var(--m-item-hover-border);
	border-bottom-color: var(--m-item-hover-border);
}

.nice_table tbody tr:hover td:first-child,
table.dataTable tbody tr:hover td:first-child {
	box-shadow: inset 1px 0 var(--m-item-hover-border);
}

.nice_table tbody tr:hover td:last-child,
table.dataTable tbody tr:hover td:last-child {
	box-shadow: inset -1px 0 var(--m-item-hover-border);
}

.nice_table a,
table.dataTable a {
	color: var(--m-gold);
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select,
.form-control {
	background: rgba(10, 6, 3, 0.75);
	border: 1px solid var(--m-border-strong);
	border-radius: 4px;
	color: #d6c4a2;
	padding: 8px 10px;
	font-family: var(--m-font-body);
	font-size: 12.5px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
	border-color: var(--m-gold-dim);
	box-shadow: 0 0 8px rgba(212, 173, 98, 0.25);
}

::placeholder {
	color: #5d5142;
}

/* Keep numeric controls usable without the browser's small spinner arrows. */
.modern-number-input {
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
    --number-accent: var(--m-gold, #d4ad62);
    --number-border: var(--m-border-strong, #6b5224);
}
.modern-number-input > input[type="number"] {
    flex: 1 1 4ch;
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    border-radius: 4px 0 0 4px;
    appearance: textfield;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.modern-number-input > input::-webkit-inner-spin-button,
.modern-number-input > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.modern-number-input > button.modern-number-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0 0 0 -1px;
    padding: 0;
    border: 1px solid var(--number-border);
    border-radius: 0;
    background: #211a10;
    color: var(--number-accent);
    font: 500 22px/1 var(--m-font-body, sans-serif);
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
.modern-number-input > button.modern-number-step:last-child { border-radius: 0 4px 4px 0; }
.modern-number-input > button.modern-number-step:hover:not(:disabled) { background: #34291a; }
.modern-number-input > button.modern-number-step:disabled { opacity: .4; cursor: default; }
.modern-number-input > button.modern-number-step:focus-visible { position: relative; outline: 2px solid var(--number-accent); outline-offset: 2px; z-index: 1; }
@media (max-width: 620px) { .modern-number-input > input[type="number"] { font-size: 16px; } }

/* Auth login page */
.box.type-auth .box-body {
	padding: 36px 24px 30px;
}

.modern-auth-page {
	display: flex;
	justify-content: center;
}

.modern-auth-card {
	width: min(100%, 520px);
	padding: 26px 28px 28px;
	background:
		radial-gradient(circle at 50% 0%, rgba(212, 173, 98, 0.12), transparent 46%),
		linear-gradient(180deg, rgba(24, 14, 6, 0.96), rgba(9, 5, 2, 0.96));
	border: 1px solid rgba(151, 105, 36, 0.66);
	border-radius: 6px;
	box-shadow:
		inset 0 0 28px rgba(0, 0, 0, 0.62),
		0 14px 42px rgba(0, 0, 0, 0.42);
}

.modern-auth-intro {
	margin-bottom: 20px;
	text-align: center;
}

.modern-auth-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--m-gold-bright);
	background:
		radial-gradient(circle at 50% 34%, rgba(255, 224, 142, 0.28), transparent 62%),
		rgba(9, 5, 2, 0.9);
	border: 1px solid var(--m-border-strong);
	border-radius: 50%;
	box-shadow:
		inset 0 0 18px rgba(0, 0, 0, 0.74),
		0 0 20px rgba(199, 145, 44, 0.18);
}

.modern-auth-icon i {
	margin: 0;
	font-size: 23px;
}

.modern-auth-intro p {
	max-width: 330px;
	margin: 0 auto;
	font-size: 13px;
	line-height: 1.55;
	color: #c9b894;
}

/* One readable title scale for every public account and restore card. */
.modern-auth-intro h1 {
	margin: 0 0 8px;
	color: var(--m-gold-bright);
	font-family: var(--m-font-display);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.18;
	text-transform: uppercase;
}

/* The CMS login already has the same in-card title; do not duplicate it in
   the old small box header above the authentication card. */
.box.type-auth .box-head {
	display: none;
}

.modern-auth-form .card-body {
	padding: 0;
}

.modern-auth-form .input-group {
	border: 1px solid rgba(151, 105, 36, 0.72);
	border-radius: 5px;
	overflow: hidden;
	background: rgba(8, 5, 2, 0.86);
	box-shadow:
		inset 0 2px 12px rgba(0, 0, 0, 0.58),
		0 0 0 1px rgba(0, 0, 0, 0.24);
}

.modern-auth-form .input-group.border-danger {
	border-color: var(--m-red) !important;
	box-shadow:
		inset 0 0 12px rgba(179, 54, 42, 0.3),
		0 0 0 1px rgba(179, 54, 42, 0.2);
}

.modern-auth-form .input-group-text {
	width: 50px !important;
	min-width: 50px;
	justify-content: center;
	color: var(--m-gold);
	background: rgba(28, 17, 7, 0.98);
	border: none;
	border-right: 1px solid rgba(151, 105, 36, 0.46);
}

.modern-auth-form .input-group-text i {
	margin: 0;
	font-size: 16px;
	color: var(--m-gold);
}

.modern-auth-form .form-control {
	min-height: 52px;
	padding: 12px 15px;
	font-size: 15px;
	color: #f0dfba;
	background: rgba(8, 5, 2, 0.88);
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.modern-auth-form .form-control:focus {
	color: var(--m-gold-bright);
	background: rgba(11, 7, 3, 0.95);
	box-shadow: inset 0 0 0 1px rgba(212, 173, 98, 0.28);
}

.modern-auth-form .form-control::placeholder {
	color: #8f7d62;
	opacity: 1;
}

.modern-auth-form .captcha-field .input-group-text.w-100 {
	width: 100% !important;
	min-width: 100%;
	padding: 8px 10px;
	border-right: none;
	border-bottom: 1px solid rgba(151, 105, 36, 0.46);
}

.modern-auth-form .captcha-field img {
	max-width: 100%;
	height: 34px;
	object-fit: contain;
}

.modern-auth-hidden-captcha {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.modern-auth-visible-captcha {
	display: flex;
	justify-content: center;
}

.modern-auth-form .form-floating label {
	color: #8f7d62;
}

.modern-auth-form .card-links {
	justify-content: center !important;
	align-items: center;
	color: #c9b894;
}

.modern-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	margin: 0;
	padding: 4px 0;
	cursor: pointer;
}

.modern-auth-form .form-check-input {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid rgba(183, 135, 48, 0.9);
	border-radius: 3px;
	background-color: rgba(9, 6, 3, 0.95);
	background-image: none;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.modern-auth-form .form-check-input:checked {
	background-color: var(--m-gold);
	border-color: #f4ce6a;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23170e04' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px 13px;
	box-shadow:
		0 0 12px rgba(212, 160, 48, 0.34),
		inset 0 0 0 1px rgba(255, 235, 174, 0.34);
}

.modern-auth-form .form-check-label,
.modern-auth-form .card-link {
	font-size: 13px;
	color: #d9c59e;
}

.modern-auth-form .form-check-label {
	cursor: pointer;
	user-select: none;
}

.modern-auth-form .form-check-input:focus-visible {
	outline: 2px solid rgba(244, 206, 106, 0.8);
	outline-offset: 3px;
}

.modern-auth-form .card-link:hover {
	color: var(--m-gold-bright);
}

.modern-auth-form .error-feedback {
	margin-bottom: 16px;
	padding: 10px 12px;
	font-size: 12.5px;
	color: #f0b0a8 !important;
	background: rgba(80, 18, 12, 0.62);
	border: 1px solid rgba(179, 54, 42, 0.5);
	border-radius: 5px;
}

.modern-auth-submit {
	min-width: 170px;
	padding: 12px 28px;
	font-size: 13px;
}

/* Keep every public account card's actions centered, including the standalone
   Restore Manager forms that do not use Bootstrap's text-center wrapper. */
.modern-auth-form > .modern-auth-submit {
	display: block;
	float: none !important;
	position: relative;
	left: 50%;
	margin-right: 0 !important;
	margin-left: 0 !important;
	transform: translateX(-50%);
}

.modern-auth-form > .card-links {
	display: flex;
	justify-content: center;
}

.modern-auth-form .modern-auth-notes {
	display: table;
	margin-right: auto;
	margin-left: auto;
	text-align: left;
}

.modern-auth-helper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 18px;
	font-family: var(--m-font-heading);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(201, 184, 148, 0.72);
}

.modern-auth-helper a {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: var(--m-gold);
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.modern-auth-helper a:hover,
.modern-auth-helper a:focus-visible {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.modern-auth-helper i {
	margin-right: 6px;
	font-size: 11px;
}

@media (max-width: 767px) {
	.box.type-auth .box-body {
		padding: 24px 14px 22px;
	}

	.modern-auth-card {
		padding: 22px 16px 24px;
	}

	.modern-auth-intro h1 {
		font-size: 22px;
	}

	.modern-auth-form .card-links {
		flex-direction: column;
		align-items: flex-start;
	}

	.modern-auth-submit {
		width: 100%;
	}
}

/* Generic CMS buttons */
.nice_button,
.btn-primary,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	padding: 9px 20px;
	font-family: var(--m-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #f7dfaa !important;
	background: linear-gradient(180deg, rgba(91, 61, 20, 0.9), rgba(34, 20, 7, 0.98));
	border: 1px solid #d2a84e;
	border-radius: 3px;
	box-shadow:
		inset 0 1px 0 rgba(255, 234, 173, 0.28),
		inset 0 0 0 1px rgba(255, 204, 91, 0.08),
		0 0 0 1px rgba(58, 38, 10, 0.95),
		0 3px 10px rgba(0, 0, 0, 0.58),
		0 0 13px rgba(210, 168, 78, 0.12);
	text-shadow: 0 1px 2px #000;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* Shared submit feedback for CMS modules and standalone account tools. */
button[type="submit"],
a[href*="guid="] {
	position: relative;
}

.global-action-spinner,
button.is-action-loading > .spinner-battlenet {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-block !important;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	background: url('/account/assets/images/spinner-battlenet.1IdwV.png') 0 0 no-repeat;
	animation: modern-action-loading 0.8s steps(21) infinite;
	pointer-events: none;
}

.global-action-spinner--overlay {
	position: fixed;
	z-index: 100000;
	margin: 0;
}

button.is-action-loading,
input.is-action-loading,
a.is-action-loading {
	pointer-events: none;
	cursor: wait;
}

button.is-action-loading,
a.is-action-loading {
	color: transparent !important;
	text-shadow: none;
}

button.is-action-loading > *:not(.spinner-battlenet):not(.global-action-spinner),
a.is-action-loading > *:not(.spinner-battlenet):not(.global-action-spinner) {
	opacity: 0;
}

input.is-action-loading {
	color: transparent !important;
	text-shadow: none;
}

@keyframes modern-action-loading {
	from { background-position: 0 0; }
	to { background-position: -420px 0; }
}

/* sidebox_top type switcher (PVP / Achievements / Guild):
   kill the bootstrap col-* widths that truncated the labels */
#top10_types_menu {
	display: flex !important;
	gap: 8px;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#top10_types_menu .nice_button {
	width: auto !important;
	flex: 0 0 auto;
	padding: 8px 16px !important;
	overflow: visible;
}

.top_ranked_row {
	gap: 12px;
}

#top10_realms_menu {
	width: auto !important;
}

.nice_button:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	color: #fff2cc !important;
	background: linear-gradient(180deg, rgba(119, 82, 28, 0.95), rgba(48, 29, 9, 0.99));
	border-color: #f0ca68;
	box-shadow:
		inset 0 1px 0 rgba(255, 239, 190, 0.38),
		inset 0 0 0 1px rgba(255, 214, 112, 0.12),
		0 0 0 1px rgba(73, 48, 12, 0.95),
		0 4px 12px rgba(0, 0, 0, 0.62),
		0 0 18px rgba(228, 192, 106, 0.2);
	transform: translateY(-1px);
}

.nice_button:focus-visible,
.btn-primary:focus-visible,
button[type="submit"]:focus-visible,
input[type="submit"]:focus-visible,
.modern-btn-gold:focus-visible {
	outline: 2px solid #f0ca68;
	outline-offset: 3px;
}

.nice_button:active,
.btn-primary:active,
button[type="submit"]:active,
input[type="submit"]:active {
	background: linear-gradient(180deg, rgba(44, 27, 9, 0.99), rgba(76, 51, 16, 0.94));
	box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(58, 38, 10, 0.95);
	transform: translateY(0);
}

.nice_button.type-cancel,
.btn-secondary {
	color: #f0d898 !important;
	background: rgba(14, 9, 4, 0.65);
	border: 1px solid #8c6a2c;
	box-shadow: none;
	text-shadow: none;
}

/* ------------------------------------------------------------------------- */
/* 11. Dropdowns, pills, popups                                               */
/* ------------------------------------------------------------------------- */

.dropdown-menu {
	background: rgba(20, 13, 7, 0.985);
	border: 1px solid var(--m-border-strong);
	border-radius: 5px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
	padding: 6px;
}

.dropdown-item {
	color: #b08c58;
	font-family: var(--m-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 3px;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.dropdown-item.active {
	color: var(--m-gold-bright);
	background: rgba(212, 173, 98, 0.16);
}

/* Bootstrap pills (pvp_statistics etc.) */
.nav-pills {
	gap: 6px;
	align-items: center;
}

.nav-pills .nav-link {
	font-family: var(--m-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b08c58;
	background: rgba(10, 6, 3, 0.6);
	border: 1px solid var(--m-border);
	border-radius: 4px;
	padding: 7px 14px;
}

.nav-pills .nav-link:hover {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
}

.nav-pills .nav-link.active {
	color: #160e03;
	background: linear-gradient(135deg, #efd467 0%, #bd8e24 100%);
	border-color: #d7b84f;
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.18);
}

/* Tab content panel */
.tab-content {
	border: 1px solid var(--m-border);
	border-radius: 6px;
	background: rgba(10, 6, 3, 0.4);
	padding: 6px;
}

/* CMS popups */
.popup-box {
	background: linear-gradient(180deg, var(--m-panel), var(--m-panel-2));
	border: 1px solid var(--m-border-strong);
	border-radius: 8px;
	color: var(--m-text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Offcanvas mobile menu */
.offcanvas {
	background: #140d07;
	color: var(--m-text);
}

.offcanvas .offcanvas-title {
	font-family: var(--m-font-display);
	color: var(--m-gold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.offcanvas .btn-close {
	filter: invert(0.7) sepia(0.4);
}

.offcanvas .navbar-nav {
	width: 100%;
}

.offcanvas .nav-link {
	font-family: var(--m-font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #bd9a64;
	padding: 10px 4px;
	border: 1px solid transparent;
	border-bottom-color: rgba(51, 36, 15, 0.6);
	border-radius: 4px;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus-visible,
.offcanvas .nav-link.active {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.offcanvas .userbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	margin-bottom: 14px;
	background: rgba(8, 5, 2, 0.5);
	border: 1px solid var(--m-border);
	border-radius: 6px;
}

.offcanvas .userbar .info-username {
	font-family: var(--m-font-display);
	font-size: 13px;
	color: var(--m-gold);
}

/* ------------------------------------------------------------------------- */
/* 12. Footer                                                                 */
/* ------------------------------------------------------------------------- */

.modern-footer {
	position: relative;
	margin-top: 12px;
}

/* Full-width, short footer band (no dark plate — just the links over the
   panel) with a faded gold rule above them, and a centred crest on the bottom
   frame rail. Links spread to the frame edges; the bar is kept short. */
.modern-foot-bar {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 30px;       /* keep the strip short (height) */
	padding: 0 44px;        /* reach toward the walls but clear the corners */
}

/* faded gold rule above the links (no hard bar) */
.modern-foot-bar::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 5%;
	right: 5%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(176, 140, 72, 0.45) 25%, rgba(176, 140, 72, 0.45) 75%, transparent);
}

/* Both groups take equal flex space and spread their links across each half,
   so the menu reaches out to the frame edges with the crest dead-centre. */
.modern-foot-list {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-evenly;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.modern-foot-list a {
	font-family: var(--m-font-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #dcc078;
	text-shadow: 0 1px 2px #000;
	white-space: nowrap;
	padding: 4px 7px;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.modern-foot-list a:hover,
.modern-foot-list a:focus-visible {
	color: var(--m-gold-bright);
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

/* centre column reserves gap so links do not overlap the vertical crest */
.modern-foot-center {
	flex: 0 0 clamp(72px, 14%, 110px);
}

/* Crest: crystal rising from the frame's bottom-centre star ornament.
   Anchored to .modern-page. Tune bottom: more positive = higher. */
.modern-page > .modern-footer-crest {
	position: absolute;
	left: 50%;
	bottom: calc(-1 * var(--m-frame-clip-b) + 8px);
	transform: translateX(-50%);
	z-index: 55;
	line-height: 0;
	pointer-events: none;
}

.modern-footer-crest-img {
	display: block;
	height: 64px;
	width: auto;
	max-width: 90px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

/* Copyright sits below the frame on the page background. A soft radial dark
   halo (fading to transparent) keeps it readable over the busy art without a
   hard bar; a strong text-shadow does the rest. */
.modern-page-copy {
	max-width: 940px;
	margin: 0 auto;
	padding: 22px 24px 26px;
	text-align: center;
	font-size: 11px;
	line-height: 1.4;
	color: #cbb894;
	letter-spacing: 0.03em;
	/* no background band — readability comes from the shadow alone */
	text-shadow: 0 1px 2px #000, 0 0 6px #000, 0 0 14px rgba(0, 0, 0, 0.95);
}

/* ------------------------------------------------------------------------- */
/* 13. Responsive                                                             */
/* ------------------------------------------------------------------------- */

@media (max-width: 1240px) {
	.modern-page {
		width: calc(100% - 20px);
		margin: 12px auto 24px;
	}
}

@media (max-width: 1199px) {
	:root {
		--m-frame-border: 35px;
		--m-frame-clip-x: 14px;
		--m-frame-clip-t: 13px;
		--m-frame-clip-b: 14px;
		--m-frame-inset-x: 9px;
		--m-frame-inset-t: 11px;
		--m-frame-inset-b: 8px;
	}

	/* nav row stays (status / logo / login / toggler), menu lists go offcanvas */
	.modern-nav {
		padding: 0 40px;
	}

	.modern-nav-list {
		display: none;
	}

	.modern-nav-side--left,
	.modern-nav-side--right {
		padding: 0;
	}

	.modern-toggler {
		display: inline-block;
	}

	.modern-logo {
		width: 220px;
		height: 64px;
	}

	.modern-logo-crest {
		width: 220px;
		height: 112px;
		top: calc(-1 * var(--m-frame-clip-t) - var(--m-frame-inset-t) - 10px);
	}

	.modern-hero,
	.modern-hero-slider,
	.modern-hero-slider .owl-stage-outer,
	.modern-hero-slider .owl-stage,
	.modern-hero-slider .owl-item,
	.modern-hero-slide {
		height: 300px;
	}

	.modern-hero {
		margin-bottom: -24px;
	}

	.modern-hero-language {
		right: auto;
		left: 18px;
	}

	.modern-hero-cta {
		right: 22px;
		width: 240px;
	}

	.modern-hero-cta h2 {
		font-size: 24px;
	}

}

@media (max-width: 767px) {
	:root {
		--m-frame-border: 28px;
		--m-frame-clip-x: 11px;
		--m-frame-clip-t: 11px;
		--m-frame-clip-b: 11px;
		--m-frame-inset-x: 7px;
		--m-frame-inset-t: 8px;
		--m-frame-inset-b: 7px;
	}

	.modern-nav {
		padding: 0 18px;
	}

	.modern-hero {
		height: auto;
		margin: 0;
		border-radius: 0 0 4px 4px;
	}

	.modern-hero-slider,
	.modern-hero-slider .owl-stage-outer,
	.modern-hero-slider .owl-stage,
	.modern-hero-slider .owl-item,
	.modern-hero-slide {
		height: 200px;
	}

	.modern-hero-cta {
		position: static;
		transform: none;
		width: auto;
		padding: 18px 20px 10px;
	}

	.modern-hero-language {
		top: 58px;
		right: 8px;
		left: auto;
	}

	.modern-hero-language .site-language a {
		min-width: 36px;
		min-height: 44px;
	}

	.modern-hero-controls {
		top: 155px;
		bottom: auto;
	}

	.modern-hero::before {
		background: linear-gradient(180deg, rgba(10, 7, 4, 0.18) 0%, rgba(10, 7, 4, 0.05) 58%, rgba(10, 7, 4, 0.72) 100%);
	}

	.modern-hero + .modern-content-inner {
		padding-top: 14px;
	}

	.modern-hero-cta h2 br {
		display: none;
	}

	.modern-cards {
		grid-template-columns: 1fr;
	}

	.modern-home-news #content_ajax > .news-article {
		min-height: 0;
		padding: 0;
	}

	.modern-welcome .box-body {
		padding-right: 16px;
	}

	.modern-welcome-flame {
		display: none;
	}

	.modern-content-inner {
		padding: 14px 12px 6px;
	}


	/* On narrow screens stack the footer: crest centred on top, then the two
	   link groups wrap below it (no rail straddling on mobile). */
	.modern-foot-bar {
		flex-wrap: wrap;
		justify-content: center;
		min-height: 0;
		padding: 8px 4% 6px;
	}

	.modern-foot-center {
		display: none;
	}

	.modern-page > .modern-footer-crest {
		bottom: calc(-1 * var(--m-frame-clip-b) + 6px);
	}

	.modern-footer-crest-img {
		height: 52px;
		max-width: 76px;
	}

	.modern-foot-list {
		flex: 0 1 100%;
		max-width: 100%;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 12px;
	}

	.modern-foot-list a {
		font-size: 9px;
		letter-spacing: 0.06em;
		padding: 0 2px;
	}

	.modern-page-copy {
		font-size: 10px;
		padding: 12px 14px 24px;
	}

}

/* -------------------------------------------------------------------------
   Inner pages (UCP, vote, donate, settings): Bootstrap widgets on the dark
   theme — white defaults are replaced with warm dark + gold accents.
   ------------------------------------------------------------------------- */
.section-header {
	margin: 16px 0 10px;
	padding: 8px 12px;
	font-family: var(--m-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--m-gold-bright);
	background: linear-gradient(180deg, rgba(212, 173, 98, 0.12), rgba(212, 173, 98, 0.03));
	border: 1px solid rgba(212, 173, 98, 0.25);
	border-radius: 4px;
}

.section-body {
	padding: 14px;
	color: var(--m-text);
	background: rgba(14, 9, 5, 0.55);
	border: 1px solid rgba(107, 80, 32, 0.4);
	border-radius: 4px;
}

/* Bootstrap tables: transparent dark instead of white */
.table,
.table > :not(caption) > * > * {
	--bs-table-bg: transparent;
	--bs-table-color: var(--m-text);
	background: transparent;
	color: var(--m-text);
	border-color: rgba(107, 80, 32, 0.3);
}

.table a {
	color: var(--m-gold);
}

.table a:hover {
	color: var(--m-gold-bright);
}

.user-table-icon {
	display: inline-flex;
	width: 22px;
	justify-content: center;
	color: #9a7a42;
}

/* Bootstrap list-group (UCP menu): dark rows, gold hover/active */
.list-group-item,
.list-group-item-action {
	background: rgba(18, 12, 6, 0.85);
	border-color: rgba(107, 80, 32, 0.4);
	color: var(--m-text);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
	background: rgba(212, 173, 98, 0.12);
	border-color: var(--m-item-hover-border);
	color: var(--m-gold-bright);
	box-shadow: inset 0 0 0 1px var(--m-item-hover-border), var(--m-item-hover-shadow);
}

/* Clickable content cards use the same framed feedback as navigation rows. */
.card-hover {
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover,
.card-hover:focus-visible {
	border-color: var(--m-item-hover-border);
	background: var(--m-item-hover-bg);
	box-shadow: var(--m-item-hover-shadow);
	outline: none;
}

.list-group-item.active {
	background: linear-gradient(135deg, #efd467 0%, #bd8e24 100%);
	border-color: #d7b84f;
	color: #160e03;
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.18);
}

/* Shared selected-state treatment for legacy filter buttons. */
.nice_button.nice_active,
.nice_button.nice_active:hover,
.nice_button.nice_active:focus-visible {
	color: #160e03 !important;
	border-color: #d7b84f !important;
	background: linear-gradient(135deg, #efd467 0%, #bd8e24 100%) !important;
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.18) !important;
	text-shadow: none !important;
}

/* UCP avatar */
.user-avatar img {
	max-width: 160px;
	height: auto;
	border: 2px solid rgba(212, 173, 98, 0.45);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.form-select {
	background-color: rgba(8, 5, 2, 0.75);
	border: 1px solid rgba(107, 80, 32, 0.55);
	color: var(--m-text);
}
