:root {
	color-scheme: dark;

	/* ZembaWar Obsidian, Crimson & Forged Gold Palette */
	--bg-void: #0B0B0F;
	--bg-surface: #13141C;
	--bg-elevated: #1B1D29;
	--border: #2A2D3D;
	--border-gold: rgba(226, 178, 76, 0.35);

	--accent-crimson: #C82838;
	--accent-crimson-hover: #E03A4B;
	--accent-gold: #E2B24C;
	--accent-gold-hover: #F5CA69;

	--font-color: #E4E6EE;
	--text-muted: #A4A8B8;
	--anchor: #E2B24C;
	--anchor-hover: #F5CA69;

	/* Semantic alerts (readable contrast) */
	--bg-danger: #3A1216;
	--color-danger: #F8B4B9;
	--border-danger: #8E2C36;

	--bg-warning: #3B2808;
	--color-warning: #F8D589;
	--border-warning: #9A6B16;

	--bg-info: #0E2B42;
	--color-info: #9ED6FA;
	--border-info: #226696;

	--bg-success: #0E351E;
	--color-success: #93E8B5;
	--border-success: #1E7D46;

	--bg-default: #161822;
	--color-default: #E4E6EE;
	--border-default: #2A2D3D;

	--font-display: 'Cinzel', Georgia, serif;
	--font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--radius: 10px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--font-color);
	background:
		radial-gradient(ellipse 80% 45% at 50% -10%, rgba(200, 40, 56, 0.16), transparent 65%),
		var(--bg-void);
	min-block-size: 100dvh;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

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

a:hover {
	color: var(--anchor-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent-gold);
	outline-offset: 2px;
}

.zw-num {
	font-variant-numeric: tabular-nums;
}

.main {
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto 3rem;
	padding-top: 16px;
	padding-top: 8px;
}

/* Navigation */
.zw-nav {
	position: sticky;
	top: 10px;
	z-index: 40;
	width: min(1240px, calc(100% - 32px));
	margin: 12px auto 0;
	background: rgba(19, 20, 28, 0.92);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.zw-nav-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 16px;
	min-height: 58px;
}

.zw-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}

.zw-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--accent-crimson), #7F1520);
	color: var(--accent-gold);
	border: 1px solid var(--border-gold);
}

.zw-brand small {
	color: var(--accent-gold);
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 5px;
	background: rgba(226, 178, 76, 0.12);
	border: 1px solid var(--border-gold);
}

.zw-nav-toggle {
	display: none;
	margin-inline-start: auto;
	background: var(--bg-elevated);
	color: var(--font-color);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 1rem;
	cursor: pointer;
}

.zw-nav-menus {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 12px;
	min-width: 0;
}

.zw-menu-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
}

.zw-menu-left>li {
	position: relative;
}

.zw-menu-left>li>a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 12px;
	color: var(--font-color);
	font-weight: 500;
	font-size: 0.92rem;
	border-radius: 7px;
}

.zw-menu-left>li>a:hover {
	background: var(--bg-elevated);
	color: var(--accent-gold);
}

.zw-menu-left>li>ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 195px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 6px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
	z-index: 50;
}

.zw-menu-left>li:hover>ul,
.zw-menu-left>li:focus-within>ul {
	display: block;
}

.zw-menu-left>li>ul>li>a {
	display: block;
	padding: 8px 12px;
	color: var(--font-color);
	border-radius: 6px;
	font-size: 0.9rem;
}

.zw-menu-left>li>ul>li>a:hover {
	background: var(--bg-elevated);
	color: var(--accent-gold);
}

.zw-menu-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
	flex-shrink: 0;
}

.zw-btn-nav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.88rem;
}

.zw-btn-nav-outline {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--font-color);
}

.zw-btn-nav-outline:hover {
	border-color: var(--accent-gold);
	color: var(--accent-gold);
}

