/* ==========================================================================
   POKEENVY / POKÉ BLACK - MODERN CLEAN THEME
   ========================================================================== */

:root {
	/* Palette */
	--bg-body: #f3f7fa;
	--bg-card: #ffffff;
	--border-color: #e2e8f0;
	--border-subtle: #edf2f7;
	--border-focus: #0284c7;

	/* Text */
	--text-title: #0f172a;
	--text-body: #334155;
	--text-muted: #64748b;
	--text-light: #94a3b8;

	/* Accents */
	--primary: #0284c7;
	--primary-hover: #0369a1;
	--accent-red: #ef4444;
	--accent-cyan: #00b4d8;
	--accent-green: #10b981;
	--accent-gold: #f59e0b;

	/* Borders & Shadows */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	--shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Base Reset */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: var(--bg-body);
	color: var(--text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover {
	color: var(--primary-hover);
}

img {
	max-width: 100%;
	height: auto;
}

ul, ol {
	list-style: none;
}

/* Site Wrapper */
.site-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   NAVBAR (Floating Pill Header)
   ========================================================================== */
.navbar-wrapper {
	margin-bottom: 24px;
}

.navbar {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: 12px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.navbar-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 24px;
	letter-spacing: -0.5px;
}

.brand-poke {
	font-weight: 800;
	color: var(--text-title);
}

.brand-envy {
	font-weight: 900;
	font-style: italic;
	color: var(--accent-red);
	border-bottom: 3px solid var(--accent-red);
	padding-bottom: 2px;
	margin-left: 2px;
}

.navbar-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 20px;
	color: var(--text-body);
	cursor: pointer;
	padding: 8px;
}

.navbar-menu {
	display: flex;
	align-items: center;
	gap: 36px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-links li a {
	color: #475569;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 0;
	position: relative;
	transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
	color: var(--text-title);
}

.nav-links li a.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary);
	border-radius: 2px;
}

.navbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-login {
	background-color: var(--primary);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 24px;
	border-radius: var(--radius-sm);
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn-login:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.btn-account {
	background-color: #f1f5f9;
	color: var(--text-title) !important;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.btn-account:hover {
	background-color: #e2e8f0;
}

.btn-logout {
	background: #fee2e2;
	color: #ef4444 !important;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.btn-logout:hover {
	background: #fca5a5;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
	margin-bottom: 30px;
}

.hero-banner-container {
	position: relative;
	width: 100%;
	min-height: 520px;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-hover);
	border: 1px solid var(--border-color);
	background: #091a28;
	display: flex;
	align-items: center;
}

.hero-banner-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.hero-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 18, 33, 0.94) 0%, rgba(8, 18, 33, 0.82) 42%, rgba(8, 18, 33, 0.35) 75%, rgba(8, 18, 33, 0.05) 100%);
}

.hero-banner-content {
	position: relative;
	z-index: 2;
	padding: 44px 48px;
	max-width: 580px;
}

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #38bdf8;
	margin-bottom: 14px;
}

.hero-tag i {
	color: #facc15;
}

.hero-title {
	font-size: 46px;
	font-weight: 900;
	line-height: 1.08;
	color: #ffffff;
	letter-spacing: -1px;
	margin-bottom: 12px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-title span {
	color: #f1f5f9;
}

.hero-subtitle {
	font-size: 15px;
	color: #cbd5e1;
	margin-bottom: 24px;
	font-weight: 500;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 800;
	padding: 12px 24px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.btn-hero-create {
	background-color: #00b4d8;
	color: #032b43 !important;
	box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}

.btn-hero-create:hover {
	background-color: #48cae4;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}

.btn-hero-download {
	background-color: rgba(15, 23, 42, 0.75);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(8px);
}

.btn-hero-download:hover {
	background-color: rgba(15, 23, 42, 0.95);
	border-color: #00b4d8;
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.hero-banner-content {
		padding: 30px 22px;
	}
	.hero-title {
		font-size: 32px;
	}
	.hero-banner-overlay {
		background: linear-gradient(180deg, rgba(8, 18, 33, 0.92) 0%, rgba(8, 18, 33, 0.78) 100%);
	}
}

/* Quick Feature Highlights */
.quick-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 18px;
}

.quick-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.2s ease;
}

.quick-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
	border-color: #cbd5e1;
}

