.market-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
}

.market-tabs {
	display: flex;
	position: relative;
	gap: 15px;
	padding: 10px 0px;
	margin-bottom: 10px;
}

.market-tabs button {
	box-shadow: 1px 0px 8px #222;
}

.market-tabs .market-cash {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	background-color: #ffffff;
	padding: 13px;
	border-radius: 6px;
	box-shadow: 0px 0px 9px #013119;
}

.market-cash h1.title{
	font-size: 12px;
	font-weight: 600;
	margin-top: auto;
	letter-spacing: 3px;
	border-bottom: 1px solid #00000028;
	margin-bottom: 0px !important;
	opacity: 0.7;
}

.market-cash span {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .5px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.04);
	opacity: 0.9;
}

/* WCoinC */
.market-cash .wcc {
	color: #14772c;
	text-shadow: 0 0 1px rgba(0, 12, 17, 0.25);
}

/* WCoinP */
.market-cash .wcp {
	color: #0c1933;
	text-shadow: 0 0 8px rgba(186, 104, 200, .25);
}

/* Goblin Point */
.market-cash .gp {
	color: #a8322a;
	text-shadow: 0 0 8px rgba(129, 199, 132, .25);
}

.market-item {
	background: #b3f5aa25;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
	transition: 0.2s;
	border: #90ca85 1px solid;
	box-shadow: 0 0 5px #666;
	cursor: pointer;
}

.market-item:hover {
	transform: scale(1.03);
}

.item-box {
	margin: 0 auto 10px;
	position: relative;
}

.item-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.item-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.item-info.modal {}

/* brilho por level (reaproveita sua lógica) */
.market-item img {
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

.market-item[data-level="0"] img {
	filter: brightness(1);
}

.market-item[data-level="1"] img {
	filter: brightness(1.1);
}

.market-item[data-level="2"] img {
	filter: brightness(1.2);
}

.market-item[data-level="3"] img {
	filter: brightness(1.3);
}

.market-item[data-level="4"] img {
	filter: brightness(1.4);
}

.market-item[data-level="5"] img {
	filter: brightness(1.5);
}

.market-item[data-level="6"] img {
	filter: brightness(1.6);
}

.market-item[data-level="7"] img {
	filter: brightness(1.7);
}

.market-item[data-level="8"] img {
	filter: brightness(1.8);
}

.market-item[data-level="9"] img {
	filter: brightness(1.9);
}

.market-item[data-level="10"] img {
	filter: brightness(2);
}

.market-item[data-level="11"] img {
	filter: brightness(2.1);
}

.market-item[data-level="12"] img {
	filter: brightness(2.2);
}

.market-item[data-level="13"] img {
	filter: brightness(2.3);
}

.market-item[data-level="14"] img {
	filter: brightness(2.4);
}

.market-item[data-level="15"] img {
	filter: brightness(2.5);
}

.market-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: nowrap;
}

.market-filters input,
select {
	border-radius: 5px;
	height: 28px;
	width: 20rem;
	cursor: pointer;
	outline: none;
	box-shadow: 0 0 2px rgba(33, 34, 34, 0.6);
}

.market-filters input:hover {
	border: 1px solid #2222224d;
}

.market-filters select {
	outline: none;
	border: 1px solid #22222270;
}

.market-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.market-pagination button {
	padding: 6px 12px;
	background: #0aa51f;
	color: #ffffff;
	border: none;
	cursor: pointer;
	border-radius: 5px;
}

.market-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

button.toggle-vaults {
	padding: 3px 35px;
	margin-bottom: 10px;
	outline: none;
	border: 1px solid #0a411227;
	border-radius: 5px;
	width: 100%;
	box-shadow: 1px 3px 5px rgba(33, 34, 34, 0.199);
	/* background: #c6ddfd0e;	 */
	background: transparent;
}

button.toggle-vaults i {
	color: #0aa51f;
	font-size: 14px;
}

#vaultContainer {
	overflow: hidden;
	max-height: 2000px;
	opacity: 1;
	transition: max-height 0.3s ease, opacity 0.2s ease;
}

#vaultContainer.hidden {
	max-height: 0;
	opacity: 0;
}

.market-modal {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-width: 300px;
	background: rgba(0, 0, 0, 0.075);
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
	z-index: 99980;
}

.market-modal-content {
	background: rgba(19, 19, 19, 0.952);
	padding: 20px;
	border-radius: 6px;
	color: #fff;
	box-shadow: 15px 5px 15px #242424;
	/* min-width: 320px;
	min-height: 320px; */
	border: 1px solid #5c6960;
	width: min(92vw, 460px);
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	margin: auto;
}