.zw-btn-nav-primary {
	background: var(--accent-crimson);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.zw-btn-nav-primary:hover {
	background: var(--accent-crimson-hover);
	color: #fff;
}

.modIcon>i:nth-child(2),
.modIcon:hover>i:nth-child(1) {
	display: none;
}

.modIcon:hover>i:nth-child(2) {
	display: inline-block;
}

/* Hero Banner */
.zw-hero {
	position: relative;
	margin-top: 18px;
	min-height: 290px;
	border-radius: 14px;
	border: 1px solid var(--border-gold);
	overflow: clip;
	background: var(--bg-surface) url("../img/zembawar_banner.jpg") center / cover no-repeat;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.zw-hero-topbar {
	position: relative;
	z-index: 2;
	flex: 1 0 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px 28px 0;
}

.zw-status-pill,
.zw-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(11, 11, 15, 0.82);
	border: 1px solid var(--border);
	color: #E6E9F2;
	font-size: 0.8rem;
	font-weight: 600;
}

.zw-status-pill.is-online {
	border-color: rgba(46, 204, 113, 0.55);
	color: #7EF2AC;
}

.zw-status-pill.is-offline {
	border-color: rgba(231, 76, 60, 0.55);
	color: #FFA39E;
}

.zw-meta-chip i {
	color: var(--accent-gold);
}

.zw-spotlight-avatar {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 10px;
	background: rgba(11, 11, 15, 0.72);
	border: 1px solid rgba(212, 168, 83, 0.35);
	flex-shrink: 0;
}

.zw-hero-spotlight {
	position: relative;
	z-index: 2;
	margin: 24px 28px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(19, 20, 28, 0.86);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-gold);
	color: var(--font-color);
}

.zw-hero-spotlight:hover {
	border-color: var(--accent-gold-hover);
	background: rgba(27, 29, 41, 0.94);
}

.zw-spotlight-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.zw-spotlight-tag {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--accent-gold);
}

.zw-spotlight-meta strong {
	font-family: var(--font-display);
	font-size: 1rem;
	color: #fff;
}

.zw-spotlight-meta small {
	color: var(--text-muted);
	font-size: 0.82rem;
}

.zw-outfit-sprite {
	width: 44px;
	height: 44px;
	object-fit: contain;
	image-rendering: pixelated;
	vertical-align: middle;
	flex-shrink: 0;
}

.zw-outfit-lg {
	width: 64px;
	height: 64px;
}

.zw-top-table td {
	vertical-align: middle;
	padding: 6px 5px;
}

.zw-outfit-cell {
	width: 48px;
	padding-inline: 2px;
}

.zw-lv-cell {
	text-align: right;
	white-space: nowrap;
	color: var(--text-muted);
}

.zw-hero-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.72) 48%, rgba(11, 11, 15, 0.25) 100%),
		linear-gradient(180deg, transparent 40%, rgba(11, 11, 15, 0.88) 100%);
}

.zw-hero-content {
	position: relative;
	z-index: 2;
	padding: 32px;
	max-width: 680px;
}

.zw-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(200, 40, 56, 0.22);
	border: 1px solid rgba(200, 40, 56, 0.55);
	color: #FFD5D9;
	font-size: 0.82rem;
	font-weight: 600;
}

.zw-hero-title {
	margin: 12px 0 8px;
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 1.15rem + 2vw, 2.7rem);
	line-height: 1.12;
	color: #FFFFFF;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.zw-hero-sub {
	margin: 0 0 18px;
	color: #D2D5E0;
	font-size: 0.98rem;
	max-width: 60ch;
}

.zw-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.zw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.92rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.zw-btn-primary {
	background: var(--accent-crimson);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.zw-btn-primary:hover {
	background: var(--accent-crimson-hover);
	color: #fff;
}

.zw-btn-ghost {
	background: rgba(19, 20, 28, 0.78);
	color: var(--accent-gold);
	border: 1px solid var(--border-gold);
}

.zw-btn-ghost:hover {
	background: var(--bg-elevated);
	color: var(--accent-gold-hover);
}

.zw-ip-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(11, 11, 15, 0.85);
	border: 1px solid var(--border);
	color: var(--font-color);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.zw-ip-pill:hover {
	border-color: var(--accent-gold);
	color: #fff;
}

/* Main Grid */
.zw-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	margin-top: 20px;
	align-items: start;
}

