/* ============================================================
   MuhRO theme for FluxCP - design-system override layer.

   Loaded AFTER th1's bootstrap.min.css / flux.css / theme.css, so
   equal-specificity rules win by source order, and class-scoped
   rules (.muhro-theme ...) beat th1's bare/`*` declarations.

   Tokens are lifted verbatim from the MuhRO Design System
   (claude.ai/design - "MuhRO Design System"):
     dark-first palette, periwinkle/purple accent (#8675E7),
     gold secondary (#FFD15C), hot-pink CTA (#EC409E),
     Outfit UI / Montserrat + Italiana display, soft dark shadows.
   ============================================================ */

:root {
	/* ---- Surfaces (dark) ---- */
	--mr-bg-darkest:  rgb(18, 18, 20);
	--mr-bg-mid:      rgb(24, 24, 28);
	--mr-bg-light:    rgb(38, 38, 44);
	--mr-bg-lighter:  rgb(48, 48, 54);

	/* ---- Text ---- */
	--mr-text-lightest: rgb(248, 242, 240);
	--mr-text-light:    rgb(197, 189, 186);
	--mr-text-mid:      rgb(174, 175, 190);
	--mr-text-medium:   rgb(131, 127, 126);

	/* ---- Brand ---- */
	--mr-primary:       rgb(134, 117, 231);
	--mr-primary-alt:   rgb(134, 101, 234);
	--mr-primary-dark:  rgb(106, 89, 206);
	--mr-secondary:     rgb(255, 209, 92);
	--mr-pink:          rgb(236, 64, 158);

	/* ---- System ---- */
	--mr-success: rgb(71, 207, 101);
	--mr-warning: rgb(255, 193, 77);
	--mr-danger:  rgb(234, 57, 57);
	--mr-danger-soft: rgb(251, 77, 98);
	--mr-info:    rgb(111, 151, 255);

	/* ---- Borders ---- */
	--mr-border:        rgba(255, 255, 255, 0.10);
	--mr-border-strong: rgba(255, 255, 255, 0.20);

	/* ---- Type ---- */
	--font-display: "Montserrat", "Outfit", system-ui, sans-serif;
	--font-serif:   "Italiana", "Times New Roman", serif;
	--font-ui:      "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* ---- Radii / shadow / motion ---- */
	--radius-sm:  8px;
	--radius-md:  12px;
	--radius-lg:  16px;
	--radius-pill: 999px;
	--shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.25);
	--shadow-md:  0 4px 16px rgba(0, 0, 0, 0.30);
	--shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.45);
	--shadow-glow: 0 0 24px rgba(134, 117, 231, 0.35);
	--ease-out:   cubic-bezier(0.22, 1, 0.36, 1);

	/* Map Bootstrap's own theming variables to the MuhRO accent */
	--bs-primary: var(--mr-primary);
	--bs-primary-rgb: 134, 117, 231;
	--bs-link-color: var(--mr-primary);
	--bs-link-hover-color: var(--mr-primary-alt);
}

/**************************************
 * Base / typography
 **************************************/
body.muhro-theme {
	font-family: var(--font-ui) !important;
	font-weight: 400;
	color: var(--mr-text-light);
	min-height: 100vh;
}

/* th1's theme.css does `* { border-radius:0 !important }`; re-enable
   rounded corners on the components that should have them. */
.muhro-theme .card,
.muhro-theme .card-header,
.muhro-theme .card-footer,
.muhro-theme .btn,
.muhro-theme .alert,
.muhro-theme .badge,
.muhro-theme .dropdown-menu,
.muhro-theme .form-control,
.muhro-theme .form-select,
.muhro-theme .input-group-text,
.muhro-theme .page-link,
.muhro-theme .nav-pills .nav-link,
.muhro-theme input[type="text"],
.muhro-theme input[type="password"],
.muhro-theme input[type="email"],
.muhro-theme input[type="number"],
.muhro-theme select,
.muhro-theme textarea {
	border-radius: var(--radius-md) !important;
}
.muhro-theme .badge,
.muhro-theme .nav-pills .nav-link { border-radius: var(--radius-pill) !important; }

.muhro-theme h1,
.muhro-theme h2,
.muhro-theme h3,
.muhro-theme h4,
.muhro-theme h5,
.muhro-theme h6,
.muhro-theme .h1,
.muhro-theme .h2,
.muhro-theme .h3 {
	font-family: var(--font-display) !important;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--mr-text-lightest);
}

.muhro-theme a {
	color: var(--mr-primary);
	text-decoration: none;
	transition: color var(--ease-out) 160ms;
}
.muhro-theme a:hover,
.muhro-theme a:focus { color: var(--mr-primary-alt); }

/* Wider, modern container - the sidebar is gone, so give data-dense
   pages (item/monster DB, market, rankings) room to breathe. Capped so
   it never goes uncomfortably edge-to-edge on very large monitors. */
.muhro-theme .container { max-width: 1400px; }

.muhro-theme .pagecontainer {
	color: var(--mr-text-light);
	padding-top: 2rem;
	padding-bottom: 2.5rem;
}

.muhro-theme .text-muted { color: var(--mr-text-medium) !important; }

/* Selection + focus ring in brand colour */
.muhro-theme ::selection { background: rgba(134, 117, 231, 0.35); color: #fff; }
.muhro-theme :focus-visible { outline: 2px solid var(--mr-primary); outline-offset: 2px; }

/* Custom scrollbar to match the design system */
.muhro-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
.muhro-theme ::-webkit-scrollbar-thumb { background: var(--mr-bg-lighter); border-radius: 999px; }
.muhro-theme ::-webkit-scrollbar-track { background: transparent; }

/**************************************
 * Navbar
 **************************************/
.muhro-theme .navbar.bg-dark {
	background: rgba(24, 24, 28, 0.85) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mr-border);
	box-shadow: var(--shadow-md);
	/* Sticky so navigation stays reachable on long ranking/DB pages.
	   backdrop-filter already creates a stacking context; the high z-index
	   keeps it (and its dropdowns) above the content cards. */
	position: sticky;
	top: 0;
	z-index: 1040;
}
/* Bootstrap's dropdown default z-index (1000) is scoped inside the
   navbar's stacking context; keep it on top within that context. */
