/* ================================
   LOTERÍA - JEWEL MU
=================================== */

.lot-page, .lot-page * {
	box-sizing: border-box;
}

.lot-page {
	position: relative;
	max-width: var(--layout-index-span, var(--module-layout-max, 1120px));
	margin: 0 auto;
	padding: 18px 12px 40px;
	font-family: "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: #f5f0e4;
	overflow: hidden;
}

.lot-bg-glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}

.lot-bg-glow--left {
	top: -80px;
	left: -120px;
	background: radial-gradient(circle, rgba(255, 196, 72, 0.55), transparent 70%);
	animation: lot-float 8s ease-in-out infinite;
}

.lot-bg-glow--right {
	bottom: 120px;
	right: -100px;
	background: radial-gradient(circle, rgba(120, 180, 255, 0.35), transparent 70%);
	animation: lot-float 10s ease-in-out infinite reverse;
}

.lot-sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.lot-sparkles span {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 220, 130, 0.9);
	box-shadow: 0 0 10px rgba(255, 220, 130, 0.8);
	animation: lot-sparkle 4s ease-in-out infinite;
}

.lot-sparkles span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.lot-sparkles span:nth-child(2) { top: 28%; left: 88%; animation-delay: 0.8s; }
.lot-sparkles span:nth-child(3) { top: 52%; left: 14%; animation-delay: 1.4s; }
.lot-sparkles span:nth-child(4) { top: 68%; left: 76%; animation-delay: 2s; }
.lot-sparkles span:nth-child(5) { top: 84%; left: 42%; animation-delay: 2.6s; }
.lot-sparkles span:nth-child(6) { top: 38%; left: 52%; animation-delay: 3.2s; }

.lot-page > section,
.lot-page > .lot-flash {
	position: relative;
	z-index: 1;
}

.lot-hero {
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 28px 26px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 0% 0%, rgba(255, 220, 130, 0.12), transparent 55%),
		linear-gradient(135deg, #120d08, #1a1208 45%, #22180c);
	border: 1px solid rgba(210, 164, 74, 0.75);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.65), 0 0 40px rgba(210, 164, 74, 0.18);
	margin-bottom: 22px;
	overflow: hidden;
}

.lot-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: conic-gradient(from 180deg, transparent, rgba(255, 220, 140, 0.7), transparent, rgba(193, 148, 68, 0.7), transparent);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.55;
	animation: lot-border-spin 12s linear infinite;
	pointer-events: none;
}

.lot-hero-badge {
	position: relative;
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 30% 20%, #fff8e0, #ffd97d 40%, #c38c32 72%, #5a350c 100%);
	box-shadow: 0 0 24px rgba(255, 215, 130, 0.55);
	animation: lot-badge-pulse 3.5s ease-in-out infinite;
}

.lot-hero-badge-inner {
	font-size: 42px;
	line-height: 1;
}

.lot-hero-badge-ring {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px dashed rgba(255, 220, 130, 0.45);
	animation: lot-border-spin 10s linear infinite reverse;
}

.lot-kicker {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 220, 150, 0.75);
}

.lot-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.05;
	color: #ffe7a8;
	text-shadow: 0 0 18px rgba(255, 215, 120, 0.35);
}

.lot-lead {
	margin: 0 0 18px;
	max-width: 720px;
	line-height: 1.65;
	color: rgba(245, 240, 228, 0.88);
}

.lot-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lot-stat {
	min-width: 120px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.lot-stat-num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #ffd97d;
}

.lot-stat-label {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: rgba(245, 240, 228, 0.65);
}

.lot-flash {
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
}

.lot-flash--success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(74, 222, 128, 0.35);
	color: #bbf7d0;
}

.lot-flash--error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(248, 113, 113, 0.35);
	color: #fecaca;
}

.lot-showcase {
	display: grid;
	grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
	gap: 18px;
	margin-bottom: 22px;
}

.lot-showcase-frame {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lot-showcase-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.lot-showcase-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
	transform: translateX(-120%);
	animation: lot-shine 5s ease-in-out infinite;
	pointer-events: none;
}

