/**
 * WeiCMS - Master Stylesheet
 * High-End Dark Obsidian & Arcane Gold Gaming Theme
 * Compatible with WebEngine CMS Module Structure
 */

/* MurenMU speed v1: Google Fonts now load from a <link> in index.php (no @import chain) */

/* ==========================================================================
   CSS Variables & Theme Tokens
   ========================================================================== */
:root {
	--bg-body: #07090e;
	--bg-surface: #0f141f;
	--bg-surface-elevated: #161e2e;
	--bg-glass: rgba(15, 20, 31, 0.88);
	--bg-glass-card: rgba(22, 30, 46, 0.7);
	--bg-input: rgba(10, 14, 22, 0.85);

	--gold-300: #fde68a;
	--gold-400: #fbbf24;
	--gold-500: #f59e0b;
	--gold-600: #d97706;
	--gold-glow: rgba(245, 158, 11, 0.35);

	--cyan-400: #22d3ee;
	--cyan-glow: rgba(34, 211, 238, 0.3);
	--red-500: #ef4444;
	--green-500: #10b981;
	--purple-500: #a855f7;

	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-muted: #8492a6;
	--text-dim: #475569;

	--border-subtle: rgba(255, 255, 255, 0.07);
	--border-hover: rgba(245, 158, 11, 0.3);
	--border-gold: rgba(245, 158, 11, 0.45);

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--radius-xl: 20px;

	--font-title: 'Cinzel', serif;
	--font-heading: 'Rajdhani', sans-serif;
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;

	--shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.05);
	--shadow-glow: 0 0 25px var(--gold-glow);
	--transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
	background: var(--bg-body) url('../img/bg-main-2600.jpg') no-repeat center top; /* MurenMU speed v1: 142 KB instead of 2 MB */
	background-attachment: fixed;
	background-size: cover;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.06), transparent 60%),
	            linear-gradient(to bottom, rgba(7, 9, 14, 0.75) 0%, rgba(7, 9, 14, 0.95) 40%, var(--bg-body) 100%);
	pointer-events: none;
	z-index: 0;
}

#weicms-app {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: var(--gold-400);
	text-decoration: none;
	transition: var(--transition);
}

a:hover, a:focus {
	color: var(--gold-300);
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--text-primary);
	letter-spacing: 0.5px;
	margin-top: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* Utility Helpers */
.text-gold { color: var(--gold-400) !important; }
.text-cyan { color: var(--cyan-400) !important; }
.text-red { color: var(--red-500) !important; }
.text-green { color: var(--green-500) !important; }
.text-amber { color: var(--gold-500) !important; }
.text-purple { color: var(--purple-500) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.font-title { font-family: var(--font-title); }
.flex-align { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 15px !important; }
.p-4 { padding: 20px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 20px !important; }
.ml-1 { margin-left: 5px !important; }
.ml-3 { margin-left: 12px !important; }

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.weicms-topbar {
	background: rgba(7, 9, 14, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-subtle);
	font-size: 12px;
	position: relative;
	z-index: 100;
}

.weicms-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	padding: 0 20px;
	max-width: 1320px;
	margin: 0 auto;
}

.topbar-rates {
	display: flex;
	align-items: center;
	gap: 15px;
}

.rate-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--text-muted);
}

.rate-badge strong {
	color: var(--gold-400);
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.topbar-auth-links a {
	color: var(--text-secondary);
	font-weight: 500;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
}

.topbar-auth-links a:hover {
	color: var(--gold-400);
	background: rgba(245, 158, 11, 0.08);
}

.topbar-sep {
	color: var(--text-dim);
}

/* Language Dropdown */
.weicms-lang-dropdown {
	position: relative;
}

.lang-trigger {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--transition);
}

.lang-trigger:hover {
	border-color: var(--border-gold);
	color: var(--gold-300);
}

.lang-trigger .flag-icon {
	width: 16px;
	height: 11px;
	border-radius: 2px;
}

.lang-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 5px);
	background: var(--bg-surface);
	border: 1px solid var(--border-gold);
	border-radius: var(--radius-md);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
	padding: 6px 0;
	margin: 0;
	list-style: none;
	min-width: 170px;
	display: none;
	z-index: 1000;
}

.lang-menu.show {
	display: block;
	animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.lang-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: var(--text-secondary);
	font-size: 12px;
	transition: var(--transition);
}

.lang-option:hover {
	background: rgba(245, 158, 11, 0.12);
	color: var(--gold-300);
}

.lang-menu li.active .lang-option {
	color: var(--gold-400);
	font-weight: 700;
	background: rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.weicms-navbar {
	background: var(--bg-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-subtle);
	position: sticky;
	top: 0;
	z-index: 99;
	transition: var(--transition);
}

.weicms-nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Logo */
.weicms-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.weicms-brand-logo {
	height: 48px;
	width: auto;
	filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
	transition: var(--transition);
}

.weicms-brand:hover .weicms-brand-logo {
	transform: scale(1.05);
	filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6));
}

