/*
 * Pro Coin Market overrides and fixes.
 */

.is-hidden { display: none !important; }

.ns-pro-marketplace {
	--nx-mp-gap: 1rem;
}

.ns-pro-marketplace__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.ns-pro-marketplace__tab {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #a1a1aa;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ns-pro-marketplace__tab.is-active,
.ns-pro-marketplace__tab:hover {
	background: rgba(212, 175, 55, 0.12);
	border-color: rgba(212, 175, 55, 0.35);
	color: #f8ecc4;
}

.ns-pro-marketplace__tab button {
	background: transparent;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.nx-mp-toolbar {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 14px;
}

.nx-mp-toolbar__search input {
	width: 100%;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.25);
	color: #f1f1f1;
	outline: none;
}

.nx-mp-toolbar__search input:focus {
	border-color: rgba(212, 175, 55, 0.45);
}

.nx-mp-toolbar__controls select {
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.35);
	color: #f1f1f1;
	cursor: pointer;
}

.nx-mp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.nx-mp-filter {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: #a1a1aa;
	font-size: 0.78rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nx-mp-filter.is-active,
.nx-mp-filter:hover {
	background: rgba(212, 175, 55, 0.12);
	border-color: rgba(212, 175, 55, 0.35);
	color: #f8ecc4;
}

.nx-commerce-market__layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1.25rem;
}

@media (max-width: 900px) {
	.nx-commerce-market__layout {
		grid-template-columns: 1fr;
	}
}

.nx-commerce-market__sidebar {
	padding: 1rem;
	border-radius: 16px;
	height: max-content;
}

.nx-commerce-market__cat {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	color: #a1a1aa;
	text-decoration: none;
	font-size: 0.85rem;
	transition: all 0.2s ease;
}

.nx-commerce-market__cat.is-active,
.nx-commerce-market__cat:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #f8ecc4;
}

.nx-commerce-market__cat--child {
	padding-left: 1.4rem;
	font-size: 0.8rem;
}

.nx-commerce-market__empty {
	grid-column: 1 / -1;
	color: var(--nx-muted);
	text-align: center;
	padding: 2rem;
}

.nx-mp-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
}

.nx-mp-modal[hidden] {
	display: none;
}

.nx-mp-modal__dialog {
	width: min(560px, 92vw);
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 20px;
	background: linear-gradient(145deg, #1a1a24, #12121a);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.5rem;
}

.nx-mp-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.nx-mp-modal__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
}

.nx-mp-modal__content {
	display: grid;
	gap: 1rem;
}

.nx-mp-modal__preview {
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nx-mp-modal__preview img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