.lot-showcase-note {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(245, 240, 228, 0.78);
}

.lot-prizes {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lot-prize {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lot-prize:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lot-prize--bronze { border-left: 4px solid #cd7f32; }
.lot-prize--silver { border-left: 4px solid #c0c0c0; }
.lot-prize--gold {
	border-left: 4px solid #ffd700;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.03));
}
.lot-prize--platinum {
	position: relative;
	overflow: hidden;
	border-left: 4px solid #e5e7eb;
	background: linear-gradient(135deg, rgba(196, 181, 253, 0.14), rgba(229, 231, 235, 0.06), rgba(255, 255, 255, 0.03));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(196, 181, 253, 0.12);
}
.lot-prize--platinum::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, rgba(196, 181, 253, 0.18) 52%, transparent 70%);
	transform: translateX(-130%);
	animation: lot-prize-shimmer 4.2s ease-in-out infinite;
	pointer-events: none;
}
.lot-prize--platinum .lot-prize-body h3 {
	color: #f5f3ff;
	text-shadow: 0 0 14px rgba(196, 181, 253, 0.45);
}
.lot-prize--platinum .lot-prize-chance {
	color: #ddd6fe;
}
.lot-prize--diamond {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(103, 232, 249, 0.35);
	border-left: 4px solid #67e8f9;
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(186, 230, 253, 0.08), rgba(255, 255, 255, 0.04));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 28px rgba(34, 211, 238, 0.18);
	animation: lot-diamond-pulse 3.2s ease-in-out infinite;
}
.lot-prize--diamond::before {
	content: "";
	position: absolute;
	inset: -40%;
	background: conic-gradient(from 180deg, transparent, rgba(103, 232, 249, 0.18), transparent, rgba(186, 230, 253, 0.22), transparent);
	animation: lot-border-spin 8s linear infinite;
	opacity: 0.55;
	pointer-events: none;
}
.lot-prize--diamond::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.22) 50%, transparent 72%);
	transform: translateX(-130%);
	animation: lot-prize-shimmer 3s ease-in-out infinite;
	pointer-events: none;
}
.lot-prize--diamond .lot-prize-body h3 {
	color: #cffafe;
	text-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}
.lot-prize--diamond .lot-prize-chance {
	color: #a5f3fc;
}
.lot-prize--diamond .lot-prize-icon {
	filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.65));
	animation: lot-diamond-icon 2.8s ease-in-out infinite;
}
.lot-prize--epic .lot-prize-icon {
	filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.55));
}
.lot-prize--legendary .lot-prize-body,
.lot-prize--epic .lot-prize-body {
	position: relative;
	z-index: 1;
}

.lot-prize-icon {
	font-size: 28px;
	line-height: 1;
	flex: 0 0 auto;
}

.lot-prize-body h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

.lot-prize-chance {
	margin: 0 0 6px;
	font-size: 13px;
	color: rgba(255, 220, 150, 0.85);
	font-weight: 700;
}

.lot-prize-body p:last-child {
	margin: 0;
	line-height: 1.5;
	color: rgba(245, 240, 228, 0.82);
}

.lot-redeem {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 22px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: rgba(0, 188, 212, 0.08);
	border: 1px solid rgba(0, 188, 212, 0.28);
}

.lot-redeem-icon {
	font-size: 28px;
	line-height: 1;
}

.lot-redeem h2 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #7ee7ff;
}

.lot-redeem p {
	margin: 0;
	line-height: 1.6;
	color: rgba(245, 240, 228, 0.86);
}

.lot-redeem a {
	color: #7ee7ff;
	text-decoration: underline;
}