.muhro-theme .navbar .dropdown-menu { z-index: 1041; }

/* Right-aligned account control (login / account menu) */
.muhro-theme .muhro-account__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-pill) !important;
	background: rgba(255, 255, 255, 0.05);
	color: var(--mr-text-lightest);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.muhro-theme .muhro-account__toggle:hover,
.muhro-theme .muhro-account__toggle:focus,
.muhro-theme .muhro-account.show .muhro-account__toggle {
	background: rgba(134, 117, 231, 0.18);
	border-color: var(--mr-primary);
	color: #fff;
	box-shadow: var(--shadow-glow);
}
.muhro-theme .muhro-account__toggle i { color: var(--mr-primary); font-size: 1.05rem; }
.muhro-theme .muhro-account__toggle:hover i { color: #fff; }
.muhro-theme .muhro-account__name {
	display: inline-block;
	max-width: 10rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}
.muhro-theme .muhro-account .dropdown-menu { min-width: 13rem; }

/* Below sm the label is hidden (d-none d-sm-inline); show a tidy icon-only
   pill and drop the dropdown caret so it stays square. */
@media (max-width: 575.98px) {
	.muhro-theme .muhro-account__toggle { padding: 0.45rem 0.6rem; }
	.muhro-theme .muhro-account__toggle.dropdown-toggle::after { display: none; }
}

/* Keep the hamburger on-brand and aligned with the account pill */
.muhro-theme .navbar-toggler {
	border-color: var(--mr-border-strong);
	border-radius: var(--radius-sm) !important;
	padding: 0.4rem 0.6rem;
}
.muhro-theme .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(134, 117, 231, 0.25); }

/**************************************
 * Dashboard shell - slim top bar + left sidebar
 **************************************/
.muhro-theme { --topbar-h: 64px; --sidebar-w: 264px; --rail-w: 64px; }

.muhro-theme .muhro-topbar {
	position: sticky;
	top: 0;
	z-index: 1045;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: var(--topbar-h);
	padding: 0 1rem;
	background: rgba(24, 24, 28, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mr-border);
	box-shadow: var(--shadow-md);
}
.muhro-theme .muhro-topbar__brand { display: inline-flex; align-items: center; }
.muhro-theme .muhro-topbar__brand img { height: 38px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.muhro-theme .muhro-topbar__spacer { flex: 1 1 auto; }
.muhro-theme .muhro-topbar__right { display: flex; align-items: center; gap: 1rem; }

/* Layout-mode toggle (switch left drawer <-> top nav) */
.muhro-theme .muhro-navmode-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-sm) !important;
	background: rgba(255, 255, 255, 0.05);
	color: var(--mr-text-lightest);
}
.muhro-theme .muhro-navmode-btn:hover { background: rgba(134, 117, 231, 0.18); border-color: var(--mr-primary); color: #fff; }

/* Top-nav mode: centre and cap the content width like a normal container */
.muhro-theme .muhro-content-top { max-width: 1500px; margin: 0 auto; }

/* Community links (Discord / Forum / Wiki) in the top bar */
.muhro-theme .muhro-topbar__links { display: flex; align-items: center; gap: 0.2rem; margin-left: 0.6rem; }
.muhro-theme .muhro-topbar__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.8rem;
	border-radius: var(--radius-pill) !important;
	color: var(--mr-text-mid);
	font-weight: 500;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.muhro-theme .muhro-topbar__links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--mr-text-lightest); }
.muhro-theme .muhro-topbar__links i { color: var(--mr-primary); }

/* Server status (online counts) restored to the top bar, always visible */
.muhro-theme .muhro-topbar-status { gap: 0.85rem; list-style: none; padding: 0; }
.muhro-theme .muhro-topbar-status .nav-item { display: flex; align-items: center; }
.muhro-theme .muhro-topbar-status .nav-link { padding: 0; }
.muhro-theme .muhro-topbar-status .online-counts { font-size: 0.7rem; }

.muhro-theme .muhro-sidebar-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 40px;
	padding: 0 0.9rem;
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-pill) !important;
	background: rgba(255, 255, 255, 0.05);
	color: var(--mr-text-lightest);
	font-weight: 600;
	font-size: 0.9rem;
}
.muhro-theme .muhro-sidebar-toggle:hover { background: rgba(134, 117, 231, 0.18); border-color: var(--mr-primary); }

.muhro-theme .muhro-shell { display: block; }

/* Sidebar is an on-demand drawer at ALL sizes, so pages always get the
   full content width and navigation lives in one place (opened via the
   "Menu" button in the top bar). */
.muhro-theme .muhro-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1060;
	height: 100vh;
	width: min(86vw, var(--sidebar-w));
	display: flex;
	flex-direction: column;
	background: rgba(20, 20, 24, 0.97);
	border-right: 1px solid var(--mr-border);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transform: translateX(-100%);
	transition: transform 0.25s var(--ease-out);
	box-shadow: var(--shadow-lg);
}
.muhro-theme .muhro-sidebar.is-open { transform: none; }

.muhro-theme .muhro-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid var(--mr-border);
}
.muhro-theme .muhro-sidebar__title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--mr-text-lightest);
}
.muhro-theme .muhro-sidebar__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; }
.muhro-theme .muhro-sidebar__btn {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	font-size: 0.82rem;
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-sm) !important;
	background: transparent;
	color: var(--mr-text-light);
}
.muhro-theme .muhro-sidebar__btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.muhro-theme .muhro-sidebar__btn[aria-pressed="true"] { background: rgba(134, 117, 231, 0.2); border-color: var(--mr-primary); color: #fff; }
/* The close X reads better a touch smaller than the action buttons */
.muhro-theme .muhro-sidebar__close { width: 26px; height: 26px; font-size: 0.72rem; }

/* Category customizer panel */
.muhro-theme .muhro-nav__customize { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--mr-border); background: rgba(0, 0, 0, 0.15); }
.muhro-theme .muhro-cust__title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mr-text-medium); margin-bottom: 0.4rem; }
.muhro-theme .muhro-cust__row { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; font-size: 0.86rem; color: var(--mr-text-light); cursor: pointer; }
.muhro-theme .muhro-cust__row input { accent-color: var(--mr-primary); }
.muhro-theme .muhro-cust__row--sub { padding-left: 1.35rem; font-size: 0.8rem; color: var(--mr-text-mid); }
.muhro-theme .muhro-nav__customize { max-height: 55vh; overflow-y: auto; }

