:root {
	--app-bg-1: #eaf4f5;
	--app-bg-2: #f9f3ea;
	--card: #ffffff;
	--card-soft: #f6fbfc;
	--ink: #102430;
	--muted: #58707c;
	--line: #d7e5ea;
	--brand: #0f8a9b;
	--brand-strong: #0a6f81;
	--accent: #f28b47;
	--shadow: 0 14px 34px rgba(16, 36, 48, 0.11);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body.app-ui {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 8% 8%, #d8eff2 0, transparent 32%),
		radial-gradient(circle at 92% 4%, #ffe9d9 0, transparent 36%),
		linear-gradient(145deg, var(--app-bg-1), var(--app-bg-2));
	text-align: left;
}

a,
a:visited {
	color: var(--brand-strong);
}

a:hover {
	color: var(--brand);
	text-decoration: none;
}

#all {
	max-width: 1240px;
	margin: 16px auto 34px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	border-radius: 26px;
	box-shadow: var(--shadow);
	padding: 0 14px 18px;
	backdrop-filter: blur(8px);
}

#logobar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: auto;
	margin: 0;
	padding: 14px 4px 10px;
	background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.86));
	border-bottom: 1px solid var(--line);
}

#logoimg,
#logobar img {
	float: none;
	width: min(220px, 45vw);
	height: auto;
	margin: 0;
}

#logobar ul {
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#logobar li.mobile-nav-head {
	display: none !important;
}

.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-icon {
	position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.mobile-menu-icon::before {
	top: -6px;
}

.mobile-menu-icon::after {
	top: 6px;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon {
	background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.mobile-menu-close {
	display: none !important;
	align-items: center;
	gap: 6px;
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: #234753;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
}

.mobile-menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	border: 0;
	background: rgba(8, 22, 30, 0.42);
	backdrop-filter: blur(1px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease;
	z-index: 58;
}

.mobile-menu-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

#logobar li {
	float: none;
	margin: 0;
}

#logobar li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

#logobar li a.navlink {
	gap: 0;
}

.nav-ico {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 6px;
	background: #eaf4f7;
	color: #2a5460;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.nav-label {
	line-height: 1.2;
}

#logobar li a.navlink.is-active {
	background: var(--card);
	border-color: #9ecdd6;
	color: var(--brand-strong);
	box-shadow: inset 0 0 0 1px rgba(15, 138, 155, 0.12);
}

#logobar li a.navlink.is-active .nav-ico {
	background: rgba(15, 138, 155, 0.12);
	color: var(--brand-strong);
}

#logobar li a:hover {
	background: var(--brand);
	color: #fff;
	transform: translateY(-1px);
}

#logobar li a:hover .nav-ico {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

#searchbar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: center;
	margin: 12px 0 0;
	padding: 11px;
	border-radius: 18px;
	background: linear-gradient(145deg, #ecf8fb, #f7f7ef);
	border: 1px solid var(--line);
}

#searchform {
	float: none;
	margin: 0;
}

#searchform {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

#logobar #currencyform {
	float: none;
	width: auto;
}

.currency-nav {
	position: relative;
}

.currency-nav-form {
	position: relative;
}

.currency-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

.currency-toggle .nav-label {
	margin-right: auto;
}

.currency-toggle .nav-ico {
	display: none;
}

.currency-toggle #currencylabel {
	font-weight: 800;
}

.currency-toggle:hover,
.currency-nav-form.open .currency-toggle {
	background: var(--brand);
	color: #fff;
	transform: translateY(-1px);
}

.currency-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	padding: 10px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 36, 48, 0.16);
	z-index: 40;
}

.currency-panel label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.currency-panel #cur {
	width: 100%;
	padding: 10px;
}

#cur,
.inputbox,
#minchange,
#countrychange,
#dealerchange,
#pricechange,
#orderby {
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	border-radius: 12px;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

#cur {
	padding: 9px 10px;
	min-width: 116px;
}

.inputbox {
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	font-size: 15px;
}

#uploadlist {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 12px;
	white-space: nowrap;
}

#maincontent {
	clear: both;
	margin-top: 18px;
	padding: 0 6px 22px;
	font-size: 15px;
}

#maincontent h1,
#maincontent h2 {
	font-family: "Sora", "Plus Jakarta Sans", sans-serif;
	letter-spacing: -0.02em;
	color: #0f2d38;
}

#maincontent h1 {
	font-size: clamp(1.4rem, 2.7vw, 2rem);
}

#maincontent h2 {
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #c7d9df 15%, #c7d9df 85%, transparent);
	margin: 22px 0;
}

.home-hero {
	text-align: center;
	background: linear-gradient(145deg, #f5fbfc, #fff4ea);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 18px 16px;
	box-shadow: 0 8px 20px rgba(16, 36, 48, 0.07);
}

.home-hero p {
	margin: 8px auto;
	max-width: 760px;
	color: #2c4a56;
}

#recentupdates {
	display: flex;
	gap: 12px;
	height: auto;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 12px;
	scroll-snap-type: x mandatory;
}

.recentupdateitem {
	flex: 0 0 158px;
	width: 158px;
	height: auto;
	min-height: 222px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff, #f5fafc);
	box-shadow: 0 8px 22px rgba(16, 36, 48, 0.09);
	padding: 8px;
	scroll-snap-align: start;
}

.recentupdateitem a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
}

.recentupdateitem img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #d6e3e8;
}

.updatenumberbubble {
	right: 8px;
	top: 6px;
	background: var(--accent);
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 12px;
	box-shadow: 0 5px 14px rgba(242, 139, 71, 0.35);
}

