/* Create league wizard — hub modal */
body.lc-wizard-open { overflow: hidden; }
.hidden { display: none !important; }

.lc-wizard-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(4, 6, 12, 0.72);
	backdrop-filter: blur(8px);
	animation: lcFadeIn 0.25s ease;
}
@keyframes lcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lc-wizard-modal.hidden { display: none; }

.lc-wizard-dialog {
	width: min(680px, 100%);
	max-height: min(92vh, 820px);
	height: min(92vh, 820px);
	display: flex;
	flex-direction: column;
	background: linear-gradient(165deg, #151525 0%, #0f1018 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

#lcWizardForm {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.lc-wizard-top { padding: 1.25rem 1.5rem 0; flex-shrink: 0; }
.lc-wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.lc-wizard-head h2 { margin: 0; font-family: Orbitron, Rajdhani, sans-serif; font-size: 1.2rem; font-weight: 700; }
.lc-wizard-head p { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--text-dim, #94a3b8); }
.lc-wizard-close { width: 2rem; height: 2rem; border: none; border-radius: 8px; background: rgba(255,255,255,0.06); color: inherit; cursor: pointer; font-size: 1.1rem; }
.lc-wizard-close:hover { background: rgba(255,255,255,0.12); }

.lc-progress-track { display: flex; gap: 0.35rem; margin-bottom: 0.35rem; }
.lc-progress-seg { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lc-progress-seg span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #60a5fa); transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.lc-progress-seg.done span, .lc-progress-seg.active span { width: 100%; }
.lc-progress-labels { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(148,163,184,0.65); }
.lc-progress-labels span.active { color: #c4b5fd; }
.lc-progress-labels span.done { color: #94a3b8; }

.lc-step-viewport { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; padding: 0 1.5rem; }
.lc-step-panel { display: none; padding: 1rem 0 0.5rem; box-sizing: border-box; animation: lcStepIn 0.32s ease; }
.lc-step-panel.is-active { display: block; }
@keyframes lcStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.lc-step-heading { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; }
.lc-step-sub { margin: 0 0 1rem; font-size: 0.88rem; color: var(--text-dim, #94a3b8); line-height: 1.45; }

.lc-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.lc-template-card { display: flex; flex-direction: column; padding: 0; border: 2px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(0,0,0,0.2); color: inherit; cursor: pointer; font: inherit; text-align: left; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.lc-template-card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-2px); }
.lc-template-card--active { border-color: #a78bfa; box-shadow: 0 0 0 1px rgba(167,139,250,0.35), 0 8px 24px rgba(124,58,237,0.2); }
.lc-template-preview { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0a0a10; }
.lc-template-meta { padding: 0.65rem 0.75rem 0.75rem; }
.lc-template-meta strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.lc-template-meta span { font-size: 0.78rem; color: var(--text-dim, #94a3b8); line-height: 1.35; }

.lc-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.lc-color-card { display: flex; flex-direction: column; padding: 0; border: 2px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(0,0,0,0.2); color: inherit; cursor: pointer; font: inherit; text-align: left; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.lc-color-card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-2px); }
.lc-color-card--active { border-color: #a78bfa; box-shadow: 0 0 0 1px rgba(167,139,250,0.35), 0 8px 24px rgba(124,58,237,0.2); }
.lc-color-swatches { display: flex; gap: 0; height: 56px; }
.lc-color-swatch { flex: 1; min-height: 56px; }
.lc-color-card .lc-template-meta { padding: 0.65rem 0.75rem 0.75rem; }

.lc-field { margin-bottom: 1rem; }
.lc-field-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8; margin-bottom: 0.4rem; }
.lc-field-label .lc-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: #64748b; }
.lc-input { width: 100%; box-sizing: border-box; padding: 0.72rem 0.85rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(0,0,0,0.25); color: inherit; font: inherit; font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.15s; }
.lc-input:focus { outline: none; border-color: rgba(124,58,237,0.65); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.lc-input-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: #64748b; }
.lc-input-hint code { color: #c4b5fd; font-size: 0.85em; }
.lc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.lc-form-grid .lc-field--full { grid-column: 1 / -1; }

.lc-upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.25rem; border: 2px dashed rgba(255,255,255,0.12); border-radius: 12px; background: rgba(0,0,0,0.15); cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; }
.lc-upload-zone:hover, .lc-upload-zone.lc-upload-zone--has-file { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.06); }
.lc-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lc-upload-icon { font-size: 1.5rem; opacity: 0.7; pointer-events: none; }
.lc-upload-text { font-size: 0.88rem; color: #94a3b8; pointer-events: none; }
.lc-upload-text strong { color: #e2e8f0; }
.lc-logo-preview { margin-top: 0.65rem; display: flex; align-items: center; gap: 0.75rem; }
.lc-logo-preview img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }

.lc-features-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 340px; overflow-y: auto; }
.lc-feature-card { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.85rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); background: rgba(0,0,0,0.18); }
.lc-feature-card--locked { opacity: 0.5; }
.lc-feature-card--required { border-color: rgba(96,165,250,0.2); background: rgba(59,130,246,0.06); }
.lc-feature-info strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.lc-feature-info span { font-size: 0.78rem; color: #64748b; line-height: 1.35; }
.lc-badge { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.4rem; border-radius: 4px; margin-left: 0.35rem; vertical-align: middle; }
.lc-badge--premium { background: rgba(251,191,36,0.18); color: #fbbf24; }
.lc-badge--required { background: rgba(96,165,250,0.18); color: #60a5fa; }

.lc-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.lc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.lc-toggle-slider { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,0.12); cursor: pointer; transition: background 0.2s; }
.lc-toggle-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.lc-toggle input:checked + .lc-toggle-slider { background: #7c3aed; }
.lc-toggle input:checked + .lc-toggle-slider::before { transform: translateX(20px); }
.lc-toggle input:disabled + .lc-toggle-slider { opacity: 0.55; cursor: not-allowed; }

.lc-review-card { padding: 1rem; border-radius: 12px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.08); }
.lc-review-preview { width: 100%; max-width: 200px; border-radius: 8px; margin-bottom: 0.75rem; }
.lc-review-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.lc-review-row:last-child { border-bottom: none; }
.lc-review-row dt { color: #64748b; margin: 0; }
.lc-review-row dd { margin: 0; text-align: right; font-weight: 600; }
.lc-review-feats { margin: 0.75rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lc-review-feats li { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 6px; background: rgba(124,58,237,0.15); color: #c4b5fd; }

.lc-game-type-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.65rem;
}
.lc-game-type-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.85rem;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(0,0,0,0.18);
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.lc-game-type-card strong { font-size: 0.92rem; }
.lc-game-type-card span { font-size: 0.78rem; color: #94a3b8; line-height: 1.35; }
.lc-game-type-pos { font-family: "Orbitron", sans-serif; font-size: 0.68rem !important; letter-spacing: 0.06em; color: #cbd5e1 !important; margin-top: 0.15rem; }
.lc-game-type-card--active {
	border-color: rgba(124,58,237,0.55);
	box-shadow: 0 0 0 1px rgba(124,58,237,0.25);
	background: rgba(124,58,237,0.12);
}

.lc-wizard-foot {
	flex-shrink: 0;
	padding: 0.85rem 1.5rem 1.25rem;
	border-top: 1px solid rgba(255,255,255,0.06);
	background: rgba(15, 16, 24, 0.98);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.lc-wizard-foot .msg { margin: 0 0 0.65rem; min-height: 1.25rem; font-size: 0.88rem; }
.lc-wizard-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; align-items: center; }
.lc-btn-back { margin-right: auto; }

.lc-wizard-actions .btn-primary,
.lc-wizard-actions .btn-secondary,
.lc-wizard-actions .btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 1.15rem;
	border-radius: 10px;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lc-wizard-actions .btn-primary {
	background: linear-gradient(135deg, #7c3aed, #6366f1);
	color: #fff;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.lc-wizard-actions .btn-primary:hover {
	background: linear-gradient(135deg, #8b5cf6, #818cf8);
}
.lc-wizard-actions .btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.lc-wizard-actions .btn-ghost {
	background: transparent;
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.lc-wizard-actions .btn-ghost:hover {
	color: #e2e8f0;
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}
.lc-done-panel { padding: 2rem 1.5rem; text-align: center; }
.lc-done-panel h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.lc-done-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }

.lc-prov-success {
	max-width: 28rem;
	margin: 0 auto;
	padding: 0.5rem 0 0.25rem;
}
.lc-prov-orb {
	position: relative;
	width: 88px;
	height: 88px;
	margin: 0 auto 1.25rem;
}
.lc-prov-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(129, 140, 248, 0.35);
	border-top-color: #a78bfa;
	animation: lc-prov-spin 1.4s linear infinite;
}
.lc-prov-core {
	position: absolute;
	inset: 18px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #c4b5fd, #6366f1 55%, #312e81 100%);
	box-shadow: 0 0 28px rgba(99, 102, 241, 0.45);
	animation: lc-prov-pulse 2.2s ease-in-out infinite;
}
@keyframes lc-prov-spin { to { transform: rotate(360deg); } }
@keyframes lc-prov-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(0.92); opacity: 0.85; }
}
.lc-prov-core--live {
	background: radial-gradient(circle at 35% 30%, #86efac, #22c55e 55%, #14532d 100%);
	box-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
	animation: none;
}
.lc-prov-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #a5b4fc;
}
.lc-prov-title {
	margin: 0 0 0.75rem;
	font-family: "Orbitron", sans-serif;
	font-size: 1.15rem;
	line-height: 1.35;
	color: #f8fafc;
}
.lc-prov-lead {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #94a3b8;
}
.lc-prov-lead strong { color: #e2e8f0; }
.lc-prov-timer {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-family: "Orbitron", sans-serif;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	color: #c4b5fd;
	background: rgba(99, 102, 241, 0.14);
	border: 1px solid rgba(129, 140, 248, 0.35);
}
.lc-prov-steps {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	text-align: left;
	font-size: 0.84rem;
	color: #64748b;
}
.lc-prov-steps li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.35rem;
}
.lc-prov-steps li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: linear-gradient(135deg, #818cf8, #a78bfa);
	box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}
.lc-prov-hint {
	margin: 0 0 0.25rem;
	font-size: 0.86rem;
	line-height: 1.5;
	color: #64748b;
}
.lc-prov-hint strong { color: #cbd5e1; }

@media (max-width: 600px) {
	.lc-template-grid, .lc-color-grid, .lc-form-grid { grid-template-columns: 1fr; }
}
