.market-page {
	padding: 30px 0 55px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.market-main-content {
	min-width: 0;
}

.market-browser-layout {
	display: grid !important;
	grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
	gap: 22px;
	margin: 18px 0 0 !important;
}

/* v21: compact market filters above the products */
.market-browser-layout { display: block !important; }
.market-filter-column,
.market-results-column { width: 100% !important; }
.market-filter-column { margin-bottom: 22px; }
.market-filter-mobile-actions { display: none; }
.market-filter-body { display: block; }
.market-filter-groups {
	display: grid;
	grid-template-columns: 1fr .75fr .85fr 1.4fr 1.25fr;
	gap: 12px;
}
.market-filter-group {
	min-width: 0;
	margin: 0;
	padding: 13px;
	border: 1px solid rgba(62, 91, 136, .58);
	border-radius: 13px;
	background: rgba(7, 17, 33, .58);
	color: #aebcd4;
	font-size: 11px;
	line-height: 1.7;
}
.market-filter-group > label:first-of-type {
	display: block;
	margin: 0 0 10px !important;
	color: #ffc32f;
	font-size: 10px !important;
	font-weight: 900 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.market-filter-group--level { columns: 4 44px; }
.market-filter-group--class { columns: 2 95px; }
.market-filter-group--level > label:first-of-type,
.market-filter-group--class > label:first-of-type { column-span: all; }
.market-category-icons {
	display: flex;
	align-items: center;
	align-content: flex-start;
	flex-wrap: wrap;
	gap: 7px;
}
.market-icon-filter { position: relative; margin: 0; }
.market-icon-filter input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.market-icon-filter > span {
	display: grid;
	place-items: center;
	width: 37px;
	height: 37px;
	border: 1px solid #30496e;
	border-radius: 10px;
	background: #0b172b;
	color: #92a4c2;
	cursor: pointer;
	transition: .18s ease;
}
.market-icon-filter input:checked + span,
.market-icon-filter > span:hover {
	border-color: #ffb800;
	background: rgba(255, 184, 0, .12);
	color: #ffc631;
	box-shadow: 0 0 16px rgba(255, 184, 0, .12);
}
.market-icon-filter em {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 20;
	width: max-content;
	max-width: 190px;
	padding: 6px 9px;
	border: 1px solid #38547c;
	border-radius: 7px;
	background: #071224;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .38);
	color: #edf3ff;
	font-size: 10px;
	font-style: normal;
	line-height: 1.25;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: .16s ease;
}
.market-icon-filter:hover em,
.market-icon-filter:focus-within em {
	opacity: 1;
	transform: translate(-50%, 0);
}
.market-filter-form > .market-filter-body > .form-group {
	display: flex;
	justify-content: flex-end;
	gap: 9px;
	margin: 14px 0 0 !important;
}

@media (max-width: 1100px) {
	.market-filter-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.market-filter-group--category { grid-column: span 2; }
}

@media (max-width: 600px) {
	.market-filter-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 9px;
		padding: 12px;
	}
	.market-filter-title { display: none; }
	.market-search-form { position: relative; min-width: 0; }
	.market-search-form::before {
		position: absolute;
		top: 13px;
		left: 15px;
		z-index: 2;
		color: #8fa2bf;
		font-family: "Font Awesome 5 Free";
		font-weight: 900;
		content: "\f002";
		pointer-events: none;
	}
	.market-search-form .form-group { display: block !important; margin: 0 !important; }
	.market-search-form input {
		width: 100%;
		height: 46px;
		padding-left: 42px !important;
		border-radius: 999px !important;
	}
	.market-search-form .col-auto { display: none; }
	.market-filter-mobile-actions { display: flex; gap: 7px; }
	.market-filter-reset,
	.market-filter-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 46px;
		border: 1px solid #344d73;
		cursor: pointer;
	}
	.market-filter-reset {
		width: 46px;
		border-radius: 50%;
		background: #101d34;
		color: #ffca42;
	}
	.market-filter-toggle {
		gap: 7px;
		padding: 0 14px;
		border-color: rgba(255, 184, 0, .58);
		border-radius: 999px;
		background: linear-gradient(135deg, #ffd044, #f1a600);
		color: #111827;
		font-size: 11px;
		font-weight: 900;
	}
	.market-filter-form { grid-column: 1 / -1; }
	.market-filter-body { display: none; padding-top: 5px; }
	.market-filter-panel.is-open .market-filter-body { display: block; }
	.market-filter-groups { grid-template-columns: 1fr; gap: 9px; }
	.market-filter-group--category { grid-column: auto; }
	.market-filter-group--level { columns: 4 44px; }
	.market-filter-form > .market-filter-body > .form-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 390px) {
	.market-filter-toggle span { display: none; }
	.market-filter-toggle { width: 46px; padding: 0; }
}

/* Market purchase checkout */
.market-buy-page {
	width: min(1180px, calc(100% - 32px));
	margin: 38px auto 70px;
	color: #e8efff;
}

.market-buy-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.market-buy-heading__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
	color: #ffbd17;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.market-buy-heading h1 {
	margin: 0;
	color: #fff;
	font-family: var(--font-heading, inherit);
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1;
	text-transform: uppercase;
}

.market-buy-heading p {
	margin: 11px 0 0;
	color: #91a2c1;
	font-size: 14px;
}

.market-buy-back {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 17px;
	border: 1px solid #314a73;
	border-radius: 12px;
	background: #101d35;
	color: #cbd7ed;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	transition: .2s ease;
}

.market-buy-back:hover {
	border-color: #ffb800;
	color: #ffca43;
	transform: translateY(-2px);
}

.market-buy-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
	gap: 18px;
}

.market-buy-product,
.market-buy-summary,
.market-buy-alert {
	border: 1px solid #29436d;
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(31, 51, 87, .96), rgba(15, 29, 53, .98));
	box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.market-buy-product {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 470px;
	padding: 48px 34px 38px;
	overflow: hidden;
}

.market-buy-product::before {
	position: absolute;
	top: -140px;
	left: 50%;
	width: 430px;
	height: 430px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 184, 0, .14), transparent 68%);
	content: '';
	transform: translateX(-50%);
	pointer-events: none;
}

.market-buy-product__label {
	position: absolute;
	top: 23px;
	left: 25px;
	padding: 7px 11px;
	border: 1px solid rgba(255, 190, 25, .45);
	border-radius: 8px;
	background: rgba(255, 184, 0, .1);
	color: #ffc633;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.market-buy-product__image {
	position: relative;
	display: grid;
	place-items: center;
	width: 210px;
	height: 210px;
	border: 2px solid rgba(255, 187, 15, .65);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, #253d67, #081322 72%);
	box-shadow: inset 0 0 35px rgba(66, 126, 203, .22), 0 18px 38px rgba(0, 0, 0, .32);
	cursor: help;
}

.market-buy-product__image img {
	max-width: 145px;
	max-height: 145px;
	object-fit: contain;
}

.market-buy-product__image > span {
	position: absolute;
	right: 13px;
	bottom: 13px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 8px;
	border-radius: 8px;
	background: rgba(4, 11, 23, .88);
	color: #9fb1ce;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
}

.market-buy-product__name {
	width: 100%;
	margin-top: 25px;
	font-size: clamp(17px, 2vw, 24px);
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}

.market-buy-product__name * {
	cursor: default !important;
	pointer-events: none;
}

.market-buy-product__hint {
	margin: 11px 0 0;
	color: #7f91b0;
	font-size: 12px;
	text-align: center;
}

.market-buy-product__hint i {
	margin-right: 5px;
	color: #ffc02b;
}

.market-buy-summary {
	padding: 26px;
	border-color: rgba(255, 184, 0, .55);
}

.market-buy-summary__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 17px;
	border-bottom: 1px solid #2d456b;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
}

.market-buy-summary__top i {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffd34e, #f5a900);
	color: #111827;
	box-shadow: 0 10px 24px rgba(255, 184, 0, .2);
}

.market-buy-summary__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	border-bottom: 1px solid rgba(52, 76, 115, .55);
	font-size: 12px;
}

.market-buy-summary__row > span {
	color: #8597b7;
	font-weight: 700;
	text-transform: uppercase;
}

.market-buy-summary__row > span i {
	width: 19px;
	color: #ffc02b;
	text-align: center;
}

.market-buy-summary__row strong,
.market-buy-summary__row a {
	color: #edf3ff;
	font-weight: 800;
	text-align: right;
}

.market-buy-summary__row a:hover {
	color: #ffc02b;
}

.market-buy-summary__price {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid rgba(255, 190, 30, .32);
	border-radius: 14px;
	background: rgba(255, 184, 0, .055);
}

.market-buy-summary__price > span,
.market-buy-summary__price > small {
	display: block;
	color: #8395b4;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.market-buy-summary__price > strong {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 6px 0;
	color: #ffc125;
	font-size: clamp(23px, 3vw, 32px);
	line-height: 1.1;
}

.market-buy-summary__price > strong span {
	color: #dfe8f8;
	font-size: .48em;
	font-weight: 800;
}

.market-buy-summary__price > strong img {
	max-width: 26px;
	max-height: 26px;
}

.market-buy-submit {
	display: grid;
	grid-template-columns: 24px 1fr 24px;
	align-items: center;
	width: 100%;
	min-height: 54px;
	margin-top: 17px;
	padding: 0 17px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #ffd044, #f5a900);
	color: #111827 !important;
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	box-shadow: 0 14px 30px rgba(255, 179, 0, .22);
	cursor: pointer;
	transition: .2s ease;
}

.market-buy-submit:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.market-buy-summary__notice {
	margin: 13px 0 0;
	color: #7f91ae;
	font-size: 10px;
	line-height: 1.5;
	text-align: center;
}

.market-buy-summary__notice i {
	margin-right: 4px;
	color: #5cdda0;
}

.market-buy-alert {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
	padding: 18px 20px;
}

.market-buy-alert > i {
	margin-top: 3px;
	font-size: 20px;
}

.market-buy-alert strong {
	display: block;
	margin-bottom: 3px;
	color: #fff;
	font-size: 14px;
}

.market-buy-alert p {
	margin: 0;
	color: #b8c5da;
}

.market-buy-alert--error {
	border-color: rgba(240, 76, 89, .5);
}

.market-buy-alert--error > i {
	color: #ff6673;
}

.market-buy-alert--success > i {
	color: #58dc9c;
}