.weicms-brand-text {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
}

.brand-main {
	font-family: var(--font-title);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: #ffffff;
	line-height: 1.1;
	white-space: nowrap;
}

.brand-main span {
	color: var(--gold-400);
	text-shadow: 0 0 12px var(--gold-glow);
}

.brand-sub {
	font-family: var(--font-heading);
	font-size: 10.5px;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 2.5px;
	text-transform: uppercase;
	white-space: nowrap;
	margin-top: 2px;
}

/* Desktop Nav List */
.weicms-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}

.weicms-nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.weicms-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 10px;
	height: 38px;
	line-height: 38px;
	white-space: nowrap !important;
	color: var(--text-secondary);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--radius-sm);
	position: relative;
	box-sizing: border-box;
	transition: var(--transition);
}

.weicms-nav-link span {
	white-space: nowrap !important;
	display: inline-block;
	line-height: 1;
}

.weicms-nav-link .nav-icon {
	font-size: 12.5px;
	opacity: 0.75;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: var(--transition);
}

.weicms-nav-link:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.05);
}

.weicms-nav-link:hover .nav-icon {
	opacity: 1;
	color: var(--gold-400);
}

.weicms-nav-item.active .weicms-nav-link {
	color: var(--gold-400);
	background: rgba(245, 158, 11, 0.12);
	box-shadow: inset 0 0 0 1px var(--border-gold);
}

.weicms-nav-item.active .nav-icon {
	color: var(--gold-400);
	opacity: 1;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
	display: none;
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 22px;
	cursor: pointer;
	padding: 8px;
}

/* ==========================================================================
   Hero Section & Live Status
   ========================================================================== */
.weicms-hero {
	position: relative;
	padding: 40px 0 30px;
	text-align: center;
}

.hero-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-title-area {
	margin-bottom: 25px;
}

.hero-season-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
	border: 1px solid var(--border-gold);
	color: var(--gold-300);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 4px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
	box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.hero-main-title {
	font-family: var(--font-title);
	font-size: 42px;
	font-weight: 900;
	color: #ffffff;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
	margin: 0 0 8px;
	letter-spacing: 2px;
}

.hero-tagline {
	font-size: 15px;
	color: var(--text-muted);
	max-width: 680px;
	margin: 0 auto;
}

/* Hero Status & CTA Bar */
.hero-stats-panel {
	background: var(--bg-glass-card);
	backdrop-filter: blur(12px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 16px 24px;
	box-shadow: var(--shadow-card);
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.5fr;
	align-items: center;
	gap: 20px;
	margin-top: 25px;
}

/* Online Counter */
.status-block-online {
	display: flex;
	align-items: center;
	gap: 15px;
	text-align: left;
}

.pulse-indicator {
	width: 14px;
	height: 14px;
	background: var(--green-500);
	border-radius: 50%;
	position: relative;
	box-shadow: 0 0 10px var(--green-500);
}

.pulse-indicator::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--green-500);
	animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
	0% { transform: scale(0.9); opacity: 0.9; }
	70% { transform: scale(1.6); opacity: 0; }
	100% { transform: scale(0.9); opacity: 0; }
}

.status-meta .status-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	display: block;
}

.status-meta .status-number {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1;
}

.status-meta .status-number span {
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
}

.status-progress-wrap {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	margin-top: 6px;
	overflow: hidden;
}

.status-progress-fill {
	height: 100%;
	background: linear-gradient(to right, var(--green-500), var(--gold-400));
	border-radius: 999px;
	transition: width 0.5s ease;
}

/* Clocks */
.status-block-clocks {
	display: flex;
	align-items: center;
	justify-content: space-around;
	border-left: 1px solid var(--border-subtle);
	border-right: 1px solid var(--border-subtle);
	padding: 0 15px;
	text-align: center;
}

.clock-item .clock-label {
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.clock-item .clock-time {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--gold-300);
}

/* CTA Buttons */
.hero-cta-group {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	border-radius: var(--radius-sm);
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-block { display: flex; width: 100%; }

.weicms-btn-primary {
	background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
	color: #0b0e14 !important;
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.weicms-btn-primary:hover {
	background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
	transform: translateY(-1px);
	color: #0b0e14 !important;
}

.weicms-btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border-subtle);
	color: #ffffff !important;
}

.weicms-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: var(--border-gold);
	color: var(--gold-300) !important;
	transform: translateY(-1px);
}

