/* Secret Shop styles */
.secret-shop-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
}

.secret-shop-cta-ill img {
	width: 120px;
	height: auto;
	border-radius: 8px;
}

.secret-shop-card .secret-shop-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.secret-shop-slots {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 14px;
}

.secret-shop-slot {
	background: #222;
	border-radius: 8px;
	height: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	position: relative;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform, box-shadow;
	border: 2px solid transparent;
}

.secret-shop-slot:not(.slot-empty):hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px rgba(76, 201, 240, 0.25);
	border-color: rgba(76, 201, 240, 0.4);
}

.secret-shop-slot.selected {
	border-color: rgba(76, 201, 240, 0.8);
	box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
	background: rgba(76, 201, 240, 0.08);
}

.secret-shop-slot img {
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
	border-radius: 6px;
}

.secret-shop-slot-price {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #ffd54d;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

.slot-empty {
	background: #2b2b2b;
	border: 2px dashed rgba(255, 255, 255, 0.04);
	opacity: 0.6;
}

.secret-shop-controls {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	position: relative;
}

.secret-shop-controls.locked {
	pointer-events: none;
	opacity: 0.5;
}

.secret-shop-selection-label {
	position: absolute;
	top: -32px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(90deg, rgba(76, 201, 240, 0.15), rgba(76, 201, 240, 0.25));
	color: #4cc9f0;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid rgba(76, 201, 240, 0.3);
}

.secret-shop-currency .ss-currency {
	margin-right: 6px;
}

.ss-currency.active {
	box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.12);
}

.secret-shop-inputs {
	display: flex;
	gap: 8px;
	align-items: center;
}

.secret-shop-inputs .wallet-input {
	width: 140px;
}

.secret-shop-item-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	max-height: 220px;
	overflow: auto;
	padding: 6px;
}