.updatedate {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

.updatedealer {
	white-space: normal;
	line-height: 1.25;
	font-size: 14px;
	font-weight: 700;
	color: #17333f;
}

#others {
	margin-top: -4px;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 14px;
}

#homepagebox {
	margin-top: 4px;
	overflow-x: auto;
	white-space: nowrap;
	padding-bottom: 10px;
}

#homepagebox .minbox {
	width: min(44vw, 222px);
	min-width: 186px;
	margin: 0 12px 12px 0 !important;
}

@media screen and (min-width: 901px) {
	#homepagebox {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
		gap: 12px;
		overflow: visible;
		white-space: normal;
		padding-bottom: 0;
	}

	#homepagebox .minbox {
		width: auto;
		min-width: 0;
		margin: 0 !important;
	}
}

.minbox {
	float: none;
	display: inline-flex;
	flex-direction: column;
	vertical-align: top;
	width: 212px;
	height: auto;
	min-height: 372px;
	margin: 0 12px 14px 0 !important;
	padding: 10px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 8px 22px rgba(16, 36, 48, 0.08);
	overflow: hidden;
}

.minboximage {
	margin-bottom: 10px;
}

.minboximage img {
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid #d5e2e8;
}

.minboxtoptext {
	height: auto;
	min-height: 82px;
	overflow: hidden;
}

.minboxmin {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 5px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.minboxloc {
	font-size: 12px;
	height: auto;
	max-height: 42px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.minboxprice {
	font-size: 18px;
	font-weight: 800;
	color: #db6f2c;
	margin: 5px 0 6px;
}

.minboxsize,
.minboxdealer {
	font-size: 12px;
	color: #3e5964;
}

.minboxsize {
	min-height: 16px;
}

.minboxdealer {
	margin-top: auto;
	line-height: 1.25;
}

#filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	height: auto;
	padding: 10px;
	background: #edf7fa;
	border: 1px solid var(--line);
	border-radius: 14px;
	margin: 8px 0 16px;
}

.fright {
	float: none;
	margin-left: auto;
}

.paging {
	max-width: none;
	margin-top: 14px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
}

#tailfooter {
	margin: 12px 4px 0;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid #1e4a56;
	background: linear-gradient(160deg, #103642, #1b5664);
	color: #d9ebef;
	line-height: 1.45;
}

#tailfooter a {
	color: #b8f0ff;
}

@media screen and (max-width: 900px) {
	body.menu-open {
		overflow: hidden;
	}

	#all {
		margin: 0;
		border-radius: 0;
		border: 0;
		padding: 0 10px 16px;
	}

	#logobar {
		position: sticky;
		top: 0;
		z-index: 61;
		flex-direction: row;
		align-items: center;
		gap: 10px;
		padding: 10px 2px;
	}

	#logoimg,
	#logobar img {
		width: min(180px, 56vw);
	}

	.mobile-menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.mobile-menu-overlay {
		display: block;
	}

	#logobar ul {
		position: fixed;
		top: 0;
		right: 0;
		height: 100dvh;
		width: min(86vw, 340px);
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 10px;
		padding: 0 14px 18px;
		background: linear-gradient(180deg, #ffffff, #f2fafc);
		border-left: 1px solid var(--line);
		box-shadow: -18px 0 34px rgba(8, 30, 40, 0.2);
		transform: translateX(102%);
		transition: transform .24s ease;
		z-index: 60;
		overflow-y: auto;
	}

	#logobar li.mobile-nav-head {
		position: sticky;
		top: 0;
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		margin: 0 -14px 8px;
		padding: 14px;
		background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,254,0.95));
		border-bottom: 1px solid var(--line);
		z-index: 1;
	}

	.mobile-nav-title {
		font-size: 14px;
		font-weight: 800;
		letter-spacing: 0.02em;
		color: #183744;
	}

	#logobar ul.open {
		transform: translateX(0);
	}

	#logobar li {
		width: 100%;
	}

	#logobar li a {
		display: flex;
		justify-content: flex-start;
		width: 100%;
		border-radius: 12px;
		padding: 12px 14px;
		font-size: 14px;
	}

	#logobar li a.navlink {
		gap: 10px;
	}

	#logobar li a.navlink.is-active {
		background: var(--brand);
		border-color: var(--brand);
		color: #fff;
		box-shadow: 0 8px 16px rgba(15, 138, 155, 0.28);
	}

	.nav-ico {
		display: inline-flex;
		min-width: 22px;
		height: 22px;
		border-radius: 7px;
		font-size: 11px;
	}

	.mobile-menu-close {
		display: inline-flex !important;
	}

	.currency-nav {
		width: 100%;
	}

	.currency-nav-form {
		width: 100%;
	}

	.currency-toggle {
		justify-content: space-between;
		width: 100%;
		border-radius: 12px;
		padding: 12px 14px;
		font-size: 14px;
	}

	.currency-toggle .nav-ico {
		display: inline-flex;
	}

	#searchbar {
		grid-template-columns: 1fr;
	}

	#searchform {
		flex-wrap: wrap;
	}

	#uploadlist {
		display: none;
	}

	.currency-panel {
		position: static;
		margin-top: 8px;
		min-width: 0;
		border-radius: 12px;
		box-shadow: none;
	}
}

@media screen and (max-width: 680px) {
	#maincontent {
		padding: 0 2px 18px;
	}

	.recentupdateitem {
		flex-basis: 72vw;
		width: 72vw;
	}

	#homepagebox .minbox,
	.minbox {
		width: 74vw;
		min-width: 74vw;
		height: auto;
		min-height: 330px;
	}

	.minboxsize,
	.minboxdealer {
		display: none;
	}
}
