/* HIDE RADIO */
.radio-image {
	opacity: 0;
	width: 0;
	height: 0;
}

/* IMAGE STYLES */
.radio-image-val {
	cursor: pointer;
}

/* CHECKED STYLES */
.radio-image-val:hover {
	outline: 2px solid #f00;
}

/* CHECKED STYLES */
[type="radio"]:checked + img {
	outline: 2px solid #f00;
}

#table_seal_blog_paginate {
	font-size: 10px;
}

.guildlogo {
	padding: 0;
	position: relative;
	width: 64px;
	height: 64px;
}

.guildlogo .div1 {
	position: relative;
	z-index: 1;
}
.guildlogo .div2 {
	position: absolute;
	z-index: 2;
	top: 0%;
}
.guildlogo .div3 {
	position: absolute;
	z-index: 3;
	top: 0%;
}

.nav-guildlogo > .guildlogo {
	display: inline-flex;
}
.seal-item-qty {
	position: absolute;
	margin-left: 5px;
	color: red;
	font-weight: bold;
	z-index: 5;
	margin-top: 22px;
	text-align: right;
	text-shadow: 2px 2px 5px white;
}

.seal-item-plus {
	margin-left: -5px;
	padding-left: 2px;
	padding-right: 2px;
}
.seal-item-list {
	position: relative;
	display: inline-grid;
	padding: 5px;
}
.seal-item-name-list {
	list-style: none;
}
.seal-item-name {
	margin-left: 5px;
}
.seal-item-name-list .seal-item-conform {
	vertical-align: middle;
	display: inline flow-root list-item;
	position: relative;
	margin-top: 5px;
}
.grid-container {
	display: grid;
	grid-template-columns: auto auto auto;
}
.grid-item {
	background-color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 10px;
	font-size: 14px;
	text-align: center;
}

.voucher-input {
	width: 32px;
	height: 25px;
	font-weight: 500;
}
.voucher-input:focus {
	border-color: #0d6efd;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.voucher-group {
	position: relative;
}
.voucher-group:not(:last-child):after {
	content: "-";
	position: absolute;
	right: -12px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: bold;
	font-size: 1.2rem;
}

/*Marketplace*/

.marketplace-main-container {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	padding: 30px;
}

