/* Player Market v13 - frontend estatico */
.mk-market,
.mk-modal,
.mk-toast {
	--mk-bg: #0f1419;
	--mk-card: #1a2332;
	--mk-card-2: #111927;
	--mk-border: #2d3a4f;
	--mk-border-soft: rgba(255, 255, 255, 0.08);
	--mk-accent: #c9a227;
	--mk-accent-2: #8b6914;
	--mk-danger: #ef4444;
	--mk-text: #e8ecf1;
	--mk-muted: #8b9cb3;
}

.mk-market {
	padding-bottom: 2rem;
	position: relative;
	z-index: 2;
}

.mk-market.mk-dark { color: var(--mk-text); }

.mk-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 1rem;
	position: relative;
	z-index: 10;
}

.mk-toolbar .mk-input {
	background: var(--mk-card);
	border: 1px solid var(--mk-border);
	color: var(--mk-text);
	border-radius: 8px;
	padding: 8px 12px;
	min-width: 120px;
}

.mk-chk {
	font-size: 13px;
	color: var(--mk-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.mk-btn {
	background: linear-gradient(135deg, #c9a227, #8b6914);
	border: none;
	color: #111;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
}

.mk-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.mk-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	filter: grayscale(0.4);
	transform: none;
}

.mk-btn-sell {
	margin-left: auto;
	padding: 10px 22px;
	font-size: 15px;
	position: relative;
	z-index: 20;
}

.mk-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1rem;
}

.mk-tab {
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--mk-card);
	border: 1px solid var(--mk-border);
	color: var(--mk-muted);
	cursor: pointer;
	font-size: 14px;
}

.mk-tab.is-active {
	border-color: var(--mk-accent);
	color: var(--mk-accent);
}

.mk-alert-wrap { margin-bottom: 1rem; }

.mk-alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.mk-alert-warn {
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid #f59e0b;
	color: #fcd34d;
}

.mk-grid { min-height: 120px; }

.mk-grid-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.mk-card {
	background: var(--mk-card);
	border: 1px solid var(--mk-border);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mk-card--feat { border-color: var(--mk-accent); }

.mk-card-img {
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at center, rgba(201, 162, 39, 0.1), transparent 58%),
		transparent;
	border-radius: 8px;
	overflow: visible;
	transition: transform 0.18s ease, filter 0.18s ease;
}

.mk-card-img img {
	max-height: 72px;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.25));
}

.mk-card-img:hover {
	transform: translateY(-2px);
	filter: brightness(1.12);
}

.mk-card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	min-height: 2.6em;
}

.mk-card-desc {
	margin: 0;
	font-size: 12px;
	color: var(--mk-muted);
	line-height: 1.35;
}

.mk-card-price {
	color: var(--mk-accent);
	font-size: 18px;
	font-weight: 700;
}

.mk-card-meta {
	font-size: 11px;
	color: var(--mk-muted);
}

.mk-btn-buy { margin-top: auto; width: 100%; }

.mk-btn-cancel {
	margin-top: auto;
	width: 100%;
	background: transparent;
	border: 1px solid var(--mk-border);
	color: var(--mk-text);
}

.mk-loading, .mk-empty {
	text-align: center;
	padding: 2.5rem 1rem;
	color: var(--mk-muted);
}

.mk-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
}

.mk-pagination button {
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid var(--mk-border);
	background: var(--mk-card);
	color: var(--mk-text);
	cursor: pointer;
}

.mk-pagination button:disabled { opacity: 0.4; cursor: default; }

.mk-history {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mk-history li {
	padding: 10px 14px;
	border-bottom: 1px solid var(--mk-border);
	font-size: 14px;
}

/* Modal vender */
.mk-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483400;
	overflow: hidden;
	overscroll-behavior: contain;
	padding: 12px 0;
}

.mk-modal.is-open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

body.mk-modal-open { overflow: hidden; }
body.mk-modal-open .we-footer,
body.mk-modal-open footer.footer {
	visibility: hidden;
	pointer-events: none;
}

.mk-modal-backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 15%, rgba(201, 162, 39, 0.16), transparent 30%),
		radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.14), transparent 32%),
		rgba(0, 0, 0, 0.84);
	backdrop-filter: blur(8px);
}

.mk-modal-dialog {
	position: relative;
	z-index: 2;
	margin: 0 auto;
	max-width: 880px;
	width: calc(100% - 32px);
	height: auto;
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	display: flex;
	flex-direction: column;
	background:
		linear-gradient(145deg, rgba(26, 35, 50, 0.96), rgba(10, 14, 22, 0.98)),
		var(--mk-card);
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: 22px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	overflow: hidden;
	animation: mkModalIn 0.22s ease-out;
}

.mk-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 22px;
	border-bottom: 1px solid var(--mk-border-soft);
	background:
		linear-gradient(90deg, rgba(201, 162, 39, 0.16), transparent 58%),
		rgba(255, 255, 255, 0.02);
}

.mk-modal-head h3 {
	margin: 0;
	font-size: 20px;
	color: var(--mk-accent);
	letter-spacing: 0.02em;
}

.mk-modal-head p {
	margin: 4px 0 0;
	color: var(--mk-muted);
	font-size: 12px;
}

.mk-modal-x {
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--mk-border-soft);
	border-radius: 12px;
	color: var(--mk-text);
	font-size: 26px;
	cursor: pointer;
	line-height: 1;
}

.mk-modal-x:hover {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.45);
	color: #fecaca;
}

.mk-modal-body {
	padding: 16px 22px 18px;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 39, 0.7) rgba(255, 255, 255, 0.06);
}

.mk-sell-layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 20px;
}

.mk-sell-status {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.4;
}