.market-modal-content h3 {
	display: flex;
	align-items: center;
	text-align: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 12px;
	opacity: 0.7;
}

.market-modal-content .modal-item-preview {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
}

.market-modal-content .modal-item-preview img {
	display: flex;
	width: 320px;
	height: auto;
	transform: scale(1.5);
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 4px rgba(124, 123, 113, 0.6));
	padding: 15px 0;
	/* margin-bottom: 10px; */
}

.market-modal-content .modal-item-preview p {
	display: block;
	padding: 15px;
	font-size: 16px;
}

.market-modal-content .modal-item-tooltip {
	/* display: flex; */
	margin-top: 10px;
	padding: 10px;
	/* background: rgba(0, 0, 0, 0.205); */
	border-radius: 5px;
	color: #ccc;
	font-size: 13px;
	line-height: 1.4;
	align-items: center;
	text-align: center;
	justify-content: center;
}

.market-modal-content .modal-item-tooltip hr {
	opacity: 0.1;
	margin: 0;
	margin-top: 10px;
}

.market-modal-content input {
	width: 100%;
	padding: 5px;
	margin: 10px 0;
	border-radius: 5px;
	outline: none;
	color: #030413;
	font-size: 15px;
	font-weight: 600;
	align-items: flex-end;
}

.market-modal-content input::placeholder {
	font-weight: 100;
}


.market-modal-content .market-botoes {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.market-modal-content button {
	min-width: 120px;
	min-height: 32px;
	color: #030413;
	border-radius: 5px;
	padding: 2px 35px;
	background-color: #ffffffc0;
	outline: none;
	border: none;

	transition: background-color 0.5s ease, color 0.3s ease;
}

.market-modal-content button.success:hover {
	background-color: rgba(10, 165, 31, 0.486);
	color: #c3e2c1;
	border: 1px solid #0a5a24;
}

.market-modal-content button.error:hover {
	background-color: rgba(165, 15, 10, 0.486);
	color: #ebd5d5;
	border: 1px solid #5a0f0a;
}

.market-modal .price {
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	background-color: #dddddd;
	padding: 10px 0;
	border-radius: 12px;
	margin-bottom: 10px;
	color: rgb(3, 53, 22);
	font-weight: 700;
	letter-spacing: 1px;
	font-size: 22px;
}

.market-modal .price span.currency {
	font-size: 8px;
	opacity: .8;
	/* margin-left: 2px; */
	/* margin-right: 30px; */
	letter-spacing: 0;
}


.table-market {
	width: 100%;
	border-collapse: collapse;
}

.table-market th {
	text-align: left;
	padding: 10px;
	background: var(--color-bg-green);
	color: var(--color-bgwhite1);
	font-size: 12px;
}

.table-market td {
	padding: 12px;
	border-bottom: 1px solid #22222218;
	vertical-align: middle;
}

.table-market tr:hover {
	/* background: #1a1a1a; */
}

.table-market .item-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.table-market .item-box img {
	width: 40px;
	image-rendering: pixelated;
}

.table-market .item-name {
	font-weight: bold;
	color: #222;
	text-align: left;
}

.table-market .item-level {
	color: #4fc3f7;
	font-size: 12px;
}

.table-market .badge {
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 9px;
	margin-right: 4px;
	font-weight: 600;
}

.table-market .badge.excellent {
	/* background: gold; */
	background: #4caf50;
	/* color: #000; */
}

.table-market .badge.excellent.options {
	font-style: italic;
	font-weight: 500 !important;
	background-color: #36b43b96;
	font-size: 8px;
}

.table-market .badge.luck {
	background: #2196f3;
}

.table-market .badge.skill {
	background: #b9c8c9;
}

.table-market .status {
	font-weight: bold;
}

.table-market .status.active {
	color: #4caf50;
}

.table-market .status.sold {
	color: #84acbe;
}

.table-market .status.cancel {
	color: #f44336;
}

.table-market .status.expire {
	color: #f4d836;
}

.table-market .btn {
	padding: 5px 13px;
	border: none;
	cursor: pointer;
	font-size: 12px;
	border-radius: 5px;
	box-shadow: 1px 5px 8px #00000069;
}

.table-market .btn.cancel {
	background: #e02d20;
	color: white;
}

.table-market .btn.cancel:hover {
	background: #ff1a09;
	color: white;
}

.table-market .btn.edit {
	background: #ff9800;
	color: black;
}

/* Marketplace glass refresh */
.market-tabs {
	align-items: center;
	padding: 14px;
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(1, 18, 8, 0.12);
	backdrop-filter: blur(8px);
}

.market-tabs .market-cash {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(31, 191, 99, 0.24);
	box-shadow: 0 10px 24px rgba(31, 191, 99, 0.15);
}

.market-filters {
	padding: 14px;
	background: rgba(255, 255, 255, 0.64);
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(1, 18, 8, 0.1);
	backdrop-filter: blur(8px);
}

.market-sell-filters {
	display: grid;
	grid-template-columns: repeat(5, minmax(130px, 1fr));
	gap: 10px;
	padding: 14px;
	margin: 8px 0 14px;
	background: rgba(255, 255, 255, 0.64);
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(1, 18, 8, 0.1);
	backdrop-filter: blur(8px);
}

.market-filters input,
.market-filters select,
.market-sell-filters input,
.market-sell-filters select {
	height: 34px;
	min-width: 170px;
	width: 100%;
}

.market-item {
	position: relative;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(226, 255, 235, 0.62));
	border: 1px solid rgba(31, 191, 99, 0.24);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(1, 18, 8, 0.12);
	overflow: hidden;
}

