:root {
	--l3d-purple: #6d28d9;
	--l3d-lilac: #a78bfa;
	--l3d-mist: #f5f3ff;
	--l3d-ink: #1e1333;
	--l3d-card: #ffffff;
}

.l3d-app {
	font-family: "Segoe UI", system-ui, sans-serif;
	color: var(--l3d-ink);
	background: radial-gradient(1200px 500px at 20% -10%, #ede9fe, transparent 50%), var(--l3d-mist);
	border-radius: 28px;
	padding: 28px 22px 36px;
	max-width: 1080px;
	margin: 0 auto;
}

.l3d-hero { text-align: center; margin-bottom: 18px; }
.l3d-eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--l3d-purple); font-size: 12px; margin: 0; }
.l3d-hero h2 { font-size: 2rem; margin: 8px 0 6px; }
.l3d-lede { margin: 0 auto; max-width: 46ch; color: #5b4b76; }

.l3d-feature-hub {
	margin: 8px 0 20px;
}
.l3d-feature-hub .l3d-cards {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.l3d-stage { margin-top: 4px; }
.l3d-editor-canvas-wrap { display: flex; flex-direction: column; gap: 8px; }
.l3d-radio {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin: 6px 0 !important;
}
.l3d-radio input { accent-color: var(--l3d-purple); }
.l3d-np-layout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #ede9fe;
}
#l3d-illusion-preview,
#l3d-photo3d-preview,
#l3d-preview {
	width: 100%;
	height: 460px;
	display: block;
	touch-action: none;
}
.l3d-size-pick {
	margin-bottom: 12px;
}
#l3d-price-tier {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ddd6fe;
	border-radius: 12px;
	box-sizing: border-box;
}