/* Shared hide mechanisms: customizer (.muhro-hidden) and search (.muhro-nofind).
   Decoupled so clearing a search never reveals customizer-hidden items. */
.muhro-theme .muhro-hidden,
.muhro-theme .muhro-nofind { display: none !important; }

/* Smart search box */
.muhro-theme .muhro-nav__search { padding: 0.7rem 0.75rem 0.4rem; }
.muhro-theme .muhro-search-wrap { position: relative; }
.muhro-theme .muhro-search-wrap i {
	position: absolute;
	left: 0.8rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--mr-text-medium);
	font-size: 0.85rem;
	pointer-events: none;
}
.muhro-theme .muhro-search-wrap input {
	width: 100%;
	padding: 0.5rem 0.7rem 0.5rem 2.1rem;
	background: rgba(18, 18, 20, 0.85);
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-pill) !important;
	color: var(--mr-text-lightest);
	font-size: 0.88rem;
}
.muhro-theme .muhro-search-wrap input:focus {
	outline: none;
	border-color: var(--mr-primary);
	box-shadow: 0 0 0 0.2rem rgba(134, 117, 231, 0.25);
}
.muhro-theme .muhro-nav__empty { padding: 0.4rem 1rem 0.75rem; margin: 0; color: var(--mr-text-medium); font-size: 0.85rem; }

/* While searching, force every group open so matches show regardless of collapse state */
.muhro-theme .muhro-sidebar.is-searching .muhro-nav__sub { display: block !important; height: auto !important; }
.muhro-theme .muhro-sidebar.is-searching .muhro-nav__chev { display: none; }
.muhro-theme .muhro-nav {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.85rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.muhro-theme .muhro-nav__head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.55rem 0.7rem;
	margin-top: 0.35rem;
	background: transparent;
	border: 0;
	color: var(--mr-text-medium);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	border-radius: var(--radius-sm) !important;
}
.muhro-theme .muhro-nav__head:hover { color: var(--mr-text-lightest); background: rgba(255, 255, 255, 0.04); }
.muhro-theme .muhro-nav__chev { margin-left: auto; font-size: 0.7rem; transition: transform 160ms var(--ease-out); }
.muhro-theme .muhro-nav__head[aria-expanded="false"] .muhro-nav__chev { transform: rotate(-90deg); }
.muhro-theme .muhro-nav__icon { width: 1.1rem; text-align: center; color: var(--mr-primary); }

.muhro-theme .muhro-nav__link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.75rem;
	color: var(--mr-text-mid);
	font-weight: 500;
	font-size: 0.92rem;
	border-radius: var(--radius-sm) !important;
}
.muhro-theme .muhro-nav__sub .muhro-nav__link { padding-left: 2.4rem; font-size: 0.88rem; }
/* In the expanded tree, sub-page icons sit quieter than the category icons.
   In the collapsed rail they stay bright (this rule is scoped to expanded). */
.muhro-theme:not(.muhro-nav-collapsed) .muhro-nav__sub .muhro-nav__icon { color: var(--mr-text-mid); font-size: 0.92em; }
.muhro-theme .muhro-nav__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--mr-text-lightest); }
.muhro-theme .muhro-nav__link.is-active {
	background: rgba(134, 117, 231, 0.18);
	color: #fff;
	box-shadow: inset 3px 0 0 var(--mr-primary);
}

.muhro-theme .muhro-sidebar__status {
	flex: 0 0 auto;
	border-top: 1px solid var(--mr-border);
	padding: 0.5rem 0.4rem;
}
.muhro-theme .muhro-sidebar__status .navbar-nav { flex-direction: column; gap: 0.1rem; }
.muhro-theme .muhro-sidebar__status .nav-link { padding: 0.3rem 0.7rem; }
.muhro-theme .muhro-sidebar__status .online-counts { align-items: flex-start; }

.muhro-theme .muhro-main {
	flex: 1 1 auto;
	min-width: 0; /* lets wide tables/DataTables shrink instead of overflowing */
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--topbar-h));
}
.muhro-theme .muhro-main .pagecontainer {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding-left: clamp(1rem, 2vw, 2rem);
	padding-right: clamp(1rem, 2vw, 2rem);
}
.muhro-theme .muhro-main #footer { margin-top: auto; }

.muhro-theme .muhro-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1055;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s var(--ease-out);
}
.muhro-theme .muhro-backdrop.is-open { opacity: 1; visibility: visible; }

/**************************************
 * Homepage dashboard
 **************************************/
.muhro-theme .muhro-hero {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	margin-bottom: 1rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-lg) !important;
	background:
		radial-gradient(700px 300px at 90% -20%, rgba(134, 117, 231, 0.25), transparent 60%),
		linear-gradient(135deg, rgba(38, 38, 44, 0.85), rgba(24, 24, 28, 0.85));
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.muhro-theme .muhro-hero__text { flex: 1 1 auto; }
.muhro-theme .muhro-hero__eyebrow { font-family: var(--font-serif); font-size: 1.1rem; color: var(--mr-secondary); }
.muhro-theme .muhro-hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-style: italic;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1;
	margin: 0.15rem 0 0.6rem;
	text-transform: uppercase;
	color: var(--mr-text-lightest);
}
.muhro-theme .muhro-hero__lead { color: var(--mr-text-mid); max-width: 52ch; margin-bottom: 1.1rem; }
.muhro-theme .muhro-hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.muhro-theme .muhro-hero__art { flex: 0 0 auto; }
.muhro-theme .muhro-hero__art img { max-height: 180px; width: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)); }
@media (max-width: 767.98px) {
	.muhro-theme .muhro-hero { flex-direction: column-reverse; text-align: center; }
	.muhro-theme .muhro-hero__cta { justify-content: center; }
	.muhro-theme .muhro-hero__lead { margin-left: auto; margin-right: auto; }
}