.zw-top-span {
	grid-column: 1 / -1;
}

.zw-main,
.zw-aside {
	min-width: 0;
}

/* Live War Pulse */
.zw-pulse {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.zw-pulse-item {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent-crimson);
	border-radius: var(--radius);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.zw-pulse-label {
	font-size: 0.78rem;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.zw-pulse-label i {
	color: var(--accent-gold);
}

.zw-pulse-val {
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: #fff;
}

.zw-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 4px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

.zw-section-head h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: var(--accent-gold);
}

.zw-section-head h2 i {
	color: var(--accent-crimson);
	margin-inline-end: 6px;
}

.zw-section-link {
	font-size: 0.84rem;
	font-weight: 600;
}

/* War Features Grid */
.zw-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.zw-feature-card {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-top: 2px solid var(--border-gold);
	border-radius: var(--radius);
	padding: 16px;
}

.zw-feature-icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(200, 40, 56, 0.16);
	color: var(--accent-gold);
	border: 1px solid var(--border-gold);
	margin-bottom: 10px;
}

.zw-feature-card h3 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--accent-gold);
}

.zw-feature-card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* War Command Hub (Home) */
.zw-war-hub {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.zw-hub-card {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	min-inline-size: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.table-wrapper {
	overflow: auto;
	max-inline-size: 100%;
	container-type: inline-size;
}

.zw-hub-table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.88rem;
}

.zw-hub-table thead {
	position: sticky;
	inset-block-start: 0;
	z-index: 1;
	background: var(--bg-elevated);
}

.zw-hub-table th {
	color: var(--accent-gold);
	font-weight: 700;
	white-space: nowrap;
}

.zw-connect-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zw-connect-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 8px;
	background: rgba(11, 11, 15, 0.55);
	border: 1px solid rgba(42, 45, 61, 0.75);
	font-size: 0.88rem;
}

.zw-connect-list span {
	color: var(--text-muted);
}

.zw-hub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}

@media (forced-colors: active) {
	.zw-hero,
	.zw-hub-card,
	.zw-status-pill,
	.zw-meta-chip,
	.zw-pulse-item {
		border: 1px solid CanvasText;
	}
}

/* Wells, Widgets, Posts */
.well {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 16px;
}

.header {
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--accent-gold);
	padding: 0 0 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.header i {
	color: var(--accent-crimson);
	margin-inline-end: 6px;
}

.body {
	padding: 2px 0;
}

.postHolder .header {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--font-color);
}

.zw-muted-note {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
}

th,
td {
	padding: 10px 8px;
	border-bottom: 1px solid rgba(42, 45, 61, 0.7);
	text-align: left;
}

tr.yellow,
thead tr {
	background: var(--bg-elevated);
	color: var(--accent-gold);
	font-weight: 600;
}

tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.zw-rank {
	width: 42px;
	font-weight: 700;
	color: var(--accent-gold);
}

/* Server Info Widget */
.zw-status-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 12px;
}

.zw-status-badge.is-online {
	background: var(--bg-success);
	color: var(--color-success);
	border: 1px solid var(--border-success);
}

.zw-status-badge.is-offline {
	background: var(--bg-danger);
	color: var(--color-danger);
	border: 1px solid var(--border-danger);
}

.zw-info-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 2px;
	border-bottom: 1px solid rgba(42, 45, 61, 0.6);
	font-size: 0.9rem;
}

.zw-info-list li:last-child {
	border-bottom: none;
}

.zw-info-list span {
	color: var(--text-muted);
}

/* Forms & Inputs */
input,
select,
textarea {
	background: var(--bg-void);
	color: var(--font-color);
	border: 1px solid var(--border);
	border-radius: 7px;
	padding: 8px 11px;
	font-family: inherit;
	font-size: 0.94rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
	min-height: 38px;
}