.qc-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.qc-icon-blue { background: #e0f2fe; color: #0284c7; }
.qc-icon-green { background: #dcfce7; color: #16a34a; }
.qc-icon-purple { background: #f3e8ff; color: #9333ea; }

.qc-content {
	flex: 1;
}

.qc-content h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-title);
	margin-bottom: 2px;
}

.qc-content p {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.3;
}

.qc-link {
	color: var(--text-light);
	font-size: 14px;
	transition: all 0.2s;
}
.quick-card:hover .qc-link {
	color: var(--primary);
	transform: translateX(3px);
}

/* Subpage Banner */
.subpage-banner {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 22px 28px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-sm);
}

.subpage-banner h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--text-title);
	margin-bottom: 4px;
}

.subpage-breadcrumb {
	font-size: 13px;
	color: var(--text-muted);
}

.subpage-breadcrumb a {
	color: var(--text-muted);
}
.subpage-breadcrumb a:hover {
	color: var(--primary);
}

/* ==========================================================================
   CONTENT GRID (2 Columns)
   ========================================================================== */
.content-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
	flex: 1;
	margin-bottom: 32px;
}

.main-column {
	min-width: 0;
}

.sidebar-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Clean Card Base */
.clean-card,
.sidebar-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	margin-bottom: 24px;
}

.sidebar-card {
	margin-bottom: 0;
}

.card-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-header h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-title);
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.header-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--primary);
}

.card-body {
	padding: 20px;
}

.card-body.p-0 {
	padding: 0;
}

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */
.news-card {
	padding: 24px 28px;
}

.news-meta-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.news-tag {
	background: #e0f2fe;
	color: #0369a1;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.news-date {
	font-size: 13px;
	color: var(--text-light);
}

.news-title {
	font-size: 20px;
	font-weight: 800;
	margin: 4px 0 10px;
	line-height: 1.3;
}

.news-title a {
	color: var(--text-title);
	transition: color 0.15s ease;
}
.news-title a:hover {
	color: var(--primary);
}

