/* ============================================================
   LITOFANÍA 3D CREATOR — eFab3D
   Tema Pastel Dreamy — Paleta cálida con acentos lavanda/coral
   ============================================================ */

/* ─── CSS RESET & VARIABLES ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lf-bg-start: #f0e6f6;
  --lf-bg-mid: #fce4ec;
  --lf-bg-end: #e0f0f0;
  --lf-surface: rgba(255, 255, 255, 0.72);
  --lf-surface-solid: #ffffff;
  --lf-glass: rgba(255, 255, 255, 0.55);
  --lf-glass-border: rgba(180, 160, 220, 0.30);
  --lf-text-primary: #2d2040;
  --lf-text-secondary: #5a4d6e;
  --lf-text-muted: #8e82a0;
  --lf-border: rgba(180, 160, 220, 0.22);
  --lf-accent-lavender: #b4a0dc;
  --lf-accent-coral: #e8a598;
  --lf-accent-mint: #7ec8a8;
  --lf-accent-rose: #e8a0c0;
  --lf-accent-peach: #f0c8a0;
  --lf-accent-sky: #88b8d8;
  --lf-accent-amber: #f0b860;
  --lf-shadow-soft: 0 8px 32px rgba(130, 100, 180, 0.10);
  --lf-shadow-medium: 0 12px 40px rgba(130, 100, 180, 0.14);
  --lf-shadow-glow: 0 0 20px rgba(180, 160, 220, 0.18);
  --lf-input-bg: rgba(255, 255, 255, 0.65);
  --lf-input-border: rgba(180, 160, 220, 0.28);
  --lf-input-focus: rgba(180, 160, 220, 0.50);
  --lf-slider-track: rgba(180, 160, 220, 0.18);
  --lf-radius: 16px;
  --lf-radius-sm: 10px;
  --lf-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* ─── BODY ─── */
body.lf-page {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(180, 160, 220, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(232, 165, 152, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(150, 210, 190, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 60%, rgba(240, 200, 160, 0.12) 0%, transparent 40%),
    linear-gradient(160deg, var(--lf-bg-start) 0%, var(--lf-bg-mid) 45%, var(--lf-bg-end) 100%);
  color: var(--lf-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lf-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 180px at 15% 25%, rgba(180, 160, 220, 0.10) 0%, transparent 100%),
    radial-gradient(circle 140px at 85% 70%, rgba(232, 165, 152, 0.08) 0%, transparent 100%),
    radial-gradient(circle 200px at 60% 15%, rgba(150, 210, 190, 0.08) 0%, transparent 100%);
  animation: lfFloatOrbs 20s ease-in-out infinite alternate;
}

@keyframes lfFloatOrbs {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-15px, 10px) scale(1.04);
  }

  100% {
    transform: translate(10px, -8px) scale(0.98);
  }
}

/* Scrollbar */
body.lf-page::-webkit-scrollbar {
  width: 6px;
}

body.lf-page::-webkit-scrollbar-track {
  background: transparent;
}

body.lf-page::-webkit-scrollbar-thumb {
  background: var(--lf-accent-lavender);
  border-radius: 3px;
}

body.lf-page::-webkit-scrollbar-thumb:hover {
  background: var(--lf-accent-coral);
}

/* ─── NAVBAR ─── */
.lf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  background: var(--lf-surface);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--lf-glass-border);
  box-shadow: 0 2px 16px rgba(130, 100, 180, 0.08);
}

.lf-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lf-nav .logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
}

.lf-nav .logo .logo-e {
  color: var(--lf-accent-coral);
}

.lf-nav .logo .logo-fab {
  color: var(--lf-accent-lavender);
}

.lf-nav .logo .logo-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--lf-text-muted);
  position: absolute;
  bottom: -6px;
  right: -2px;
}

.lf-nav .logo .logo-indicator {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lf-accent-coral), var(--lf-accent-lavender));
  border-radius: 2px;
}

.lf-back-link {
  font-size: 0.78rem;
  color: var(--lf-accent-lavender);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--lf-transition);
}

.lf-back-link:hover {
  color: var(--lf-text-primary);
}

.lf-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lf-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, #43d87a 0%, #1aab55 100%);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 216, 122, 0.25);
  transition: all var(--lf-transition);
}

.lf-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(67, 216, 122, 0.40);
}

/* ─── MAIN LAYOUT ─── */
.lf-main {
  position: relative;
  z-index: 1;
  padding: 72px 1.2rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.lf-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--lf-accent-lavender);
  background: linear-gradient(135deg, rgba(180, 160, 220, 0.20), rgba(150, 210, 190, 0.18));
  border: 1px solid var(--lf-glass-border);
  border-radius: 20px;
  box-shadow: var(--lf-shadow-glow);
  margin-bottom: 0.75rem;
}