@media (max-width: 860px) {
	.market-buy-checkout {
		grid-template-columns: 1fr;
	}

	.market-buy-product {
		min-height: 400px;
	}
}

@media (max-width: 560px) {
	.market-buy-page {
		width: min(100% - 20px, 1180px);
		margin-top: 22px;
	}

	.market-buy-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.market-buy-product,
	.market-buy-summary {
		padding: 21px 16px;
		border-radius: 15px;
	}

	.market-buy-product {
		min-height: 360px;
		padding-top: 58px;
	}

	.market-buy-product__image {
		width: 165px;
		height: 165px;
	}

	.market-buy-product__image img {
		max-width: 112px;
		max-height: 112px;
	}

	.market-buy-summary__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 10px 0;
	}

	.market-buy-summary__row strong,
	.market-buy-summary__row a {
		padding-left: 23px;
		text-align: left;
	}
}

.market-filter-column,
.market-results-column {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
}

.market-filter-panel {
	padding: 18px;
	border: 1px solid #294266;
	border-radius: 16px;
	background: linear-gradient(160deg, rgba(28, 46, 76, .98), rgba(10, 20, 38, .98));
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.market-filter-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(116, 145, 190, .2);
}

.market-filter-title > span {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: linear-gradient(135deg, #ffd04c, #f2a900);
	color: #111827;
}

.market-filter-title small,
.market-filter-title strong {
	display: block;
}

.market-filter-title small {
	color: #7589ad;
	font-size: 9px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.market-filter-title strong {
	color: #f4f7ff;
	font-size: 15px;
	text-transform: uppercase;
}

.market-search-form .form-group {
	display: grid !important;
	grid-template-columns: 1fr 42px;
	gap: 8px;
	margin: 0 0 16px;
}

.market-search-form .col-sm-8,
.market-search-form .col-auto {
	width: auto;
	max-width: none;
	padding: 0;
}

.market-search-form input {
	height: 42px;
	border: 1px solid #304a70 !important;
	border-radius: 10px !important;
	background: #091427 !important;
	color: #edf3ff !important;
}

.market-search-form button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border-radius: 10px !important;
}

.market-filter-form > label {
	display: block;
	margin: 18px 0 9px !important;
	color: #ffbf23;
	font-size: 10px !important;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.market-filter-form > div[style*="border-bottom"] {
	display: none !important;
}

.market-filter-form input[type="checkbox"],
.market-filter-form input[type="radio"] {
	width: 15px;
	height: 15px;
	margin: 0 6px 9px 0;
	accent-color: #ffb800;
	vertical-align: -3px;
}

.market-filter-form {
	color: #c3cee2;
	font-size: 11px;
	line-height: 1.55;
}

.market-filter-form .form-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 20px !important;
}

.market-filter-form .form-group button {
	min-width: 0;
	padding: 10px 7px !important;
	border-radius: 9px !important;
	font-size: 9px !important;
}

.market-empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 360px;
	padding: 40px;
	border: 1px dashed #355178;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(26, 43, 71, .72), rgba(8, 17, 32, .75));
	color: #8295b7;
	text-align: center;
}

.market-empty-state i {
	margin-bottom: 16px;
	color: #ffb800;
	font-size: 42px;
}

.market-empty-state h3 {
	margin: 0 0 7px;
	color: #f4f7ff;
	font-size: 22px;
}

.market-empty-state p {
	margin: 0;
}

.market-view-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 16px;
}

.market-view-toolbar > span {
	margin-right: auto;
	color: #92a3c4;
	font-size: 12px;
	text-transform: uppercase;
}

.market-view-toolbar button {
	padding: 10px 14px;
	border: 1px solid #294266;
	border-radius: 10px;
	background: #101d34;
	color: #9fb0cd;
	cursor: pointer;
}

.market-view-toolbar button.active {
	border-color: #ffb800;
	background: linear-gradient(135deg, #ffc83d, #f3a500);
	color: #111827;
}

.market-items-view--grid .market-items-table,
.market-items-view--grid .market-items-table tbody {
	display: block;
}

.market-items-view--grid .market-items-table thead {
	display: none;
}

.market-items-view--grid .market-items-table tbody {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 26px 18px;
	padding-top: 54px;
	overflow: visible;
}

.market-items-view--grid .market-item-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	grid-template-rows: 1fr auto;
	align-items: end;
	min-width: 0;
	min-height: 238px;
	margin-bottom: 26px;
	padding: 58px 16px 16px;
	border: 1px solid #294266;
	border-radius: 18px;
	background:
		radial-gradient(ellipse at 50% 5%, rgba(59, 97, 153, .3), transparent 55%),
		linear-gradient(145deg, rgba(31, 49, 79, .98), rgba(13, 25, 45, .98));
	box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
	text-align: center;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.market-items-view--grid .market-item-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 184, 0, .62);
	box-shadow: 0 18px 36px rgba(0, 0, 0, .3), 0 0 20px rgba(255, 184, 0, .08);
}

.market-items-view--grid .market-item-card td {
	display: block;
	width: 100%;
	padding: 7px !important;
	border: 0 !important;
}

.market-items-view--grid .market-item-card td:first-child {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	width: auto;
	padding: 0 !important;
}

.market-items-view--grid .market-item-card td:first-child img {
	max-width: 34px;
	max-height: 18px;
}

.market-items-view--grid .market-item-card td[data-label]::before {
	display: none;
	content: none;
}

.market-buy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 12px;
	padding: 7px 16px;
	border-radius: 999px;
	background: #ffb800;
	color: #111827 !important;
	font-weight: 700;
	text-transform: uppercase;
}

.market-items-view--list .market-items-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #294266;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(14, 27, 49, .82);
}

.market-items-view--list .market-items-table th:nth-child(1),
.market-items-view--list .market-items-table td:nth-child(1) {
	width: 7%;
	text-align: center;
}

.market-items-view--list .market-items-table th:nth-child(2),
.market-items-view--list .market-items-table td:nth-child(2) {
	width: 43%;
}

.market-items-view--list .market-items-table th:nth-child(3),
.market-items-view--list .market-items-table td:nth-child(3) {
	width: 18%;
}

.market-items-view--list .market-items-table th:nth-child(4),
.market-items-view--list .market-items-table td:nth-child(4) {
	width: 32%;
}

.market-items-view--list .market-items-table thead th {
	padding: 15px 18px;
	border-bottom: 1px solid #334d73;
	background: linear-gradient(180deg, #253a5e, #1c2f50);
	color: #d9e4f7;
	font-size: 11px;
	letter-spacing: .04em;
}

.market-items-view--list .market-item-card td {
	padding: 12px 18px !important;
	border-top: 1px solid rgba(75, 105, 149, .25) !important;
	vertical-align: middle;
}

.market-items-view--list .market-item-card:first-child td {
	border-top: 0 !important;
}

.market-items-view--list .market-item-card:hover td {
	background: rgba(42, 67, 105, .28);
}

.market-meta-label {
	display: block;
	margin-bottom: 7px;
	color: #7f92b2;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.market-meta-label i {
	margin-right: 4px;
	color: #ffbd21;
}

.market-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
}

.market-price-row > strong {
	white-space: nowrap;
}

.market-items-view--list .market-meta-label {
	display: none;
}

.market-items-view--list .market-merchant > strong {
	display: block;
}

.market-items-view--list .market-buy-button {
	margin-left: auto;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.market-items-view--list .market-items-table th:nth-child(3),
	.market-items-view--list .market-items-table td:nth-child(3),
	.market-items-view--list .market-items-table th:nth-child(4) {
		text-align: center;
	}
	.market-items-view--list .market-price-row {
		position: relative;
		justify-content: flex-end;
		min-height: 38px;
	}
	.market-items-view--list .market-price-row > strong {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
	}
}

.market-items-view--list .market-items-table tbody td,
.market-items-view--list .market-items-table tbody a,
.market-items-view--list .market-items-table tbody strong {
	font-family: var(--body, "Inter", system-ui, "Segoe UI", sans-serif) !important;
}
.market-items-view--list .market-merchant > strong,
.market-items-view--list .market-price-row > strong {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.25;
	letter-spacing: 0 !important;
}
.market-items-view--list .market-item-name a {
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3;
}

.market-filter-mobile-actions .market-filter-reset,
.market-filter-mobile-actions .market-filter-toggle {
	cursor: pointer !important;
}

.market-item-main {
	vertical-align: middle;
}

.market-item-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-right: 14px;
	border: 1px solid rgba(93, 132, 188, .38);
	border-radius: 12px;
	background: radial-gradient(circle, rgba(75, 112, 165, .35), rgba(8, 17, 32, .85));
	vertical-align: middle;
}

.market-item-thumb img {
	max-width: 50px;
	max-height: 50px;
	object-fit: contain;
}

.market-item-name {
	display: inline-block;
	max-width: calc(100% - 78px);
	vertical-align: middle;
}

.market-items-view--grid .market-item-main {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	grid-column: 1 / -1;
	align-self: stretch;
	padding: 0 6px 8px !important;
}

.market-items-view--grid .market-item-thumb {
	position: absolute;
	top: -42px;
	left: 50%;
	z-index: 4;
	width: 98px;
	height: 98px;
	margin: 0;
	border-color: rgba(255, 184, 0, .42);
	border-width: 3px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(92, 128, 179, .48), rgba(10, 20, 37, .92) 70%);
	box-shadow: inset 0 0 25px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .28);
	transform: translateX(-50%);
}

.market-items-view--grid .market-item-thumb img {
	max-width: 78px;
	max-height: 78px;
}

.market-items-view--grid .market-item-name {
	max-width: 100%;
	min-height: 34px;
	font-weight: 700;
	line-height: 1.35;
}

.market-items-view--grid .market-item-card td[data-label] {
	margin-top: 3px;
}

.market-items-view--grid .market-buy-button {
	margin: 12px 0 0;
	padding: 9px 22px;
}

.market-items-view--grid .market-price-row {
	align-items: flex-end;
	justify-content: flex-end;
	flex-direction: column;
	gap: 8px;
}

.market-items-view--grid .market-price,
.market-items-view--grid .market-merchant {
	align-self: stretch;
	padding: 12px 7px 0 !important;
	border-top: 1px solid rgba(var(--rarity-rgb), .16) !important;
}

.market-items-view--grid .market-merchant {
	text-align: left;
}

.market-items-view--grid .market-price {
	text-align: right;
}

