/*
 * Fate Finest — FATE MMO skin layered on top of the RDL theme.
 * Loaded after rdl.css + config-vars.php (see header.php); rdl.css itself is untouched.
 * Look: deep navy backdrop, cyan/blue accents with a gold highlight, Cinzel headings,
 * Manrope body copy, glassy panels with thin cyan borders.
 */

:root {
	--fv-bg: #05070d;
	--fv-bg-soft: #0b1220;
	--fv-panel: rgba(8, 15, 28, 0.88);
	--fv-panel-strong: rgba(10, 18, 34, 0.96);
	--fv-line: rgba(34, 211, 238, 0.26);
	--fv-line-soft: rgba(148, 163, 184, 0.14);
	--fv-cyan: #22d3ee;
	--fv-blue: #3b82f6;
	--fv-gold: #f59e0b;
	--fv-gold-strong: #facc15;
	--fv-text: #f8fafc;
	--fv-muted: #94a3b8;
	--fv-green: #22c55e;
	--fv-red: #fb7185;
	--fv-shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
	--fv-grad: linear-gradient(135deg, #22d3ee, #3b82f6);

	/* Retune the RDL variables so every existing page picks up the new look */
	--font-sans: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Cinzel', Georgia, serif;
	--rdl-bg: var(--fv-bg);
	--rdl-bg-elevated: rgba(11, 18, 32, 0.92);
	--rdl-card: var(--fv-panel);
	--rdl-card-hover: rgba(14, 26, 46, 0.95);
	--rdl-card-border: var(--fv-line-soft);
	--rdl-text: var(--fv-text);
	--rdl-text-soft: #cbd5e1;
	--rdl-muted: var(--fv-muted);
	--rdl-nav-bg: rgba(5, 7, 13, 0.55);
	--rdl-panel-bg: var(--fv-panel);
	--rdl-panel-border: var(--fv-line);
	--rdl-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
	--rdl-radius: 10px;
	--rdl-radius-sm: 8px;
}

/* ------------------------------------------------------------------ */
/* Backdrop                                                            */
/* ------------------------------------------------------------------ */
body.rdl-theme.fv-body {
	background: var(--fv-bg);
	color: var(--fv-text);
	font-family: var(--font-sans);
	line-height: 1.6;
	padding-top: 74px;
}

.fv-page-bg {
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	background:
		radial-gradient(circle at 76% 8%, rgba(34, 211, 238, 0.18), transparent 32%),
		radial-gradient(circle at 14% 80%, rgba(59, 130, 246, 0.22), transparent 36%),
		radial-gradient(circle at 92% 94%, rgba(245, 158, 11, 0.14), transparent 30%),
		linear-gradient(135deg, #020617 0%, #05070d 55%, #08101d 100%);
	overflow: hidden;
}
.fv-page-bg::before {
	content: "";
	position: absolute;
	inset: -24%;
	background:
		repeating-linear-gradient(115deg, transparent 0 68px, rgba(34, 211, 238, 0.06) 69px, transparent 70px),
		linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.06), transparent);
	opacity: 0.6;
	animation: fv-lines 22s linear infinite;
}
.fv-page-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 80%);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 80%);
}
.fv-grid-glow {
	position: absolute; /* nested inside .fv-page-bg so it never widens the page */
	z-index: -2;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: var(--fv-cyan);
	filter: blur(70px);
	opacity: 0.22;
	pointer-events: none;
	animation: fv-glow 7s ease-in-out infinite;
}
.fv-grid-glow-one { top: 8%; left: -140px; }
.fv-grid-glow-two { right: -160px; bottom: 4%; background: var(--fv-gold); animation-delay: -3s; }