.mk-sell-status.info {
	background: rgba(59, 130, 246, 0.12);
	border: 1px solid rgba(59, 130, 246, 0.28);
	color: #bfdbfe;
}

.mk-sell-status.error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fecaca;
}

.mk-sell-status.success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #bbf7d0;
}

.mk-sell-preview {
	min-height: 142px;
	background:
		radial-gradient(circle at center, rgba(201, 162, 39, 0.08), transparent 60%),
		transparent;
	border: 1px dashed rgba(201, 162, 39, 0.28);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	overflow: visible;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mk-sell-preview img {
	max-width: 100%;
	max-height: 98px;
	object-fit: contain;
	filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.32));
}

.mk-sell-preview:hover {
	border-color: rgba(201, 162, 39, 0.58);
	box-shadow: 0 0 30px rgba(201, 162, 39, 0.08) inset, 0 0 22px rgba(201, 162, 39, 0.12);
	transform: translateY(-1px);
}

.mk-preview-name {
	margin-top: 6px;
	font-weight: 600;
	font-size: 13px;
}

.mk-muted { color: var(--mk-muted); font-size: 13px; }

.mk-item-image-note {
	display: block;
	margin-top: 10px;
	padding: 8px 12px;
	font-size: 12px;
	color: #f8e7a5;
	background: rgba(201, 162, 39, 0.09);
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: 14px;
	text-align: center;
}

.mk-sell-form label {
	display: block;
	margin: 8px 0 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--mk-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mk-sell-form label:first-child { margin-top: 0; }

.mk-sell-form .mk-input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(7, 10, 16, 0.86);
	border: 1px solid rgba(139, 156, 179, 0.22);
	border-radius: 12px;
	color: var(--mk-text);
	padding: 8px 12px;
	outline: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mk-sell-form .mk-input:focus {
	background: rgba(8, 12, 20, 0.98);
	border-color: rgba(201, 162, 39, 0.65);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.13);
}

.mk-sell-form select.mk-input option {
	background: #111927;
	color: var(--mk-text);
}

.mk-sell-form .mk-input::placeholder {
	color: rgba(139, 156, 179, 0.72);
}

.mk-textarea {
	min-height: 58px;
	max-height: 92px;
	resize: vertical;
}

.mk-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 12px 22px;
	border-top: 1px solid var(--mk-border-soft);
	background:
		linear-gradient(180deg, rgba(10, 14, 22, 0.86), rgba(4, 6, 10, 0.98)),
		#070a10;
	flex-shrink: 0;
	position: sticky;
	bottom: 0;
	z-index: 5;
	box-shadow: 0 -14px 26px rgba(0, 0, 0, 0.34);
}

.mk-btn-ghost {
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid var(--mk-border-soft);
	background: rgba(255, 255, 255, 0.04);
	color: var(--mk-text);
	cursor: pointer;
}

.mk-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.mk-btn-publish {
	min-width: 220px;
	padding: 11px 24px;
	box-shadow: 0 10px 24px rgba(201, 162, 39, 0.18);
}

@keyframes mkModalIn {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.mk-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10100;
	padding: 12px 20px;
	border-radius: 8px;
	background: #1a2332;
	border: 1px solid var(--mk-accent);
	color: var(--mk-text);
	display: none;
	max-width: 90vw;
}

.mk-toast.is-show { display: block; animation: mkToastIn 0.25s ease; }

.mk-toast.is-err { border-color: #ef4444; color: #fecaca; }

@keyframes mkToastIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
	.mk-modal { padding: 10px 0; }
	.mk-modal-dialog {
		width: calc(100% - 20px);
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
	}
	.mk-modal-head { padding: 16px; }
	.mk-modal-body { padding: 14px 16px; }
	.mk-modal-foot {
		padding: 12px 16px;
		flex-direction: column-reverse;
	}
	.mk-sell-layout { grid-template-columns: 1fr; }
	.mk-sell-preview { min-height: 120px; }
	.mk-grid-inner { grid-template-columns: 1fr 1fr; }
	.mk-btn-sell { margin-left: 0; width: 100%; }
	.mk-btn-ghost,
	.mk-btn-publish { width: 100%; }
}

/* Home carousel */
.mk-home-carousel-wrap {
	margin-bottom: 28px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mk-home-carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.mk-home-carousel-head h2 {
	margin: 0;
	font-size: 22px;
	color: #c9a227;
	font-weight: 700;
}

.mk-home-carousel-more { color: #a78bfa; font-size: 14px; }

.mk-home-carousel {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mk-home-carousel-track {
	display: flex;
	width: max-content;
	animation: mkCarouselScroll var(--mk-carousel-speed, 35s) linear infinite;
	will-change: transform;
}

.mk-home-carousel-track:hover { animation-play-state: paused; }

@keyframes mkCarouselScroll {
	to { transform: translateX(calc(-100% / var(--mk-carousel-sets, 3))); }
}

.mk-home-carousel-set {
	display: flex;
	gap: 16px;
	padding-right: 16px;
	flex: 0 0 auto;
}

.mk-home-carousel-card {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	background: #1a2332;
	border: 1px solid #2d3a4f;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: #e8ecf1;
}

.mk-home-carousel-img {
	height: 100px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0a0e14;
}

.mk-home-carousel-img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mk-home-carousel-icon { font-size: 32px; opacity: 0.4; }

.mk-home-carousel-body { padding: 10px 12px; }

.mk-home-carousel-title {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.mk-home-carousel-desc {
	display: block;
	font-size: 11px;
	color: #8b9cb3;
	margin-bottom: 6px;
}

.mk-home-carousel-price {
	display: block;
	color: #c9a227;
	font-weight: 700;
	font-size: 14px;
}
