/* =============================================
   Thornfeld — Website Theme
   Stardew Valley inspired layout
   Full-width hero + gradient flow
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Open Sans', 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #3a3a3a;
	background-color: #7bbde1;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: #7db44e;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #a8d870;
}

h1, h2, h3, h4 {
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
}

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

/* --- Navigation --- */
.navbar {
	background: rgba(30, 18, 10, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 2px solid rgba(120, 80, 40, 0.3);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

.nav-container {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	height: 64px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-links a {
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: #fff;
}

.nav-btn {
	background: #4a96c4;
	color: #fff !important;
	padding: 7px 18px;
	border-radius: 5px;
	font-weight: 600 !important;
	transition: background 0.2s !important;
}

.nav-btn:hover {
	background: #5da3cc !important;
	color: #fff !important;
}

.nav-btn-outline {
	background: transparent !important;
	border: 1px solid rgba(200, 180, 150, 0.4);
	color: #fff !important;
}

.nav-btn-outline:hover {
	border-color: rgba(200, 180, 150, 0.7);
	color: #fff !important;
	background: rgba(255,255,255,0.05) !important;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	color: #fff;
	cursor: pointer;
}

/* --- Hero Section: Full-width background image --- */
.hero {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-top: 64px; /* navbar height */
	background-size: 100% 100%;
	background-position: top center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 20%;
	background: linear-gradient(to bottom, rgba(123, 189, 225, 0) 0%, rgba(123, 189, 225, 0.5) 40%, rgba(123, 189, 225, 1) 100%);
	pointer-events: none;
}

/* --- Gradient Zone: everything below hero flows from the dark bg --- */
.gradient-zone {
	background: linear-gradient(to bottom,
		#7bbde1 0%,
		#6aaed4 8%,
		#5da3cc 20%,
		#5da3cc 100%
	);
	padding-bottom: 60px;
}

/* --- Story Section --- */
.story-section {
	max-width: 820px;
	margin: 0 auto;
	padding: 40px 48px 48px;
	text-align: center;
	background: #fff3cc;
	border: 3px solid #853605;
	outline: 3px solid #b14e05;
	box-shadow:
		0 0 0 9px #dc7b05,
		0 0 0 12px #290b11;
	border-radius: 0;
	margin-top: 40px;
	margin-bottom: 60px;
}

.story-heading {
	font-size: 42px;
	color: #5a3310;
	margin-bottom: 24px;
	line-height: 1.2;
}

.story-text {
	font-size: 17px;
	color: #5a4530;
	line-height: 1.9;
	margin-bottom: 18px;
}

.story-btn {
	display: inline-block;
	margin-top: 24px;
	background: #b5631a;
	color: #fff;
	padding: 14px 40px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.story-btn:hover {
	background: #d4872e;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}

.story-btn-download {
	background: #4a96c4;
	margin-left: 12px;
}

.story-btn-download:hover {
	background: #5da3cc;
	color: #fff;
}

/* --- Nav Download Button --- */
.nav-download {
	background: #7db44e !important;
	color: #fff !important;
	padding: 7px 18px;
	border-radius: 5px;
	font-weight: 600 !important;
	transition: background 0.2s !important;
}

.nav-download:hover {
	background: #a8d870 !important;
	color: #fff !important;
}

/* --- Carousel --- */
.carousel-section {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 70px;
}

.carousel {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0,0,0,0.4);
	background: #4a96c4;
	aspect-ratio: 16/9;
}

.carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.carousel-slide.active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.4);
	color: #fff;
	border: none;
	font-size: 36px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	z-index: 10;
}

.carousel-btn:hover {
	background: rgba(0,0,0,0.65);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.carousel-dots .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
	cursor: pointer;
	transition: background 0.2s;
}

.carousel-dots .dot.active {
	background: #fff;
}

.carousel-dots .dot:hover {
	background: rgba(255,255,255,0.7);
}

/* --- Features Section --- */
.features-section {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px 70px;
}

.features-title {
	text-align: center;
	font-size: 36px;
	color: #e8d8b8;
	margin-bottom: 40px;
	text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.features-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px 24px;
	background: #fff3cc;
	border: 3px solid #853605;
	outline: 3px solid #b14e05;
	box-shadow:
		0 0 0 9px #dc7b05,
		0 0 0 12px #290b11;
	border-radius: 0;
	margin-bottom: 12px;
}

.feature-icon-wrap {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	background: rgba(180, 120, 40, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.feature-icon-wrap img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.feature-text {
	font-size: 15px;
	color: #5a4530;
	line-height: 1.7;
}

.feature-text strong {
	color: #5a3310;
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
	font-size: 16px;
}

/* --- Platform Logos --- */
.platforms-section {
	text-align: center;
	padding: 40px 24px 0;
	border-top: 1px solid rgba(200, 170, 120, 0.1);
	max-width: 600px;
	margin: 0 auto;
}

.platforms-label {
	font-size: 12px;
	color: rgba(30, 18, 10, 0.6);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 20px;
}

.platforms-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.platforms-links a {
	font-size: 13px;
	color: rgba(30, 18, 10, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s;
}

.platforms-links a:hover {
	color: rgba(30, 18, 10, 0.8);
}

.platforms-sep {
	color: rgba(30, 18, 10, 0.6);
	font-size: 16px;
}

/* --- Section Divider --- */
.section-divider {
	border: none;
	border-top: 2px solid rgba(30, 18, 10, 0.6);
	max-width: 600px;
	margin: 20px auto 40px;
}

/* --- Main Content (inner pages) --- */
.main-content {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	padding: 104px 24px 60px; /* 64px navbar + 40px spacing */
	flex: 1;
}

.content-container {
	background: #fff;
	border-radius: 12px;
	padding: 36px 40px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
	border: 1px solid #e8dfd3;
}

/* --- Footer --- */
.footer {
	background: #4a96c4;
	color: rgba(30, 18, 10, 0.6);
	padding: 40px 24px;
	border-top: 1px solid rgba(120, 80, 40, 0.2);
}

.footer-container {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.footer-links a {
	color: rgba(30, 18, 10, 0.6);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: rgba(30, 18, 10, 0.8);
}

.footer-info p {
	font-size: 12px;
	margin: 4px 0;
	color: rgba(30, 18, 10, 0.6);
}

.footer-powered {
	opacity: 0.6;
}

.footer-powered a {
	color: rgba(30, 18, 10, 0.6);
}

.footer-powered a:hover {
	color: rgba(30, 18, 10, 0.8);
}

/* =============================================
   MyAAC Content Overrides (inner pages)
   ============================================= */

/* Tables */
.content-container table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0;
}

.content-container br + br {
	display: none;
}

.content-container table th {
	background: #f5f0e8;
	color: #2c1810;
	font-weight: 600;
	padding: 10px 14px;
	text-align: left;
	border-bottom: 2px solid #d4c4a8;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.content-container table td {
	padding: 10px 14px;
	border-bottom: 1px solid #ede8df;
	font-size: 14px;
}

/* Forms */
.content-container input[type="text"],
.content-container input[type="password"],
.content-container input[type="email"],
.content-container input[type="number"],
.content-container select,
.content-container textarea {
	width: 100%;
	max-width: 400px;
	padding: 10px 14px;
	border: 1px solid #d4c4a8;
	border-radius: 6px;
	font-size: 14px;
	font-family: 'Open Sans', sans-serif;
	background: #faf8f4;
	color: #3a3a3a;
	transition: border-color 0.2s;
}

.content-container input:focus,
.content-container select:focus,
.content-container textarea:focus {
	outline: none;
	border-color: #5a7a3a;
	background: #fff;
}

.content-container input[type="submit"],
.content-container button,
.content-container .btn {
	background: #5a7a3a;
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	font-family: 'Open Sans', sans-serif;
}

.content-container input[type="submit"]:hover,
.content-container button:hover,
.content-container .btn:hover {
	background: #4a6a2a;
}

/* News Entries (legacy) */
.NewsHeadline, .news-headline {
	border-bottom: 2px solid #e8dfd3;
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.news-date {
	font-size: 12px;
	color: #8a7a6a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* =============================================
   Blog / News Archive — Stardew Valley style
   ============================================= */
.blog-archive-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 32px;
	color: #e8d8b8;
	margin-bottom: 32px;
	padding-bottom: 0;
	border-bottom: none;
	text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Remove white box when blog, wiki or account page is inside content-container */
.content-container:has(.blog-archive),
.content-container:has(.wiki-page),
.content-container:has(.account-page) {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Blog, Wiki & Account pages: background fixed full viewport */
body:has(.blog-archive),
body:has(.wiki-page),
body:has(.account-page) {
	background-image: url('images/pages-bg.png');
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-color: #3a2a1a;
}

/* Pixel art border box — reusable class */
.pixel-box {
	background: #fff3cc;
	border: 3px solid #853605;
	outline: 3px solid #b14e05;
	box-shadow:
		0 0 0 9px #dc7b05,
		0 0 0 12px #290b11;
	border-radius: 0;
	padding: 32px 36px;
}

.blog-archive .blog-post.pixel-box {
	margin-bottom: 36px;
}

.blog-archive .blog-post.pixel-box:last-of-type {
	margin-bottom: 0;
}

.blog-post {
	margin-bottom: 40px;
}

.blog-post-header {
	margin-bottom: 20px;
}

.blog-post-date {
	display: block;
	font-size: 12px;
	color: #8a6a40;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	font-weight: 500;
}

.blog-post-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 26px;
	color: #5a3310;
	line-height: 1.3;
	margin-bottom: 6px;
}

.blog-post-title a {
	color: #5a3310;
	text-decoration: none;
	transition: color 0.2s;
}

.blog-post-title a:hover {
	color: #7a4a1a;
}

.blog-post-author {
	display: block;
	font-size: 13px;
	color: #8a7a6a;
	margin-top: 4px;
}

.blog-post-author strong {
	color: #5a4530;
	font-weight: 600;
}

.blog-post-body {
	font-size: 15px;
	line-height: 1.8;
	color: #5a4530;
}

.blog-post-body p {
	margin-bottom: 16px;
}

.blog-post-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 16px 0;
}

.blog-post-body a {
	color: #5a7a3a;
	text-decoration: underline;
}

.blog-post-body a:hover {
	color: #4a6a2a;
}

.blog-post-comments {
	margin-top: 16px;
	text-align: right;
}

.blog-post-comments a {
	font-size: 13px;
	color: #5a7a3a;
	font-weight: 600;
	text-decoration: none;
}

.blog-post-comments a:hover {
	color: #4a6a2a;
	text-decoration: underline;
}

.blog-empty {
	text-align: center;
	padding: 60px 20px;
	color: #8a7a6a;
	font-size: 16px;
}

/* --- Homepage News Section --- */
.homepage-news {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px 70px;
}

.homepage-news-container {
	background: #fff3cc;
	border: 3px solid #853605;
	outline: 3px solid #b14e05;
	box-shadow:
		0 0 0 9px #dc7b05,
		0 0 0 12px #290b11;
	border-radius: 0;
	padding: 32px 36px;
}

.homepage-news-container .blog-post {
	margin-bottom: 0;
	padding: 24px 0;
	border-bottom: 1px solid rgba(90, 51, 16, 0.15);
}

.homepage-news-container .blog-post:first-child {
	padding-top: 0;
}

.homepage-news-container .blog-post:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.homepage-news-container .blog-post-date {
	color: #8a6a40;
}

.homepage-news-container .blog-post-title {
	color: #5a3310;
	font-size: 22px;
}

.homepage-news-container .blog-post-body {
	color: #5a4530;
}

.homepage-news-container .blog-post-author strong {
	color: #5a3310;
}

/* Hide old MyAAC news styles inside blog containers */
.homepage-news-container .NewsHeadline,
.homepage-news-container .NewsHeadlineBackground,
.homepage-news-container .NewsHeadlineIcon {
	display: none !important;
}

.homepage-news-container table {
	border: none !important;
	box-shadow: none !important;
}

.homepage-news-container table td {
	padding: 0 !important;
	border: none !important;
}

.homepage-news-container > br {
	display: none;
}

/* =============================================
   Wiki Page Styles
   ============================================= */
.wiki-page-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 32px;
	color: #e8d8b8;
	margin-bottom: 32px;
	text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.wiki-page .pixel-box {
	margin-bottom: 36px;
}

.wiki-page .pixel-box:last-child {
	margin-bottom: 0;
}

/* Table of Contents */
.wiki-toc {
	padding: 28px 36px;
}

.wiki-toc-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	color: #5a3310;
	margin-bottom: 16px;
}

.wiki-toc-list {
	columns: 2;
	column-gap: 32px;
	list-style: decimal;
	padding-left: 20px;
}

.wiki-toc-list li {
	margin-bottom: 6px;
	font-size: 14px;
	color: #5a4530;
	break-inside: avoid;
}

.wiki-toc-list li a {
	color: #7a4a1a;
	text-decoration: none;
	transition: color 0.2s;
	cursor: pointer;
}

.wiki-toc-list li a:hover {
	color: #b5631a;
	text-decoration: underline;
}

/* Wiki Articles */
.wiki-article {
	padding: 32px 36px;
}

.wiki-article-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 24px;
	color: #5a3310;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(90, 51, 16, 0.15);
}

.wiki-article h3 {
	font-family: 'Lora', Georgia, serif;
	font-size: 17px;
	color: #5a3310;
	margin-top: 24px;
	margin-bottom: 8px;
}

.wiki-article h4 {
	font-size: 15px;
	color: #6a4520;
	margin-top: 16px;
	margin-bottom: 6px;
}

.wiki-article p {
	font-size: 15px;
	line-height: 1.8;
	color: #5a4530;
	margin-bottom: 10px;
}

.wiki-article strong {
	color: #5a3310;
}

.wiki-list {
	list-style: disc;
	padding-left: 24px;
	margin-bottom: 12px;
}

.wiki-list li {
	font-size: 15px;
	line-height: 1.7;
	color: #5a4530;
	margin-bottom: 4px;
}

.wiki-list-numbered {
	list-style: decimal;
	padding-left: 24px;
	margin-bottom: 12px;
}

.wiki-list-numbered li {
	font-size: 15px;
	line-height: 1.7;
	color: #5a4530;
	margin-bottom: 4px;
}

.wiki-tip {
	background: rgba(180, 140, 40, 0.15);
	border-left: 4px solid #dc7b05;
	padding: 12px 16px;
	margin-top: 16px;
	margin-bottom: 10px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	color: #5a3310;
	font-style: italic;
}

/* Wiki responsive */
@media (max-width: 600px) {
	.wiki-toc-list {
		columns: 1;
	}

	.wiki-article {
		padding: 24px 20px;
	}

	.wiki-article-title {
		font-size: 20px;
	}
}

/* =============================================
   Account Pages (Create, Login, etc.)
   ============================================= */
.account-page-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 32px;
	color: #e8d8b8;
	margin-bottom: 32px;
	text-shadow: 0 2px 6px rgba(0,0,0,0.3);
	text-align: center;
}

/* Hide plugin hint text */
.account-page > p,
.account-page > br {
	display: none;
}

.account-page > form {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.account-form-box {
	padding: 32px 36px;
	margin-bottom: 36px;
	width: 100%;
	max-width: 820px;
}

.account-form-box:last-of-type {
	margin-bottom: 24px;
}

.account-form-heading {
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	color: #5a3310;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(90, 51, 16, 0.15);
}

.account-page .form-group {
	margin-bottom: 18px;
}

.account-page .form-group > label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #5a3310;
	margin-bottom: 6px;
}

.account-page .form-label-error {
	color: #c44 !important;
}

.account-page .form-group input[type="text"],
.account-page .form-group input[type="password"],
.account-page .form-group input[type="email"],
.account-page .form-group select {
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	border: 2px solid rgba(90, 51, 16, 0.25);
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Open Sans', sans-serif;
	background: #fff8e8;
	color: #3a2a1a;
	transition: border-color 0.2s;
}

.account-page .form-group input:focus,
.account-page .form-group select:focus {
	outline: none;
	border-color: #dc7b05;
	background: #fffdf5;
}

.account-page .form-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.account-page .OptionContainer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #5a4530;
}

.account-page .FormFieldError {
	color: #c44;
	font-size: 12px;
	display: block;
	margin-top: 4px;
}

.account-page .form-note {
	display: block;
	font-size: 13px;
	color: #8a6a40;
	margin-top: 4px;
}

.account-page .form-suggest {
	font-size: 11px;
	font-weight: 400;
}

.account-form-submit {
	max-width: 820px;
	width: 100%;
	text-align: center;
	margin-top: 8px;
}

.account-submit-btn {
	background: #4a96c4 !important;
	color: #fff !important;
	padding: 14px 48px !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	font-family: 'Open Sans', sans-serif !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.account-submit-btn:hover {
	background: #5da3cc !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}

/* --- Account Management Layout --- */
.account-manage-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	max-width: 1100px;
	margin: 0 auto;
}

.account-sidebar {
	width: 200px;
	flex-shrink: 0;
	padding: 8px 0 !important;
	display: flex;
	flex-direction: column;
}

.account-sidebar a {
	display: block;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 500;
	color: #5a3310;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	border-bottom: 1px solid rgba(90, 51, 16, 0.1);
}

.account-sidebar a:last-child {
	border-bottom: none;
}

.account-sidebar a:hover {
	background: rgba(180, 120, 40, 0.12);
	color: #b5631a;
}

.account-sidebar .sidebar-logout {
	color: #c44;
	margin-top: 4px;
	border-top: 1px solid rgba(90, 51, 16, 0.15);
}

.account-main {
	flex: 1;
	min-width: 0;
}

.account-section {
	padding: 28px 32px;
	margin-bottom: 28px;
}

.account-section:last-child {
	margin-bottom: 0;
}

.account-section-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 18px;
	color: #5a3310;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(90, 51, 16, 0.15);
}

.account-welcome {
	font-size: 16px;
	color: #5a3310;
	margin-bottom: 4px;
}

.account-premium {
	font-size: 14px;
	color: #8a6a40;
}

.account-table {
	width: 100%;
	border-collapse: collapse;
}

.account-table td,
.account-table th {
	padding: 10px 14px;
	font-size: 14px;
	color: #5a4530;
	border-bottom: 1px solid rgba(90, 51, 16, 0.1);
	text-align: left;
}

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

.account-table-label {
	font-weight: 600;
	color: #5a3310;
	width: 140px;
	white-space: nowrap;
}

.account-table-full th {
	background: rgba(90, 51, 16, 0.08);
	font-weight: 600;
	color: #5a3310;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-bottom: 2px solid rgba(90, 51, 16, 0.15);
}

.account-table-full tr:nth-child(even) td {
	background: rgba(90, 51, 16, 0.03);
}

.account-table a {
	color: #7a4a1a;
	font-weight: 500;
}

.account-table a:hover {
	color: #b5631a;
	text-decoration: underline;
}

.text-green { color: #4a8a2a; font-weight: 600; }
.text-red { color: #c44; font-weight: 600; }

.account-action-btn {
	background: #4a96c4 !important;
	color: #fff !important;
	padding: 8px 20px !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s;
}

.account-action-btn:hover {
	background: #5da3cc !important;
}

.account-action-btn-danger {
	background: #c44 !important;
}

.account-action-btn-danger:hover {
	background: #d66 !important;
}

.account-char-actions {
	margin-top: 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.account-manage-layout {
		flex-direction: column;
	}

	.account-sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		padding: 4px 0 !important;
	}

	.account-sidebar a {
		flex: 1 1 auto;
		text-align: center;
		border-bottom: none;
		border-right: 1px solid rgba(90, 51, 16, 0.1);
		padding: 8px 12px;
		font-size: 12px;
	}

	.account-sidebar a:last-child {
		border-right: none;
	}

	.account-section {
		padding: 20px 16px;
	}
}

/* --- Highscores --- */
.highscores-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.highscores-filter label {
	font-size: 14px;
	font-weight: 600;
	color: #5a3310;
}

.highscores-select {
	padding: 8px 14px;
	border: 2px solid rgba(90, 51, 16, 0.25);
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Open Sans', sans-serif;
	background: #fff8e8;
	color: #3a2a1a;
	cursor: pointer;
}

.highscores-select:focus {
	outline: none;
	border-color: #dc7b05;
}

.highscores-table td,
.highscores-table th {
	vertical-align: middle;
}

.highscores-pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.highscores-pagination .account-action-btn {
	text-decoration: none;
	display: inline-block;
}

.account-form-error {
	background: rgba(200, 60, 60, 0.12);
	border-left: 4px solid #c44;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	color: #8a2020;
}

.form-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	color: #5a4530 !important;
	cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
	accent-color: #4a96c4;
	width: 16px;
	height: 16px;
}

.account-lost-link {
	margin-top: 16px;
}

.account-lost-link a {
	color: #e8d8b8;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
}

.account-lost-link a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Account page responsive */
@media (max-width: 600px) {
	.account-form-box {
		padding: 24px 20px;
		max-width: 100%;
	}

	.account-page-title {
		font-size: 26px;
	}
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 24px 0;
}

.pagination a, .pagination span {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
}

/* Headings inside content */
.content-container h1 {
	font-size: 28px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e8dfd3;
	color: #2c1810;
}

.content-container h2 {
	font-size: 22px;
	margin: 24px 0 12px;
	color: #2c1810;
}

.content-container h3 {
	font-size: 18px;
	margin: 20px 0 10px;
	color: #2c1810;
}

/* Alerts / Messages */
.success, .message-success {
	background: #eaf5e0;
	border: 1px solid #b8d99e;
	color: #3d6b1a;
	padding: 12px 18px;
	border-radius: 6px;
	margin: 12px 0;
}

.error, .message-error {
	background: #fde8e8;
	border: 1px solid #f5b8b8;
	color: #9a2020;
	padding: 12px 18px;
	border-radius: 6px;
	margin: 12px 0;
}

.warning, .message-warning {
	background: #fef6e0;
	border: 1px solid #f0d88a;
	color: #7a5a10;
	padding: 12px 18px;
	border-radius: 6px;
	margin: 12px 0;
}

/* --- MyAAC Inline Styles Override --- */
.content-container table[border="0"] > tbody > tr[style*="background-color"],
.content-container table[border="0"] > thead > tr[bgcolor] {
	background-color: transparent !important;
}

.content-container table[border="0"] > thead > tr[bgcolor] td {
	background: #f5f0e8 !important;
	color: #2c1810 !important;
	padding: 12px 16px !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	border-bottom: 2px solid #d4c4a8;
	border-radius: 8px 8px 0 0;
}

/* Remove MyAAC table decorations */
.TableShadowContainerRightTop,
.TableShadowRightTop,
.TableShadowContainer,
.TableBottomShadow,
.TableBottomLeftShadow,
.TableBottomRightShadow {
	display: none !important;
}

.TableContentAndRightShadow {
	background-image: none !important;
}

.TableContentContainer {
	padding: 0;
}

/* Clean up form tables */
.content-container .TableContent {
	border: 1px solid #e8dfd3 !important;
	border-radius: 8px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}

.content-container .TableContent td.LabelV {
	background: #f9f6f0;
	font-weight: 500;
	color: #4a3728;
	padding: 12px 16px;
	border-bottom: 1px solid #e8dfd3;
	vertical-align: middle;
	white-space: nowrap;
}

.content-container .TableContent td {
	padding: 12px 16px;
	border-bottom: 1px solid #e8dfd3;
	vertical-align: middle;
}

.content-container .TableContent tr:last-child td {
	border-bottom: none;
}

/* Form field error messages */
.FormFieldError {
	color: #c44;
	font-size: 12px;
	display: block;
	margin-top: 2px;
}

/* Hide error indicator rows when empty */
.content-container .TableContent tr td:empty {
	padding: 0;
	border: none;
}

/* Radio buttons and checkboxes */
.OptionContainer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 16px;
	font-size: 14px;
}

.OptionContainer input[type="radio"],
.OptionContainer input[type="checkbox"] {
	accent-color: #5a7a3a;
	width: 16px;
	height: 16px;
}

.content-container input[type="checkbox"] {
	accent-color: #5a7a3a;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 6px;
}

/* Remove nested table styling */
.content-container table table {
	border: none !important;
	background: none !important;
}

.content-container table table td {
	border: none;
	padding: 4px 0;
}

/* MyAAC colored table rows override */
.myaac-table {
	border: 1px solid #e8dfd3 !important;
	border-spacing: 0 !important;
	border-radius: 8px;
	overflow: hidden;
}

.myaac-table > tbody > tr:nth-child(even) {
	background: #faf8f4 !important;
}

.myaac-table > tbody > tr:nth-child(odd) {
	background: #fff !important;
}

.myaac-table > tbody > tr > td {
	padding: 10px 14px !important;
	color: #3a3a3a !important;
	border-bottom: 1px solid #ede8df;
}

.myaac-table > thead > tr > td,
.myaac-table > thead > tr > th {
	padding: 10px 14px !important;
	background: #f5f0e8 !important;
	color: #2c1810 !important;
	font-weight: 600;
	border-bottom: 2px solid #d4c4a8;
}

.myaac-table > tfoot > tr > td {
	padding: 10px 14px !important;
	background: #f5f0e8 !important;
	color: #2c1810 !important;
}

/* White text class override */
td.white, .white {
	color: #2c1810 !important;
}

/* --- MyAAC Table Styles (compatibility) --- */
.Table1, .Table2, .Table3, .Table4, .Table5 {
	width: 100%;
}

.Table1 .LabelH, .Table2 .LabelH, .Table3 .LabelH, .Table4 .LabelH, .Table5 .LabelH,
.Table1 .CaptionContainer, .Table2 .CaptionContainer, .Table3 .CaptionContainer {
	background: #f5f0e8;
	color: #2c1810;
	font-weight: 600;
	padding: 10px 14px;
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
}

.Table1 .LabelV, .Table2 .LabelV, .Table3 .LabelV, .Table4 .LabelV, .Table5 .LabelV {
	padding: 8px 14px;
	border-bottom: 1px solid #ede8df;
	font-size: 14px;
}

.TableContent td {
	padding: 8px 14px;
	border-bottom: 1px solid #ede8df;
}

.InnerTableContainer {
	padding: 0;
}

/* Corner/Border images — hide Tibia decorations */
.Corner-tl, .Corner-tr, .Corner-bl, .Corner-br,
.Border_1, .Border_2, .Border_3 {
	display: none !important;
}

/* --- Characters Page --- */
.content-container table tr[bgcolor],
.content-container table tr[style*="background"] {
	background-color: transparent !important;
}

.content-container table[cellpadding] {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e8dfd3;
	border-radius: 8px;
	overflow: hidden;
}

.content-container table[cellpadding] tr:nth-child(odd) td {
	background: #fff;
}

.content-container table[cellpadding] tr:nth-child(even) td {
	background: #faf8f4;
}

.content-container table[cellpadding] tr:first-child[bgcolor] td,
.content-container table[cellpadding] tr:first-child[bgcolor] th {
	background: #f5f0e8 !important;
	color: #2c1810 !important;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 16px !important;
	border-bottom: 2px solid #d4c4a8;
}

.content-container table[cellpadding] .white,
.content-container table[cellpadding] .white b {
	color: #2c1810 !important;
}

.content-container table[cellpadding] tr[bgcolor] td b,
.content-container table[cellpadding] tr[bgcolor] th b {
	color: #2c1810;
}

/* Character outfit */
.content-container div[style*="border-radius:50px"] {
	position: relative !important;
	float: none !important;
	margin: 16px auto !important;
	width: 96px !important;
	height: 96px !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	overflow: visible;
	text-align: center;
}

.content-container div[style*="border-radius:50px"] img {
	width: 96px !important;
	height: 96px !important;
	margin: 0 !important;
	object-fit: contain;
}

/* --- Account Management Page --- */
#account-manage {
	display: flex;
	gap: 24px;
	padding: 0 !important;
}