.weicms-btn-discord {
	background: #5865f2;
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.weicms-btn-discord:hover {
	background: #4752c4;
	box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
	transform: translateY(-1px);
}

.weicms-btn-ghost {
	background: transparent;
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
}

.weicms-btn-ghost:hover {
	border-color: var(--border-gold);
	color: var(--gold-400);
	background: rgba(245, 158, 11, 0.05);
}

.weicms-btn-danger {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: var(--red-500) !important;
}

.weicms-btn-danger:hover {
	background: var(--red-500);
	color: #ffffff !important;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.weicms-main {
	flex: 1;
	padding: 20px 0 60px;
}

.weicms-layout-grid {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 25px;
	align-items: start;
}

.weicms-layout-grid.full-width {
	grid-template-columns: 1fr;
}

/* ==========================================================================
   Cards & Panels
   ========================================================================== */
.weicms-card {
	background: var(--bg-glass-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	margin-bottom: 25px;
	overflow: hidden;
	transition: var(--transition);
}

.weicms-card:hover {
	border-color: rgba(255, 255, 255, 0.12);
}

.weicms-card-header {
	background: rgba(10, 14, 22, 0.6);
	border-bottom: 1px solid var(--border-subtle);
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.weicms-card-header .header-icon {
	font-size: 16px;
}

.weicms-card-header .header-title {
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex: 1;
}

.header-action-link {
	color: var(--text-muted);
	font-size: 15px;
}

.header-action-link:hover {
	color: var(--gold-400);
}

.weicms-card-body {
	padding: 20px;
}

/* ==========================================================================
   Widgets in Sidebar
   ========================================================================== */

/* UserCP Menu Widget */
.user-greeting-panel {
	background: rgba(245, 158, 11, 0.05);
	border-bottom: 1px solid var(--border-subtle);
}

.user-avatar-wrap {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--gold-500);
	overflow: hidden;
	background: var(--bg-surface-elevated);
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.weicms-usercp-menu {
	list-style: none;
	padding: 8px 0;
	margin: 0;
}

.weicms-usercp-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	transition: var(--transition);
}

.weicms-usercp-link .icon-wrap {
	width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.weicms-usercp-link .icon-wrap img {
	max-width: 20px;
	max-height: 20px;
	filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.weicms-usercp-link .title {
	flex: 1;
}

.weicms-usercp-link .arrow {
	font-size: 11px;
	color: var(--text-dim);
	transition: var(--transition);
}

.weicms-usercp-link:hover {
	background: rgba(245, 158, 11, 0.08);
	color: var(--gold-300);
}

.weicms-usercp-link:hover .arrow {
	color: var(--gold-400);
	transform: translateX(3px);
}

.weicms-usercp-item.active .weicms-usercp-link {
	background: rgba(245, 158, 11, 0.12);
	color: var(--gold-400);
	font-weight: 700;
	border-left: 3px solid var(--gold-400);
}

/* Castle Siege Widget */
.cs-lord-profile {
	display: flex;
	align-items: center;
	gap: 15px;
	background: rgba(10, 14, 22, 0.4);
	border-radius: var(--radius-md);
	padding: 15px;
	margin-bottom: 15px;
	border: 1px solid var(--border-subtle);
}

.cs-crest-frame {
	background: #000;
	border: 1px solid var(--border-gold);
	border-radius: var(--radius-sm);
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cs-lord-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cs-lord-meta .label-sub {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
}

.cs-lord-meta .lord-guild {
	font-family: var(--font-heading);
	font-size: 16px;
	color: var(--gold-300);
}

.cs-lord-meta .lord-master {
	font-size: 12px;
	color: var(--text-secondary);
}

.cs-countdown-block {
	background: rgba(0, 0, 0, 0.4);
	border-radius: var(--radius-sm);
	padding: 10px;
	text-align: center;
	margin-bottom: 15px;
	border: 1px dashed var(--border-gold);
}

.cs-countdown-label {
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cs-countdown-timer {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--gold-400);
}

/* Tab Pills for Rankings */
.weicms-tabs-pills {
	display: flex;
	gap: 4px;
	background: rgba(0, 0, 0, 0.3);
	padding: 3px;
	border-radius: var(--radius-sm);
}

.tab-pill {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
}

.tab-pill.active {
	background: var(--gold-500);
	color: #0b0e14;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

/* Mini Ranking List */
.mini-rank-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mini-rank-item {
	display: flex;
	align-items: center;
	padding: 10px 18px;
	border-bottom: 1px solid var(--border-subtle);
	transition: var(--transition);
}

.mini-rank-item:last-child {
	border-bottom: none;
}

.mini-rank-item:hover {
	background: rgba(255, 255, 255, 0.03);
}

.badge-rank {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-muted);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
}

.badge-rank.rank-1 {
	background: linear-gradient(135deg, #ffd700, #b8860b);
	color: #0b0e14;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.badge-rank.rank-2 {
	background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
	color: #0b0e14;
}

.badge-rank.rank-3 {
	background: linear-gradient(135deg, #cd7f32, #8b4513);
	color: #ffffff;
}

.rank-char-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.rank-char-meta .char-name {
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--text-primary);
}

.rank-char-meta .char-class {
	font-size: 11px;
	color: var(--text-muted);
}

.rank-value-pill {
	text-align: right;
}

.rank-value-pill .value {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
	color: var(--gold-400);
	display: block;
	line-height: 1;
}

.rank-value-pill .lbl {
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
}

/* Event Timers List */
.event-timer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.event-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	border-bottom: 1px solid var(--border-subtle);
}

.event-item:last-child {
	border-bottom: none;
}

.event-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
}

.event-badge {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-muted);
}

.event-badge.badge-next {
	color: var(--cyan-400);
	background: rgba(34, 211, 238, 0.1);
	border: 1px solid rgba(34, 211, 238, 0.2);
}

.event-badge.badge-invasion {
	color: var(--gold-400);
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Discord Card */
.weicms-discord-card {
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(15, 20, 31, 0.9));
	border-color: rgba(88, 101, 242, 0.3);
}

.discord-card-inner {
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.discord-icon-large {
	font-size: 38px;
	color: #5865f2;
	filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
}

.discord-content {
	flex: 1;
}

.discord-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #ffffff;
}

.discord-desc {
	font-size: 11px;
	color: var(--text-secondary);
	margin: 0 0 12px;
	line-height: 1.4;
}

/* ==========================================================================
   Form Controls & Modern Input Styling
   ========================================================================== */
.form-control, input[type="text"], input[type="password"], input[type="email"], select, textarea {
	background: var(--bg-input) !important;
	border: 1px solid var(--border-subtle) !important;
	color: var(--text-primary) !important;
	border-radius: var(--radius-sm) !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	transition: var(--transition) !important;
	width: 100%;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
	outline: none !important;
	border-color: var(--gold-400) !important;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.input-with-icon {
	position: relative;
}

.input-with-icon .input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-dim);
	font-size: 13px;
	pointer-events: none;
}

.input-with-icon input {
	padding-left: 36px !important;
}

/* ==========================================================================
   Module Markup Compatibility (Bootstrap 3 Grid & Components Overrides)
   ========================================================================== */

/* Page Titles */
.page-title {
	background: linear-gradient(to right, rgba(245, 158, 11, 0.15), transparent);
	border-left: 4px solid var(--gold-500);
	padding: 12px 18px;
	margin-bottom: 25px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-title span {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* News Section Overrides */
.home-news-block {
	background: var(--bg-glass-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-card);
	margin-bottom: 25px;
}

.home-news-block-header {
	border-bottom: 1px solid var(--border-subtle);
	padding-bottom: 12px;
	margin-bottom: 15px;
}

.home-news-block-header h2 {
	font-size: 20px;
	margin: 0;
	color: var(--gold-400);
}

.home-news-block-article {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-subtle);
	transition: var(--transition);
	border-radius: var(--radius-sm);
}

.home-news-block-article:hover {
	background: rgba(255, 255, 255, 0.03);
	transform: translateX(4px);
}

.home-news-block-article-type {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	text-transform: uppercase;
	background: rgba(245, 158, 11, 0.15);
	color: var(--gold-400);
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.home-news-block-article-title a {
	color: var(--text-primary);
	font-weight: 600;
	font-size: 14px;
}

.home-news-block-article-title a:hover {
	color: var(--gold-300);
}

.home-news-block-article-date {
	font-size: 12px;
	color: var(--text-muted);
}

/* Tables & Rankings */
.table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-glass-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 25px;
}

.table th {
	background: rgba(10, 14, 22, 0.8);
	color: var(--gold-400);
	font-family: var(--font-heading);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border-subtle);
	text-align: left;
}

.table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-size: 13px;
	vertical-align: middle;
}

.table tbody tr:last-child td {
	border-bottom: none;
}

.table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

.table-striped tbody tr:nth-of-type(odd) {
	background: rgba(0, 0, 0, 0.2);
}

/* Rankings Menu */
.rankings-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 25px;
}

