/* ─── LED Configurator — simple single-product UI ─── */

.vl-cfg-section { padding: 56px 0 90px; }
.vl-cfg-container { max-width: 1240px; }

.vl-cfg-header { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.vl-cfg-title { font-family: var(--vl-font-heading); font-weight: 800; font-size: 32px; margin: 10px 0 12px; }
.vl-cfg-sub { color: var(--vl-text-secondary); font-size: 15px; line-height: 1.6; margin: 0; }

.vl-cfg-grid {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 22px;
  align-items: start;
}

.vl-cfg-col-visual, .vl-cfg-col-options { display: flex; flex-direction: column; gap: 16px; }

.vl-cfg-panel {
  background: var(--vl-surface);
  border: 1px solid var(--vl-border);
  padding: 16px;
}
.vl-cfg-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--vl-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--vl-text-secondary);
  margin-bottom: 12px;
}
.vl-cfg-info-btn {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--vl-text-ghost);
  background: none; color: var(--vl-text-dim);
  font-family: var(--vl-font-mono); font-size: 10px; font-style: italic;
  line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  text-transform: none; letter-spacing: 0;
}
.vl-cfg-info-btn:hover { border-color: var(--vl-cyan); color: var(--vl-cyan); }
.vl-cfg-info-pop {
  position: absolute; z-index: 50; max-width: 260px;
  background: var(--vl-surface-dark); border: 1px solid var(--vl-border-input);
  padding: 12px 14px; font-size: 12.5px; line-height: 1.55; color: var(--vl-text-secondary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  font-family: var(--vl-font-body); text-transform: none; letter-spacing: normal;
}

/* ── product visual ── */
.vl-cfg-visual {
  position: relative;
  background: var(--vl-bg);
  border: 1px solid var(--vl-border);
  min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 0;
  overflow: hidden;
}
.vl-cfg-visual-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--vl-violet), var(--vl-cyan) 65%, transparent 100%);
  filter: blur(60px); opacity: 0.3; pointer-events: none;
}
.vl-cfg-visual-img { position: relative; z-index: 1; max-height: 400px; max-width: 78%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.vl-cfg-qty-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--vl-gradient); color: #06181F;
  font-family: var(--vl-font-mono); font-weight: 700; font-size: 13px;
  padding: 5px 10px;
}

.vl-cfg-visual-caption {
  text-align: center; font-family: var(--vl-font-mono); font-size: 11px;
  color: var(--vl-text-dim); margin: 10px 0 0;
}

.vl-cfg-qty-panel { text-align: center; }
.vl-cfg-qty-panel .vl-cfg-panel-label { justify-content: center; }

/* ── chip row (pitch) ── */
.vl-cfg-chip-row { display: flex; flex-direction: column; gap: 8px; }
.vl-cfg-chip {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--vl-border-input);
  background: var(--vl-surface-dark);
  cursor: pointer;
  font-size: 13px;
}
.vl-cfg-chip .lbl { font-weight: 600; color: var(--vl-text); }
.vl-cfg-chip .price { font-family: var(--vl-font-mono); font-size: 11.5px; color: var(--vl-text-dim); }
.vl-cfg-chip.is-active { border-color: var(--vl-cyan); background: var(--vl-cyan-dim); }
.vl-cfg-chip.is-active .price { color: var(--vl-cyan); }

/* ── players panel ── */
.vl-cfg-players { display: flex; flex-direction: column; gap: 8px; }
.vl-cfg-player-card {
  padding: 12px; border: 1px solid var(--vl-border-input); background: var(--vl-surface-dark);
}
.vl-cfg-player-card.is-selected { border-color: var(--vl-cyan); background: var(--vl-cyan-dim); }
.vl-cfg-player-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.vl-cfg-player-name { font-weight: 600; font-size: 13px; color: var(--vl-text); }
.vl-cfg-player-price { font-family: var(--vl-font-mono); font-size: 11.5px; color: var(--vl-text-dim); }
.vl-cfg-player-desc { font-size: 12px; color: var(--vl-text-dim); line-height: 1.5; margin-bottom: 6px; }
.vl-cfg-player-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vl-cfg-player-tag {
  font-family: var(--vl-font-mono); font-size: 9.5px; letter-spacing: 0.03em;
  padding: 2px 6px; border: 1px solid var(--vl-border-input); color: var(--vl-text-ghost);
}
.vl-cfg-player-selected-tag {
  font-family: var(--vl-font-mono); font-size: 9.5px; letter-spacing: 0.03em;
  padding: 2px 6px; background: var(--vl-mint); color: #06181F; font-weight: 700;
}