#account-manage #one {
	width: 180px !important;
	flex-shrink: 0;
	float: none !important;
}

#account-manage #two {
	flex: 1;
	margin-left: 0 !important;
	padding-left: 0 !important;
	min-width: 0;
}

/* Sidebar menu */
.vertical-menu {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8dfd3;
}

.vertical-menu a {
	background-color: #fff !important;
	color: #4a3728 !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	font-weight: 500;
	border-bottom: 1px solid #f0ebe3;
	transition: background 0.15s, color 0.15s;
}

.vertical-menu a:last-child {
	border-bottom: none;
}

.vertical-menu a:hover {
	background-color: #f5f0e8 !important;
	color: #5a7a3a !important;
}

/* Account tables */
#account-manage table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e8dfd3;
	border-radius: 8px;
	overflow: hidden;
	margin: 8px 0 16px;
}

#account-manage table tr {
	background-color: transparent !important;
}

#account-manage table tr[style] {
	background-color: transparent !important;
}

#account-manage table tr[bgcolor] {
	background-color: transparent !important;
}

#account-manage table tr:nth-child(odd) td {
	background: #fff;
}

#account-manage table tr:nth-child(even) td {
	background: #faf8f4;
}

#account-manage table td {
	padding: 10px 16px !important;
	border-bottom: 1px solid #ede8df;
	font-size: 14px;
	color: #3a3a3a;
	vertical-align: middle;
}