.lf-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--lf-accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lf-accent-mint);
  animation: lfDotPulse 2s ease-in-out infinite;
}

@keyframes lfDotPulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.lf-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--lf-text-primary);
  line-height: 1.2;
}

.lf-title .coral {
  color: #d47a6a;
  text-shadow: 0 0 12px rgba(232, 165, 152, 0.25);
}

.lf-title .lavender {
  color: #8a72c0;
  text-shadow: 0 0 12px rgba(180, 160, 220, 0.25);
}

.lf-title .mint {
  color: #4aa88a;
  text-shadow: 0 0 12px rgba(150, 210, 190, 0.25);
}

.lf-title .amber {
  color: #d4a030;
  text-shadow: 0 0 12px rgba(240, 184, 96, 0.25);
}

.lf-subtitle {
  font-size: 0.92rem;
  color: var(--lf-text-secondary);
  margin-top: 0.4rem;
  font-weight: 400;
}

/* ─── WORKSPACE GRID ─── */
.lf-workspace {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

/* ─── 3D VIEWPORT ─── */
.lf-viewport-wrap {
  position: relative;
  background: #0a0a0d;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  min-height: calc(100vh - 90px);
}

.lf-viewport-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px;
}

/* Viewport HUD */
.lf-hud-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(14, 16, 24, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
}

.lf-hud-dot {
  width: 6px;
  height: 6px;
  background: #38ef7d;
  border-radius: 50%;
  box-shadow: 0 0 8px #38ef7d;
}

/* Viewport Toolbar */
.lf-viewport-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(14, 16, 24, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 5;
}

.lf-vtool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-vtool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lf-vtool-btn.active {
  background: rgba(120, 100, 210, 0.35);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.25);
}

/* Bottom HUD */
.lf-live-specs {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 0.85rem;
  padding: 0.32rem 0.65rem;
  font-family: var(--font-mono);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  z-index: 5;
  pointer-events: none;
}

.lf-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lf-spec-label {
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lf-spec-val {
  font-size: 0.76rem;
  font-weight: 600;
  color: #38ef7d;
}

/* ─── IMAGE PREVIEW OVERLAY ─── */
.lf-img-preview {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 100px;
  height: 75px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  z-index: 5;
  display: none;
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-img-preview:hover {
  border-color: var(--lf-accent-lavender);
  transform: scale(1.05);
}

.lf-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CONTROLS PANEL ─── */
.lf-panel {
  background: var(--lf-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--lf-glass-border);
  border-radius: 20px;
  box-shadow: var(--lf-shadow-medium);
  overflow: hidden;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

/* Panel scrollbar */
.lf-panel::-webkit-scrollbar {
  width: 8px;
}

.lf-panel::-webkit-scrollbar-track {
  background: transparent;
}

.lf-panel::-webkit-scrollbar-thumb {
  background: var(--lf-accent-lavender);
  border-radius: 4px;
}

/* ─── IMAGE UPLOAD ZONE ─── */
.lf-upload-zone {
  margin: 1rem;
  padding: 2rem 1.2rem;
  border: 2px dashed var(--lf-input-border);
  border-radius: var(--lf-radius);
  background: linear-gradient(135deg, rgba(180, 160, 220, 0.06), rgba(150, 210, 190, 0.06));
  text-align: center;
  cursor: pointer;
  transition: all var(--lf-transition);
  position: relative;
  overflow: hidden;
}

.lf-upload-zone:hover {
  border-color: var(--lf-accent-lavender);
  background: linear-gradient(135deg, rgba(180, 160, 220, 0.12), rgba(150, 210, 190, 0.12));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 160, 220, 0.15);
}

.lf-upload-zone.dragging {
  border-color: var(--lf-accent-coral);
  background: linear-gradient(135deg, rgba(232, 165, 152, 0.15), rgba(240, 200, 160, 0.12));
  transform: scale(1.02);
}

.lf-upload-zone.has-image {
  padding: 0.6rem;
  border-style: solid;
  border-color: var(--lf-accent-mint);
}

.lf-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.7;
}

.lf-upload-text {
  font-size: 0.85rem;
  color: var(--lf-text-secondary);
  font-weight: 600;
}

.lf-upload-hint {
  font-size: 0.7rem;
  color: var(--lf-text-muted);
  margin-top: 0.3rem;
}

.lf-upload-preview {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.lf-upload-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.lf-upload-change-btn,
.lf-upload-remove-btn,
.lf-upload-change-btn-lid,
.lf-upload-remove-btn-lid {
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid var(--lf-input-border);
  border-radius: 8px;
  background: var(--lf-input-bg);
  color: var(--lf-text-secondary);
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-upload-change-btn:hover,
.lf-upload-change-btn-lid:hover {
  background: var(--lf-accent-lavender);
  color: #fff;
  border-color: var(--lf-accent-lavender);
}

.lf-upload-remove-btn:hover,
.lf-upload-remove-btn-lid:hover {
  background: #e86060;
  color: #fff;
  border-color: #e86060;
}

/* ─── TABS ─── */
.lf-tabs-bar {
  display: flex;
  background: rgba(245, 238, 255, 0.65);
  border-bottom: 1px solid var(--lf-border);
  overflow-x: auto;
}

.lf-tab-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lf-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--lf-transition);
  white-space: nowrap;
}

.lf-tab-btn:hover {
  color: var(--lf-text-secondary);
  background: rgba(180, 160, 220, 0.08);
}

.lf-tab-btn.active {
  color: #7a60b8;
  border-bottom-color: var(--lf-accent-lavender);
  background: rgba(180, 160, 220, 0.12);
  box-shadow: inset 0 -3px 8px rgba(180, 160, 220, 0.10);
}

.lf-tab-content {
  display: none;
  padding: 0.8rem;
}

.lf-tab-content.active {
  display: block;
}

/* ─── SECTION / GROUP ─── */
.lf-section {
  margin-bottom: 0.8rem;
}

.lf-section-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-accent-lavender);
  padding: 0.5rem 0.4rem 0.3rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(180, 160, 220, 0.12);
}