/* ── toggle buttons ── */
.vl-cfg-panel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.vl-cfg-panel-row .vl-cfg-panel-label { margin-bottom: 0; flex: none; }
.vl-cfg-panel-row .vl-cfg-toggle,
.vl-cfg-panel-row .vl-cfg-select { flex: 1; max-width: 260px; }

.vl-cfg-toggle { display: flex; border: 1px solid var(--vl-border-input); overflow: hidden; }
.vl-cfg-toggle-opt {
  flex: 1;
  background: var(--vl-surface-dark);
  border: none;
  color: var(--vl-text-secondary);
  font-family: var(--vl-font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 6px;
  cursor: pointer;
}
.vl-cfg-toggle-opt + .vl-cfg-toggle-opt { border-left: 1px solid var(--vl-border-input); }
.vl-cfg-toggle-opt.is-active { background: var(--vl-cyan); color: #06181F; }

.vl-cfg-select {
  width: 100%;
  background: var(--vl-surface-dark);
  border: 1px solid var(--vl-border-input);
  color: var(--vl-text);
  font-family: var(--vl-font-body);
  font-size: 13px;
  padding: 10px;
}

/* ── quantity stepper ── */
.vl-cfg-stepper-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vl-cfg-step-btn {
  width: 40px; height: 40px; border: 1px solid var(--vl-border-input); background: var(--vl-surface-dark);
  color: var(--vl-text); font-size: 20px; cursor: pointer;
}
.vl-cfg-step-val { font-family: var(--vl-font-mono); font-size: 22px; min-width: 28px; text-align: center; }

/* ── summary ── */
.vl-cfg-summary { position: sticky; top: 90px; background: var(--vl-surface); border: 1px solid var(--vl-border); padding: 20px; }
.vl-cfg-recalc-tag {
  font-family: var(--vl-font-mono); font-size: 11px; color: var(--vl-text-dim);
  margin-bottom: 8px; opacity: 0.7;
}
.vl-cfg-sum-rows { display: flex; flex-direction: column; gap: 8px; }
.vl-cfg-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--vl-text-secondary); }
.vl-cfg-sum-row span:last-child { color: var(--vl-text); font-variant-numeric: tabular-nums; }
.vl-cfg-sum-divider { height: 1px; background: var(--vl-border); margin: 14px 0; }
.vl-cfg-sum-caveat { font-size: 11px; color: var(--vl-text-ghost); line-height: 1.5; margin: 8px 0 0; }
.vl-cfg-sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vl-border);
  font-family: var(--vl-font-heading); font-weight: 700; font-size: 15px;
}
.vl-cfg-sum-total-val {
  font-size: 24px;
  background: var(--vl-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}

.vl-cfg-warnings, .vl-cfg-errors {
  margin-top: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5;
}
.vl-cfg-warnings { background: rgba(255,178,56,0.08); border: 1px solid rgba(255,178,56,0.3); color: #FFB238; }
.vl-cfg-errors { background: rgba(255,90,54,0.1); border: 1px solid rgba(255,90,54,0.35); color: var(--vl-cyan-light); animation: vlCfgShake 400ms ease-in-out; }

.vl-cfg-sum-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.vl-cfg-btn-block { width: 100%; justify-content: center; }
.vl-cfg-pdf-icon { display: inline-block; transition: transform 200ms ease-out; }
.vl-cfg-btn-block.is-done .vl-cfg-pdf-icon { transform: translateY(2px) scale(1.15); }

@keyframes vlCfgShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ── explain modal ── */
.vl-cfg-explain-modal {
  position: fixed; inset: 0; background: rgba(11,18,32,0.8); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vl-cfg-explain-modal[hidden] { display: none; }
.vl-cfg-explain-panel {
  background: var(--vl-surface); border: 1px solid var(--vl-border); max-width: 520px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 28px; position: relative;
}
.vl-cfg-explain-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--vl-text-dim); font-size: 22px; cursor: pointer;
}
.vl-cfg-explain-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.vl-cfg-explain-row { opacity: 0; transform: translateY(8px); animation: vlCfgRowIn 320ms ease-out forwards; }
.vl-cfg-explain-row .label { font-weight: 600; font-size: 13.5px; color: var(--vl-text); }
.vl-cfg-explain-row .reason { color: var(--vl-text-dim); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
@keyframes vlCfgRowIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .vl-cfg-errors, .vl-cfg-explain-row, .vl-cfg-pdf-icon { animation: none !important; transition: none !important; }
}

/* ── responsive ── */
@media (max-width: 980px) {
  .vl-cfg-grid { grid-template-columns: 1fr; }
  .vl-cfg-summary { position: static; }
  .vl-cfg-panel-row { flex-direction: column; align-items: stretch; }
  .vl-cfg-panel-row .vl-cfg-toggle,
  .vl-cfg-panel-row .vl-cfg-select { max-width: none; }
}