#account-manage table tr:last-child td {
	border-bottom: none;
}

#account-manage table td:first-child {
	font-weight: 500;
	color: #4a3728;
	white-space: nowrap;
	width: 130px;
}

#account-manage table th {
	background: #f5f0e8 !important;
	color: #2c1810 !important;
	font-weight: 600;
	padding: 10px 16px !important;
	text-align: left;
	border-bottom: 2px solid #d4c4a8;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

#account-manage table tr[bgcolor] th {
	background: #f5f0e8 !important;
	color: #2c1810 !important;
}

#account-manage .white,
#account-manage .white th {
	color: #2c1810 !important;
}

#account-manage table td:first-child {
	width: auto;
}

#account-manage table:last-of-type {
	border: none;
}

#account-manage table:last-of-type td {
	background: transparent !important;
	border: none;
	padding: 4px 8px !important;
}

#account-manage h2 {
	font-size: 18px;
	margin: 24px 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8dfd3;
	color: #2c1810;
}

#account-manage h2:first-of-type {
	margin-top: 16px;
}

#account-manage span[style*="color: green"] {
	color: #5a7a3a !important;
	font-weight: 600;
}

#account-manage span[style*="color: red"] {
	color: #c44 !important;
	font-weight: 600;
}

/* Account page responsive */
@media (max-width: 600px) {
	#account-manage {
		flex-direction: column;
	}

	#account-manage #one {
		width: 100% !important;
	}

	.vertical-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
	}

	.vertical-menu a {
		flex: 1 1 auto;
		text-align: center;
		border-bottom: none !important;
		border-right: 1px solid #f0ebe3;
	}
}