/* ─── ACCORDIONS ─── */
.lf-accordion {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(180, 160, 220, 0.15);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(130, 100, 180, 0.04);
  transition: all var(--lf-transition);
}

.lf-accordion[open] {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(180, 160, 220, 0.4);
  box-shadow: 0 6px 20px rgba(130, 100, 180, 0.1);
}

.lf-accordion-header {
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lf-text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.lf-accordion[open] .lf-accordion-header {
  border-bottom-color: rgba(180, 160, 220, 0.2);
  background: rgba(180, 160, 220, 0.08);
}

.lf-accordion-header::-webkit-details-marker {
  display: none;
}

.lf-accordion-header::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--lf-text-muted);
  transition: transform 0.2s ease;
}

.lf-accordion[open] .lf-accordion-header::after {
  transform: rotate(180deg);
  color: var(--lf-accent-lavender);
}

.lf-accordion-body {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
}

/* ─── CONTROL ROW ─── */
.lf-control {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.lf-control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lf-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lf-text-primary);
  flex-shrink: 0;
  min-width: 80px;
}

.lf-label-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--lf-accent-mint);
  background: rgba(126, 200, 168, 0.14);
  margin-left: 0.4rem;
}

/* Slider */
.lf-slider {
  flex: 1;
  min-width: 40px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--lf-slider-track);
  border: 1px solid rgba(180, 160, 220, 0.12);
  outline: none;
  transition: background var(--lf-transition);
}

.lf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lf-accent-lavender);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(180, 160, 220, 0.30);
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-slider::-webkit-slider-thumb:hover {
  background: var(--lf-accent-coral);
  box-shadow: 0 2px 12px rgba(232, 165, 152, 0.40);
}

.lf-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lf-accent-lavender);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(180, 160, 220, 0.30);
  cursor: pointer;
}

.lf-slider-val {
  min-width: 48px;
  text-align: center;
  padding: 0.25rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #3a9070;
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: 8px;
}

.lf-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lf-stepper-wrap .lf-slider-val {
  border-radius: 4px;
}

.lf-stepper-btn {
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: 6px;
  color: var(--lf-accent-lavender);
  font-size: 0.65rem;
  width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-stepper-btn:hover {
  background: rgba(180, 160, 220, 0.15);
  border-color: var(--lf-accent-lavender);
}

.lf-stepper-btn:active {
  transform: scale(0.92);
}

/* Select */
.lf-select {
  flex: 1;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lf-text-primary);
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: var(--lf-radius-sm);
  outline: none;
  cursor: pointer;
  transition: all var(--lf-transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e82a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.lf-select:focus {
  border-color: var(--lf-input-focus);
  box-shadow: 0 0 0 3px rgba(180, 160, 220, 0.15);
}

/* Checkbox / Toggle */
.lf-check-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.lf-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  background: var(--lf-slider-track);
  border-radius: 10px;
  border: 1px solid var(--lf-input-border);
  cursor: pointer;
  transition: all var(--lf-transition);
  flex-shrink: 0;
}

.lf-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all var(--lf-transition);
}