.marketplace-header {
	background: linear-gradient(45deg, #6c63ff, #5a52ff);
	color: white;
	padding: 20px 30px;
	border-radius: 15px;
	margin-bottom: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.marketplace-nav-tabs {
	background: rgba(108, 99, 255, 0.1);
	border-radius: 15px;
	padding: 10px;
	margin-bottom: 30px;
	border: none;
}

.marketplace-nav-tabs .marketplace-nav-link {
	border: none;
	border-radius: 10px;
	margin: 0 5px;
	color: #6c63ff;
	font-weight: 600;
	transition: all 0.3s ease;
}

.marketplace-nav-tabs .marketplace-nav-link.active {
	background: #6c63ff;
	color: white;
	box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.marketplace-header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.marketplace-premium-badge {
	background: linear-gradient(45deg, #ff6b6b, #ff8e53);
	color: white;
	padding: 10px 20px;
	border-radius: 25px;
	font-weight: bold;
	border: none;
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.marketplace-search-controls {
	background: rgba(255, 255, 255, 0.8);
	padding: 20px;
	border-radius: 15px;
	margin-bottom: 20px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.marketplace-item-table {
	border-radius: 15px;
	overflow: hidden;
}

.marketplace-item-table .table thead th {
	background: linear-gradient(45deg, #6c63ff, #5a52ff);
	color: white;
	border: none;
	padding: 20px 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.marketplace-item-table .table tbody td {
	padding: 20px 15px;
	vertical-align: middle;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marketplace-item-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	margin: 0 auto;
}

.marketplace-item-placeholder-icon {
	background: linear-gradient(45deg, #ff9a56, #ff6b6b);
}

.marketplace-sword-icon {
	background: linear-gradient(45deg, #ff9a56, #ff6b6b);
}

.marketplace-helmet-icon {
	background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.marketplace-robe-icon {
	background: linear-gradient(45deg, #48dbfb, #0abde3);
}

.marketplace-opt-badge {
	background: #28a745;
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-weight: bold;
	font-size: 14px;
}

.marketplace-level-badge {
	background: #17a2b8;
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-weight: bold;
}

.marketplace-job-badge {
	background: #6f42c1;
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	text-transform: uppercase;
}

.marketplace-type-badge {
	background: #fd7e14;
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
}

.marketplace-price-text {
	font-weight: bold;
	color: #28a745;
	font-size: 16px;
}

.marketplace-buy-btn {
	background: linear-gradient(45deg, #28a745, #20c997);
	border: none;
	color: white;
	padding: 10px 25px;
	border-radius: 25px;
	font-weight: bold;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.marketplace-buy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
	color: white;
}

.marketplace-modal-content {
	border-radius: 20px;
	border: none;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.marketplace-modal-header {
	background: linear-gradient(45deg, #6c63ff, #5a52ff);
	color: white;
	border-radius: 20px 20px 0 0;
	border: none;
}

.marketplace-item-details {
	padding: 30px;
}

.marketplace-item-image {
	width: 120px;
	height: 120px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60px;
	color: white;
	margin: 0 auto 20px;
}

.marketplace-qr-section {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	color: black;
}

.marketplace-qr-code {
	width: 200px;
	height: 200px;
	background: white;
	border: 3px solid #6c63ff;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 20px auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.marketplace-payment-info {
	background: rgba(108, 99, 255, 0.1);
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
}

.marketplace-balance-badge {
	background: linear-gradient(45deg, #6c63ff, #5a52ff);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-weight: bold;
}

.marketplace-user-badge {
	background: linear-gradient(45deg, #ff6b6b, #ff8e53);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-weight: bold;
}

.marketplace-content-box {
	padding: 2rem 0rem !important;
	width: 80%;
}

.marketplace-main-container {
	padding: 10px;
	color: black;
}

#marketplace-modal-item-description {
	color: black;
}

.marketplace-modal li {
	color: black;
}

.marketplace-modal select.form-select {
	color: black;
}

#marketplace-item-name {
	font-size: 1.5em;
	font-weight: bolder;
}

.marketplace-payment-success-compact {
	width: 200px;
	height: 195px;
	background: linear-gradient(135deg, #4ade80, #22c55e);
	border-radius: 13px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
	box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
	position: relative;
	overflow: hidden;
}

.marketplace-payment-success-compact::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.1) 0%,
		transparent 70%
	);
	animation: marketplace-shimmer 3s ease-in-out infinite;
}

.marketplace-success-icon-compact {
	font-size: 3rem;
	margin-bottom: 0.8rem;
	animation: marketplace-bounceIn 1s ease-out;
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
	position: relative;
	z-index: 2;
}

.marketplace-success-title-compact {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 2;
	animation: marketplace-slideInUp 0.8s ease-out 0.3s both;
}

@keyframes marketplace-shimmer {
	0%,
	100% {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(180deg);
	}
}

@keyframes marketplace-bounceIn {
	0% {
		transform: scale(0);
		opacity: 0;
	}

	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes marketplace-slideInUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.marketplace-status-badge {
	background: linear-gradient(45deg, #4ade80, #22c55e);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 25px;
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
	animation: marketplace-pulse 2s ease-in-out infinite;
}

@keyframes marketplace-pulse {
	0%,
	100% {
		box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
	}

	50% {
		box-shadow: 0 4px 25px rgba(74, 222, 128, 0.5);
	}
}

.marketplace-item-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 4px;
	padding: 10px;
	width: 450px;
	background-color: #d0bbbb !important;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.marketplace-item-box {
	aspect-ratio: 1;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.05) 100%
	);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	width: 50px;
	height: 50px;
	max-width: 50px;
	max-height: 50px;
	padding: 2px;
}

.marketplace-item-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		transparent 0%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 100%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.marketplace-item-box:hover::before {
	opacity: 1;
}

.marketplace-item-box:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.15) 0%,
		rgba(255, 255, 255, 0.08) 100%
	);
}

.marketplace-equipment-item {
	background: linear-gradient(
		135deg,
		rgba(255, 215, 0, 0.2) 0%,
		rgba(255, 140, 0, 0.1) 100%
	);
	border-color: rgba(255, 215, 0, 0.3);
}

.marketplace-equipment-item:hover {
	background: linear-gradient(
		135deg,
		rgba(255, 215, 0, 0.3) 0%,
		rgba(255, 140, 0, 0.15) 100%
	);
	border-color: rgba(255, 215, 0, 0.5);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.marketplace-common-item {
	background: linear-gradient(
		135deg,
		rgba(100, 200, 255, 0.2) 0%,
		rgba(50, 150, 255, 0.1) 100%
	);
	border-color: rgba(100, 200, 255, 0.3);
}

.marketplace-common-item:hover {
	background: linear-gradient(
		135deg,
		rgba(100, 200, 255, 0.3) 0%,
		rgba(50, 150, 255, 0.15) 100%
	);
	border-color: rgba(100, 200, 255, 0.5);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(100, 200, 255, 0.2);
}

.marketplace-item-box .marketplace-item-icon {
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
	transition: all 0.3s ease;
	z-index: 2;
}

.marketplace-item-box:hover .marketplace-item-icon {
	color: rgba(255, 255, 255, 1);
	transform: scale(1.1);
	filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.marketplace-item-quantity {
	position: absolute;
	bottom: -5px;
	right: -2px;
	font-size: 0.9rem;
	color: red !important;
	font-weight: 600;
	padding: 3px 6px;
	border-radius: 6px;
	min-width: 20px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	z-index: 3;
}

.marketplace-page-title {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	font-weight: 300;
	letter-spacing: 2px;
	margin-bottom: 30px;
}

.marketplace-custom-popover {
	position: absolute;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	padding: 0;
	z-index: 1000;
	min-width: 280px;
	max-width: 320px;
	display: none;
}

.marketplace-popover-header {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	color: white;
	padding: 15px 18px;
	border-radius: 12px 12px 0 0;
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marketplace-popover-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 14px;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.marketplace-popover-close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-50%) scale(1.1);
}

.marketplace-popover-body {
	padding: 18px;
	background: rgba(255, 255, 255, 0.02);
}

.marketplace-item-stats {
	display: flex;
	justify-content: space-between;
	margin: 12px 0;
	font-size: 0.85rem;
	gap: 8px;
}

.marketplace-stat-item {
	background: linear-gradient(
		135deg,
		rgba(30, 60, 114, 0.1) 0%,
		rgba(42, 82, 152, 0.05) 100%
	);
	color: rgba(30, 60, 114, 0.9);
	padding: 6px 10px;
	border-radius: 6px;
	font-weight: 600;
	border: 1px solid rgba(30, 60, 114, 0.2);
	flex: 1;
	text-align: center;
}

.marketplace-item-description {
	color: rgba(0, 0, 0, 0.7);
	font-size: 0.85rem;
	line-height: 1.5;
}

.marketplace-popover-icon {
	font-size: 1.4rem;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.marketplace-item-name {
	font-weight: 500;
	font-size: 1.1rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 992px) {
	.marketplace-item-grid {
		grid-template-columns: repeat(8, 1fr);
	}

	.marketplace-main-container {
		margin: 15px;
		padding: 25px;
	}
}

@media (max-width: 768px) {
	.marketplace-item-grid {
		grid-template-columns: repeat(8, 1fr);
		padding: 15px;
	}

	.marketplace-item-box .marketplace-item-icon {
		font-size: 1.6rem;
	}

	.marketplace-custom-popover {
		min-width: 250px;
		max-width: 280px;
	}

	.marketplace-main-container {
		margin: 10px;
		padding: 20px;
	}
}

@media (max-width: 576px) {
	.marketplace-item-grid {
		grid-template-columns: repeat(8, 1fr);
	}

	.marketplace-item-box .marketplace-item-icon {
		font-size: 1.4rem;
	}
}
/* Marketplace styles */

.marketplace-overlay-row {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	pointer-events: auto;
	backdrop-filter: blur(1px);
	background-color: rgba(87, 71, 71, 0.4) !important;
}

.marketplace-overlay-blur {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.marketplace-overlay-btn {
	margin-top: 0.5rem;
	z-index: 2;
	position: relative;
	pointer-events: auto;
}

/* Ensure overlay and row-content always match row height */
.marketplace-row-content {
	min-height: 56px;
	height: 56px;
}

.marketplace-sell-price-summary {
	background: rgba(46, 204, 113, 0.1);
	border: 1px solid rgba(46, 204, 113, 0.3);
	border-radius: 8px;
	padding: 15px;
	margin-top: 15px;
}

.marketplace-sell-tax-info {
	background: rgba(241, 196, 15, 0.1);
	border: 1px solid rgba(241, 196, 15, 0.3);
	border-radius: 8px;
	padding: 15px;
	margin: 15px 0;
}

.marketplace-sell-tax-info h6 {
	color: #f1c40f;
	margin-bottom: 10px;
}
.marketplace-sell-item-preview {
	background: rgba(66, 66, 66, 0.1);
	border-radius: 10px;
	padding: 20px;
	border: 2px solid rgba(255, 255, 255, 0.1);
}

.marketplace-sell-item-icon {
	width: 80px;
	height: 80px;
	background: rgba(255, 215, 0, 0.1);
	border: 2px solid rgba(255, 215, 0, 0.3);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 20px;
}

.marketplace-sell-item-icon img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.marketplace-sell-item-details h5 {
	color: #ffd700;
	margin-bottom: 10px;
}

.marketplace-sell-item-type {
	background: rgba(52, 152, 219, 0.3);
	color: #3498db;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8em;
	display: inline-block;
	margin-bottom: 10px;
}

.marketplace-tier-popover .popover-header {
	background: #0d6efd !important;
	color: #fff !important;
	border-bottom: none;
	border-radius: 0.5rem 0.5rem 0 0;
	font-weight: 600;
}

.marketplace-tier-popover .popover-body {
	font-size: 0.95rem;
}