.rankings-menu a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.rankings-menu a:hover, .rankings-menu a.active {
	background: var(--gold-500);
	color: #0b0e14;
	border-color: var(--gold-500);
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Alert Boxes */
.alert {
	border-radius: var(--radius-md);
	padding: 14px 18px;
	margin-bottom: 20px;
	border: 1px solid transparent;
	font-size: 13px;
}

.alert-danger {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.alert-success {
	background: rgba(16, 185, 129, 0.15);
	border-color: rgba(16, 185, 129, 0.3);
	color: #6ee7b7;
}

.alert-warning {
	background: rgba(245, 158, 11, 0.15);
	border-color: rgba(245, 158, 11, 0.3);
	color: #fde68a;
}

.alert-info {
	background: rgba(34, 211, 238, 0.15);
	border-color: rgba(34, 211, 238, 0.3);
	color: #a5f3fc;
}

/* ==========================================================================
   Module Bootstrap Grid Compatibility
   ========================================================================== */
.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -12px;
	margin-right: -12px;
}

[class*="col-"] {
	position: relative;
	width: 100%;
	padding-left: 12px;
	padding-right: 12px;
	box-sizing: border-box;
}

.col-1, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-4, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-7, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
.col-10, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

.col-xs-offset-1 { margin-left: 8.333333%; }
.col-xs-offset-2 { margin-left: 16.666667%; }
.col-xs-offset-3 { margin-left: 25%; }
.col-xs-offset-4 { margin-left: 33.333333%; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.nopadding { padding: 0 !important; }

/* ==========================================================================
   UserCP Dashboard Grid & Interactive RPG Tiles
   ========================================================================== */
.usercp-grid-container {
	margin: 25px 0;
}

.usercp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
	gap: 18px;
	margin: 0 !important;
}

.usercp-col {
	width: auto !important;
	padding: 0 !important;
	float: none !important;
}

.usercp-tile-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(18, 24, 38, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 22px 14px 18px;
	text-decoration: none !important;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	height: 100%;
}

.usercp-tile-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
	opacity: 0;
	transition: var(--transition);
}