@keyframes fv-lines { from { transform: translateX(0); } to { transform: translateX(140px); } }
@keyframes fv-glow { 0%, 100% { opacity: 0.16; } 50% { opacity: 0.3; } }
@keyframes fv-enter-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rdl-container,
.rdl-homepage .rdl-container {
	padding-top: 30px;
	padding-bottom: 64px;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */
.rdl-page-body h1,
.rdl-page-body h2,
.rdl-page-body > h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--fv-text);
}
.rdl-page-body > h2 {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fv-line-soft);
	font-size: 1.9em;
}
.rdl-page-body > h3 {
	font-size: 1.15em;
	color: #e2e8f0;
}
.rdl-container a { color: var(--fv-cyan); }
.rdl-container a:hover,
.rdl-container a:focus { color: #67e8f9; }

.fv-eyebrow {
	display: block;
	margin: 0 0 6px;
	color: var(--fv-muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.fv-muted { color: var(--fv-muted); }

/* ------------------------------------------------------------------ */
/* Topbar                                                              */
/* ------------------------------------------------------------------ */
.navbar.rdl-nav.fv-topbar {
	background: rgba(5, 7, 13, 0.45) !important;
	border-bottom: 1px solid transparent !important;
	box-shadow: none;
	padding: 8px 0;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.navbar.rdl-nav.fv-topbar.is-scrolled {
	background: rgba(5, 7, 13, 0.88) !important;
	border-bottom-color: var(--fv-line-soft) !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.fv-topbar .navbar-header {
	display: flex;
	align-items: center;
	gap: 10px;
}
.fv-topbar .navbar-brand .rdl-nav-logo {
	height: 44px;
	max-width: 44px;
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--fv-line), 0 0 22px rgba(34, 211, 238, 0.18);
}
.fv-topbar .navbar-brand .rdl-nav-logo-text {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--fv-text);
}

.fv-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid rgba(34, 211, 238, 0.32);
	border-radius: 14px;
	background: rgba(8, 15, 28, 0.55);
	box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08), 0 0 24px rgba(34, 211, 238, 0.08);
	color: var(--fv-text) !important;
	font-size: 12px;
	white-space: nowrap;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fv-status-pill:hover { border-color: rgba(34, 211, 238, 0.7); box-shadow: 0 0 24px rgba(34, 211, 238, 0.2); }
.fv-status-pill strong { font-weight: 800; }
.fv-status-pill em { font-style: normal; color: var(--fv-muted); font-weight: 600; }
.fv-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fv-red);
	box-shadow: 0 0 10px var(--fv-red);
}
.fv-status-pill.is-on .fv-status-dot { background: var(--fv-green); box-shadow: 0 0 10px var(--fv-green); animation: fv-glow 2.4s ease-in-out infinite; }
.fv-status-pill.is-on strong { color: #4ade80; }
.fv-status-pill.is-off strong { color: var(--fv-red); }

/* Nav links: soft pills that light up cyan */
.fv-topbar .navbar-nav.navbar-center > li > a {
	margin: 0 2px;
	padding: 8px 12px !important;
	border: 1px solid transparent;
	border-radius: 10px;
	color: #dbe4ef !important;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.fv-topbar .navbar-nav.navbar-center > li > a::after { display: none; }
.fv-topbar .navbar-nav.navbar-center > li > a:hover,
.fv-topbar .navbar-nav.navbar-center > li > a:focus,
.fv-topbar .navbar-nav.navbar-center > li.open > a {
	border-color: rgba(34, 211, 238, 0.6);
	background: rgba(34, 211, 238, 0.1) !important;
	color: #fff !important;
}
.fv-topbar .dropdown-menu {
	background: var(--fv-panel-strong);
	border: 1px solid var(--fv-line);
	border-radius: 10px;
	box-shadow: var(--fv-shadow);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.fv-topbar .dropdown-menu > li > a { font-weight: 600; }
.fv-topbar .dropdown-menu > li > a:hover { background: rgba(34, 211, 238, 0.1) !important; color: #fff !important; }

.fv-topbar .nav > li > a.btn-rdl-nav {
	background: var(--fv-grad) !important;
	color: #03121d !important;
	border-radius: 10px !important;
	padding: 9px 16px !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	box-shadow: 0 10px 26px rgba(34, 211, 238, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fv-topbar .nav > li > a.btn-rdl-nav:hover,
.fv-topbar .nav > li > a.btn-rdl-nav:focus {
	background: var(--fv-grad) !important;
	color: #03121d !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(34, 211, 238, 0.3);
}
.fv-topbar .nav > li > a.btn-rdl-nav-outline {
	border: 1px solid rgba(148, 163, 184, 0.3) !important;
	border-radius: 10px !important;
	background: rgba(2, 6, 23, 0.6) !important;
	padding: 8px 16px !important;
	font-weight: 800 !important;
}
.fv-topbar .nav > li > a.btn-rdl-nav-outline:hover,
.fv-topbar .nav > li > a.btn-rdl-nav-outline:focus {
	border-color: rgba(34, 211, 238, 0.7) !important;
	background: rgba(34, 211, 238, 0.12) !important;
}
.fv-topbar .navbar-toggle {
	border: 1px solid var(--fv-line) !important;
	border-radius: 10px;
	background: rgba(8, 15, 28, 0.6) !important;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.fv-action,
.fv-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--fv-text) !important;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.fv-action:hover,
.fv-button:hover { transform: translateY(-3px); }
.fv-action-primary {
	background: var(--fv-grad);
	color: #03121d !important;
	box-shadow: 0 14px 34px rgba(34, 211, 238, 0.18);
}
.fv-action-primary:hover { box-shadow: 0 16px 36px rgba(34, 211, 238, 0.32); color: #03121d !important; }
.fv-action-dark {
	border-color: rgba(148, 163, 184, 0.22);
	background: rgba(2, 6, 23, 0.86);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.fv-action-dark:hover { border-color: rgba(34, 211, 238, 0.7); }
.fv-action-discord {
	background: linear-gradient(135deg, #5865f2, #4752c4);
	box-shadow: 0 14px 34px rgba(88, 101, 242, 0.22);
}
.fv-action-block { display: flex; width: 100%; }
.fv-button {
	min-height: 38px;
	border-color: var(--fv-line);
	background: rgba(8, 15, 28, 0.6);
	font-size: 12px;
}
.fv-button:hover {
	border-color: rgba(34, 211, 238, 0.78);
	background: rgba(34, 211, 238, 0.12);
	box-shadow: 0 12px 28px rgba(34, 211, 238, 0.14);
}

/* Existing RDL buttons + generic submit buttons across FluxCP pages */
.rdl-container .btn-rdl-primary,
.rdl-modal .btn-rdl-primary,
.btn-rdl.btn-rdl-primary {
	background: var(--fv-grad) !important;
	border: none !important;
	color: #03121d !important;
	font-weight: 800;
	border-radius: 10px;
	box-shadow: 0 10px 26px rgba(34, 211, 238, 0.18);
}
.rdl-container .btn-rdl-primary:hover,
.rdl-modal .btn-rdl-primary:hover,
.btn-rdl.btn-rdl-primary:hover { filter: brightness(1.08); color: #03121d !important; }
.rdl-page-body input[type="submit"],
.rdl-page-body button[type="submit"]:not(.fv-action):not(.btn-rdl) {
	border: 1px solid var(--fv-line);
	border-radius: 10px;
	background: rgba(8, 15, 28, 0.75);
	color: var(--fv-text);
	font-weight: 800;
	padding: 7px 16px;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.rdl-page-body input[type="submit"]:hover,
.rdl-page-body button[type="submit"]:not(.fv-action):not(.btn-rdl):hover {
	border-color: rgba(34, 211, 238, 0.78);
	background: rgba(34, 211, 238, 0.12);
}

/* ------------------------------------------------------------------ */
/* Panels, tables & forms on every FluxCP page                          */
/* ------------------------------------------------------------------ */
.fv-panel,
.rdl-container .generic-form-div,
.rdl-container .generic-form,
.rdl-container .panel,
.rdl-container #server_status,
.rdl-container .woe-table {
	border: 1px solid var(--fv-line) !important;
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(8, 15, 28, 0.86)),
		linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(245, 158, 11, 0.04)) !important;
	box-shadow: var(--fv-shadow);
}
.rdl-container .horizontal-table,
.rdl-container .vertical-table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--fv-line-soft);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}
.rdl-container .horizontal-table th,
.rdl-container .vertical-table th {
	background: rgba(11, 18, 32, 0.96) !important;
	color: var(--fv-muted) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.rdl-container .horizontal-table td,
.rdl-container .vertical-table td {
	background: rgba(8, 15, 28, 0.82) !important;
}
.rdl-container .horizontal-table tr:hover td { background: rgba(14, 26, 46, 0.95) !important; }
.rdl-container .horizontal-table tr.top-ranked td { color: var(--fv-gold-strong) !important; }
/* FluxCP pads rankings to 20 rows with hidden .empty-row placeholders; rdl kept them as
   invisible full-height rows (a tall blank table). Collapse them as flux.css intends. */
.rdl-container .horizontal-table tr.empty-row { display: none !important; }

/* Ranking pages: character sprite beside the name (themes/rdl/ranking/*.php) */
.rdl-container .horizontal-table td.fv-rank-char {
	white-space: nowrap;
	padding-top: 4px;
	padding-bottom: 4px;
}
.fv-rank-sprite {
	vertical-align: middle;
	margin-right: 10px;
	width: 112px;
	height: 112px;
	object-fit: contain;
	border-radius: 10px;
	background: radial-gradient(circle at 50% 62%, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.4) 70%);
}
tr.top-ranked .fv-rank-sprite {
	background: radial-gradient(circle at 50% 62%, rgba(245, 158, 11, 0.24), rgba(2, 6, 23, 0.4) 70%);
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}
@media (max-width: 560px) {
	.fv-rank-sprite { width: 80px; height: 80px; }
}

/* Guild ranking: emblem cell (themes/rdl/ranking/guild.php; default theme used a bare 24px <img>) */
.rdl-container .horizontal-table td.fv-rank-emblem {
	width: 64px;
	text-align: center;
}
.fv-emblem-sprite {
	width: 56px;
	height: 56px;
	object-fit: contain;
	image-rendering: pixelated;
	vertical-align: middle;
	border-radius: 8px;
	background: radial-gradient(circle at 50% 55%, rgba(34, 211, 238, 0.14), rgba(2, 6, 23, 0.4) 70%);
}
tr.top-ranked .fv-emblem-sprite {
	background: radial-gradient(circle at 50% 55%, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.4) 70%);
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}
@media (max-width: 560px) {
	.fv-emblem-sprite { width: 36px; height: 36px; }
}

/* MVP ranking: monster sprite beside the MVP name (themes/rdl/ranking/mvp.php) */
.rdl-container .horizontal-table td.fv-rank-mob { white-space: nowrap; }
.fv-mob-sprite {
	vertical-align: middle;
	max-width: 96px;
	max-height: 96px;
	margin-right: 10px;
	object-fit: contain;
}

/* FluxCP search/filter forms (flux.css gives labels #222, buttons browser-default) */
.rdl-page-body .search-form2 label,
.rdl-page-body .search-form label,
.rdl-page-body .generic-form label { color: #cbd5e1 !important; font-weight: 700; }
.rdl-page-body .search-form2 p { border-color: var(--fv-line-soft) !important; }
.rdl-page-body input[type="button"],
.rdl-page-body input[type="reset"] {
	border: 1px solid rgba(148, 163, 184, 0.3) !important;
	border-radius: 10px;
	background: rgba(2, 6, 23, 0.7) !important;
	color: var(--fv-text) !important;
	font-weight: 800;
	padding: 7px 16px;
}
.rdl-page-body input[type="button"]:hover,
.rdl-page-body input[type="reset"]:hover { border-color: rgba(34, 211, 238, 0.78) !important; }
.rdl-page-body input[type="submit"] { background: var(--fv-grad) !important; border: none !important; color: #03121d !important; }
.rdl-container #server_status .up { color: #4ade80; font-weight: 800; }
.rdl-container #server_status .down { color: var(--fv-red); font-weight: 800; }

.rdl-container .form-control,
.rdl-page-body input[type="text"],
.rdl-page-body input[type="password"],
.rdl-page-body input[type="email"],
.rdl-page-body input[type="number"],
.rdl-page-body select,
.rdl-page-body textarea,
.rdl-modal .form-control {
	background: rgba(2, 6, 23, 0.7);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 8px;
	color: var(--fv-text);
}
.rdl-container .form-control:focus,
.rdl-page-body input:focus,
.rdl-page-body select:focus,
.rdl-page-body textarea:focus,
.rdl-modal .form-control:focus {
	outline: none;
	border-color: rgba(34, 211, 238, 0.7);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

/* Modals */
.rdl-modal .modal-content {
	border: 1px solid var(--fv-line) !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(10, 18, 34, 0.97)) !important;
	box-shadow: var(--fv-shadow), 0 0 60px rgba(34, 211, 238, 0.08) !important;
}
.rdl-modal .modal-title { font-family: var(--font-display); letter-spacing: 0.05em; }
.rdl-modal .rdl-modal-accent { background: var(--fv-grad) !important; }

/* ------------------------------------------------------------------ */
/* Homepage — landing                                                  */
/* ------------------------------------------------------------------ */
.fv-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
	gap: 22px;
	align-items: stretch;
	margin-bottom: 26px;
	animation: fv-enter-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fv-landing {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 560px;
	padding: clamp(24px, 4vw, 46px) clamp(12px, 3vw, 32px);
	border: 1px solid var(--fv-line);
	border-radius: 16px;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.72) 55%, rgba(2, 6, 23, 0.95) 100%),
		radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.18), transparent 55%),
		var(--fv-hero-image, none) center / cover no-repeat,
		var(--fv-bg-soft);
	box-shadow: var(--fv-shadow);
}
.fv-landing-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0.55;
}
.fv-hero {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 620px;
	text-align: center;
}
.fv-hero-logo-wrap {
	display: inline-grid;
	place-items: center;
	padding: 6px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.5));
	box-shadow: 0 0 60px rgba(34, 211, 238, 0.28), 0 24px 60px rgba(0, 0, 0, 0.5);
	animation: fv-float 6s ease-in-out infinite;
}
.fv-hero-logo {
	display: block;
	width: clamp(120px, 16vw, 176px);
	height: auto;
	border-radius: 22px;
}
@keyframes fv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fv-hero .fv-eyebrow { margin-top: 10px; color: var(--fv-cyan); }
.fv-hero-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.2em, 5vw, 3.6em);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.05;
	text-transform: uppercase;
	background: linear-gradient(180deg, #ffffff 0%, #bae6fd 60%, #67e8f9 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}
.fv-hero-tagline {
	margin: 4px 0 8px;
	max-width: 540px;
	color: #cbd5e1;
	font-size: 15px;
	font-weight: 500;
}
.fv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.fv-hero-actions .fv-action { min-width: 150px; }
.fv-hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.fv-hero-stats span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--fv-line-soft);
	border-radius: 12px;
	background: rgba(2, 6, 23, 0.7);
}
.fv-hero-stats small {
	color: var(--fv-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.fv-hero-stats strong { color: var(--fv-text); font-size: 14px; }
.fv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.fv-dot-online { background: var(--fv-green); box-shadow: 0 0 10px var(--fv-green); }
.fv-dot-trade { background: var(--fv-gold); box-shadow: 0 0 10px var(--fv-gold); }

/* Register window */
.fv-register-panel {
	display: flex;
	flex-direction: column;
	padding: 26px 24px 22px;
}
.fv-register-panel h2 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 1.6em;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.fv-register-panel > .fv-muted { margin: 0 0 16px; font-size: 13px; }
.fv-register-form label {
	display: block;
	margin: 0 0 5px;
	color: #cbd5e1;
	font-size: 12px;
	font-weight: 700;
}
.fv-register-form input[type="text"],
.fv-register-form input[type="password"],
.fv-register-form input[type="email"],
.fv-register-form select {
	width: 100%;
	height: 40px;
	margin-bottom: 12px;
	padding: 0 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 8px;
	background: rgba(2, 6, 23, 0.7);
	color: var(--fv-text);
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fv-register-form input:focus,
.fv-register-form select:focus {
	outline: none;
	border-color: rgba(34, 211, 238, 0.7);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.fv-form-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.fv-radio-row {
	display: flex;
	gap: 14px;
	min-height: 40px;
	align-items: center;
	margin-bottom: 12px;
}
.fv-radio-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}
.fv-radio-row input { accent-color: var(--fv-cyan); }
.fv-birthdate { display: flex; gap: 6px; margin-bottom: 12px; }
.fv-register-form .fv-birthdate select {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
	padding: 0 4px;
	font-size: 12px;
}
.fv-register-form .fv-birthdate select[name$="_year"] { flex-grow: 1.6; }
.fv-form-note { margin: 2px 0 14px; color: var(--fv-muted); font-size: 11.5px; line-height: 1.5; }
.fv-mini-links {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 12px;
	font-weight: 700;
}
.fv-mini-links a { color: var(--fv-muted) !important; }
.fv-mini-links a:hover { color: var(--fv-cyan) !important; }
.fv-account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fv-account-links a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--fv-line-soft);
	border-radius: 10px;
	background: rgba(2, 6, 23, 0.6);
	color: var(--fv-text) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.fv-account-links a:hover { border-color: rgba(34, 211, 238, 0.7); background: rgba(34, 211, 238, 0.1); }

/* Feature strip */
.fv-feature-strip {
	display: grid;
	justify-items: center;
	gap: 14px;
	margin: 0 0 34px;
	padding: 20px clamp(12px, 4vw, 42px);
	text-align: center;
}
.fv-feature-strip p { margin: 0; max-width: 760px; color: #cbd5e1; font-size: 15px; font-weight: 600; }
.fv-chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fv-chip-row span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border: 1px solid rgba(34, 211, 238, 0.24);
	border-radius: 14px;
	background: rgba(8, 15, 28, 0.54);
	color: rgba(248, 250, 252, 0.88);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Sections */
.fv-section { margin: 0 0 40px; }
.fv-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.fv-section-head h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.7em;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--fv-text);
}

.fv-info-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.fv-info-card,
.fv-news-card {
	position: relative;
	padding: 20px 18px;
	border: 1px solid var(--fv-line-soft);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(9, 14, 27, 0.94), rgba(12, 18, 34, 0.88)),
		linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(245, 158, 11, 0.04));
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.fv-info-card:hover,
.fv-news-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, 0.5);
	box-shadow: 0 22px 60px rgba(34, 211, 238, 0.1);
}
.fv-info-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 18px;
	right: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--fv-grad);
	opacity: 0.8;
}
.fv-info-card strong {
	display: block;
	margin-bottom: 6px;
	color: var(--fv-gold-strong);
	font-family: var(--font-display);
	font-size: 1.25em;
	letter-spacing: 0.03em;
}
.fv-info-card p { margin: 0; color: var(--fv-muted); font-size: 13px; }