.market-items-view--grid .market-meta-label {
	margin-bottom: 4px;
}

.market-items-view--grid .market-buy-button {
	margin: 0;
	padding: 8px 15px;
	font-size: 12px;
}

.market-item-card {
	--rarity-rgb: 78, 112, 163;
	--rarity-color: #6688b8;
}

.market-item-card.market-rarity-yellow {
	--rarity-rgb: 255, 190, 35;
	--rarity-color: #ffbe23;
}

.market-item-card.market-rarity-excellent {
	--rarity-rgb: 43, 225, 102;
	--rarity-color: #2be166;
}

.market-item-card.market-rarity-ancient {
	--rarity-rgb: 105, 223, 211;
	--rarity-color: #69dfd3;
}

.market-item-card.market-rarity-socket {
	--rarity-rgb: 201, 91, 255;
	--rarity-color: #c95bff;
}

.market-item-card.market-rarity-socket-excellent {
	--rarity-rgb: 92, 235, 177;
	--rarity-color: #5cebb1;
}

.market-items-view--grid .market-item-card {
	border-color: rgba(var(--rarity-rgb), .3);
	background:
		radial-gradient(ellipse at 50% 5%, rgba(var(--rarity-rgb), .2), transparent 56%),
		linear-gradient(115deg, transparent 18%, rgba(var(--rarity-rgb), .045) 49%, transparent 72%),
		linear-gradient(145deg, rgba(31, 49, 79, .98), rgba(13, 25, 45, .98));
}

.market-items-view--grid .market-item-thumb {
	border-color: rgba(var(--rarity-rgb), .5);
	background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .2), rgba(var(--rarity-rgb), .2) 45%, rgba(9, 18, 33, .96) 78%);
	box-shadow: inset 0 0 28px rgba(var(--rarity-rgb), .12), 0 8px 20px rgba(0, 0, 0, .35), 0 0 16px rgba(var(--rarity-rgb), .13);
}

.market-items-view--grid .market-item-card:hover {
	border-color: rgba(var(--rarity-rgb), .72);
	box-shadow: 0 18px 36px rgba(0, 0, 0, .3), 0 0 22px rgba(var(--rarity-rgb), .12);
}

.market-items-view--list .market-item-card td {
	background: linear-gradient(90deg, rgba(var(--rarity-rgb), .035), transparent 58%);
}

@media (max-width: 1050px) {
	.market-browser-layout { grid-template-columns: 230px minmax(0, 1fr); }
	.market-items-view--grid .market-items-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
	.market-browser-layout { grid-template-columns: 1fr; }
	.market-items-view--grid .market-items-table tbody { grid-template-columns: 1fr; }
	.market-view-toolbar > span { display: none; }
}

/* Dedicated marketplace cards */
.market-card-grid {
	display: none;
}

.market-items-view--grid .market-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
	padding: 8px 0 4px;
}

.market-items-view--grid > .market-items-table {
	display: none !important;
}

.market-items-view--list .market-card-grid {
	display: none;
}

.market-product-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 328px;
	padding: 22px;
	overflow: hidden;
	border: 1px solid rgba(var(--rarity-rgb), .3);
	border-radius: 20px;
	background:
		radial-gradient(circle at 50% 20%, rgba(var(--rarity-rgb), .2), transparent 37%),
		linear-gradient(145deg, rgba(30, 48, 79, .98), rgba(11, 23, 42, .99));
	box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
	text-align: center;
	flex-direction: column;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.market-product-card::before {
	position: absolute;
	top: -70px;
	left: 50%;
	width: 250px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--rarity-rgb), .16), transparent 68%);
	content: '';
	transform: translateX(-50%);
	pointer-events: none;
}

.market-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--rarity-rgb), .7);
	box-shadow: 0 20px 42px rgba(0, 0, 0, .34), 0 0 24px rgba(var(--rarity-rgb), .1);
}

.market-product-card__badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 25px;
	height: 20px;
	color: #ffca48;
	font-size: 10px;
	font-weight: 800;
}

.market-product-card__badge img {
	max-width: 34px;
	max-height: 18px;
}

.market-product-card__image {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 118px;
	height: 118px;
	margin: 4px auto 17px;
	border: 3px solid rgba(var(--rarity-rgb), .56);
	border-radius: 50%;
	background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .16), rgba(var(--rarity-rgb), .16) 46%, #091426 78%);
	box-shadow: inset 0 0 28px rgba(0, 0, 0, .38), 0 10px 24px rgba(0, 0, 0, .3), 0 0 16px rgba(var(--rarity-rgb), .12);
}

.market-product-card__image img {
	max-width: 94px;
	max-height: 94px;
	object-fit: contain;
}

.market-product-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex: 1;
	flex-direction: column;
}

.market-product-card__name {
	display: block;
	min-height: 42px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.market-product-card__merchant {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.market-product-card__merchant small,
.market-product-card__footer small {
	display: block;
	color: #7f92b2;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.market-product-card__merchant small i {
	color: var(--rarity-color);
}

.market-product-card__merchant strong {
	color: #eaf0fb;
	font-size: 13px;
}

.market-product-card__footer {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: 16px;
	padding-top: 15px;
	border-top: 1px solid rgba(var(--rarity-rgb), .18);
	text-align: left;
}

.market-product-card__footer strong {
	display: block;
	margin-top: 4px;
	color: #f2f6ff;
	font-size: 15px;
	white-space: nowrap;
}

.market-product-card__footer .market-buy-button {
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 16px;
	box-shadow: 0 8px 18px rgba(255, 184, 0, .16);
}

@media (max-width: 720px) {
	.market-items-view--grid .market-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	}
}

/* Horizontal card presentation */
.market-items-view--grid .market-card-grid {
	grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
	gap: 22px;
}

.market-product-card {
	display: grid;
	grid-template-columns: minmax(190px, 42%) minmax(0, 58%);
	grid-template-rows: 1fr auto;
	min-height: 310px;
	padding: 28px;
	text-align: left;
}

.market-product-card__image {
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
	width: 174px;
	height: 174px;
	margin: 0 auto;
}

.market-product-card__image img {
	max-width: 142px;
	max-height: 142px;
}

.market-product-card__body {
	grid-column: 2;
	grid-row: 1;
	align-items: flex-start;
	justify-content: center;
	padding: 8px 0 20px 34px;
	border-left: 1px solid rgba(var(--rarity-rgb), .2);
}

.market-product-card__name {
	width: 100%;
	min-height: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(var(--rarity-rgb), .2);
	font-size: 21px;
	line-height: 1.35;
}

.market-product-card__merchant {
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	margin-top: 18px;
	padding: 0;
	gap: 5px;
	flex-direction: column;
}

.market-product-card__merchant small {
	font-size: 10px;
}

.market-product-card__merchant strong {
	font-size: 18px;
}

.market-product-card__footer {
	grid-column: 2;
	grid-row: 2;
	display: grid;
	grid-template-columns: 1fr;
	padding: 18px 0 0 34px;
	border-top: 1px solid rgba(var(--rarity-rgb), .2);
	border-left: 1px solid rgba(var(--rarity-rgb), .2);
}

.market-product-card__footer strong {
	font-size: 20px;
}

.market-product-card__footer .market-buy-button {
	width: 100%;
	margin-top: 14px;
	padding: 12px 18px;
	font-size: 14px;
}

@media (max-width: 760px) {
	.market-items-view--grid .market-card-grid {
		grid-template-columns: 1fr;
	}

	.market-product-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		padding: 24px;
		text-align: center;
	}

	.market-product-card__image {
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto 18px;
	}

	.market-product-card__body,
	.market-product-card__footer {
		grid-column: 1;
		padding-left: 0;
		border-left: 0;
	}

	.market-product-card__body {
		grid-row: 2;
		align-items: center;
	}

	.market-product-card__footer {
		grid-row: 3;
	}

	.market-product-card__merchant {
		align-items: center;
	}
}

/* Compact four-column cards */
.market-items-view--grid .market-card-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.market-product-card {
	grid-template-columns: 86px minmax(0, 1fr);
	min-height: 188px;
	padding: 14px;
	border-radius: 15px;
}

.market-product-card__badge {
	top: 9px;
	left: 9px;
}

.market-product-card__image {
	width: 76px;
	height: 76px;
}

.market-product-card__image img {
	max-width: 61px;
	max-height: 61px;
}

.market-product-card__body {
	padding: 3px 0 10px 13px;
}

.market-product-card__name {
	padding-bottom: 9px;
	font-size: 12px;
}

.market-product-card__merchant {
	margin-top: 9px;
}

.market-product-card__merchant small,
.market-product-card__footer small {
	font-size: 8px;
}

.market-product-card__merchant strong {
	font-size: 12px;
}

.market-product-card__footer {
	padding: 10px 0 0 13px;
}

.market-product-card__footer strong {
	font-size: 12px;
}

.market-product-card__footer .market-buy-button {
	margin-top: 8px;
	padding: 7px 10px;
	font-size: 10px;
}

@media (max-width: 1280px) {
	.market-items-view--grid .market-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.market-items-view--grid .market-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.market-items-view--grid .market-card-grid {
		grid-template-columns: 1fr;
	}
}

/* Card content alignment */
.market-items-view--grid .market-product-card {
	min-height: 190px;
	margin-bottom: 0;
	padding: 14px;
}

.market-product-card {
	grid-template-columns: 86px minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	min-height: 205px;
}

.market-product-card__body {
	display: contents;
}

.market-product-card__name {
	grid-column: 1 / -1;
	grid-row: 1;
	width: 100%;
	min-height: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid rgba(var(--rarity-rgb), .2);
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
	word-break: normal;
	overflow-wrap: anywhere;
}

.market-product-card__name,
.market-product-card__name a,
.market-product-card__name div,
.market-product-card__name span {
	cursor: default !important;
}

.market-product-card__name > a {
	display: block;
	width: 100%;
	pointer-events: none;
}

.market-product-card__badge {
	top: auto;
	right: auto;
	bottom: 12px;
	left: -38px;
	z-index: 6;
	width: 142px;
	min-width: 0;
	height: auto;
	padding: 6px;
	border: 0;
	border-radius: 0;
	background: #243a5c;
	color: #ffca48;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .04em;
	box-shadow: 0 7px 15px rgba(0, 0, 0, .22);
	text-align: center;
	text-transform: uppercase;
	transform: rotate(38deg);
}