.usercp-tile-card:hover {
	background: rgba(26, 35, 54, 0.88);
	border-color: var(--border-gold);
	transform: translateY(-4px);
	box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
}

.usercp-tile-card:hover::before {
	opacity: 1;
}

.usercp-icon-frame {
	width: 90px;
	height: 90px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	position: relative;
	transition: var(--transition);
}

.usercp-icon-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-sm);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
	transition: var(--transition);
}

.usercp-tile-card:hover .usercp-icon-img {
	transform: scale(1.05);
	filter: drop-shadow(0 6px 18px rgba(245, 158, 11, 0.45));
}

.usercp-tile-title {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	text-align: center;
	line-height: 1.3;
	transition: var(--transition);
}

.usercp-tile-card:hover .usercp-tile-title {
	color: var(--gold-400);
}

/* AdminCP Float Button */
.admincp-button {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 1000;
	background: linear-gradient(135deg, #ef4444, #b91c1c);
	color: #fff !important;
	border-radius: 999px;
	padding: 10px 20px;
	box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.admincp-button:hover {
	transform: scale(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.weicms-footer {
	background: linear-gradient(180deg, #090d16 0%, #04060a 100%);
	border-top: 1px solid var(--border-subtle);
	padding: 55px 0 25px;
	margin-top: auto;
	position: relative;
}

.weicms-footer::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: min(1320px, 90%);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.weicms-footer-content,
.container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
	box-sizing: border-box;
}

.footer-top-grid {
	display: grid;
	grid-template-columns: 360px repeat(3, minmax(0, 1fr));
	gap: 45px;
	margin-bottom: 40px;
}

.footer-col.brand-col {
	display: flex;
	flex-direction: column;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	margin-bottom: 14px;
}

.footer-brand-logo {
	height: 40px;
	width: auto;
	filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.footer-brand-info {
	display: flex;
	flex-direction: column;
}

.footer-brand .brand-text {
	font-family: var(--font-title);
	font-size: 22px;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 2px;
	line-height: 1.1;
	display: block;
}

.footer-brand .brand-sub {
	font-family: var(--font-heading);
	font-size: 11px;
	color: var(--text-muted);
	letter-spacing: 2px;
	text-transform: uppercase;
	display: block;
	margin-top: 2px;
}

.brand-tagline {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 20px;
	max-width: 320px;
}

.footer-social-links {
	display: flex;
	gap: 10px;
}

.social-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: var(--transition);
}

.social-btn:hover {
	border-color: var(--border-gold);
	color: #ffffff;
	transform: translateY(-2px);
}

.social-btn.discord:hover { background: #5865f2; border-color: #5865f2; box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4); }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }
.social-btn.instagram:hover { background: #e4405f; border-color: #e4405f; box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4); }
.social-btn.forum:hover { background: var(--gold-500); border-color: var(--gold-500); color: #0b0e14; box-shadow: 0 4px 12px var(--gold-glow); }

.footer-heading {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 8px;
}

.footer-heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: var(--gold-400);
	box-shadow: 0 0 8px var(--gold-glow);
}

.footer-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-link-list li {
	margin: 0;
}

.footer-link-list a {
	color: var(--text-muted);
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
}

.footer-link-list a i {
	font-size: 9px;
	color: var(--gold-400);
	opacity: 0.6;
	transition: var(--transition);
}

.footer-link-list a:hover {
	color: var(--gold-300);
	transform: translateX(4px);
}

.footer-link-list a:hover i {
	opacity: 1;
	transform: translateX(2px);
}

.footer-divider {
	border: 0;
	height: 1px;
	background: var(--border-subtle);
	margin: 0 0 25px;
}

.footer-bottom-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	font-size: 12px;
	color: var(--text-dim);
}

.copyright-text {
	color: var(--text-muted);
	line-height: 1.6;
}

.copyright-text strong {
	color: var(--text-secondary);
}

.game-disclaimer {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-top: 4px;
}

.weicms-powered {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--text-muted);
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.weicms-powered strong {
	color: var(--gold-400);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
	.weicms-layout-grid {
		grid-template-columns: 1fr;
	}
	
	.hero-stats-panel {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.status-block-clocks {
		border-left: none;
		border-right: none;
		border-top: 1px solid var(--border-subtle);
		border-bottom: 1px solid var(--border-subtle);
		padding: 12px 0;
	}
	
	.hero-cta-group {
		justify-content: center;
	}
	
	.footer-top-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.topbar-rates {
		display: none;
	}
	
	.weicms-nav-list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-surface);
		border-bottom: 1px solid var(--border-subtle);
		flex-direction: column;
		padding: 15px;
		gap: 8px;
		box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
	}
	
	.weicms-nav-list.mobile-open {
		display: flex;
	}
	
	.mobile-nav-toggle {
		display: block;
	}
	
	.hero-main-title {
		font-size: 28px;
	}
	
	.footer-top-grid {
		grid-template-columns: 1fr;
	}
	
	.footer-bottom-flex {
		flex-direction: column;
		text-align: center;
	}
}

/* ==========================================================================
   WeiCMS - Home News & Announcements Section
   ========================================================================== */
.weicms-news-section {
	margin-top: 25px;
}

.weicms-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.section-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title-wrap i {
	font-size: 18px;
	filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.section-title-wrap .section-title {
	font-family: var(--font-title);
	font-size: 20px;
	font-weight: 800;
	color: #f8fafc;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0;
}

.section-view-all {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-400);
	letter-spacing: 0.8px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.2);
	transition: var(--transition);
}

.section-view-all:hover {
	background: rgba(245, 158, 11, 0.2);
	color: var(--gold-300);
	border-color: var(--gold-400);
	transform: translateX(2px);
}

.weicms-news-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.weicms-news-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: rgba(15, 20, 31, 0.75);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.weicms-news-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: transparent;
	transition: var(--transition);
}

.weicms-news-item:hover {
	background: rgba(22, 30, 46, 0.85);
	border-color: rgba(245, 158, 11, 0.35);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.weicms-news-item:hover::before {
	background: var(--gold-500);
	box-shadow: 0 0 10px var(--gold-glow);
}

.news-item-badge .badge-tag {
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: var(--radius-sm);
	background: rgba(245, 158, 11, 0.12);
	color: var(--gold-400);
	border: 1px solid rgba(245, 158, 11, 0.3);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.news-item-content {
	flex: 1;
	min-width: 0;
}

.news-item-title {
	margin: 0 0 4px 0;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-item-title a {
	color: var(--text-primary);
	transition: var(--transition);
}

.news-item-title a:hover {
	color: var(--gold-400);
}

.news-item-date {
	font-size: 12px;
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.news-item-arrow {
	color: var(--text-dim);
	font-size: 14px;
	padding: 8px;
	border-radius: 50%;
	transition: var(--transition);
}

.weicms-news-item:hover .news-item-arrow {
	color: var(--gold-400);
	transform: translateX(3px);
}

.weicms-empty-card {
	padding: 40px 20px;
	text-align: center;
	background: rgba(15, 20, 31, 0.6);
	border: 1px dashed rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-md);
}

.weicms-empty-card i {
	font-size: 36px;
	margin-bottom: 12px;
	opacity: 0.6;
}

.weicms-empty-card p {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--text-secondary);
	margin: 0 0 4px 0;
}

/* ==========================================================================
   14. RANKINGS SYSTEM & HALL OF FAME MODULE
   ========================================================================== */

/* Quick Rankings Homepage Widget */
.weicms-rankings-card {
	position: relative;
	margin-bottom: 25px;
}

.weicms-tabs-pills {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tab-pill {
	background: rgba(20, 27, 43, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--text-secondary, #94a3b8);
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 20px;
	cursor: pointer;
	transition: var(--transition);
	outline: none;
}

.tab-pill:hover {
	color: #fff;
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.35);
}

.tab-pill.active {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #0c0f17 !important;
	border-color: #f59e0b;
	font-weight: 800;
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.weicms-card-body.no-padding {
	padding: 0 !important;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
	animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(3px); }
	to { opacity: 1; transform: translateY(0); }
}

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

.mini-rank-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: var(--transition);
}

.mini-rank-item:last-child {
	border-bottom: none;
}

.mini-rank-item:hover {
	background: rgba(245, 158, 11, 0.06);
}

.badge-rank {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.07);
	color: var(--text-muted, #94a3b8);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-rank.rank-1 {
	background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
	color: #0c0f17;
	border-color: #fbbf24;
	box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.badge-rank.rank-2 {
	background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
	color: #0c0f17;
	border-color: #cbd5e1;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.badge-rank.rank-3 {
	background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
	color: #fff;
	border-color: #f97316;
	box-shadow: 0 0 8px rgba(234, 88, 12, 0.35);
}

.mini-rank-avatar-wrap {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	border: 1.5px solid rgba(245, 158, 11, 0.35);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0c0f17;
}

.mini-rank-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-guild-logo {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(245, 158, 11, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	flex-shrink: 0;
}

.mini-guild-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rank-char-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rank-char-meta .char-name {
	font-size: 13px;
	font-weight: 700;
	color: #f1f5f9;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rank-char-meta .char-name a {
	color: #f1f5f9;
	text-decoration: none;
	transition: color 0.2s;
}

.rank-char-meta .char-name a:hover {
	color: var(--gold-400);
}

.rank-char-meta .char-class {
	font-size: 11px;
	color: var(--text-muted, #94a3b8);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.rank-value-pill {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.2);
	padding: 4px 10px;
	border-radius: 8px;
	flex-shrink: 0;
}

.rank-value-pill .value {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 800;
	color: var(--gold-400);
	line-height: 1.1;
}

.rank-value-pill .lbl {
	font-size: 9px;
	color: var(--text-muted, #94a3b8);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ==========================================================================
   Rankings Navigation Menu (/rankings/ subpage tabs)
   ========================================================================== */
.rankings_menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 15px 0 28px 0;
	padding: 8px 12px;
	background: rgba(13, 17, 26, 0.7);
	border: 1px solid rgba(245, 158, 11, 0.15);
	border-radius: 30px;
	backdrop-filter: blur(8px);
}

.rankings_menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--text-secondary, #94a3b8);
	text-decoration: none !important;
	border-radius: 20px;
	border: 1px solid transparent;
	background: transparent;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rankings_menu a:hover {
	color: #fff;
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.3);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.rankings_menu a.active {
	color: #0c0f17 !important;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	border-color: #f59e0b;
	font-weight: 800;
	box-shadow: 0 0 16px rgba(245, 158, 11, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Rankings Class Filter Menu (/rankings/ icons)
   ========================================================================== */
.rankings-class-filter {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	list-style: none !important;
	margin: 20px auto 30px auto !important;
	padding: 16px 20px !important;
	background: rgba(14, 19, 30, 0.75);
	border: 1px solid rgba(245, 158, 11, 0.18);
	border-radius: 16px;
	backdrop-filter: blur(10px);
	max-width: 900px;
}

.rankings-class-filter li {
	list-style: none !important;
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
}

.rankings-class-filter-selection {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 90px;
	padding: 12px 6px 10px 6px;
	border-radius: 12px;
	background: rgba(20, 27, 43, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.07);
	text-decoration: none !important;
	color: var(--text-secondary, #94a3b8) !important;
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

.rankings-class-filter-selection:hover {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.4);
	color: #fff !important;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 158, 11, 0.2);
}

.rankings-class-filter-selection img,
.rankings-class-filter-image {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50% !important;
	object-fit: cover;
	border: 2px solid rgba(245, 158, 11, 0.35);
	margin-bottom: 8px !important;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
	transition: all 0.3s ease;
}

.rankings-class-filter-selection:hover img,
.rankings-class-filter-selection:hover .rankings-class-filter-image {
	border-color: #f59e0b;
	box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
	transform: scale(1.06);
}

.rankings-class-filter-grayscale {
	opacity: 0.5;
	filter: grayscale(100%);
}

.rankings-class-filter-grayscale:hover {
	opacity: 0.9;
	filter: grayscale(20%);
}

.rankings-class-filter-selection.active,
.rankings-class-filter-selection:not(.rankings-class-filter-grayscale) {
	opacity: 1;
	filter: grayscale(0%);
	background: rgba(245, 158, 11, 0.15);
	border-color: #f59e0b;
	color: #f59e0b !important;
	box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   Rankings Table UI (/rankings/ pages)
   ========================================================================== */
.rankings-table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 6px !important;
	margin: 20px 0 !important;
}

.rankings-table tr:first-child td {
	background: rgba(14, 19, 31, 0.9) !important;
	color: var(--gold-400, #fbbf24) !important;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.75px;
	padding: 14px 16px;
	border: none;
	border-top: 1px solid rgba(245, 158, 11, 0.3);
	border-bottom: 1px solid rgba(245, 158, 11, 0.3);
	text-align: center;
}

.rankings-table tr:first-child td:first-child {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	border-left: 1px solid rgba(245, 158, 11, 0.3);
}

.rankings-table tr:first-child td:last-child {
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	border-right: 1px solid rgba(245, 158, 11, 0.3);
}

.rankings-table tr:not(:first-child) {
	background: rgba(17, 23, 36, 0.7);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rankings-table tr:not(:first-child):hover {
	background: rgba(27, 36, 56, 0.95);
	transform: scale(1.002);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.rankings-table tr:not(:first-child) td {
	padding: 12px 14px;
	vertical-align: middle;
	text-align: center;
	font-size: 13px;
	color: #e2e8f0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rankings-table tr:not(:first-child) td:first-child {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.rankings-table tr:not(:first-child) td:last-child {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rankings-table tr:not(:first-child):hover td {
	border-color: rgba(245, 158, 11, 0.25);
}

.rankings-table-place {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 800;
	width: 44px;
	color: var(--text-muted, #94a3b8);
}

.rankings-table tr:nth-child(2) .rankings-table-place {
	color: #fbbf24;
	text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rankings-table tr:nth-child(3) .rankings-table-place {
	color: #e2e8f0;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.rankings-table tr:nth-child(4) .rankings-table-place {
	color: #cd7f32;
	text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

.rankings-class-image {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid rgba(245, 158, 11, 0.4);
	display: inline-block;
	vertical-align: middle;
}

.rankings-table a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s;
}

.rankings-table a:hover {
	color: var(--gold-400, #fbbf24);
	text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.online-status-indicator {
	width: 10px;
	height: 10px;
	margin-left: 6px;
	display: inline-block;
	vertical-align: middle;
}

.rankings-update-time {
	text-align: center;
	font-size: 12px;
	color: var(--text-muted, #94a3b8);
	margin-top: 18px;
	padding: 8px;
}

/* ==========================================================================
   Server Database & Item Stats Dedicated Page
   ========================================================================== */
.weicms-db-wrapper {
	width: 100%;
	margin: 15px 0 35px 0;
	box-sizing: border-box;
}

.weicms-db-card {
	background: radial-gradient(circle at 50% 0%, rgba(45, 25, 45, 0.95) 0%, rgba(18, 14, 24, 0.98) 60%, rgba(12, 10, 16, 1) 100%);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: 12px;
	padding: 32px 36px 28px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	position: relative;
	box-sizing: border-box;
}

/* Header Section Matching User Mockup */
.weicms-db-header {
	text-align: center;
	padding-bottom: 22px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	position: relative;
}

.weicms-db-title {
	font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 34px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 2px;
	margin: 0 0 8px 0;
	padding: 0;
	text-transform: uppercase;
	text-shadow: 0 0 14px rgba(255, 255, 255, 0.9),
	             0 0 28px rgba(192, 132, 252, 0.8),
	             0 0 45px rgba(168, 85, 247, 0.5);
}

.weicms-db-subtitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #cbd5e1;
	letter-spacing: 0.5px;
	background: rgba(0, 0, 0, 0.4);
	padding: 4px 14px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.weicms-db-subtitle i {
	color: #10b981;
}

/* Two Columns Grid - Strict 50/50 Desktop Alignment */
.weicms-db-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 40px;
	row-gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.weicms-db-col {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.weicms-db-col-header {
	font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 18px 0;
	padding: 0 4px 8px 4px;
	border-bottom: 2px solid rgba(245, 158, 11, 0.35);
	display: block;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}


/* Item Rows */
.weicms-db-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.weicms-db-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 12px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	transition: all 0.2s ease;
	box-sizing: border-box;
	min-height: 48px;
}

.weicms-db-row:hover {
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.4);
	transform: translateX(3px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Left: Icon + Label */
.weicms-db-item-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.weicms-db-slot {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle, rgba(24, 20, 32, 0.95) 0%, rgba(10, 8, 14, 0.98) 100%);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: 6px;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.weicms-db-row:hover .weicms-db-slot {
	border-color: #fbbf24;
	box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.3), 0 0 10px rgba(245, 158, 11, 0.4);
}

.weicms-db-sprite {
	max-width: 28px;
	max-height: 28px;
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.weicms-db-label {
	font-size: 15px;
	font-weight: 600;
	color: #f1f5f9;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.weicms-db-row:hover .weicms-db-label {
	color: #ffffff;
}

/* Middle: Subtle connecting line */
.weicms-db-filler {
	flex-grow: 1;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
	margin: 0 14px;
	height: 1px;
}

.weicms-db-row:hover .weicms-db-filler {
	border-bottom-color: rgba(245, 158, 11, 0.3);
}

/* Right: Dash + Count */
.weicms-db-count-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	text-align: right;
}

.weicms-db-dash {
	color: #94a3b8;
	font-weight: 500;
}

.weicms-db-count {
	font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.weicms-jewel-val {
	color: #fcd34d;
	text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.weicms-pet-val {
	color: #7dd3fc;
	text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

/* Footer Notice */
.weicms-db-footer {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.weicms-db-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #94a3b8;
	line-height: 1.5;
}

.weicms-db-notice i {
	color: #f59e0b;
	font-size: 15px;
	flex-shrink: 0;
}

.weicms-db-sync-time {
	font-size: 11px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
}

.weicms-db-sync-time i {
	color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 860px) {
	.weicms-db-grid {
		grid-template-columns: 1fr;
		row-gap: 24px;
	}
	.weicms-db-card {
		padding: 22px 18px 20px;
	}
	.weicms-db-title {
		font-size: 26px;
	}
	.weicms-db-filler {
		margin: 0 8px;
	}
}

/* MurenMU speed v1: small background on phones and tablets */
@media (max-width: 900px) {
	body { background-image: url('../img/bg-main-900.jpg'); }
}