.market-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(31, 191, 99, 0.12), transparent 42%, rgba(243, 194, 59, 0.12));
	pointer-events: none;
}

.market-item:hover {
	transform: translateY(-4px);
	border-color: rgba(243, 194, 59, 0.55);
	box-shadow: 0 20px 42px rgba(1, 18, 8, 0.18);
}

.market-item .item-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
}

.market-item .item-info strong {
	color: #0a3b24;
}

.market-item .price {
	display: inline-flex;
	align-self: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(243, 194, 59, 0.16);
	color: #7a5a04;
	border: 1px solid rgba(243, 194, 59, 0.28);
	font-weight: 700;
}

.market-pagination {
	padding: 12px;
	background: rgba(255, 255, 255, 0.42);
	border-radius: 8px;
}

.table-market {
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(1, 18, 8, 0.12);
	overflow: hidden;
}

.market-modal-content {
	background: rgba(7, 19, 13, 0.94);
	border: 1px solid rgba(243, 194, 59, 0.28);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(10px);
}

.market-withdraw {
	display: none;
	width: 100%;
	flex-wrap: wrap;
	padding: 15px 5px;
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(1, 18, 8, 0.12);
	background: rgba(255, 255, 255, 0.46);
}

.market-withdraw.active {
	display: flex;
}

.withdraw-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
	gap: 14px;
	width: 100%;
	margin-bottom: 18px;
}

.withdraw-card {
	padding: 18px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(31, 191, 99, 0.22);
	box-shadow: 0 14px 32px rgba(1, 18, 8, 0.1);
	backdrop-filter: blur(8px);
}

.withdraw-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.withdraw-card-head span {
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(31, 191, 99, 0.12);
	color: #0a3b24;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.withdraw-card-head strong {
	color: #0a3b24;
	font-size: 18px;
}

.withdraw-note {
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(243, 194, 59, 0.13);
	border: 1px solid rgba(243, 194, 59, 0.28);
	color: #6d5107;
	font-weight: 600;
}

.withdraw-field {
	margin-bottom: 12px;
}

.withdraw-field label {
	display: block;
	margin-bottom: 6px;
	color: #0a3b24;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.withdraw-field input,
.withdraw-field select {
	width: 100%;
	height: 36px;
}

.withdraw-summary {
	padding-left: 18px;
	color: #263b2d;
	line-height: 1.9;
}

.withdraw-feedback {
	margin-top: 12px;
	font-size: 12px;
	font-weight: 700;
}

.withdraw-feedback.success {
	color: #118847;
}

.withdraw-feedback.error {
	color: #c0392b;
}

.withdraw-history-filters {
	display: grid;
	grid-template-columns: repeat(5, minmax(130px, 1fr));
	gap: 10px;
	width: 100%;
	padding: 14px;
	margin-bottom: 14px;
	background: rgba(255, 255, 255, 0.64);
	border: 1px solid rgba(31, 191, 99, 0.2);
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(1, 18, 8, 0.1);
	backdrop-filter: blur(8px);
}

.withdraw-history-filters input,
.withdraw-history-filters select {
	width: 100%;
	height: 34px;
}

.withdraw-history-table {
	width: 100%;
}

.withdraw-empty td {
	text-align: center;
	color: rgba(10, 59, 36, 0.62);
	font-style: italic;
}

@media (max-width: 900px) {
	.withdraw-grid,
	.withdraw-history-filters,
	.market-sell-filters {
		grid-template-columns: 1fr;
	}
}