.lot-winners {
	padding: 22px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 215, 120, 0.18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lot-winners-head h2 {
	margin: 0 0 6px;
	font-size: 24px;
	color: #ffd97d;
}

.lot-winners-head p {
	margin: 0 0 18px;
	color: rgba(245, 240, 228, 0.7);
}

.lot-empty {
	margin: 0;
	padding: 18px;
	text-align: center;
	color: rgba(245, 240, 228, 0.65);
}

.lot-winners-table-wrap {
	overflow-x: auto;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.lot-winners-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 560px;
}

.lot-winners-table th,
.lot-winners-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lot-winners-table th {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(245, 240, 228, 0.65);
	background: rgba(255, 255, 255, 0.03);
}

.lot-winner-row {
	transition: background 0.2s ease;
}

.lot-winner-row:hover {
	background: rgba(255, 255, 255, 0.04);
}

.lot-winner-name {
	font-weight: 700;
	color: #fff6dd;
}

.lot-winner-class {
	color: rgba(245, 240, 228, 0.82);
}

.lot-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.lot-badge--bronze {
	background: #cd7f32;
	color: #fff;
}

.lot-badge--silver {
	background: #c0c0c0;
	color: #111;
}

.lot-badge--gold {
	background: linear-gradient(45deg, #ffd700, #ffae00);
	color: #111;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

.lot-badge--platinum {
	background: linear-gradient(45deg, #e5e7eb, #c4b5fd, #f8fafc);
	color: #1e1b4b;
	box-shadow: 0 0 12px rgba(196, 181, 253, 0.45);
}

.lot-badge--diamond {
	background: linear-gradient(45deg, #67e8f9, #bae6fd, #ffffff);
	color: #083344;
	box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
	animation: lot-diamond-badge 2.8s ease-in-out infinite;
}

.lot-winner-row--platinum {
	background: linear-gradient(90deg, rgba(196, 181, 253, 0.06), transparent 65%);
}
.lot-winner-row--diamond {
	background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 65%);
}
.lot-winner-row--diamond:hover {
	box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.lot-winner-actions {
	width: 42px;
	text-align: right;
}

.lot-remove-btn {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(248, 113, 113, 0.35);
	border-radius: 8px;
	background: rgba(239, 68, 68, 0.12);
	color: #fecaca;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.lot-remove-btn:hover {
	background: rgba(239, 68, 68, 0.22);
}

.lot-admin {
	margin-top: 22px;
	padding: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px dashed rgba(255, 215, 120, 0.35);
}

.lot-admin h2 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #ffd97d;
}

.lot-admin > p {
	margin: 0 0 16px;
	color: rgba(245, 240, 228, 0.72);
	line-height: 1.55;
}

.lot-admin-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.lot-admin-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: rgba(245, 240, 228, 0.75);
}

.lot-admin-grid input,
.lot-admin-grid select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.25);
	color: #f5f0e4;
}

.lot-admin-submit {
	padding: 11px 18px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #ffd97d, #c38c32);
	color: #2a1805;
	font-weight: 800;
	cursor: pointer;
}

.lot-admin-submit:hover {
	filter: brightness(1.05);
}

@keyframes lot-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes lot-border-spin {
	to { transform: rotate(360deg); }
}

@keyframes lot-badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}

@keyframes lot-shine {
	0%, 100% { transform: translateX(-120%); }
	45%, 55% { transform: translateX(120%); }
}

@keyframes lot-sparkle {
	0%, 100% { opacity: 0.2; transform: scale(0.8); }
	50% { opacity: 1; transform: scale(1.3); }
}

@keyframes lot-prize-shimmer {
	0%, 100% { transform: translateX(-130%); }
	45%, 55% { transform: translateX(130%); }
}

@keyframes lot-diamond-pulse {
	0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(34, 211, 238, 0.14); }
	50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 34px rgba(34, 211, 238, 0.28); }
}

@keyframes lot-diamond-icon {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50% { transform: scale(1.08) rotate(-4deg); }
}

@keyframes lot-diamond-badge {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.12); box-shadow: 0 0 16px rgba(34, 211, 238, 0.65); }
}

@media (max-width: 900px) {
	.lot-showcase {
		grid-template-columns: 1fr;
	}

	.lot-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.lot-admin-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.lot-stats {
		flex-direction: column;
	}

	.lot-redeem {
		flex-direction: column;
	}
}