input[type="submit"],
button {
	font-family: inherit;
}

input[type="submit"],
.loginForm button {
	background: var(--accent-crimson);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 7px;
	padding: 9px 16px;
	font-weight: 600;
	cursor: pointer;
}

input[type="submit"]:hover,
.loginForm button:hover {
	background: var(--accent-crimson-hover);
}

.loginForm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.loginForm .well {
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
}

.loginForm input {
	width: 100%;
}

.loginForm button {
	width: 100%;
	margin-top: 4px;
}

/* Search Widget & Legacy Helpers */
.search_widget form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search_widget input {
	flex: 1;
	min-width: 0;
}

.search_widget label {
	padding: 0;
	color: var(--text-muted);
	font-size: 0.88rem;
}

div.relative {
	position: relative;
}

.search_widget #name_suggestion {
	position: absolute;
	width: 100%;
	top: 100%;
	left: 0;
	z-index: 30;
	display: none;
}

.search_widget #name_suggestion.show {
	display: block;
}

.search_widget .sname a {
	display: block;
	background: var(--bg-elevated);
	padding: 8px 12px;
	border: 1px solid var(--border);
}

ul.linkbuttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}

ul.linkbuttons li a {
	display: block;
	padding: 7px 8px;
	border: 1px solid var(--border-gold);
	border-radius: 7px;
	text-align: center;
	background: var(--bg-elevated);
	font-size: 0.86rem;
}

ul.linkbuttons li a:hover {
	background: rgba(226, 178, 76, 0.14);
}

/* Alerts */
.alert-box {
	max-width: 560px;
	font-size: 0.92rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	margin: 0 auto 16px;
	padding: 10px 14px;
	text-align: center;
}

.alert-default {
	background: var(--bg-default);
	color: var(--color-default);
	border-color: var(--border-default);
}

.alert-info {
	background: var(--bg-info);
	color: var(--color-info);
	border-color: var(--border-info);
}

.alert-success {
	background: var(--bg-success);
	color: var(--color-success);
	border-color: var(--border-success);
}

.alert-warning {
	background: var(--bg-warning);
	color: var(--color-warning);
	border-color: var(--border-warning);
}

.alert-danger {
	background: var(--bg-danger);
	color: var(--color-danger);
	border-color: var(--border-danger);
}

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

.centralizeContent {
	text-align: center;
}

.ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pull-left {
	float: left;
}

.pull-right {
	float: right;
}

.preventCollapse {
	overflow: hidden;
}

.page_characterprofile #characterProfileTable thead th:first-of-type {
	position: relative;
	width: 28%;
}

.page_characterprofile #characterProfileTable thead th:last-of-type {
	text-align: left;
	padding-left: 16px;
}

.page_characterprofile .outfit {
	position: absolute;
	top: 0;
	left: 0;
}

.page_characterprofile .flag {
	position: absolute;
	top: 16px;
	right: 16px;
}

/* Subpage surface & shared ZembaWar components */
body:not(.page_index) .zw-main {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px 22px;
	overflow-x: auto;
}

.zw-main h1 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
	color: var(--accent-gold);
	border-bottom: 1px solid var(--border);
	padding-bottom: 8px;
}

.zw-main h2 {
	margin: 22px 0 10px;
	font-family: var(--font-display);
	font-size: 1.12rem;
	color: var(--accent-gold);
}

.zw-main code {
	background: var(--bg-elevated);
	color: #FFD782;
	padding: 2px 6px;
	border-radius: 5px;
	border: 1px solid var(--border);
	font-size: 0.88em;
}

.zw-pill-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 16px;
}

.zw-inline-buy {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.zw-inline-buy select {
	flex: 1;
	min-width: 130px;
}

.zw-castle-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-inline-start: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 700;
	background: rgba(226, 178, 76, 0.16);
	color: var(--accent-gold);
	border: 1px solid var(--border-gold);
}