/* Server Status Badge */
.server-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	background: rgba(255,255,255,0.05);
	color: #fff;
}

.server-status .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c44;
}

.server-status.online .dot {
	background: #5a7a3a;
}

/* =============================================
   Houses Page
   ============================================= */
.houses-filter-row {
	display: flex;
	gap: 32px;
}

.houses-filter-col {
	flex: 1;
	min-width: 0;
}

.houses-filter-label {
	display: block;
	font-weight: 700;
	color: #5a4530;
	font-size: 14px;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e8d8b0;
}

.houses-radio-item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.houses-radio-item input[type="radio"] {
	accent-color: #4a96c4;
	width: 16px;
	height: 16px;
	margin: 0;
}

.houses-radio-item label {
	color: #5a4530;
	font-size: 14px;
	cursor: pointer;
}

.house-view-content {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.house-view-image {
	flex-shrink: 0;
}

.house-view-image img {
	border: 2px solid #c9a96e;
	border-radius: 4px;
	max-width: 260px;
}

.house-view-info {
	flex: 1;
	min-width: 0;
}

@media (max-width: 700px) {
	.houses-filter-row {
		flex-direction: column;
		gap: 16px;
	}

	.house-view-content {
		flex-direction: column;
		align-items: center;
	}

	.house-view-image img {
		max-width: 100%;
	}
}

/* =============================================
   Characters Page
   ============================================= */
.char-section {
	margin-bottom: 28px;
}

.char-outfit {
	text-align: center;
	margin-bottom: 16px;
}

.char-outfit img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	image-rendering: pixelated;
}