.news-author {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.news-body {
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.7;
	border-top: 1px solid var(--border-subtle);
	padding-top: 16px;
}

.news-body p {
	margin-bottom: 12px;
}

.bbcode-img {
	max-width: 100%;
	border-radius: var(--radius-md);
	margin: 12px 0;
	box-shadow: var(--shadow-sm);
}

/* Pagination */
.pagination-wrapper {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.pagination-clean {
	display: flex;
	gap: 6px;
}

.page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: #ffffff;
	color: var(--text-body);
	font-weight: 600;
	font-size: 14px;
	transition: all 0.15s ease;
}

.page-link:hover,
.page-link.active {
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

/* Server Status Widget */
.status-indicator-box {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 18px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.status-online {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.status-offline {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.status-dot.online {
	background-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
	animation: pulse-dot 2s infinite;
}

.status-dot.offline {
	background-color: #ef4444;
}

@keyframes pulse-dot {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
	70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

.stat-item {
	background: #f8fafc;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 12px;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
}

.stat-item:hover {
	background: #f1f5f9;
}

.stat-number {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--primary);
	line-height: 1.2;
}

.stat-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-muted);
	letter-spacing: 0.5px;
}

.server-meta-list {
	border-top: 1px solid var(--border-subtle);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.meta-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--text-muted);
}
.meta-row strong {
	color: var(--text-title);
}

/* Top Players Widget */
.top-players-list {
	list-style: none;
}

.top-player-item {
	display: flex;
	align-items: center;
	padding: 12px 18px;
	border-bottom: 1px solid var(--border-subtle);
	gap: 12px;
	transition: background 0.15s ease;
}

.top-player-item:last-child {
	border-bottom: none;
}

.top-player-item:hover {
	background: #f8fafc;
}

.rank-badge {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
}

.rank-gold { background: #fef3c7; color: #b45309; }
.rank-silver { background: #f1f5f9; color: #475569; }
.rank-bronze { background: #ffedd5; color: #c2410c; }
.rank-default { background: #f8fafc; color: #94a3b8; }

.player-details {
	flex: 1;
	min-width: 0;
}

.player-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-title);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-sub {
	font-size: 11px;
	color: var(--text-light);
}

.player-level-badge {
	background: #e0f2fe;
	color: #0369a1;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}

/* Login Widget Form */
.clean-form .form-group {
	margin-bottom: 14px;
}

.clean-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-title);
	margin-bottom: 5px;
}

.input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
}

.input-with-icon i {
	position: absolute;
	left: 12px;
	color: var(--text-light);
	font-size: 14px;
}

.input-with-icon input,
.search-input-group input,
input[type="text"],
input[type="password"],
input[type="email"],
select {
	width: 100%;
	padding: 10px 14px 10px 36px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-family: inherit;
	background: #ffffff;
	color: var(--text-title);
	transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
	outline: none;
	border-color: var(--border-focus);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit-clean,
.btn-primary-clean {
	width: 100%;
	background-color: var(--primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	padding: 11px 16px;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.btn-submit-clean:hover,
.btn-primary-clean:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-secondary-clean {
	background: #f1f5f9;
	color: var(--text-title);
	border: 1px solid var(--border-color);
	padding: 11px 18px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}
.btn-secondary-clean:hover {
	background: #e2e8f0;
}

.login-footer-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	font-size: 12px;
}

.link-register {
	font-weight: 700;
	color: var(--primary);
}

.link-forgot {
	color: var(--text-muted);
}

/* Character Search Widget */
.search-input-group {
	display: flex;
	gap: 6px;
}

.search-field {
	padding-left: 14px !important;
}

.search-btn {
	background: var(--primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0 16px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.search-btn:hover {
	background: var(--primary-hover);
}

/* Account Widget */
.account-welcome {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-subtle);
	font-size: 14px;
}

.account-actions-list,
.admin-links-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.account-actions-list a,
.admin-links-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--text-body);
	background: #f8fafc;
	border: 1px solid transparent;
	transition: all 0.15s ease;
}

.account-actions-list a:hover,
.admin-links-list a:hover {
	background: #ffffff;
	border-color: var(--border-color);
	color: var(--primary);
	transform: translateX(2px);
}

.account-actions-list a.link-danger {
	color: var(--accent-red);
	background: #fef2f2;
}
.account-actions-list a.link-danger:hover {
	background: #fee2e2;
	color: #b91c1c;
}

/* Discord Widget */
.discord-widget {
	background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
	color: #ffffff;
	padding: 20px;
	border: none;
}

.discord-inner {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
}

.discord-icon {
	font-size: 32px;
	color: #ffffff;
}

.discord-info h4 {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 2px;
}

.discord-info p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.3;
	margin: 0;
}

.btn-discord {
	display: block;
	background: #ffffff;
	color: #5865F2 !important;
	text-align: center;
	font-size: 14px;
	font-weight: 800;
	padding: 10px;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
}

.btn-discord:hover {
	background: #f1f5f9;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   DOWNLOADS PAGE
   ========================================================================== */
.downloads-page-card .card-header {
	padding: 24px 28px;
}

.page-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--text-title);
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.page-subtitle {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
}

.download-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}

.dl-platform-card {
	background: #f8fafc;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.2s ease;
}

.dl-platform-card:hover {
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
	background: #ffffff;
}

.dl-badge-os {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dl-badge-os.windows { background: #e0f2fe; color: #0284c7; }
.dl-badge-os.android { background: #dcfce7; color: #15803d; }

.dl-icon-circle {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #0284c7;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
}

.dl-icon-circle.android {
	background: #16a34a;
}

.dl-platform-card h3 {
	font-size: 18px;
	font-weight: 800;
	color: var(--text-title);
	margin-bottom: 8px;
}

.dl-desc {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
	margin-bottom: 16px;
	flex: 1;
}

.dl-specs {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
	font-size: 13px;
	color: var(--text-body);
}

.dl-specs i {
	color: #10b981;
	margin-right: 6px;
}

.btn-dl-primary,
.btn-dl-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn-dl-primary {
	background: var(--primary);
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.btn-dl-primary:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.btn-dl-secondary {
	background: #16a34a;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.btn-dl-secondary:hover {
	background: #15803d;
	transform: translateY(-1px);
}

/* Troubleshooting Box */
.dl-troubleshoot-box {
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-radius: var(--radius-md);
	padding: 20px 24px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.ts-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fde68a;
	color: #b45309;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.ts-content h4 {
	font-size: 15px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 4px;
}

.ts-content p {
	font-size: 13px;
	color: #78350f;
	margin-bottom: 12px;
	line-height: 1.4;
}

.ts-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn-ts {
	background: #ffffff;
	border: 1px solid #fde68a;
	color: #92400e !important;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
}

.btn-ts:hover {
	background: #fef3c7;
}

.btn-ts-discord {
	background: #5865F2;
	border-color: #5865F2;
	color: #ffffff !important;
}

.btn-ts-discord:hover {
	background: #4752C4;
}

/* ==========================================================================
   TABLES & GENERAL ZNOTE AAC STYLING
   ========================================================================== */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
}

th, td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--border-subtle);
}

th {
	background: #f8fafc;
	font-weight: 700;
	color: var(--text-title);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

tr:hover td {
	background-color: #f8fafc;
}

/* Forms inside Znote default pages */
form {
	max-width: 100%;
}

input[type="submit"],
button[type="submit"] {
	background-color: var(--primary);
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: var(--primary-hover);
}

/* Old well classes overridden cleanly */
.well {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}

/* ==========================================================================
   FOOTER (Clean & Meaningful)
   ========================================================================== */
.site-footer {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-top: auto;
	padding: 24px 32px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.footer-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-brand-line {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-brand-line .footer-logo {
	font-size: 18px;
	letter-spacing: -0.5px;
}

.footer-brand-line .footer-copy {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-title);
	margin: 0;
}

.footer-disclaimer {
	font-size: 12px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.4;
	max-width: 620px;
}

.footer-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.dev-credit-pill {
	background: #f8fafc;
	border: 1px solid var(--border-color);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: var(--shadow-sm);
}

.dev-credit-pill i {
	color: var(--primary);
	font-size: 13px;
}

.dev-credit-pill strong {
	color: var(--text-title);
	font-weight: 800;
}

.btn-top {
	background: #f1f5f9;
	color: var(--text-muted);
	border: 1px solid var(--border-color);
	padding: 8px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn-top:hover {
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.footer-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.footer-meta {
		width: 100%;
		justify-content: space-between;
	}
}

/* ==========================================================================
   RESPONSIVE (Mobile / Tablet)
   ========================================================================== */
@media (max-width: 992px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.quick-cards {
		grid-template-columns: 1fr;
	}

	.download-grid {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.navbar-toggle {
		display: block;
	}

	.navbar-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border: 1px solid var(--border-color);
		border-radius: var(--radius-md);
		padding: 20px;
		flex-direction: column;
		gap: 16px;
		box-shadow: var(--shadow-hover);
		margin-top: 8px;
		z-index: 999;
	}

	.navbar-menu.is-open {
		display: flex;
	}

	.nav-links {
		flex-direction: column;
		gap: 12px;
		width: 100%;
		text-align: center;
	}

	.navbar-actions {
		width: 100%;
		justify-content: center;
	}

	.footer-bottom-inner {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
}

/* ==========================================================================
   DEFAULT ZNOTE AAC FORMS & SUBPAGES ENHANCEMENT
   ========================================================================== */
.main-column {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: 28px 32px;
}

/* If on home page, main-column shouldn't wrap all news in one gigantic card, individual news cards handle it */
body.page_index .main-column {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.main-column h1, 
.main-column h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--text-title);
	margin-bottom: 16px;
	border-bottom: 2px solid var(--border-subtle);
	padding-bottom: 8px;
}

.main-column form > ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 580px;
}

.main-column form > ul > li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-title);
}

.main-column form input[type="text"],
.main-column form input[type="password"],
.main-column form input[type="email"],
.main-column form select {
	padding: 10px 14px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: #ffffff;
	color: var(--text-title);
}

.main-column form input[type="submit"] {
	align-self: flex-start;
	background-color: var(--primary);
	color: #ffffff;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
	margin-top: 10px;
	transition: all 0.2s ease;
}

.main-column form input[type="submit"]:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
}

/* Error and Alert boxes */
font[color="red"] {
	display: block;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c !important;
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

font[color="green"],
.success-msg {
	display: block;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #047857 !important;
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* Clean Tables */
.main-column table {
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin: 16px 0;
	background: #ffffff;
}

.main-column table th,
.main-column table tr.yellow td,
.main-column table tr:first-child td {
	background: #f8fafc;
	font-weight: 700;
	color: var(--text-title);
	border-bottom: 1px solid var(--border-color);
}

.main-column table tr td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-subtle);
}

.main-column table tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   MIDDLE BAR: DISCORD & VISITAS
   ========================================================================== */
.middle-bar {
	display: flex;
	gap: 16px;
	align-items: stretch;
	margin-bottom: 24px;
}

.middle-discord-card {
	flex: 1;
	background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
	border-radius: var(--radius-lg);
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: var(--shadow-card);
	color: #ffffff;
}

.mdc-content {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mdc-icon {
	font-size: 28px;
	color: #ffffff;
}

.mdc-text h4 {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 800;
	color: #ffffff;
}

.mdc-text p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.88);
}

.btn-discord-mid {
	background: #ffffff;
	color: #5865F2 !important;
	font-size: 13px;
	font-weight: 800;
	padding: 10px 20px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-discord-mid:hover {
	background: #f8fafc;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.middle-visits-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-card);
	flex-shrink: 0;
}

.badge-visits-cyan {
	background-color: #00b4d8;
	color: #032b43;
	font-size: 14px;
	font-weight: 800;
	padding: 12px 24px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
	user-select: none;
	cursor: default;
}

.badge-visits-cyan i {
	font-size: 16px;
	color: #032b43;
}

.badge-visits-cyan span {
	font-weight: 800;
}

@media (max-width: 820px) {
	.middle-bar {
		flex-direction: column;
	}
	.middle-discord-card {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.btn-discord-mid {
		width: 100%;
		justify-content: center;
	}
	.middle-visits-card {
		width: 100%;
	}
	.badge-visits-cyan {
		width: 100%;
		justify-content: center;
	}
}


/* =============================================
   RANKING / HIGHSCORES PAGE
   ============================================= */
.ranking-wrap {
    padding: 8px 0 24px;
}

.ranking-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.ranking-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.ranking-filter-form label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ranking-filter-form select {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ranking-filter-form select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.btn-ranking-submit {
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.ranking-table thead tr {
    background: var(--accent-red);
}

.ranking-table thead th {
    color: #fff;
    padding: 13px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.ranking-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.ranking-table tbody td {
    padding: 11px 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ranking-table tbody a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.ranking-table tbody a:hover {
    text-decoration: underline;
}

.ranking-table .rank-cell {
    font-weight: 700;
    font-size: 1rem;
}

.ranking-table .rank-1 td { background: rgba(255, 215, 0, 0.08); }
.ranking-table .rank-2 td { background: rgba(192, 192, 192, 0.08); }
.ranking-table .rank-3 td { background: rgba(205, 127, 50, 0.08); }

.ranking-pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.ranking-pagination a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.ranking-pagination a:hover,
.ranking-pagination a.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}