.market-product-card__badge.is-new {
	background: linear-gradient(135deg, #ffd044, #f5a900);
	color: #111827 !important;
	font-size: 0;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
	box-shadow: 0 7px 16px rgba(255, 184, 0, .24);
}

.market-product-card__badge.is-new img,
.market-product-card__badge.is-new i {
	display: none !important;
}

.market-product-card__badge.is-new::after {
	color: #111827;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .08em;
	content: 'NEW';
}

.market-product-card__badge i {
	margin-right: 4px;
	font-size: 8px;
}

.market-product-card__image {
	grid-column: 1;
	grid-row: 2 / 4;
	align-self: center;
	width: 76px;
	height: 76px;
	margin: 10px 10px 0 0;
}

.market-product-card__merchant {
	grid-column: 2;
	grid-row: 2;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 10px 0 6px 13px;
	border-left: 1px solid rgba(var(--rarity-rgb), .18);
	text-align: left;
}

.market-product-card__footer {
	grid-column: 2;
	grid-row: 3;
	padding: 9px 0 0 13px;
	border-top: 1px solid rgba(var(--rarity-rgb), .18);
	border-left: 1px solid rgba(var(--rarity-rgb), .18);
}

@media (max-width: 480px) {
	.market-product-card {
		grid-template-columns: 68px minmax(0, 1fr);
		min-height: 174px;
		padding: 12px;
	}

	.market-product-card__name {
		padding-right: 8px;
		font-size: 12px;
	}

	.market-product-card__image {
		grid-column: 1;
		grid-row: 2 / 4;
		width: 60px;
		height: 60px;
		margin-right: 8px;
	}

	.market-product-card__image img {
		max-width: 48px;
		max-height: 48px;
	}

	.market-product-card__merchant {
		grid-column: 2;
		grid-row: 2;
		align-items: flex-start;
	}

	.market-product-card__footer {
		grid-column: 2;
		grid-row: 3;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: end;
		gap: 8px;
	}

	.market-product-card__footer .market-buy-button {
		width: auto;
		margin: 0;
		padding: 7px 10px;
	}
}

/* Final responsive overrides for the v21 filter toolbar. */
.market-type-tabs {
	display: inline-flex;
	gap: 4px;
	margin: 0 0 12px;
	padding: 4px;
	border: 1px solid #30496e;
	border-radius: 999px;
	background: #091529;
}
.market-type-tabs button {
	padding: 7px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #91a3c0;
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}
.market-type-tabs button.active {
	background: linear-gradient(135deg, #ffd044, #f1a600);
	box-shadow: 0 7px 17px rgba(255, 180, 0, .2);
	color: #111827;
}
.market-icon-filter[hidden] { display: none !important; }

@media (max-width: 600px) {
	.market-browser-layout { display: block !important; }
	.market-filter-column,
	.market-results-column { width: 100% !important; max-width: none !important; }
	.market-filter-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 9px;
		padding: 12px;
	}
	.market-filter-title { display: none !important; }
	.market-search-form { position: relative; min-width: 0; }
	.market-search-form .form-group { display: block !important; margin: 0 !important; }
	.market-search-form .col-sm-8 { width: 100%; max-width: none; }
	.market-search-form .col-auto { display: none !important; }
	.market-search-form input { width: 100%; height: 46px; padding-left: 42px !important; border-radius: 999px !important; }
	.market-filter-mobile-actions { display: flex !important; gap: 7px; }
	.market-filter-form { grid-column: 1 / -1; }
	.market-filter-body { display: none !important; }
	.market-filter-panel.is-open .market-filter-body { display: block !important; }
	.market-filter-groups { display: grid; grid-template-columns: 1fr; gap: 9px; }
	.market-filter-group--category { grid-column: auto; }
	.market-type-tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
	.market-type-tabs button { padding-inline: 7px; }
}
/* Market filter v22 */
.market-filter-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.market-filter-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(116, 151, 204, .24);
    border-radius: 16px;
    background: rgba(7, 18, 38, .52);
}

.market-filter-group legend {
    width: auto;
    margin: 0 0 12px;
    padding: 0 7px;
    color: #f4f7ff;
    font-family: var(--theme-font, inherit);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.market-filter-group--category,
.market-filter-group--excellent,
.market-filter-group--class,
.market-filter-group--rank,
.market-filter-group--quick {
    grid-column: 1 / -1;
}

.market-category-icons,
.market-class-icons,
.market-rank-options,
.market-quick-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.market-icon-filter,
.market-class-icons label,
.market-rank-options label,
.market-quick-options label,
.market-excellent-options label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.market-icon-filter input,
.market-class-icons input,
.market-rank-options input,
.market-quick-options input,
.market-excellent-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.market-icon-filter > span,
.market-class-icons label > span {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: visible;
    border: 1px solid rgba(116, 151, 204, .25);
    border-radius: 14px;
    color: #9eacc9;
    background: #0a1730;
    transition: .2s ease;
}

.market-icon-filter i { font-size: 19px; }

.market-class-icons label > span {
    border-radius: 50%;
    overflow: visible;
}

.market-class-icons img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.market-icon-filter em,
.market-class-icons em {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 9px);
    width: max-content;
    max-width: 210px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 184, 0, .45);
    border-radius: 7px;
    color: #fff;
    background: #081225;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    text-align: center;
    transform: translate(-50%, 5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .16s ease;
}