.lf-toggle.on {
  background: var(--lf-accent-lavender);
  border-color: var(--lf-accent-lavender);
}

.lf-toggle.on::after {
  left: 20px;
}

.lf-check-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lf-text-primary);
}

/* ─── CHOICE BUTTONS (Shape Selection) ─── */
.lf-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.lf-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--lf-text-secondary);
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-choice-btn:hover {
  border-color: var(--lf-accent-lavender);
  background: rgba(255, 255, 255, 0.80);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 160, 220, 0.15);
}

.lf-choice-btn.active {
  border-color: var(--lf-accent-coral);
  background: linear-gradient(135deg, rgba(232, 165, 152, 0.15), rgba(240, 200, 160, 0.12));
  color: var(--lf-text-primary);
  box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.12), 0 4px 12px rgba(232, 165, 152, 0.10);
}

.lf-choice-icon {
  font-size: 1.3rem;
}

/* ─── COLOR PICKER ROW ─── */
.lf-color-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lf-color-input {
  width: 36px;
  height: 28px;
  border: 2px solid var(--lf-input-border);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.lf-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.lf-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.lf-color-hex {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lf-text-muted);
}

/* ─── EXPORT BUTTONS ─── */
.lf-export-group {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lf-export-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lf-text-primary);
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--lf-transition);
  position: relative;
  overflow: hidden;
}

.lf-export-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.lf-export-btn:hover {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(180, 160, 220, 0.40);
  box-shadow: 0 6px 18px rgba(130, 100, 180, 0.12);
  transform: translateY(-1px);
}

.lf-export-btn.btn-stl::before {
  background: var(--lf-accent-mint);
}

.lf-export-btn.btn-stl:hover {
  box-shadow: 0 6px 20px rgba(126, 200, 168, 0.20);
}

.lf-export-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--lf-text-muted);
}

/* WhatsApp Order */
.lf-wa-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #43d87a 0%, #1aab55 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(67, 216, 122, 0.25);
  text-decoration: none;
  transition: all var(--lf-transition);
}

.lf-wa-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(67, 216, 122, 0.40);
}

/* ─── TOAST ─── */
.lf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(14, 16, 24, 0.90);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── PROGRESS INDICATOR ─── */
.lf-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 10;
}

.lf-progress.active {
  display: flex;
}

.lf-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(180, 160, 220, 0.25);
  border-top-color: var(--lf-accent-lavender);
  border-radius: 50%;
  animation: lfSpin 0.8s linear infinite;
}

@keyframes lfSpin {
  to {
    transform: rotate(360deg);
  }
}

.lf-progress-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.80);
}

/* ─── EMPTY STATE ─── */
.lf-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  z-index: 3;
  pointer-events: none;
}

.lf-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  display: block;
  opacity: 0.5;
}

.lf-empty-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.lf-empty-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.30);
  margin-top: 0.3rem;
}

/* ─── BACKLIGHT SIM BADGE ─── */
.lf-backlight-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lf-accent-amber);
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(240, 184, 96, 0.25);
  border-radius: 8px;
  z-index: 5;
  pointer-events: none;
}

.lf-backlight-indicator.active {
  display: flex;
}

.lf-backlight-glow {
  width: 6px;
  height: 6px;
  background: var(--lf-accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lf-accent-amber);
  animation: lfDotPulse 2s ease-in-out infinite;
}

/* ─── ACTION BUTTONS & GROUPS ─── */
.lf-btn-group {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.lf-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lf-text-primary);
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-action-btn:hover {
  background: rgba(180, 160, 220, 0.22);
  border-color: var(--lf-accent-lavender);
  transform: translateY(-1px);
}

.lf-action-btn:active {
  transform: translateY(0);
}

.lf-action-btn.active {
  background: linear-gradient(135deg, #7ec8a8 0%, #4ea880 100%);
  border-color: #3b9068;
  color: #061c10;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(126, 200, 168, 0.4), 0 3px 10px rgba(78, 168, 128, 0.35);
}

.lf-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.lf-checkbox-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.3rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lf-text-secondary);
  background: var(--lf-input-bg);
  border: 1px solid var(--lf-input-border);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all var(--lf-transition);
}

.lf-checkbox-pill:hover {
  border-color: var(--lf-accent-lavender);
}