.muhro-theme .muhro-dash-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 1rem;
}
.muhro-theme .muhro-stat {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	background: rgba(38, 38, 44, 0.6);
	box-shadow: var(--shadow-sm);
}
.muhro-theme .muhro-stat__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md) !important;
	background: rgba(134, 117, 231, 0.18);
	color: var(--mr-primary);
	font-size: 1.2rem;
}
.muhro-theme .muhro-stat__value { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--mr-text-lightest); }
.muhro-theme .muhro-stat__label { font-size: 0.78rem; color: var(--mr-text-medium); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.muhro-theme .muhro-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 0.25rem; }
.muhro-theme .muhro-dot.is-up { background: var(--mr-success); box-shadow: 0 0 8px var(--mr-success); }
.muhro-theme .muhro-dot.is-down { background: var(--mr-danger); }

.muhro-theme .muhro-quicklinks { display: flex; gap: 0.5rem; }
.muhro-theme .muhro-quicklinks a {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.85rem 0.5rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	background: rgba(255, 255, 255, 0.04);
	color: var(--mr-text-light);
	font-size: 0.8rem;
	text-decoration: none;
	transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.muhro-theme .muhro-quicklinks a:hover { background: rgba(134, 117, 231, 0.18); border-color: var(--mr-primary); color: #fff; transform: translateY(-2px); }
.muhro-theme .muhro-quicklinks i { font-size: 1.5rem; color: var(--mr-primary); }
.muhro-theme .muhro-quicklinks a:hover i { color: #fff; }

.muhro-theme .muhro-mvp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.muhro-theme .muhro-mvp { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem; border-radius: var(--radius-sm) !important; }
.muhro-theme .muhro-mvp:hover { background: rgba(255, 255, 255, 0.04); }
.muhro-theme .muhro-mvp__img { width: 32px; height: 32px; object-fit: contain; }
.muhro-theme .muhro-mvp__name { flex: 1 1 auto; font-size: 0.88rem; color: var(--mr-text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* New-player homepage - live status pill, 3-step start, download mirrors */
.muhro-theme .muhro-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0.8rem;
	margin-bottom: 0.9rem;
	border-radius: var(--radius-pill) !important;
	border: 1px solid var(--mr-border-strong);
	background: rgba(255, 255, 255, 0.05);
	font-size: 0.85rem;
	color: var(--mr-text-light);
}
.muhro-theme .muhro-status-pill.is-up { border-color: rgba(71, 207, 101, 0.5); }
.muhro-theme .muhro-status-pill.is-down { border-color: rgba(234, 57, 57, 0.5); }

.muhro-theme .muhro-steps {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.muhro-theme .muhro-step {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	background: rgba(38, 38, 44, 0.6);
	box-shadow: var(--shadow-sm);
}
.muhro-theme .muhro-step__num {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	background: rgba(134, 117, 231, 0.18);
	color: var(--mr-primary);
	font-family: var(--font-display);
	font-weight: 800;
}
.muhro-theme .muhro-step__title { font-size: 1rem; margin: 0 0 0.35rem; color: var(--mr-text-lightest); }
.muhro-theme .muhro-step__title i { color: var(--mr-primary); margin-right: 0.25rem; }
.muhro-theme .muhro-step__text { color: var(--mr-text-mid); font-size: 0.9rem; margin: 0 0 0.5rem; }
.muhro-theme .muhro-step__link { font-weight: 600; }

.muhro-theme .muhro-dl__title { font-size: 1.05rem; color: var(--mr-text-lightest); margin-bottom: 0.25rem; }
.muhro-theme .muhro-dl__hint { color: var(--mr-text-mid); font-size: 0.85rem; margin-bottom: 0.75rem; }
.muhro-theme .muhro-dl__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muhro-theme .muhro-gated { display: flex; gap: 1rem; align-items: flex-start; }
.muhro-theme .muhro-gated__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md) !important;
	background: rgba(88, 101, 242, 0.18);
	color: #8b9bff;
	font-size: 1.6rem;
}

/* ---- Ongoing events ---- */
.muhro-theme .muhro-section-title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin: 0.5rem 0 0.75rem; color: var(--mr-text-lightest); }
.muhro-theme .muhro-section-title i { color: var(--mr-secondary); margin-right: 0.3rem; }
.muhro-theme .muhro-event__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.muhro-theme .muhro-event__icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md) !important;
	background: rgba(134, 117, 231, 0.18);
	color: var(--mr-primary);
	font-size: 1.1rem;
}
.muhro-theme .muhro-event--seasonal .muhro-event__icon { background: rgba(255, 209, 92, 0.16); color: var(--mr-secondary); }
.muhro-theme .muhro-event--exp.is-running .muhro-event__icon { background: rgba(71, 207, 101, 0.18); color: var(--mr-success); }
.muhro-theme .muhro-event__title { font-size: 1.1rem; margin: 0 0 0.35rem; }
.muhro-theme .muhro-event__title a { color: var(--mr-text-lightest); }
.muhro-theme .muhro-event__title a:hover { color: var(--mr-primary); }
.muhro-theme .muhro-event__next {
	margin: 0.6rem 0 0;
	padding-top: 0.6rem;
	border-top: 1px solid var(--mr-border);
	font-size: 0.85rem;
	color: var(--mr-text-medium);
}
.muhro-theme .muhro-event__next i { color: var(--mr-secondary); }
.muhro-theme .muhro-event__text { color: var(--mr-text-mid); margin: 0; }
.muhro-theme .muhro-event__text strong, .muhro-theme .muhro-countdown { color: var(--mr-text-lightest); }
.muhro-theme .muhro-event__bar { margin-top: 0.7rem; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.muhro-theme .muhro-event__bar-fill {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mr-primary), var(--mr-pink));
	transition: width 0.5s var(--ease-out);
}
.muhro-theme .muhro-event__barmeta { margin-top: 0.35rem; font-size: 0.78rem; color: var(--mr-text-medium); }