.market-icon-filter:hover em,
.market-icon-filter:focus-within em,
.market-class-icons label:hover em,
.market-class-icons label:focus-within em {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.market-icon-filter input:checked + span,
.market-class-icons input:checked + span {
    border-color: #ffb800;
    color: #ffbf21;
    background: linear-gradient(145deg, rgba(255, 184, 0, .22), #0b1932 62%);
    box-shadow: 0 0 18px rgba(255, 184, 0, .2);
}

.market-type-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 13px;
    padding: 4px;
    border: 1px solid rgba(116, 151, 204, .25);
    border-radius: 999px;
    background: #08152b;
}

.market-type-tabs button {
    min-width: 94px;
    padding: 9px 17px;
    border: 0;
    border-radius: 999px;
    color: #9daac5;
    background: transparent;
    font-weight: 700;
}

.market-type-tabs button.active {
    color: #111827;
    background: linear-gradient(135deg, #ffd13b, #ffad00);
    box-shadow: 0 5px 15px rgba(255, 174, 0, .25);
}

.market-excellent-options[hidden] { display: none !important; }
.market-excellent-options.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.market-excellent-options label span,
.market-rank-options label span,
.market-quick-options label span {
    display: block;
    padding: 8px 12px;
    border: 1px solid rgba(116, 151, 204, .26);
    border-radius: 999px;
    color: #a9b5cf;
    background: #09162d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: .2s ease;
}

.market-excellent-options input:checked + span,
.market-quick-options input:checked + span,
.market-exe-shortcut.is-active span {
    border-color: #ffb800;
    color: #ffd05a;
    background: rgba(255, 184, 0, .13);
}

.market-rank-options label span { color: var(--rank-color); }
.market-rank-options input:checked + span {
    border-color: var(--rank-color);
    background: color-mix(in srgb, var(--rank-color) 16%, #09162d);
    box-shadow: 0 0 13px color-mix(in srgb, var(--rank-color) 26%, transparent);
}

@media (max-width: 767px) {
    .market-filter-groups { grid-template-columns: 1fr; }
    .market-filter-group { grid-column: 1; padding: 12px 9px; }
    .market-category-icons, .market-class-icons { gap: 7px; }
    .market-icon-filter > span, .market-class-icons label > span { width: 44px; height: 44px; border-radius: 12px; }
    .market-class-icons label > span { border-radius: 50%; }
    .market-class-icons img { width: 38px; height: 38px; }
    .market-type-tabs { width: 100%; }
    .market-type-tabs button { flex: 1; min-width: 0; padding-inline: 8px; }
    .market-excellent-options label span { padding: 7px 9px; font-size: 10px; }
}

/* Compact market filter v23 */
.market-filter-panel {
    padding: 12px 16px !important;
    border-radius: 18px !important;
}

.market-filter-title { display: none !important; }
.market-filter-body { padding: 0 !important; }
.market-filter-groups {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 7px 12px !important;
}

.market-filter-group,
.market-filter-group--category,
.market-filter-group--excellent,
.market-filter-group--quick,
.market-filter-group--class,
.market-filter-group--rank,
.market-filter-group--price {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 4px !important;
    border: 1px solid rgba(116, 151, 204, .22) !important;
    border-radius: 999px !important;
    background: rgba(5, 15, 32, .55) !important;
}

.market-filter-group--category,
.market-filter-group--excellent,
.market-filter-group--class,
.market-filter-group--rank,
.market-filter-group--price { flex: 0 0 auto; }
.market-filter-group--category { order: 1; }
.market-filter-group--excellent { order: 2; }
.market-filter-group--class { order: 3; }
.market-filter-group--rank { order: 4; }
.market-filter-group--price { order: 5; }

.market-filter-group--category {
    justify-content: space-between;
}
.market-filter-group--category .market-category-icons { min-width: 0; }
.market-filter-group--category .market-quick-options {
    flex: 0 0 auto;
    padding-left: 10px;
    border-left: 1px solid rgba(126, 151, 194, .25);
}

.market-filter-group legend {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.market-category-icons,
.market-class-icons,
.market-rank-options,
.market-quick-options,
.market-excellent-options.active {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 2px !important;
}

.market-icon-filter > span,
.market-class-icons label > span {
    width: 37px !important;
    height: 37px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
}

.market-icon-filter i { font-size: 15px !important; }
.market-class-icons img { width: 32px !important; height: 32px !important; }

.market-icon-filter + .market-icon-filter {
    margin-left: 2px;
    padding-left: 5px;
    border-left: 1px solid rgba(126, 151, 194, .2);
}

.market-category-icons {
    padding: 2px 7px;
    border: 1px solid rgba(93, 127, 181, .2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(5, 13, 29, .86), rgba(8, 20, 42, .72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        inset 0 -8px 18px rgba(0, 0, 0, .15),
        0 7px 18px rgba(0, 0, 0, .11);
}
.market-category-icons .market-icon-filter + .market-icon-filter {
    border-left-color: rgba(117, 145, 190, .24);
}

.market-filter-group--class,
.market-filter-group--rank { justify-content: center; }
.market-class-icons,
.market-rank-options {
    width: 100%;
    justify-content: center !important;
}

.market-filter-group--excellent .market-rank-options {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid rgba(126, 151, 194, .24);
}
.market-filter-group--excellent .market-rank-options label + label {
    margin-left: 1px;
}
.market-class-icons label,
.market-class-icons label > span {
    display: inline-grid !important;
    place-items: center !important;
    line-height: 0;
}

.market-type-tabs {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 0 4px 0 !important;
    padding: 2px !important;
}

.market-type-tabs button {
    min-width: 72px !important;
    padding: 7px 11px !important;
    font-size: 11px;
}

.market-excellent-panels {
    flex: 1 1 auto;
    min-width: 0;
}
.market-excellent-options.active {
    display: flex !important;
    align-items: center;
}
.market-excellent-options label span,
.market-rank-options label span,
.market-quick-options label span {
    min-width: 43px;
    padding: 7px 10px !important;
    text-align: center;
}

/* Payment type filter: Zen / Credits / Jewels */
.market-filter-group--price {
    justify-content: flex-end;
    min-height: 42px;
}
.market-price-options {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 2px 7px;
    border: 1px solid rgba(93, 127, 181, .2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(5, 13, 29, .86), rgba(8, 20, 42, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), inset 0 -8px 18px rgba(0, 0, 0, .15), 0 7px 18px rgba(0, 0, 0, .11);
}
.market-price-options label {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 5px;
    cursor: pointer;
}
.market-price-options label + label {
    margin-left: 2px;
    padding-left: 9px;
}
.market-price-options label + label::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(126, 151, 194, .48), transparent);
    box-shadow: 0 0 6px rgba(75, 121, 190, .34), 0 0 12px rgba(18, 53, 105, .2);
    pointer-events: none;
}
.market-price-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.market-price-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    min-height: 31px;
    padding: 7px 10px;
    border: 1px solid rgba(116, 151, 204, .26);
    border-radius: 999px;
    color: #a9b5cf;
    background: #09162d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    transition: .18s ease;
}
.market-price-options span i {
    color: #ffbf21;
    font-size: 10px;
}
.market-price-options span img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}
.market-price-options input:checked + span {
    border-color: #ffb800;
    color: #ffd05a;
    background: rgba(255, 184, 0, .13);
    box-shadow: 0 0 13px rgba(255, 184, 0, .15);
}

.market-level-filter {
    display: flex !important;
    align-items: center;
    gap: 0;
    width: 80px;
    height: 31px;
    padding: 2px;
    border: 1px solid rgba(116, 151, 204, .26);
    border-radius: 999px;
    background: #09162d;
}

.market-level-filter > span {
    width: 32px !important;
    min-width: 32px !important;
    height: 25px;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(126, 151, 194, .22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 9px !important;
    letter-spacing: .04em;
}

.market-level-filter select {
    width: 44px;
    min-width: 44px;
    height: 25px;
    padding: 0 14px 0 7px;
    border: 0;
    border-radius: 999px;
    outline: 0;
    color: #a9b5cf !important;
    background-color: #09162d !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #ffbf21 50%),
        linear-gradient(135deg, #ffbf21 50%, transparent 50%);
    background-position: calc(100% - 9px) 10px, calc(100% - 6px) 10px;
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    appearance: none;
    -webkit-appearance: none;
    font-size: 9px;
    font-weight: 700;
}

.market-level-filter:hover,
.market-level-filter:focus-within {
    border-color: rgba(255, 184, 0, .7);
    box-shadow: 0 0 12px rgba(255, 184, 0, .12);
}
.market-level-filter select option {
    color: #eef3ff;
    background: #09162d;
}

/* Collapsible filter header */
@media (min-width: 768px) {
    .market-filter-panel {
        display: grid;
        grid-template-columns: minmax(260px, .9fr) minmax(410px, 1.1fr) auto;
        align-items: center;
        gap: 8px 10px;
    }
    .market-filter-panel > script,
    .market-filter-panel > .market-filter-title { display: none !important; }
    .market-search-form { grid-column: 1; grid-row: 1; margin: 0; }
    .market-filter-mobile-actions {
        position: static !important;
        grid-column: 3;
        grid-row: 1;
        display: flex !important;
        gap: 7px;
    }
    .market-filter-mobile-actions button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 38px;
        padding: 0 14px !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }
    .market-filter-reset { width: auto !important; }
    .market-filter-toggle { display: inline-flex !important; }
    .market-filter-form,
    .market-filter-body,
    .market-filter-groups { display: contents !important; }
    .market-filter-group--class {
        grid-column: 2;
        grid-row: 1;
        order: initial;
        height: 42px;
        overflow: hidden;
    }
    .market-filter-group--category,
    .market-filter-group--excellent,
    .market-filter-group--rank {
        grid-column: 1 / -1;
        width: 100%;
    }
    .market-filter-group--price {
        grid-column: 1 / -1;
        grid-row: 4;
        width: max-content;
        max-width: 100%;
        justify-self: end;
        border-color: transparent !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .market-filter-group--category { grid-row: 2; }
    .market-filter-group--excellent { grid-row: 3; }
    .market-filter-group--rank { grid-row: 4; }
    .market-filter-panel:not(.is-open) .market-filter-group--category,
    .market-filter-panel:not(.is-open) .market-filter-group--excellent,
    .market-filter-panel:not(.is-open) .market-filter-group--rank,
    .market-filter-panel:not(.is-open) .market-filter-group--price { display: none !important; }
}

[data-filter-tip] { position: relative; }
[data-filter-tip]::after {
    content: attr(data-filter-tip);
    position: absolute;
    z-index: 100;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    padding: 6px 10px;
    border: 1px solid #d7a900;
    border-radius: 7px;
    color: #f7f9ff;
    background: #081225;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .42);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    transform: translate(-50%, 4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .15s ease;
}

[data-filter-tip]:hover::after,
[data-filter-tip]:focus::after,
[data-filter-tip]:focus-within::after {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.market-filter-form .form-group { display: none; }
.market-search-form .form-group { margin-bottom: 7px !important; }
.market-search-form .form-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
}
.market-search-form .col-sm-8 { flex: 1 1 auto; max-width: none; padding-right: 0; }
.market-search-form .col-auto { flex: 0 0 auto; padding-left: 0; }
.market-search-form .form-control { height: 38px; border-radius: 999px; }
.market-search-form button { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; }

.market-results-column {
    position: relative;
    transition: opacity .18s ease, filter .18s ease;
}
.market-results-column.is-loading {
    min-height: 220px;
    opacity: .48;
    filter: saturate(.65);
    pointer-events: none;
}
.market-results-column.is-loading::after {
    content: '';
    position: absolute;
    z-index: 30;
    top: 70px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid rgba(255, 184, 0, .2);
    border-top-color: #ffb800;
    border-radius: 50%;
    animation: market-filter-spin .65s linear infinite;
}
@keyframes market-filter-spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
    .market-filter-mobile-actions { display: flex !important; position: absolute; top: 12px; right: 16px; }
    .market-filter-toggle { display: none !important; }
    .market-filter-reset { width: 38px; height: 38px; }
}

@media (max-width: 767px) {
    .market-filter-panel { padding: 10px !important; }
    .market-filter-panel.is-open .market-filter-body {
        display: block;
        max-height: min(62vh, 520px);
        padding-right: 4px !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #ffb800 #08152b;
    }
    .market-filter-panel.is-open .market-filter-body::-webkit-scrollbar { width: 5px; }
    .market-filter-panel.is-open .market-filter-body::-webkit-scrollbar-track { background: #08152b; border-radius: 8px; }
    .market-filter-panel.is-open .market-filter-body::-webkit-scrollbar-thumb { background: #ffb800; border-radius: 8px; }
    .market-filter-group,
    .market-filter-group--category,
    .market-filter-group--excellent,
    .market-filter-group--class,
    .market-filter-group--rank {
        flex: 1 1 100%;
        width: 100%;
        overflow-x: auto;
        border-radius: 12px !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 184, 0, .72) rgba(8, 21, 43, .8);
    }
    .market-filter-group::-webkit-scrollbar { display: block; height: 4px; }
    .market-filter-group::-webkit-scrollbar-track { background: rgba(8, 21, 43, .8); border-radius: 8px; }
    .market-filter-group::-webkit-scrollbar-thumb { background: rgba(255, 184, 0, .72); border-radius: 8px; }
    .market-type-tabs { position: sticky; left: 0; z-index: 2; background: #08152b; }
    .market-filter-group--category {
        display: block;
        overflow: visible;
    }
    .market-filter-group--category .market-category-icons,
    .market-filter-group--category .market-quick-options {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 184, 0, .72) rgba(8, 21, 43, .8);
    }
    .market-filter-group--excellent {
        display: block !important;
        overflow: visible;
    }
    .market-filter-group--excellent .market-type-tabs {
        width: 100% !important;
    }
    .market-filter-group--excellent .market-excellent-panels {
        width: 100%;
        margin-top: 7px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 184, 0, .72) rgba(8, 21, 43, .8);
    }
	.market-filter-group--excellent .market-rank-options {
		width: 100%;
		margin: 7px 0 0;
		padding: 6px 0 0;
		border-top: 1px solid rgba(126, 151, 194, .2);
		border-left: 0;
		overflow-x: auto;
		justify-content: flex-start !important;
	}
    .market-filter-group--excellent .market-excellent-options.active {
        width: max-content;
        min-width: 100%;
        padding-bottom: 4px;
    }
    .market-filter-group--category .market-quick-options {
        margin-top: 4px;
        padding: 5px 0 0;
        border-top: 1px solid rgba(126, 151, 194, .2);
        border-left: 0;
    }
    [data-filter-tip]::after { position: fixed; left: 50%; top: 92px; bottom: auto; }
}

/* Final filter alignment and interaction refinements */
.market-filter-toggle,
.market-filter-toggle:hover,
.market-filter-toggle:focus,
.market-filter-toggle:active {
    border-color: rgba(255, 184, 0, .58) !important;
    color: #111827 !important;
    background: linear-gradient(135deg, #ffd044, #f1a600) !important;
    box-shadow: 0 5px 14px rgba(241, 166, 0, .18) !important;
}

.market-filter-reset,
.market-filter-reset:hover,
.market-filter-reset:focus,
.market-filter-reset:active {
    display: inline-flex !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 14px !important;
    gap: 7px;
    border: 1px solid rgba(255, 184, 0, .58) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background: linear-gradient(135deg, #ffd044, #f1a600) !important;
    box-shadow: 0 5px 14px rgba(241, 166, 0, .18) !important;
}
.market-filter-reset span { display: inline !important; }

.market-category-icons .market-icon-filter {
    position: relative;
}
.market-category-icons .market-icon-filter + .market-icon-filter {
    border-left: 0 !important;
}
.market-category-icons .market-icon-filter + .market-icon-filter::before {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(126, 151, 194, .48), transparent);
    box-shadow: 0 0 6px rgba(75, 121, 190, .34), 0 0 12px rgba(18, 53, 105, .2);
    pointer-events: none;
}

.market-level-filter > span {
    border-right: 0 !important;
}
.market-level-filter select {
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* LVL itself is the dropdown trigger; the native closed select stays invisible. */
.market-level-filter {
    position: relative !important;
    width: 45px !important;
    min-width: 45px !important;
    padding: 2px !important;
    cursor: pointer;
}
.market-level-filter > span {
    width: 39px !important;
    min-width: 39px !important;
    pointer-events: none;
}
.market-level-filter select {
    position: absolute !important;
    z-index: 2;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .001;
    cursor: pointer;
}
.market-level-filter select option {
    color: #eef3ff !important;
}

/* The category row itself supplies the background; icons need no second capsule. */
.market-category-icons {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .market-filter-group--excellent > .market-type-tabs {
        top: -5px;
    }
}

/* Clear and Filters deliberately share exactly the same button geometry and skin. */
.market-filter-mobile-actions .market-filter-reset,
.market-filter-mobile-actions .market-filter-toggle,
.market-filter-mobile-actions .market-filter-reset:hover,
.market-filter-mobile-actions .market-filter-toggle:hover,
.market-filter-mobile-actions .market-filter-reset:focus,
.market-filter-mobile-actions .market-filter-toggle:focus,
.market-filter-mobile-actions .market-filter-reset:active,
.market-filter-mobile-actions .market-filter-toggle:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 96px !important;
    min-width: 96px !important;
    height: 38px !important;
    padding: 0 13px !important;
    gap: 7px !important;
    border: 1px solid rgba(255, 184, 0, .58) !important;
    border-radius: 999px !important;
    color: #111827 !important;
    background: linear-gradient(135deg, #ffd044, #f1a600) !important;
    box-shadow: 0 5px 14px rgba(241, 166, 0, .18) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.market-filter-mobile-actions .market-filter-reset i,
.market-filter-mobile-actions .market-filter-toggle i {
    width: 13px !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center;
}
.market-filter-mobile-actions .market-filter-reset span,
.market-filter-mobile-actions .market-filter-toggle span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

@media (min-width: 768px) {
    .market-filter-group--category .market-quick-options,
    .market-filter-group--excellent .market-rank-options {
        border-left: 0 !important;
    }
}

.market-class-icons {
    justify-content: space-evenly !important;
}
.market-class-icons label {
    flex: 1 1 0;
    min-width: 40px;
    max-width: 86px;
    justify-items: center;
    position: relative;
}
.market-class-icons label + label::before {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(126, 151, 194, .48), transparent);
    box-shadow: 0 0 6px rgba(75, 121, 190, .34), 0 0 12px rgba(18, 53, 105, .2);
    pointer-events: none;
}

@media (min-width: 768px) {
    .market-filter-group--category > .market-category-icons,
    .market-filter-group--category > .market-quick-options,
    .market-filter-group--excellent > .market-type-tabs,
    .market-filter-group--excellent > .market-excellent-panels,
    .market-filter-group--excellent > .market-rank-options {
        position: relative;
        top: 2px;
    }
}

@media (max-width: 767px) {
    .market-filter-group--excellent {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .market-filter-group--excellent .market-type-tabs {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .market-filter-group--excellent .market-type-tabs button {
        flex: 1 1 0;
        min-width: 0 !important;
    }
    .market-filter-group--excellent .market-excellent-panels {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* v41: preserve the source item-name color in market cards/list.
   Normal items are white in the item tooltip, so do not let theme link/title rules turn them yellow. */
.market-item-card.market-rarity-normal .market-product-card__name,
.market-item-card.market-rarity-normal .market-product-card__name a,
.market-item-card.market-rarity-normal .market-product-card__name span,
.market-item-card.market-rarity-normal .market-product-card__name div,
.market-item-card.market-rarity-normal .market-item-name,
.market-item-card.market-rarity-normal .market-item-name a,
.market-item-card.market-rarity-normal .market-item-name span,
.market-item-card.market-rarity-normal .market-item-name div {
    color: #f4f7ff !important;
}


/* v43: softer, higher MU-style item-name rays + compact jewel prices */
.market-product-card {
    --market-name-rgb: var(--rarity-rgb);
}

/* The title area gets a soft MU-style radial burst whose color follows the
   actual rendered item-name color. JS updates --market-name-rgb from the name. */
.market-product-card::after {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 92px;
    content: '';
    pointer-events: none;
    opacity: .46;
    background:
        radial-gradient(ellipse at 50% -8%, rgba(var(--market-name-rgb), .22) 0%, rgba(var(--market-name-rgb), .09) 34%, transparent 72%),
        repeating-conic-gradient(
            from -3deg at 50% -18%,
            rgba(var(--market-name-rgb), .105) 0deg 2.4deg,
            transparent 2.4deg 10.5deg
        );
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.82) 42%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.82) 42%, transparent 100%);
}

.market-product-card__name {
    position: relative;
    z-index: 2;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px 11px;
    text-shadow: 0 0 5px rgba(var(--market-name-rgb), .18);
}

.market-product-card__image,
.market-product-card__merchant,
.market-product-card__footer,
.market-product-card__badge {
    z-index: 2;
}

/* Price paid with jewels/items: keep the icon tiny and the amount on the same line. */
.market-product-card__footer > div > strong,
.market-price-row > strong {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
}

.market-product-card__footer > div > strong img,
.market-price-row > strong img {
    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    height: 15px !important;
    max-height: 15px !important;
    margin: 0 !important;
    object-fit: contain;
    vertical-align: middle !important;
}

.market-product-card__footer > div {
    min-width: 0;
}

@media (max-width: 480px) {
    .market-product-card::after {
        height: 82px;
    }

    .market-product-card__name {
        min-height: 38px;
        padding-inline: 5px;
    }
}

@media (max-width: 767px) {
    .market-filter-group--price {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start;
        overflow-x: auto;
        border-radius: 12px !important;
    }
    .market-price-options {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
    }
}

/* =========================================================
   v45 — LVL matches quick buttons; payment filters are flat
   ========================================================= */

/* LVL: same visual capsule as LUCK / SKILL / EXE / ANC / SOC. */
.market-quick-options .market-level-filter {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 43px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.market-quick-options .market-level-filter > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 43px !important;
    height: auto !important;
    min-height: 29px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(116, 151, 204, .26) !important;
    border-radius: 999px !important;
    background: #09162d !important;
    box-shadow: none !important;
    color: #a9b5cf !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    transition: .18s ease !important;
}

/* Keep the native select clickable over the whole LVL capsule, but invisible. */
.market-quick-options .market-level-filter select {
    position: absolute !important;
    z-index: 3 !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    opacity: 0 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

.market-quick-options .market-level-filter:hover > span,
.market-quick-options .market-level-filter:focus-within > span {
    border-color: #ffb800 !important;
    color: #ffd05a !important;
    background: rgba(255, 184, 0, .13) !important;
    box-shadow: 0 0 13px rgba(255, 184, 0, .15) !important;
}

/* If a level other than All is selected, JS may add .has-value; keep support for it. */
.market-quick-options .market-level-filter.has-value > span {
    border-color: #ffb800 !important;
    color: #ffd05a !important;
    background: rgba(255, 184, 0, .13) !important;
    box-shadow: 0 0 13px rgba(255, 184, 0, .15) !important;
}

/* PAYMENT TYPE: one outer group only; no capsule/background around each option. */
.market-filter-group--price {
    justify-content: flex-end !important;
    min-height: 42px !important;
}

.market-filter-group--price .market-price-options {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(93, 127, 181, .2) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(5, 13, 29, .86), rgba(8, 20, 42, .72)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), inset 0 -8px 18px rgba(0,0,0,.15), 0 7px 18px rgba(0,0,0,.11) !important;
}

.market-filter-group--price .market-price-options label {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.market-filter-group--price .market-price-options label + label {
    margin-left: 0 !important;
    padding-left: 14px !important;
}

.market-filter-group--price .market-price-options label + label::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    width: 1px !important;
    height: 20px !important;
    background: linear-gradient(180deg, transparent, rgba(126,151,194,.55), transparent) !important;
    box-shadow: 0 0 6px rgba(75,121,190,.34), 0 0 12px rgba(18,53,105,.2) !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

.market-filter-group--price .market-price-options input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.market-filter-group--price .market-price-options label > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #a9b5cf !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transition: color .18s ease, text-shadow .18s ease !important;
}

.market-filter-group--price .market-price-options label:hover > span {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f1f5ff !important;
}

.market-filter-group--price .market-price-options input:checked + span {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffd05a !important;
    text-shadow: 0 0 8px rgba(255, 184, 0, .24) !important;
}

.market-filter-group--price .market-price-options span i {
    color: #ffbf21 !important;
    font-size: 10px !important;
}

.market-filter-group--price .market-price-options span img {
    width: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    height: 13px !important;
    max-height: 13px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

/* =========================================================
   v46 — exact LVL alignment + no reload on EXE scope tabs
   ========================================================= */

/* Make LVL use the exact same typography/height box as LUCK/SKILL/EXE/ANC/SOC. */
.market-quick-options .market-level-filter {
    align-self: center !important;
    top: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
    line-height: normal !important;
}

.market-quick-options .market-level-filter > span {
    min-width: 43px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* The invisible native select must not contribute baseline/line-box spacing. */
.market-quick-options .market-level-filter select {
    display: block !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* =========================================================
   v47 — final LVL vertical alignment + visible All/+0…+15
   ========================================================= */

/*
 * LVL uses EXACTLY the same visible capsule metrics as the other
 * quick filters. The label itself has no box of its own, so it cannot
 * sit lower because of the native select baseline.
 */
.market-quick-options .market-level-filter {
    position: relative !important;
    display: inline-block !important;
    align-self: auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    vertical-align: top !important;
    line-height: 0 !important;
    overflow: visible !important;
}

/* Same values as .market-quick-options label span. */
.market-quick-options .market-level-filter > span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(116, 151, 204, .26) !important;
    border-radius: 999px !important;
    color: #a9b5cf !important;
    background: #09162d !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: top !important;
    transition: .2s ease !important;
}

/*
 * The real SELECT covers the LVL capsule, but remains visually hidden.
 * IMPORTANT: do NOT set font-size:0; native popup options inherit it and
 * appear blank on Chromium/Windows.
 */
.market-quick-options .market-level-filter select {
    position: absolute !important;
    z-index: 10 !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: 0 !important;
    color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: .001 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: normal !important;
}

/* Native dropdown entries: restore visible text for All and +0…+15. */
.market-quick-options .market-level-filter select option {
    color: #eef3ff !important;
    background: #09162d !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: normal !important;
}

.market-quick-options .market-level-filter:hover > span,
.market-quick-options .market-level-filter:focus-within > span,
.market-quick-options .market-level-filter.has-value > span {
    border-color: #ffb800 !important;
    color: #ffd05a !important;
    background: rgba(255, 184, 0, .13) !important;
    box-shadow: 0 0 13px rgba(255, 184, 0, .15) !important;
}


/* =========================================================
   v48 — Buy item / Sell item multi-currency UI
   ========================================================= */

.market-buy-multicurrency {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    border: 1px solid rgba(83, 112, 160, .42);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(4, 12, 26, .35);
}

.market-buy-currency {
    position: relative;
    min-width: 0;
    padding: 10px 11px;
    color: #7f91b0;
    text-align: center;
}

.market-buy-currency + .market-buy-currency::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(104, 135, 185, .45), transparent);
    content: '';
}

.market-buy-currency > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8295b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.market-buy-currency > span img,
.market-buy-currency > span i {
    width: 13px;
    max-height: 13px;
    object-fit: contain;
}

.market-buy-currency > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 23px;
    margin-top: 5px;
    color: #6f82a3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.market-buy-currency > strong img {
    width: 15px !important;
    height: 15px !important;
    object-fit: contain;
}

.market-buy-currency > strong small {
    color: inherit;
    font-size: 8px;
    font-weight: 700;
}

.market-buy-currency.is-active {
    background: linear-gradient(180deg, rgba(255, 190, 35, .09), transparent);
}

.market-buy-currency.is-active > span,
.market-buy-currency.is-active > strong {
    color: #ffc531;
}

@media (max-width: 520px) {
    .market-buy-multicurrency { grid-template-columns: 1fr; }
    .market-buy-currency + .market-buy-currency::before {
        top: 0;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(104, 135, 185, .45), transparent);
    }
}

/* Warehouse sell item currency selector. Native select remains the submitted field. */
.market-sell-payment-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.market-sell-currency-picker {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 7px;
    border: 1px solid rgba(70, 101, 151, .52);
    border-radius: 14px;
    background: rgba(5, 15, 31, .66);
}

.market-sell-currency-group {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.market-sell-currency-group + .market-sell-currency-group {
    margin-left: 5px;
    padding-left: 13px;
}

.market-sell-currency-group + .market-sell-currency-group::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(126, 151, 194, .52), transparent);
    box-shadow: 0 0 6px rgba(75, 121, 190, .22);
    content: '';
}

.market-sell-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(65, 92, 137, .68);
    border-radius: 999px;
    outline: 0;
    background: #09162d;
    color: #a9b5cf;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: .16s ease;
}

.market-sell-currency:hover {
    border-color: rgba(255, 184, 0, .62);
    color: #eef3ff;
}

.market-sell-currency.is-active {
    border-color: #ffb800;
    background: rgba(255, 184, 0, .11);
    color: #ffd05a;
    box-shadow: 0 0 13px rgba(255, 184, 0, .12);
}

.market-sell-currency i {
    color: #ffc125;
    font-size: 11px;
}

.market-sell-currency img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.market-sell-currency--jewel span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .market-sell-currency-picker,
    .market-sell-currency-group { width: 100%; }
    .market-sell-currency-group + .market-sell-currency-group {
        margin: 0;
        padding: 8px 0 0;
    }
    .market-sell-currency-group + .market-sell-currency-group::before {
        top: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(126, 151, 194, .52), transparent);
    }
    .market-sell-currency { flex: 1 1 auto; }
}

/* TRUE MULTI-CURRENCY + MOBILE */
.market-multi-prices{display:grid;gap:10px;width:100%}
.market-multi-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(120px,1fr) minmax(140px,1fr);gap:10px;align-items:end;padding:10px;border:1px solid rgba(116,151,204,.18);border-radius:12px;background:#081327;opacity:.72}
.market-multi-row.is-active{opacity:1;border-color:rgba(116,151,204,.42)}
.market-multi-enable{position:absolute;opacity:0;pointer-events:none}
.market-multi-toggle{min-height:44px;border:1px solid rgba(116,151,204,.25);border-radius:10px;background:#0a1830;color:#dce6fb;font-weight:700;cursor:pointer;padding:10px 12px;text-align:left}
.market-multi-row.is-active .market-multi-toggle{border-color:#6e9fe8;background:#10264a}
.market-multi-field label{display:block;margin:0 0 5px;color:#9eabc5;font-size:12px}
.market-multi-price,.market-multi-tax{height:44px!important}
.market-buy-payment-title{margin:16px 0 8px;color:#c7d4ef;font-weight:800}
.market-buy-payment-options{display:grid;gap:9px}
.market-buy-payment-option{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid rgba(116,151,204,.2);border-radius:12px;background:#081327;cursor:pointer}
.market-buy-payment-option input{position:absolute;opacity:0;pointer-events:none}
.market-buy-payment-option:has(input:checked){border-color:#6e9fe8;background:#10264a}
.market-buy-payment-option__main{display:grid;gap:4px}
.market-buy-payment-option__name{display:flex;gap:7px;align-items:center;color:#eef4ff;font-weight:800}
.market-buy-payment-option__base{color:#9eabc5;font-size:12px}
.market-buy-payment-option__total{text-align:right;display:grid;gap:2px}
.market-buy-payment-option__total small{color:#8fa0bf;font-size:11px}
.market-buy-payment-option__total strong{color:#fff;font-size:15px}
@media(max-width:767px){
#sell_item,#sell_item>.col-lg-12,.warehouse-sell-form{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
#sell_item>.col-lg-12{padding-left:6px!important;padding-right:6px!important}
.market-multi-row{grid-template-columns:1fr!important;gap:8px!important;padding:9px!important}
.warehouse-sell-form input[type="text"],.warehouse-sell-form select,.market-multi-price,.market-multi-tax{font-size:16px!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.market-buy-payment-option{grid-template-columns:1fr!important}.market-buy-payment-option__total{text-align:left}
}


/* =========================================================
   v52 — Show all item currencies in Market + compact Confirm
   ========================================================= */

/* Main Market: all accepted prices stay on compact chips. */
.market-multi-price-list{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px;
    max-width:100%;
}
.market-price-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    min-height:22px;
    padding:2px 6px;
    border:1px solid rgba(132,160,207,.22);
    border-radius:7px;
    background:rgba(8,19,39,.72);
    white-space:nowrap;
    line-height:1;
}
.market-price-chip b{
    font-size:11px;
    color:#fff;
    line-height:1;
}
.market-price-chip small{
    font-size:9px;
    color:#9eabc5;
    line-height:1;
}
.market-price-chip--jewel img{
    width:14px!important;
    height:14px!important;
    margin:0!important;
}

/* Don't let a multi-price footer make cards unnecessarily tall. */
.market-product-card__footer{
    gap:8px!important;
}
.market-product-card__footer > div{
    min-width:0;
    flex:1 1 auto;
}
.market-product-card__footer > div > strong{
    display:block;
    max-width:100%;
}
.market-price-row > strong{
    min-width:0;
    flex:1 1 auto;
}

/* Confirm Purchase: fit many currencies without a very long page. */
.market-buy-page{
    padding-top:12px!important;
    padding-bottom:18px!important;
}
.market-buy-heading{
    margin-bottom:12px!important;
}
.market-buy-heading h1{
    margin-bottom:2px!important;
}
.market-buy-heading p{
    margin-bottom:0!important;
}
.market-buy-checkout{
    gap:14px!important;
}
.market-buy-product{
    padding:14px!important;
}
.market-buy-product__image{
    margin-top:8px!important;
    margin-bottom:8px!important;
}
.market-buy-summary{
    padding:14px!important;
}
.market-buy-summary__top{
    margin-bottom:8px!important;
}
.market-buy-summary__row{
    padding:7px 0!important;
}
.market-buy-payment-title{
    margin:8px 0 6px!important;
    font-size:12px!important;
}
.market-buy-payment-options{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
}
.market-buy-payment-option{
    min-height:42px!important;
    padding:7px 9px!important;
    gap:6px!important;
    border-radius:9px!important;
}
.market-buy-payment-option__name{
    gap:5px!important;
    font-size:11px!important;
    line-height:1.1!important;
}
.market-buy-payment-option__name img{
    width:15px!important;
    height:15px!important;
}
.market-buy-payment-option__total{
    gap:1px!important;
}
.market-buy-payment-option__total strong{
    font-size:12px!important;
    line-height:1!important;
}
.market-buy-payment-option__total small{
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap;
}
.market-buy-submit{
    min-height:42px!important;
    margin-top:10px!important;
    padding:8px 14px!important;
}

@media (min-width:1200px){
    .market-buy-payment-options{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}

@media (max-width:767px){
    .market-buy-page{
        padding-top:8px!important;
    }
    .market-buy-heading{
        gap:8px!important;
    }
    .market-buy-checkout{
        gap:9px!important;
    }
    .market-buy-product,
    .market-buy-summary{
        padding:10px!important;
    }
    .market-buy-payment-options{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:5px!important;
    }
    .market-buy-payment-option{
        grid-template-columns:minmax(0,1fr) auto!important;
        padding:6px 7px!important;
    }
    .market-buy-payment-option__total{
        text-align:right!important;
    }
}

@media (max-width:420px){
    .market-buy-payment-options{
        grid-template-columns:1fr!important;
    }
}

/* Credit names and amounts must both fit narrow checkout price tiles. */
.market-buy-payment-option,
.market-buy-payment-option__main,
.market-buy-payment-option__total{min-width:0}
.market-buy-payment-option__total strong{overflow-wrap:anywhere}
.market-buy-payment-option.market-buy-payment-option--credit{
    grid-template-columns:minmax(0,1fr)!important;
    gap:4px!important;
}
.market-buy-payment-option--credit .market-buy-payment-option__name{
    flex-wrap:wrap;
    overflow-wrap:anywhere;
    min-width:0;
}
.market-buy-payment-option--credit .market-buy-payment-option__total{
    width:100%;
    text-align:right!important;
}

/* Cap oversized item artwork without stretching the smaller original sprites. */
.market-product-card__image img{
    width:auto!important;
    height:auto!important;
    max-width:40px!important;
    max-height:40px!important;
    object-fit:contain;
}
@media(max-width:767px){
    .market-product-card__image img{max-width:34px!important;max-height:34px!important;}
}

/* Equipment sprites (categories 0-12) include wide transparent margins.
   Give their canvas the full artwork area; boxes/jewels keep the compact cap above. */
.market-product-card__image img.market-equipment-image {
    width:61px!important;
    height:61px!important;
    max-width:61px!important;
    max-height:61px!important;
    object-fit:contain;
}
@media(max-width:480px){
    .market-product-card__image img.market-equipment-image {
        width:48px!important;
        height:48px!important;
        max-width:48px!important;
        max-height:48px!important;
    }
}

/* v56: compact multi-currency price editor */
.warehouse-sell-form .market-multi-prices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.warehouse-sell-form .market-multi-row{grid-template-columns:minmax(125px,.85fr) minmax(100px,1fr) minmax(115px,1fr);gap:7px;padding:7px 8px;border-radius:10px}
.warehouse-sell-form .market-multi-row:not(.is-active){grid-template-columns:1fr;align-items:center}
.warehouse-sell-form .market-multi-row:not(.is-active) .market-multi-field{display:none}
.warehouse-sell-form .market-multi-row.is-active{grid-column:1/-1}
.warehouse-sell-form .market-multi-toggle{min-height:38px;padding:7px 10px;font-size:11px;border-radius:8px}
.warehouse-sell-form .market-multi-field label{margin-bottom:3px;font-size:9px;line-height:1.1;text-transform:uppercase}
.warehouse-sell-form .market-multi-price,.warehouse-sell-form .market-multi-tax{height:38px!important;min-height:38px!important;padding:6px 9px!important;font-size:12px!important}
.warehouse-sell-form>.form-group{margin-bottom:12px}.warehouse-sell-form>.form-group>.control-label{margin-bottom:6px;font-size:10px;text-transform:uppercase}
@media(max-width:767px){.warehouse-sell-form .market-multi-prices{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-sell-form .market-multi-row{grid-template-columns:minmax(105px,.9fr) 1fr!important;align-items:center}.warehouse-sell-form .market-multi-row:not(.is-active){grid-template-columns:1fr!important}.warehouse-sell-form .market-multi-field:last-child{display:none}.warehouse-sell-form .market-multi-field label{display:none}.warehouse-sell-form .market-multi-toggle,.warehouse-sell-form .market-multi-price{height:38px!important;min-height:38px!important;font-size:13px!important}}

/* v57: price selector rows */
.warehouse-sell-form .market-multi-prices{display:flex;flex-direction:column;gap:0;padding:8px 14px 10px;border:1px solid #31496f;border-radius:13px;background:#17294a}
.warehouse-sell-form .market-multi-prices:before{content:"Currency                         Price";display:block;padding:3px 5px 10px;border-bottom:1px solid rgba(151,174,211,.28);color:#dce6fa;font-size:11px;font-weight:800;white-space:pre}
.warehouse-sell-form .market-multi-row,.warehouse-sell-form .market-multi-row.is-active,.warehouse-sell-form .market-multi-row:not(.is-active){display:grid;grid-template-columns:minmax(155px,1fr) 34px 94px 34px!important;align-items:center;gap:7px;min-height:49px;padding:5px;border:0;border-bottom:1px solid rgba(129,155,198,.11);border-radius:0;background:transparent}
.warehouse-sell-form .market-multi-row:last-child{border-bottom:0}
.warehouse-sell-form .market-multi-enable{position:absolute;opacity:0;pointer-events:none}
.warehouse-sell-form .market-multi-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:3px 4px;border:0;background:transparent!important;color:#f0f5ff;font-size:12px;text-align:left;box-shadow:none!important}
.warehouse-sell-form .market-multi-toggle:after{display:none}
.warehouse-sell-form .market-currency-image{width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.warehouse-sell-form .market-currency-fallback{display:grid;place-items:center;width:27px;height:27px;color:#ffc52f;font-size:16px}
.warehouse-sell-form .market-multi-field{display:block!important}
.warehouse-sell-form .market-multi-field label,.warehouse-sell-form .market-multi-field:last-child{display:none!important}
.warehouse-sell-form .market-multi-price{width:100%;height:36px!important;min-height:36px!important;padding:5px 8px!important;border:1px solid #354e78!important;border-radius:15px!important;background:#1c3158!important;text-align:center}
.warehouse-sell-form .market-price-step{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #7890ba;border-radius:50%;background:#1a2e51;color:#fff;font-size:23px;line-height:1;cursor:pointer;transition:.18s ease}
.warehouse-sell-form .market-price-step:hover{border-color:#ffc52f;color:#ffc52f;background:#213a65}
@media(max-width:480px){.warehouse-sell-form .market-multi-prices{padding:7px}.warehouse-sell-form .market-multi-row,.warehouse-sell-form .market-multi-row.is-active,.warehouse-sell-form .market-multi-row:not(.is-active){grid-template-columns:minmax(105px,1fr) 31px 68px 31px!important;gap:4px}.warehouse-sell-form .market-price-step{width:31px;height:31px}.warehouse-sell-form .market-multi-toggle{font-size:10px}.warehouse-sell-form .market-currency-image,.warehouse-sell-form .market-currency-fallback{width:22px;height:22px}}

/* v58: compact two-column sell editor */
.warehouse-sell-form{display:grid;grid-template-columns:minmax(360px,1.45fr) minmax(235px,.7fr);align-items:start;gap:14px;padding:14px!important}
.warehouse-sell-form>input[type=hidden]{position:absolute}
.warehouse-sell-form>.form-group:first-of-type{grid-column:1;margin:0}
.warehouse-sell-form .market-multi-prices{padding:6px 10px 7px;border:0;border-radius:11px;background:rgba(9,22,42,.48)}
.warehouse-sell-form .market-multi-prices:before{padding:2px 4px 7px;font-size:9px}
.warehouse-sell-form .market-multi-row,.warehouse-sell-form .market-multi-row.is-active,.warehouse-sell-form .market-multi-row:not(.is-active){grid-template-columns:minmax(135px,1fr) 29px 76px 29px!important;gap:5px;min-height:39px;padding:3px 4px}
.warehouse-sell-form .market-multi-toggle{min-height:31px;font-size:10px}.warehouse-sell-form .market-currency-image,.warehouse-sell-form .market-currency-fallback{width:22px;height:22px}
.warehouse-sell-form .market-price-step{width:29px;height:29px;font-size:18px}.warehouse-sell-form .market-multi-price{height:31px!important;min-height:31px!important;font-size:11px!important}
.market-sell-options{grid-column:2;padding:14px;border:1px solid #304a74;border-radius:12px;background:linear-gradient(155deg,rgba(25,45,76,.94),rgba(11,25,46,.96));box-shadow:0 15px 30px rgba(0,0,0,.18)}
.market-sell-options .form-group{margin:0 0 12px}.market-sell-options .control-label{display:block;margin:0 0 5px;color:#8fa3c4;font-size:9px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.market-sell-options select.form-control{width:100%!important;height:39px!important;min-height:39px!important;padding:0 34px 0 11px!important;border:1px solid #3a557f!important;border-radius:9px!important;background:#0d1d35!important;color:#edf3ff!important;font-size:11px!important;box-shadow:none!important;cursor:pointer;color-scheme:dark}
.market-sell-options select.form-control option{background:#0d1d35;color:#edf3ff}
.market-sell-options .form-group:has(#highlight){display:flex;align-items:center;gap:8px;padding:9px 0;color:#c7d4ea;font-size:11px}
.market-sell-options #highlight{accent-color:#ffc52f}.market-sell-options .form-group.mb-5{margin:2px 0 0!important}
.market-sell-options .form-group.mb-5>div{justify-content:flex-start!important}.market-sell-options #sell_item_button{min-width:125px;min-height:38px;margin:0;padding:0 18px;font-size:10px;border-radius:9px}
@media(max-width:767px){.warehouse-sell-form{grid-template-columns:1fr;padding:10px!important}.warehouse-sell-form>.form-group:first-of-type,.market-sell-options{grid-column:1}.market-sell-options{padding:12px}.warehouse-sell-form .market-multi-row,.warehouse-sell-form .market-multi-row.is-active,.warehouse-sell-form .market-multi-row:not(.is-active){grid-template-columns:minmax(115px,1fr) 29px 68px 29px!important}}

/* v59: integrated warehouse workspace */
#sell_item{width:100%!important;max-width:none!important;margin:10px 0 16px!important;padding:0!important;border:0!important;background:transparent!important}
#sell_item>.col-lg-12{padding:0!important}
.warehouse-sell-form{width:100%;grid-template-columns:minmax(390px,1fr) minmax(245px,300px);gap:18px;padding:18px!important;border:1px solid #304a74;border-radius:14px;background:radial-gradient(circle at 20% 0,rgba(73,126,204,.1),transparent 38%),linear-gradient(145deg,rgba(25,45,76,.96),rgba(10,23,43,.98));box-shadow:0 18px 38px rgba(0,0,0,.2)}
.warehouse-sell-form .market-multi-prices{height:100%;box-sizing:border-box;padding:9px 13px;background:rgba(5,15,30,.42)}
.market-sell-options{height:100%;box-sizing:border-box;padding:17px;border-color:rgba(75,110,165,.55);background:rgba(7,18,35,.52);box-shadow:none}
#option_buttons{justify-content:flex-start!important;margin:8px 0!important}#option_buttons .justify-content-center{justify-content:flex-start!important}
.wh_items{margin:12px 0 24px!important}
@media(max-width:767px){.warehouse-sell-form{grid-template-columns:1fr;gap:10px;padding:10px!important}.market-sell-options{height:auto}}