.zw-steps-list {
	padding-inline-start: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zw-steps-list li {
	list-style: decimal;
}

.zw-main form select,
.zw-main form input[type="text"],
.zw-main form input[type="password"],
.zw-main form input[type="email"] {
	margin-block: 4px;
}

.filter_spells {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

/* Character Profile Showcase */
.zw-profile-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 18px 22px;
	margin-bottom: 18px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #161822 0%, #101118 100%);
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent-gold);
	border-left: 4px solid var(--accent-crimson);
}

.zw-profile-avatar {
	position: relative;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: radial-gradient(ellipse 68% 36% at 62% 84%, rgba(226, 178, 76, 0.28), rgba(200, 40, 56, 0.1) 55%, transparent 78%);
}

.zw-profile-avatar img {
	filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.85));
	transform: translate(-6px, -6px) scale(1.15);
	transform-origin: bottom right;
}

.zw-profile-titlewrap {
	flex: 1;
	min-width: 220px;
}

.zw-profile-namerow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.zw-profile-titlewrap h1 {
	border-bottom: none;
	padding-bottom: 0;
	margin: 0;
	color: #FFFFFF;
}

.zw-profile-sub {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.94rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.zw-profile-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
}

.zw-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.zw-badge-pill.is-online {
	background: var(--bg-success);
	color: var(--color-success);
	border: 1px solid var(--border-success);
}

.zw-badge-pill.is-offline {
	background: var(--bg-void);
	color: var(--text-muted);
	border: 1px solid var(--border);
}

.zw-badge-pill.is-gold {
	background: rgba(226, 178, 76, 0.14);
	color: var(--accent-gold);
	border: 1px solid var(--border-gold);
}

#piv_zw {
	width: 230px;
	min-height: 232px;
	background: var(--bg-surface);
	border: 1px solid var(--border-gold);
	border-radius: 8px;
	padding: 12px 14px;
	font-family: var(--font-body);
	font-size: 0.84rem;
	line-height: 1.4;
	color: var(--font-color);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.zw-card-title {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--accent-gold);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

.zw-card-title i {
	color: var(--accent-crimson);
	margin-inline-end: 5px;
}

.zw-prog-row {
	margin: 8px 0;
}

.zw-prog-head {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	margin-bottom: 5px;
}

.zw-prog-bar {
	height: 8px;
	border-radius: 999px;
	background: var(--bg-void);
	border: 1px solid var(--border);
	overflow: clip;
}

.zw-prog-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
	border-radius: 999px;
}

.zw-mini-stats li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	border-bottom: 1px solid rgba(42, 45, 61, 0.65);
	font-size: 0.82rem;
}

.zw-mini-stats li:last-child {
	border-bottom: none;
}

.zw-mini-stats span {
	color: var(--text-muted);
}

table.deathlist {
	margin-top: 20px;
}

p.address {
	margin: 18px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.88rem;
}

/* Footer */
.zw-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	margin-top: 18px;
	padding: 14px 16px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.86rem;
	color: var(--text-muted);
}

.zw-footer p {
	margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
	.zw-grid {
		grid-template-columns: 1fr;
	}

	.zw-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.zw-nav-menus {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding-top: 10px;
		border-top: 1px solid var(--border);
	}

	.zw-nav-inner {
		flex-wrap: wrap;
	}

	.zw-nav-menus.is-open {
		display: flex;
	}

	.zw-menu-left {
		flex-direction: column;
		align-items: stretch;
	}

	.zw-menu-left>li>ul {
		position: static;
		box-shadow: none;
		margin-top: 4px;
	}

	.zw-menu-right {
		margin-inline-start: 0;
		padding-top: 8px;
	}

	.zw-hero-content {
		padding: 22px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {

	.well,
	.zw-hero,
	.zw-nav,
	.zw-feature-card,
	.zw-status-badge {
		border: 1px solid CanvasText;
	}

	.zw-hero-scrim {
		display: none;
	}
}