/* ============================================================
   Legacy-markup unification
   FluxCP's th1 AND default views share an old vocabulary:
   table-based "generic-form", horizontal/vertical data tables,
   bare <input type=submit>, .red/.green messages. Theming these
   once modernises ~80 pages (incl. default-theme fallbacks).
   ============================================================ */

/* ---- Generic forms (login, register, account, settings, ...) ---- */
.muhro-theme .generic-form { max-width: 600px; margin: 0 auto; }
.muhro-theme .generic-form-table { width: 100%; border: 0; background: transparent; }
.muhro-theme .generic-form-table tbody,
.muhro-theme .generic-form-table tr { display: block; width: 100%; }
.muhro-theme .generic-form-table tr { margin-bottom: 1rem; }
.muhro-theme .generic-form-table th {
	display: block;
	width: 100%;
	text-align: left;
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--mr-text-mid);
	margin-bottom: 0.35rem;
	background: transparent;
}
.muhro-theme .generic-form-table td { display: block; width: 100%; background: transparent; border: 0; padding: 0; }
.muhro-theme .generic-form-table input[type="text"],
.muhro-theme .generic-form-table input[type="password"],
.muhro-theme .generic-form-table input[type="email"],
.muhro-theme .generic-form-table input[type="number"],
.muhro-theme .generic-form-table select,
.muhro-theme .generic-form-table textarea { width: 100%; }

/* ---- Bare submit / button inputs -> MuhRO buttons ---- */
.muhro-theme input[type="submit"],
.muhro-theme input[type="button"],
.muhro-theme input[type="reset"] {
	display: inline-block;
	cursor: pointer;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.5rem 1.25rem;
	color: #fff;
	background: var(--mr-primary);
	border: 1px solid var(--mr-primary);
	border-radius: var(--radius-pill) !important;
	transition: background 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.muhro-theme input[type="submit"]:hover,
.muhro-theme input[type="button"]:hover,
.muhro-theme input[type="reset"]:hover {
	background: var(--mr-primary-alt);
	border-color: var(--mr-primary-alt);
	box-shadow: var(--shadow-glow);
	transform: translateY(-1px);
}
.muhro-theme input[type="reset"] { background: rgba(255, 255, 255, 0.08); border-color: var(--mr-border-strong); }

/* ---- Generic data tables (horizontal = rows, vertical = key/value) ---- */
.muhro-theme .horizontal-table:not(.table),
.muhro-theme .vertical-table:not(.table) {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--mr-text-light);
	background: rgba(38, 38, 44, 0.4);
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	overflow: hidden;
	margin-bottom: 1rem;
}
.muhro-theme .horizontal-table:not(.table) th,
.muhro-theme .vertical-table:not(.table) th {
	background: rgba(24, 24, 28, 0.85);
	color: var(--mr-text-mid);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--mr-border-strong);
}
.muhro-theme .horizontal-table:not(.table) td,
.muhro-theme .vertical-table:not(.table) td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--mr-border);
	vertical-align: middle;
}
.muhro-theme .horizontal-table:not(.table) tbody tr:hover td { background: rgba(134, 117, 231, 0.08); }
.muhro-theme .vertical-table:not(.table) th { width: 1%; white-space: nowrap; vertical-align: top; }

/* ---- Inline status / message helpers used across views ---- */
.muhro-theme .red,
.muhro-theme p.red,
.muhro-theme .error,
.muhro-theme .errors { color: var(--mr-danger-soft); }
.muhro-theme p.red,
.muhro-theme .errors {
	border: 1px solid rgba(234, 57, 57, 0.4);
	border-left: 4px solid var(--mr-danger);
	background: rgba(234, 57, 57, 0.10);
	color: #f7b4b4;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-md) !important;
}
.muhro-theme .green { color: var(--mr-success); }
.muhro-theme .not-applicable { color: var(--mr-text-medium); }
.muhro-theme .yes { color: var(--mr-success); }
.muhro-theme .no { color: var(--mr-danger-soft); }
.muhro-theme .action a { color: var(--mr-primary); }

/* Account status badges (account/view, master/accounts) */
.muhro-theme .account-state {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-pill) !important;
	font-size: 0.78rem;
	font-weight: 600;
	border: 1px solid var(--mr-border-strong);
}
.muhro-theme .account-state.state-pending { background: rgba(255, 193, 77, 0.15); color: var(--mr-warning); border-color: rgba(255, 193, 77, 0.4); }
.muhro-theme .account-state.state-banned { background: rgba(234, 57, 57, 0.15); color: var(--mr-danger-soft); border-color: rgba(234, 57, 57, 0.4); }
.muhro-theme .account-state.state-unknown { background: rgba(255, 255, 255, 0.06); color: var(--mr-text-mid); }

/* Tooltips must sit above the sticky top bar (z-index 1045) */
.muhro-theme .tooltip { z-index: 2000; }
/* Flux unitip ships z-index:1000 - lift it above the sticky top bar */
#unitip { z-index: 2000 !important; }

/* ---- Search/filter panels ---- */
.muhro-theme .search-form,
.muhro-theme .search-form2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	padding: 1rem;
	margin-bottom: 1rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	background: rgba(38, 38, 44, 0.5);
}
.muhro-theme .search-form input[type="text"],
.muhro-theme .search-form2 input[type="text"],
.muhro-theme .search-form select,
.muhro-theme .search-form2 select { width: auto; min-width: 180px; }