.char-details-row {
	display: flex;
	gap: 24px;
	margin-bottom: 0;
}

.char-details-col {
	flex: 1;
	min-width: 0;
	margin-bottom: 28px;
}

.char-search-form label {
	display: block;
	font-weight: 600;
	color: #5a4530;
	margin-bottom: 6px;
	font-size: 14px;
}

.char-search-form input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #c9a96e;
	border-radius: 4px;
	background: #fffdf5;
	font-size: 14px;
	color: #3a2a1a;
	font-family: inherit;
	box-sizing: border-box;
}

.char-search-form input[type="text"]:focus {
	outline: none;
	border-color: #4a96c4;
	box-shadow: 0 0 0 3px rgba(74, 150, 196, 0.15);
}

.text-green {
	color: #4a8a2a !important;
	font-weight: 600;
}

.text-red {
	color: #c44 !important;
	font-weight: 600;
}

@media (max-width: 700px) {
	.char-details-row {
		flex-direction: column;
		gap: 0;
	}
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
	.hero {
		height: 50vh;
		min-height: 300px;
	}

	.story-heading {
		font-size: 32px;
	}

	.features-title {
		font-size: 28px;
	}

	.feature-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: rgba(30, 18, 10, 0.97);
		flex-direction: column;
		padding: 20px 24px;
		gap: 16px;
		border-bottom: 1px solid rgba(120, 80, 40, 0.3);
		box-shadow: 0 4px 16px rgba(0,0,0,0.3);
	}

	.nav-links.active {
		display: flex;
	}

	.nav-toggle {
		display: block;
	}

	.hero {
		height: 40vh;
		min-height: 250px;
	}

	.story-heading {
		font-size: 26px;
	}

	.story-text {
		font-size: 15px;
	}

	.carousel-section {
		padding: 0 16px 50px;
	}

	.carousel-btn {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}

	.features-title {
		font-size: 24px;
	}

	.content-container {
		padding: 24px 20px;
	}

	.main-content {
		padding-top: 84px;
	}

	.platforms-logos {
		gap: 32px;
	}
}