.lf-checkbox-pill.active {
  background: linear-gradient(135deg, rgba(180, 160, 220, 0.25), rgba(126, 200, 168, 0.20));
  border-color: var(--lf-accent-lavender);
  color: var(--lf-text-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(180, 160, 220, 0.20);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .lf-workspace {
    grid-template-columns: 1fr;
  }

  .lf-viewport-wrap {
    min-height: 350px;
  }

  .lf-panel {
    max-height: none;
  }

  .lf-nav {
    padding: 0 0.8rem;
  }

  .lf-back-link {
    display: none;
  }
}

@media (max-width: 600px) {
  .lf-main {
    padding: 64px 0.6rem 1rem;
  }

  .lf-title {
    font-size: 1.1rem;
  }

  .lf-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lf-viewport-wrap {
    min-height: 280px;
  }
}

/* ─── ACCESS GATE MODAL ─── */
.lf-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lf-text-secondary);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--lf-glass-border);
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  transition: all var(--lf-transition);
}

.lf-lock-btn:hover {
  background: rgba(232, 160, 192, 0.2);
  border-color: var(--lf-accent-rose);
  color: var(--lf-text-primary);
}

.lf-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 16, 28, 0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lf-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lf-gate-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(180, 160, 220, 0.45);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(45, 32, 64, 0.25),
    0 0 40px rgba(180, 160, 220, 0.25);
  animation: lfCardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lfCardPop {
  0% {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }

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

.lf-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--lf-text-secondary);
  background: linear-gradient(135deg, rgba(180, 160, 220, 0.22), rgba(232, 165, 152, 0.18));
  border: 1px solid var(--lf-glass-border);
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.lf-gate-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--lf-accent-coral);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lf-accent-coral);
}

.lf-gate-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 10px rgba(180, 160, 220, 0.35));
}

.lf-gate-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lf-text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.lf-gate-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--lf-text-secondary);
  margin-bottom: 1.5rem;
}

.lf-gate-desc strong {
  color: var(--lf-text-primary);
}

.lf-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lf-gate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lf-gate-input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lf-text-primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--lf-input-border);
  border-radius: var(--lf-radius-sm);
  outline: none;
  transition: all var(--lf-transition);
}

.lf-gate-input:focus {
  border-color: var(--lf-accent-lavender);
  box-shadow: 0 0 0 3px rgba(180, 160, 220, 0.25);
  background: #ffffff;
}

.lf-gate-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity var(--lf-transition);
}

.lf-gate-toggle-pwd:hover {
  opacity: 1;
}

.lf-gate-error {
  min-height: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  text-align: left;
  padding-left: 0.2rem;
}

.lf-gate-submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(135deg, #b4a0dc 0%, #e8a598 100%);
  border: none;
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(180, 160, 220, 0.35);
  transition: all var(--lf-transition);
}

.lf-gate-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(180, 160, 220, 0.50);
}

.lf-gate-submit-btn:active {
  transform: translateY(0);
}

.lf-gate-footer {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lf-border);
}

.lf-gate-back-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lf-text-muted);
  text-decoration: none;
  transition: color var(--lf-transition);
}

.lf-gate-back-btn:hover {
  color: var(--lf-text-primary);
}

.lf-shake {
  animation: lfShake 0.4s ease-in-out;
}

@keyframes lfShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

/* Accordion Color Themes */
details.lf-accordion[data-color="mint"] .lf-accordion-header {
  background: rgba(126, 200, 168, 0.2);
  color: #246a4d;
  border-bottom-color: rgba(126, 200, 168, 0.4);
}

details.lf-accordion[data-color="lavender"] .lf-accordion-header {
  background: rgba(180, 160, 220, 0.2);
  color: #55348f;
  border-bottom-color: rgba(180, 160, 220, 0.4);
}

details.lf-accordion[data-color="coral"] .lf-accordion-header {
  background: rgba(232, 165, 152, 0.2);
  color: #9c3b28;
  border-bottom-color: rgba(232, 165, 152, 0.4);
}

details.lf-accordion[data-color="sky"] .lf-accordion-header {
  background: rgba(136, 184, 216, 0.2);
  color: #215175;
  border-bottom-color: rgba(136, 184, 216, 0.4);
}

details.lf-accordion[data-color="amber"] .lf-accordion-header {
  background: rgba(240, 184, 96, 0.2);
  color: #916109;
  border-bottom-color: rgba(240, 184, 96, 0.4);
}

details.lf-accordion[data-color="rose"] .lf-accordion-header {
  background: rgba(232, 160, 192, 0.2);
  color: #943464;
  border-bottom-color: rgba(232, 160, 192, 0.4);
}

details.lf-accordion[data-color="peach"] .lf-accordion-header {
  background: rgba(240, 200, 160, 0.2);
  color: #94561e;
  border-bottom-color: rgba(240, 200, 160, 0.4);
}