/* Wide legacy tables scroll instead of breaking the layout on small screens */
@media (max-width: 767.98px) {
	.muhro-theme .horizontal-table:not(.table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

/* ---- Bespoke auth pages (login) ---- */
.muhro-theme .muhro-auth { display: flex; justify-content: center; padding: clamp(1rem, 4vw, 3rem) 0; }
.muhro-theme .muhro-auth__card { width: 100%; max-width: 420px; }
.muhro-theme .muhro-auth__title { font-size: 1.6rem; margin-bottom: 0.25rem; }
.muhro-theme .muhro-auth__sub { color: var(--mr-text-mid); font-size: 0.9rem; margin-bottom: 1.25rem; }
.muhro-theme .muhro-auth__form .form-label { margin-bottom: 0.3rem; }
.muhro-theme .muhro-auth__form .mb-stack { margin-bottom: 1rem; }

/* ---- Server info: fact tiles + feature chips ---- */
.muhro-theme .muhro-fact {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	height: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-md) !important;
	background: rgba(38, 38, 44, 0.55);
	color: var(--mr-text-light);
	font-size: 0.92rem;
}
.muhro-theme .muhro-fact > i { color: var(--mr-primary); flex: 0 0 auto; }
.muhro-theme .muhro-fact--stat { justify-content: space-between; }
.muhro-theme .muhro-fact__label { color: var(--mr-text-mid); }
.muhro-theme .muhro-fact__value { font-family: var(--font-display); font-weight: 800; color: var(--mr-text-lightest); }

.muhro-theme .muhro-feature-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muhro-theme .muhro-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--mr-border-strong);
	border-radius: var(--radius-pill) !important;
	background: rgba(134, 117, 231, 0.10);
	color: var(--mr-text-light);
	font-size: 0.85rem;
}
.muhro-theme .muhro-chip i { color: var(--mr-secondary); font-size: 0.75rem; }

/* ---- Castle emblems ---- */
.muhro-theme .castle-emblem { width: 24px; height: 24px; object-fit: contain; }
.muhro-theme .castle-emblem-cell { width: 1%; white-space: nowrap; text-align: center; }

/* ---- Neutralize recurring legacy inline "goldenrod price" styling
        (marketdb/viewbuyshop, viewvendshop, master/vending) ---- */
.muhro-theme [style*="goldenrod"] { color: var(--mr-secondary) !important; text-shadow: none !important; }

/* ---- FluxCP server-side paginator output (used on item/monster/market/
        character/account/master/ranking listings) -> modern pagination ---- */
.muhro-theme .pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 1rem 0;
}
.muhro-theme .pages .page-num,
.muhro-theme .pages .page-prev,
.muhro-theme .pages .page-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--mr-border);
	border-radius: var(--radius-sm) !important;
	background: rgba(38, 38, 44, 0.7);
	color: var(--mr-text-light);
	text-decoration: none;
	font-size: 0.88rem;
	transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.muhro-theme .pages .page-num:hover,
.muhro-theme .pages .page-prev:hover,
.muhro-theme .pages .page-next:hover {
	background: rgba(134, 117, 231, 0.20);
	border-color: var(--mr-primary);
	color: #fff;
}
.muhro-theme .pages .current-page {
	background: var(--mr-primary);
	border-color: var(--mr-primary);
	color: #fff;
	cursor: default;
}
.muhro-theme .jump-to-page {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.5rem 0;
	color: var(--mr-text-mid);
	font-size: 0.85rem;
}
.muhro-theme .jump-to-page input[type="text"],
.muhro-theme .jump-to-page input[type="number"] { width: 70px; }