.fv-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.fv-news-card time {
	color: var(--fv-cyan);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.fv-news-card h3 { margin: 6px 0 8px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.fv-news-card h3 a { color: var(--fv-text) !important; }
.fv-news-card h3 a:hover { color: var(--fv-cyan) !important; }
.fv-news-card p { margin: 0 0 8px; color: var(--fv-muted); font-size: 13px; }
.fv-news-card small { color: #64748b; font-weight: 700; }

/* Ranking cards */
.fv-battle-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.fv-battle-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--fv-line);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(8, 15, 28, 0.86)),
		linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(245, 158, 11, 0.05));
	box-shadow: var(--fv-shadow);
	overflow: hidden;
}
.fv-battle-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.fv-battle-head h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35em;
	font-weight: 700;
	color: var(--fv-text);
}
.fv-battle-head > span {
	padding: 4px 10px;
	border: 1px solid rgba(245, 158, 11, 0.4);
	border-radius: 10px;
	color: var(--fv-gold-strong);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.fv-battle-feature {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid rgba(245, 158, 11, 0.24);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(2, 6, 23, 0.6));
}
.fv-battle-avatar {
	display: grid;
	place-items: center;
	width: 150px;
	height: 150px;
	border-radius: 12px;
	background: radial-gradient(circle at 50% 60%, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.8) 70%);
	overflow: hidden;
}
.fv-battle-avatar img { width: 100%; height: 100%; object-fit: contain; }
.fv-battle-emblem { display: grid; place-items: center; }
.fv-battle-emblem img { width: 88px; height: 88px; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.fv-rank-badge {
	display: inline-block;
	margin-bottom: 2px;
	color: var(--fv-gold-strong);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.fv-battle-feature-main > strong {
	display: block;
	overflow: hidden;
	color: var(--fv-text);
	font-size: 18px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fv-battle-stats { display: flex; gap: 8px; margin-top: 6px; }
.fv-battle-stats span {
	display: grid;
	padding: 4px 10px;
	border: 1px solid var(--fv-line-soft);
	border-radius: 8px;
	background: rgba(2, 6, 23, 0.6);
}
.fv-battle-stats small { color: var(--fv-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.fv-battle-stats strong { color: var(--fv-text); font-size: 15px; }
.fv-battle-list { display: grid; gap: 6px; margin-top: 12px; }
.fv-battle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--fv-line-soft);
	border-radius: 8px;
	background: rgba(2, 6, 23, 0.5);
	transition: border-color 0.2s ease, background 0.2s ease;
}
.fv-battle-row:hover { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.06); }
.fv-battle-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fv-battle-name strong { overflow: hidden; color: #e2e8f0; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fv-battle-name img { flex: none; image-rendering: pixelated; }
.fv-battle-val { flex: none; color: var(--fv-cyan); font-size: 12px; font-weight: 800; }
.fv-card-link {
	align-self: flex-start;
	margin-top: 14px;
	color: var(--fv-muted) !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.fv-card-link::after { content: " →"; }
.fv-card-link:hover { color: var(--fv-cyan) !important; }

/* Discord CTA */
.fv-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 10px 0 20px;
	padding: 26px 28px;
	border: 1px solid var(--fv-line);
	border-radius: 16px;
	background:
		radial-gradient(circle at 90% 50%, rgba(88, 101, 242, 0.25), transparent 50%),
		linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(8, 15, 28, 0.88));
	box-shadow: var(--fv-shadow);
}
.fv-cta h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; }
.fv-cta h2 span { color: var(--fv-cyan); }
.fv-cta p { margin: 0; color: var(--fv-muted); }

/* Extended RDL homepage blocks: recolor to the Fate Finest palette */
.rdl-homepage .rdl-section-divider { background: linear-gradient(90deg, transparent, var(--fv-line), transparent); }
.rdl-homepage .rdl-extra-feature-card,
.rdl-homepage .rdl-extra-bp-card,
.rdl-homepage .rdl-extra-spotlight-inner {
	border-color: var(--fv-line-soft) !important;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(9, 14, 27, 0.94), rgba(12, 18, 34, 0.88)) !important;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.rdl-footer {
	position: relative;
	background: rgba(2, 6, 23, 0.82);
	border-top: 1px solid var(--fv-line-soft);
	padding: 22px 0 18px;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.rdl-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--fv-cyan), transparent);
	opacity: 0.6;
}
.rdl-footer-links a { color: #cbd5e1 !important; font-weight: 700; }
.rdl-footer-links a:hover { color: var(--fv-cyan) !important; }
.rdl-footer-disclaimer,
.rdl-footer-copyright { color: #64748b !important; }
.rdl-footer-copyright a { color: var(--fv-muted) !important; }
.rdl-footer-social-heading { color: var(--fv-muted) !important; letter-spacing: 0.18em; }
.rdl-footer-social-icon {
	border: 1px solid var(--fv-line) !important;
	background: rgba(8, 15, 28, 0.7) !important;
	border-radius: 10px !important;
}
.rdl-footer-social-icon:hover { border-color: var(--fv-cyan) !important; box-shadow: 0 0 18px rgba(34, 211, 238, 0.25); }
.rdl-footer-backtotop {
	border: 1px solid var(--fv-line) !important;
	border-radius: 10px !important;
	background: rgba(8, 15, 28, 0.8) !important;
	color: var(--fv-cyan) !important;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1199px) {
	.fv-status-label { display: none; }
}
@media (max-width: 991px) {
	.fv-dashboard { grid-template-columns: 1fr; }
	.fv-landing { min-height: 480px; }
	.fv-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fv-battle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	body.rdl-theme.fv-body { padding-top: 66px; }
	.fv-topbar .navbar-header { flex-wrap: nowrap; }
	.fv-topbar .navbar-header .navbar-toggle { order: 3; margin-left: auto; float: none; }
	.fv-topbar .navbar-brand { padding-right: 0; }
	.fv-topbar .navbar-brand .rdl-nav-logo { height: 38px; max-width: 38px; }
	.fv-status-pill { min-height: 28px; padding: 0 10px; font-size: 11px; }
	.fv-topbar .navbar-collapse {
		border-top: 1px solid var(--fv-line-soft) !important;
		background: rgba(5, 7, 13, 0.96);
	}
	.fv-topbar .navbar-nav.navbar-center > li > a { margin: 2px 0; }
	.fv-cta { flex-direction: column; align-items: flex-start; }
	.fv-section-head { align-items: center; }
}
@media (max-width: 560px) {
	.rdl-container,
	.rdl-homepage .rdl-container { padding-left: 16px; padding-right: 16px; }
	.fv-landing { min-height: 0; padding: 30px 14px; border-radius: 14px; }
	.fv-hero-actions { flex-direction: column; align-self: stretch; width: 100%; }
	.fv-hero-actions .fv-action { width: 100%; }
	.fv-form-split { grid-template-columns: 1fr; gap: 0; }
	.fv-info-grid { grid-template-columns: 1fr; }
	.fv-account-links { grid-template-columns: 1fr; }
	.fv-battle-feature { grid-template-columns: 110px minmax(0, 1fr); }
	.fv-battle-avatar { width: 110px; height: 110px; }
	.fv-status-pill em { display: none; }
	.rdl-container .horizontal-table,
	.rdl-container .vertical-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.fv-page-bg::before,
	.fv-grid-glow,
	.fv-hero-logo-wrap,
	.fv-dashboard,
	.fv-status-dot { animation: none !important; }
	.fv-action:hover, .fv-button:hover, .fv-info-card:hover, .fv-news-card:hover { transform: none; }
}