.secret-shop-item {
	width: 120px;
	background: var(--panel, #111);
	border-radius: 8px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	text-align: center;
	opacity: 0.9;
}

.secret-shop-item.disabled {
	filter: grayscale(1);
	opacity: 0.45;
}

.secret-shop-item img {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.secret-shop-item .chance {
	font-size: 12px;
	color: var(--accent, #4cc9f0);
}

.secret-shop-spinner-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	z-index: 100;
	border-radius: 8px;
}

.secret-shop-spinner {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.secret-shop-spinner::before {
	content: "";
	position: absolute;
	inset: -40px;
	background: radial-gradient(circle, rgba(76, 201, 240, 0.15), transparent 70%);
	border-radius: 50%;
	animation: spin-glow 1.2s linear infinite;
	will-change: transform;
}

.secret-shop-spinner-slot {
	background: rgba(34, 34, 34, 0.8);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 2px solid rgba(76, 201, 240, 0.2);
}

.secret-shop-spinner-slot img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	transition: opacity 0.06s linear;
	will-change: opacity;
}

@keyframes spin-glow {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.secret-shop-card .secret-shop-timer {
	font-size: 13px;
}

/* Responsive: 2x2 grid on small screens */
@media (max-width: 768px) {
	.secret-shop-slots {
		grid-template-columns: repeat(2, 1fr);
	}

	.secret-shop-spinner {
		grid-template-columns: repeat(2, 1fr);
	}

	.secret-shop-item {
		width: 48%;
	}

	.secret-shop-slot {
		height: 140px;
	}

	.secret-shop-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.secret-shop-inputs {
		width: 100%;
	}

	.secret-shop-inputs .wallet-input {
		flex: 1;
	}
}

/* CTA banner overlay */
.secret-shop-cta {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.secret-shop-cta-ill img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.secret-shop-cta .btn {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
}

.secret-shop-cta-text {
	position: absolute;
	left: 16px;
	bottom: 18px;
	color: #fff;
	z-index: 2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.secret-shop-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
	pointer-events: none;
}

/* Trader box */
.secret-shop-trader {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.secret-shop-trader-avatar {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.secret-shop-trader-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.secret-shop-trader-bubble {
	background: linear-gradient(180deg, #111827, #0b1220);
	color: #fff;
	padding: 10px 12px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
	max-width: 70%;
	font-size: 14px;
}

.secret-shop-trader-bubble.muted {
	opacity: 0.9;
	color: #e6eef8;
}

/* Jackpot item highlight */
.jackpot-item {
	border: 2px solid rgba(255, 215, 80, 0.9);
	box-shadow: 0 0 18px rgba(255, 200, 60, 0.18), 0 0 6px rgba(255, 215, 80, 0.12) inset;
	animation: jackpot-pulse 1.6s infinite;
}

@keyframes jackpot-pulse {
	0% {
		box-shadow: 0 0 6px rgba(255, 200, 60, 0.08), 0 0 18px rgba(255, 200, 60, 0.06);
		transform: translateZ(0) scale(1);
	}

	50% {
		box-shadow: 0 0 22px rgba(255, 215, 80, 0.18), 0 0 36px rgba(255, 200, 60, 0.12);
		transform: translateZ(0) scale(1.02);
	}

	100% {
		box-shadow: 0 0 6px rgba(255, 200, 60, 0.08), 0 0 18px rgba(255, 200, 60, 0.06);
		transform: translateZ(0) scale(1);
	}
}

/* Reveal animation for slots */
.secret-shop-slot {
	transition: transform 0.45s cubic-bezier(.2, .9, .2, 1), opacity 0.35s ease;
	transform: translateY(28px);
	opacity: 0;
}

.secret-shop-slot.revealed {
	transform: translateY(0);
	opacity: 1;
}

/* Fullscreen reward modal (enhanced drop modal) */
#drop-modal-overlay.drop-fullscreen {
	display: flex !important;
	justify-content: center;
	align-items: center;
	background: linear-gradient(180deg, rgba(3, 7, 18, 0.92), rgba(2, 6, 23, 0.96));
	z-index: 1300;
}

.drop-sheet {
	max-width: 920px;
	width: 95%;
	border-radius: 12px;
	overflow: visible;
}

.drop-content {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 28px;
}

.drop-item-view img.drop-big {
	width: 260px;
	height: 260px;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.drop-info {
	flex: 1;
}

.drop-info h2 {
	margin-bottom: 8px;
	font-size: 28px;
}

.drop-actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}

.btn.btn-melt {
	background: linear-gradient(90deg, #ffb84d, #ff8a00);
	color: #000;
}

.btn.btn-keep {
	background: linear-gradient(90deg, #4cc9f0, #2bb3d8);
	color: #fff;
}

/* Secret Shop Modal System */
.ss-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 1400;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.ss-modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.ss-modal {
	background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
	border-radius: 20px 20px 0 0;
	width: 100%;
	max-width: 520px;
	padding: 24px;
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
	border-top: 2px solid rgba(76, 201, 240, 0.2);
}

.ss-modal-overlay.active .ss-modal {
	transform: translateY(0);
}

.ss-modal-header {
	text-align: center;
	margin-bottom: 20px;
}

.ss-modal-title {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}

.ss-modal-subtitle {
	font-size: 14px;
	color: var(--muted);
}

.ss-modal-body {
	margin-bottom: 20px;
}

.ss-modal-item-preview {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(34, 34, 34, 0.6);
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.ss-modal-item-preview img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 8px;
}

.ss-modal-item-info {
	flex: 1;
}

.ss-modal-item-name {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.ss-modal-item-value {
	font-size: 14px;
	color: #ffd54d;
	font-weight: 600;
}

.ss-modal-actions {
	display: flex;
	gap: 12px;
}

.ss-modal-actions .btn {
	flex: 1;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
}

.btn.btn-cancel {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.btn.btn-cancel:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn.btn-confirm {
	background: linear-gradient(90deg, #4cc9f0, #2bb3d8);
	color: #fff;
}

.btn.btn-confirm:hover {
	background: linear-gradient(90deg, #5dd9ff, #3cc3e8);
}

/* Processing state */
.btn.processing {
	position: relative;
	pointer-events: none;
	opacity: 0.7;
}

.btn.processing::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin-btn 0.6s linear infinite;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

@keyframes spin-btn {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* Available items glow */
.secret-shop-item.available {
	filter: grayscale(0);
	opacity: 1;
	position: relative;
	animation: item-glow 2s ease-in-out infinite;
}

.secret-shop-item.available::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, rgba(76, 201, 240, 0.3), rgba(76, 201, 240, 0.1));
	border-radius: 8px;
	z-index: -1;
	opacity: 0.6;
}

@keyframes item-glow {

	0%,
	100% {
		box-shadow: 0 0 8px rgba(76, 201, 240, 0.3);
	}

	50% {
		box-shadow: 0 0 16px rgba(76, 201, 240, 0.6);
	}
}

/* Cancel session button */
.secret-shop-cancel-session {
	margin-top: 12px;
	text-align: center;
}

.secret-shop-cancel-session .btn {
	background: rgba(255, 80, 80, 0.15);
	color: #ff6b6b;
	border: 1px solid rgba(255, 80, 80, 0.3);
	font-size: 13px;
	padding: 8px 16px;
}

.secret-shop-cancel-session .btn:hover {
	background: rgba(255, 80, 80, 0.25);
}