/* Filter bar used on listing pages (modern, always-visible) */
.muhro-theme .muhro-filter { margin-bottom: 1rem; }
.muhro-theme .muhro-filter .row { align-items: end; }
.muhro-theme .muhro-filter .form-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mr-text-mid); margin-bottom: 0.25rem; }
.muhro-theme .navbar .muhlogo { height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

.muhro-theme .navbar .nav-link {
	color: var(--mr-text-mid);
	font-weight: 500;
	border-radius: var(--radius-sm) !important;
	padding-left: 0.85rem;
	padding-right: 0.85rem;
	transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.muhro-theme .navbar .nav-link:hover,
.muhro-theme .navbar .nav-link:focus {
	color: var(--mr-text-lightest);
	background: rgba(255, 255, 255, 0.06);
}
.muhro-theme .navbar .nav-link.active,
.muhro-theme .navbar .nav-item.show > .nav-link {
	color: var(--mr-text-lightest);
	background: rgba(134, 117, 231, 0.18);
}
.muhro-theme .navbar-time-label,
.muhro-theme .online-counts__label { color: var(--mr-text-medium); }
.muhro-theme .navbar-time-value,
.muhro-theme .online-counts__value { color: var(--mr-text-lightest); }

/* Dropdowns - th1 makes these light grey; bring them back to dark */
.muhro-theme .dropdown-menu {
	background: var(--mr-bg-light) !important;
	border: 1px solid var(--mr-border);
	box-shadow: var(--shadow-lg);
	padding: 0.4rem;
}
.muhro-theme .dropdown-item {
	background: transparent !important;
	color: var(--mr-text-light) !important;
	border-radius: var(--radius-sm) !important;
	padding: 0.45rem 0.7rem;
}
.muhro-theme .dropdown-item:hover,
.muhro-theme .dropdown-item:focus {
	background: rgba(134, 117, 231, 0.20) !important;
	color: var(--mr-text-lightest) !important;
}
.muhro-theme .dropdown-divider { border-color: var(--mr-border); }

/**************************************
 * Cards / panels
 **************************************/
.muhro-theme .card {
	background: rgba(38, 38, 44, 0.66) !important;
	border: 1px solid var(--mr-border) !important;
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.muhro-theme .card-header {
	background: rgba(24, 24, 28, 0.85) !important;
	border-bottom: 1px solid var(--mr-border);
	color: var(--mr-text-lightest);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.01em;
}
.muhro-theme .card-body { background: rgba(38, 38, 44, 0.45) !important; }
.muhro-theme .card-footer {
	background: rgba(24, 24, 28, 0.75) !important;
	border-top: 1px solid var(--mr-border);
}

/* Generic dark surface used across the UI */
.muhro-theme .bg-dark { background-color: rgba(24, 24, 28, 0.85) !important; }

/**************************************
 * Buttons
 **************************************/
.muhro-theme .btn {
	font-family: var(--font-ui);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--radius-pill) !important;
	padding: 0.5rem 1.15rem;
	transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out),
		background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.muhro-theme .btn:hover { transform: translateY(-1px); }
.muhro-theme .btn:active { transform: translateY(0); }

.muhro-theme .btn-primary {
	background: var(--mr-primary);
	border-color: var(--mr-primary);
	color: #fff;
}
.muhro-theme .btn-primary:hover,
.muhro-theme .btn-primary:focus {
	background: var(--mr-primary-alt);
	border-color: var(--mr-primary-alt);
	box-shadow: var(--shadow-glow);
	color: #fff;
}
.muhro-theme .btn-primary:active { background: var(--mr-primary-dark); border-color: var(--mr-primary-dark); }

.muhro-theme .btn-outline-primary {
	color: var(--mr-primary);
	border-color: var(--mr-primary);
	background: transparent;
}
.muhro-theme .btn-outline-primary:hover {
	background: var(--mr-primary);
	color: #fff;
}

/* Hot-pink CTA - use `btn-cta` (or Bootstrap's btn-danger stays red) */
.muhro-theme .btn-cta {
	background: var(--mr-pink);
	border-color: var(--mr-pink);
	color: #fff;
}
.muhro-theme .btn-cta:hover { box-shadow: 0 0 24px rgba(236, 64, 158, 0.4); color: #fff; }

.muhro-theme .btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--mr-border-strong);
	color: var(--mr-text-lightest);
}
.muhro-theme .btn-secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.muhro-theme .btn-success { background: var(--mr-success); border-color: var(--mr-success); color: #0b1b10; }
.muhro-theme .btn-warning { background: var(--mr-secondary); border-color: var(--mr-secondary); color: #2a2300; }
.muhro-theme .btn-danger  { background: var(--mr-danger); border-color: var(--mr-danger); color: #fff; }
.muhro-theme .btn-info    { background: var(--mr-info); border-color: var(--mr-info); color: #0a1330; }

/**************************************
 * Tables
 **************************************/
.muhro-theme .table {
	color: var(--mr-text-light);
	--bs-table-bg: transparent;
	--bs-table-color: var(--mr-text-light);
	--bs-table-striped-bg: rgba(255, 255, 255, 0.03);
	--bs-table-striped-color: var(--mr-text-light);
	--bs-table-hover-bg: rgba(134, 117, 231, 0.10);
	--bs-table-hover-color: var(--mr-text-lightest);
	--bs-table-border-color: var(--mr-border);
}
.muhro-theme .table > thead th,
.muhro-theme .table th {
	color: var(--mr-text-mid);
	font-family: var(--font-ui);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.74rem;
	border-bottom: 1px solid var(--mr-border-strong);
	background: rgba(24, 24, 28, 0.7);
}
.muhro-theme .table-dark {
	--bs-table-bg: rgba(24, 24, 28, 0.8);
	--bs-table-striped-bg: rgba(48, 48, 54, 0.5);
}

/**************************************
 * Forms
 **************************************/
.muhro-theme .form-control,
.muhro-theme .form-select,
.muhro-theme input[type="text"],
.muhro-theme input[type="password"],
.muhro-theme input[type="email"],
.muhro-theme input[type="number"],
.muhro-theme select,
.muhro-theme textarea {
	background: rgba(18, 18, 20, 0.85) !important;
	border: 1px solid var(--mr-border-strong) !important;
	color: var(--mr-text-lightest) !important;
}
.muhro-theme .form-control::placeholder,
.muhro-theme textarea::placeholder { color: var(--mr-text-medium) !important; }
.muhro-theme .form-control:focus,
.muhro-theme .form-select:focus,
.muhro-theme input[type="text"]:focus,
.muhro-theme input[type="password"]:focus,
.muhro-theme textarea:focus {
	border-color: var(--mr-primary) !important;
	box-shadow: 0 0 0 0.2rem rgba(134, 117, 231, 0.25) !important;
	background: rgba(18, 18, 20, 0.95) !important;
}
.muhro-theme .form-label { color: var(--mr-text-mid); font-weight: 500; }
.muhro-theme .input-group-text {
	background: rgba(24, 24, 28, 0.9);
	border: 1px solid var(--mr-border-strong);
	color: var(--mr-text-mid);
}
.muhro-theme .form-check-input:checked {
	background-color: var(--mr-primary);
	border-color: var(--mr-primary);
}

/**************************************
 * Alerts / badges / pagination
 **************************************/
.muhro-theme .alert {
	border: 1px solid var(--mr-border);
	background: rgba(38, 38, 44, 0.7);
	color: var(--mr-text-light);
}
.muhro-theme .alert-success { border-left: 4px solid var(--mr-success); }
.muhro-theme .alert-warning { border-left: 4px solid var(--mr-secondary); }
.muhro-theme .alert-danger  { border-left: 4px solid var(--mr-danger); }
.muhro-theme .alert-info    { border-left: 4px solid var(--mr-info); }

.muhro-theme .badge.bg-primary { background-color: var(--mr-primary) !important; }
.muhro-theme .badge.bg-secondary { background-color: var(--mr-secondary) !important; color: #2a2300; }

.muhro-theme .page-link {
	background: rgba(38, 38, 44, 0.7);
	border: 1px solid var(--mr-border);
	color: var(--mr-text-light);
}
.muhro-theme .page-link:hover { background: rgba(134, 117, 231, 0.20); color: #fff; }
.muhro-theme .page-item.active .page-link {
	background: var(--mr-primary);
	border-color: var(--mr-primary);
	color: #fff;
}

/* DataTables controls (used heavily across the panel) */
.muhro-theme .dataTables_wrapper .dataTables_length select,
.muhro-theme .dataTables_wrapper .dataTables_filter input {
	background: rgba(18, 18, 20, 0.85);
	border: 1px solid var(--mr-border-strong);
	color: var(--mr-text-lightest);
	border-radius: var(--radius-sm) !important;
}
.muhro-theme .dataTables_wrapper .dataTables_info,
.muhro-theme .dataTables_wrapper .dataTables_length,
.muhro-theme .dataTables_wrapper .dataTables_filter { color: var(--mr-text-mid); }

/* DataTables pagination - match the pill / dark look */
.muhro-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
	color: var(--mr-text-light) !important;
	border: 1px solid var(--mr-border) !important;
	border-radius: var(--radius-sm) !important;
	background: rgba(38, 38, 44, 0.7) !important;
	margin: 0 2px;
}
.muhro-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: rgba(134, 117, 231, 0.20) !important;
	border-color: var(--mr-primary) !important;
	color: #fff !important;
}
.muhro-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.muhro-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--mr-primary) !important;
	border-color: var(--mr-primary) !important;
	color: #fff !important;
}
.muhro-theme .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	opacity: 0.4;
}

/* Safety net: let wide tables scroll horizontally instead of breaking
   the full-width layout on small screens. */
@media (max-width: 767.98px) {
	.muhro-theme .table-responsive,
	.muhro-theme .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/**************************************
 * Footer
 **************************************/
.muhro-theme #footer {
	background: rgba(18, 18, 20, 0.92) !important;
	border-top: 1px solid var(--mr-border);
}
.muhro-theme #footer h5 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--mr-text-lightest);
	letter-spacing: 0.02em;
}
.muhro-theme .footer-link a:link,
.muhro-theme .footer-link a:visited { color: var(--mr-text-mid) !important; }
.muhro-theme .footer-link a:hover,
.muhro-theme .footer-link a:focus { color: var(--mr-text-lightest) !important; }
.muhro-theme footer.text-center small { color: var(--mr-text-medium); }

/**************************************
 * Misc accents
 **************************************/
.muhro-theme .announcement,
.muhro-theme .ranking-badge--top { color: var(--mr-secondary); }
.muhro-theme hr { border-color: var(--mr-border); opacity: 1; }

/**************************************
 * Desktop (>=992px): the sidebar is OPEN by default - a full-width panel that
 * pushes the content. The collapse toggle shrinks it to an ICON RAIL of
 * clickable sub-page icons; hovering an icon reveals its label as a flyout.
 * Mobile keeps the off-canvas drawer defined above.
 **************************************/
@media (min-width: 992px) {
	.muhro-theme .muhro-sidebar {
		transform: none;                 /* always docked, never off-canvas */
		top: var(--topbar-h);
		height: calc(100vh - var(--topbar-h));
		width: var(--sidebar-w);
		overflow: visible;               /* let rail flyouts escape */
		box-shadow: none;
		z-index: 1040;                   /* below the sticky top bar (1045) */
		transition: width 0.18s var(--ease-out);
	}
	.muhro-theme .muhro-main { margin-left: var(--sidebar-w); transition: margin-left 0.18s var(--ease-out); }
	.muhro-theme .muhro-backdrop { display: none !important; }
	.muhro-theme .muhro-sidebar-toggle { display: none; }   /* sidebar is always present */
	.muhro-theme .muhro-sidebar__close { display: none; }   /* nothing to close on desktop */
	.muhro-theme #muhroSidebarPin i { transition: transform 0.2s var(--ease-out); }

	/* ---- Collapsed: one distinct icon per CATEGORY; hover opens a submenu ---- */
	.muhro-nav-collapsed .muhro-sidebar { width: var(--rail-w); }
	.muhro-nav-collapsed .muhro-main { margin-left: var(--rail-w); }
	.muhro-nav-collapsed #muhroSidebarPin i { transform: rotate(180deg); }   /* points right = expand */

	/* Header reduces to just the collapse toggle, centred. */
	.muhro-nav-collapsed .muhro-sidebar__title,
	.muhro-nav-collapsed .muhro-nav__search,
	.muhro-nav-collapsed .muhro-nav__customize { display: none; }
	.muhro-nav-collapsed .muhro-sidebar__head { justify-content: center; padding: 0.55rem 0; }
	.muhro-nav-collapsed .muhro-sidebar__btn { display: none; }
	.muhro-nav-collapsed #muhroSidebarPin { display: inline-flex; }

	/* Rail rows: roomy, centred icons. Hide the category text + chevron. */
	.muhro-nav-collapsed .muhro-nav { overflow: visible; gap: 0.25rem; }
	.muhro-nav-collapsed .muhro-nav__group,
	.muhro-nav-collapsed .muhro-nav__link--top { position: relative; }
	.muhro-nav-collapsed .muhro-nav__head,
	.muhro-nav-collapsed .muhro-nav__link--top { justify-content: center; padding: 0.6rem 0; }
	.muhro-nav-collapsed .muhro-nav__head .muhro-nav__label,
	.muhro-nav-collapsed .muhro-nav__chev { display: none; }
	.muhro-nav-collapsed .muhro-nav__icon { margin: 0; font-size: 1.05rem; }

	/* Group submenu: a flyout panel listing the category's pages (clickable). */
	.muhro-nav-collapsed .muhro-nav__sub {
		display: block !important;
		height: auto !important;
		position: absolute;
		left: 100%;
		top: -0.25rem;
		min-width: 200px;
		max-height: calc(100vh - var(--topbar-h) - 1rem);
		overflow-y: auto;
		padding: 0.4rem;
		background: var(--mr-bg-light);
		border: 1px solid var(--mr-border-strong);
		border-radius: var(--radius-md) !important;
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.12s var(--ease-out);
		z-index: 1080;
	}
	.muhro-nav-collapsed .muhro-nav__group:hover .muhro-nav__sub { opacity: 1; visibility: visible; pointer-events: auto; }
	.muhro-nav-collapsed .muhro-nav__sub .muhro-nav__link { justify-content: flex-start; padding: 0.4rem 0.6rem; }

	/* Single-link categories have no submenu: show the label as a tooltip flyout. */
	.muhro-nav-collapsed .muhro-nav__link--top .muhro-nav__label {
		display: block;
		position: absolute;
		left: calc(100% + 8px);
		top: 50%;
		transform: translateY(-50%);
		white-space: nowrap;
		padding: 0.3rem 0.6rem;
		background: var(--mr-bg-light);
		border: 1px solid var(--mr-border-strong);
		border-radius: var(--radius-sm) !important;
		box-shadow: var(--shadow-md);
		color: var(--mr-text-lightest);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.12s var(--ease-out);
		z-index: 1080;
	}
	.muhro-nav-collapsed .muhro-nav__link--top:hover .muhro-nav__label { opacity: 1; visibility: visible; }
}