.l3d-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	justify-content: center;
	margin: 18px 0 24px;
}
.l3d-step {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 999px;
	padding: 6px 12px 6px 6px;
	font-size: 13px;
	color: #6b5a86;
	border: 1px solid #e9e2f8;
}
.l3d-step span {
	width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center;
	background: #efe8ff; color: var(--l3d-purple); font-weight: 700;
}
.l3d-step.is-active { border-color: var(--l3d-lilac); color: var(--l3d-ink); }
.l3d-step.is-active span { background: var(--l3d-purple); color: #fff; }
.l3d-step.is-done span { background: #c4b5fd; color: #fff; }

.l3d-panel { display: none; }
.l3d-panel.is-active { display: block; }

.l3d-drop {
	border: 2px dashed #c4b5fd;
	background: #fff;
	border-radius: 24px;
	min-height: 280px;
	display: grid;
	place-items: center;
	cursor: pointer;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.l3d-app .l3d-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	font-size: 100px;
	display: block !important;
	margin: 0;
	padding: 0;
}
.l3d-drop.is-hover { border-color: var(--l3d-purple); background: #faf8ff; }
.l3d-browse { pointer-events: auto; position: relative; z-index: 3; display: inline-block; margin-top: 14px; }
.l3d-upbar {
	margin-top: 12px; height: 10px; background: #ede9fe; border-radius: 999px; position: relative; overflow: hidden;
}
.l3d-upbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a78bfa, #6d28d9); transition: width .15s; }
.l3d-upbar em { position: absolute; right: 8px; top: -22px; font-size: 12px; color: var(--l3d-purple); font-style: normal; }
.l3d-drop strong { display: block; font-size: 1.15rem; }
.l3d-drop span { color: #7c6b99; }
.l3d-photo-wrap {
	background: #fff;
	border-radius: 24px;
	min-height: 320px;
	display: grid;
	place-items: center;
	position: relative;
	overflow: hidden;
}
.l3d-photo-wrap img {
	max-width: 100%;
	max-height: 420px;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}
.is-hidden { display: none !important; }
.l3d-dims { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ede9fe; }
.l3d-dims label input[type="number"] {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ddd6fe;
	border-radius: 12px;
	box-sizing: border-box;
}
.is-checker {
	background-image:
		linear-gradient(45deg, #ece6ff 25%, transparent 25%),
		linear-gradient(-45deg, #ece6ff 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #ece6ff 75%),
		linear-gradient(-45deg, transparent 75%, #ece6ff 75%);
	background-size: 24px 24px;
	background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.l3d-view-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 8px;
}
@media (min-width: 720px) {
	.l3d-view-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* One photo is the whole requirement; the extra angles stay folded away. */
.l3d-view-extra { grid-column: 1 / -1; }
.l3d-view-extra > summary {
	cursor: pointer;
	padding: 10px 14px;
	border: 1px dashed #ddd6fe;
	border-radius: 14px;
	background: #faf8ff;
	color: #6b5a86;
	font-size: 0.85rem;
	font-weight: 600;
	list-style: none;
}
.l3d-view-extra > summary::-webkit-details-marker { display: none; }
.l3d-view-extra > summary::before { content: '+ '; }
.l3d-view-extra[open] > summary::before { content: '– '; }
@media (min-width: 720px) {
	.l3d-view-extra > .l3d-view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.l3d-view-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 12px;
	border: 2px dashed #ddd6fe;
	border-radius: 18px;
	background: #faf8ff;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
}
.l3d-view-slot.is-hover,
.l3d-view-slot.is-filled { border-color: var(--l3d-purple); background: #f5f0ff; }
.l3d-view-slot .l3d-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}
.l3d-view-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4c1d95;
	margin-bottom: 8px;
	z-index: 1;
	pointer-events: none;
}
.l3d-view-hint {
	font-size: 0.78rem;
	color: #7c6b99;
	font-style: normal;
	z-index: 1;
	pointer-events: none;
}
.l3d-view-thumb {
	max-width: 100%;
	max-height: 110px;
	object-fit: contain;
	border-radius: 10px;
	z-index: 1;
	pointer-events: none;
}

.l3d-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.l3d-btn {
	background: linear-gradient(180deg, #7c3aed, #6d28d9);
	color: #fff; border: 0; border-radius: 999px;
	padding: 12px 20px; font-weight: 600; cursor: pointer;
}
.l3d-btn:disabled { opacity: .45; cursor: not-allowed; }
.l3d-btn-ghost { background: #fff; color: var(--l3d-purple); border: 1px solid #ddd6fe; }

.l3d-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.l3d-card {
	background: #fff; border: 2px solid #ede9fe; border-radius: 20px;
	padding: 16px; text-align: left; cursor: pointer;
}
.l3d-card.is-active { border-color: var(--l3d-purple); box-shadow: 0 8px 24px rgba(109, 40, 217, .12); }
.l3d-card strong, .l3d-card span, .l3d-card em { display: block; }
.l3d-card em { color: var(--l3d-purple); margin-top: 8px; font-style: normal; font-weight: 700; }
.l3d-card img { width: 100%; border-radius: 12px; margin-bottom: 8px; }

.l3d-price { text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--l3d-purple); }

.l3d-editor { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
@media (max-width: 800px) { .l3d-editor { grid-template-columns: 1fr; } }
#l3d-edit-canvas { width: 100%; background: repeating-conic-gradient(#f3e8ff 0% 25%, #fff 0% 50%) 50% / 24px 24px; border-radius: 20px; cursor: grab; touch-action: none; }
#l3d-edit-canvas.is-drag { cursor: grabbing; }
.l3d-tools { background: #fff; border-radius: 20px; padding: 16px; }
.l3d-tools label { display: block; font-size: 13px; margin: 10px 0; }
.l3d-tools input[type=range] { width: 100%; accent-color: var(--l3d-purple); }
.l3d-tools input[type="number"],
.l3d-tools input[type="text"],
.l3d-tools select {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ddd6fe;
	border-radius: 12px;
	box-sizing: border-box;
}
.l3d-tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.l3d-chip {
	border: 1px solid #ddd6fe; background: #fff; border-radius: 999px;
	padding: 8px 12px; cursor: pointer; color: var(--l3d-purple);
}
.l3d-chip.is-active { background: var(--l3d-purple); color: #fff; }

.l3d-preview-shell { background: #0b0614; border-radius: 24px; overflow: hidden; position: relative; min-height: 420px; }
#l3d-preview { width: 100%; height: 460px; display: block; }
.l3d-preview-shell.is-sized {
	width: 100%;
	max-width: min(100%, 420px);
	margin: 0 auto;
	min-height: 0;
	aspect-ratio: var(--l3d-preview-ar, 0.89);
	height: auto;
}
.l3d-preview-shell.is-sized #l3d-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.l3d-preview-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.l3d-views360 { margin-top: 14px; background: #fff; border-radius: 20px; padding: 14px 16px; }
.l3d-views360[hidden] { display: none; }
.l3d-views360-head { font-weight: 700; color: var(--l3d-purple); margin-bottom: 10px; }
.l3d-views360-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.l3d-view360 { margin: 0; flex: 0 0 92px; text-align: center; }
.l3d-view360 img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: #f5f2fb; border: 1px solid #ede9fe; }
.l3d-view360 figcaption { margin-top: 4px; font-size: 11px; color: #6b5a86; }

.l3d-progress { background: #fff; border-radius: 20px; padding: 18px 22px; }
.l3d-progress li { padding: 8px 0; color: #6b5a86; }
.l3d-progress li.is-on { color: var(--l3d-purple); font-weight: 700; }
.l3d-progress li.is-done { color: #16a34a; }

.l3d-checkout { background: #fff; border-radius: 20px; padding: 20px; display: grid; gap: 12px; }
.l3d-checkout input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd6fe; }
.l3d-download { display: inline-block; margin-top: 8px; color: var(--l3d-purple); font-weight: 700; }
.l3d-advanced {
	margin-top: 14px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #ede9fe;
	padding: 8px 16px 12px;
}
.l3d-advanced summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--l3d-purple);
	padding: 8px 0;
}
.l3d-note { color: #6b5a86; font-size: 14px; }
.l3d-spinner { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(245,243,255,.78); font-weight: 600; color: var(--l3d-purple); }
.l3d-spinner span {
	width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid #ddd6fe; border-top-color: var(--l3d-purple);
	animation: l3dspin .8s linear infinite; display: block; margin-bottom: 8px;
}
@keyframes l3dspin { to { transform: rotate(360deg); } }
