/* Limbus Videoclip Creator — v3.3 */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ───────────────────────────────── */
#lvc-app { font-family: Raleway, sans-serif; color: #111; max-width: 1100px; margin: 0 auto; padding: 0 0 60px; }
#lvc-app * { box-sizing: border-box; }
.lvc-panel { display: none; }
.lvc-panel.on { display: block; }

/* ── Overlay ────────────────────────────────────── */
#lvc-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,16,30,.82); backdrop-filter: blur(4px);
  z-index: 99999; align-items: center; justify-content: center;
}
.lvc-ov-card {
  background: #fff; border-radius: 12px; padding: 40px 36px 32px;
  width: 360px; max-width: 92vw; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.lvc-ov-gif { width: 100px; height: 100px; object-fit: contain; display: block; margin: 0 auto 18px; border-radius: 8px; }
#lvc-lmsg { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #111; margin-bottom: 18px; }
.lvc-ov-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lvc-ov-bar-track { flex: 1; height: 6px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.lvc-ov-bar-fill { height: 100%; background: #315082; border-radius: 6px; width: 0%; transition: width .5s ease; }
.lvc-ov-bar-fill.indeterminate { width: 40%; animation: lbar 1.6s ease-in-out infinite; }
.lvc-ov-pct { font-size: 11px; font-weight: 700; color: #315082; min-width: 36px; text-align: right; }
.lvc-ov-hint { font-size: 11px; color: #bbb; letter-spacing: .06em; }
@keyframes lbar { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* ── Inline card spinner ─────────────────────────── */
.lvc-card-load {
  position: absolute; inset: 0; background: rgba(255,255,255,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 20; border-radius: inherit; backdrop-filter: blur(2px);
}
.lvc-card-spin {
  width: 28px; height: 28px; border: 3px solid #e0e6f0;
  border-top-color: #315082; border-radius: 50%;
  animation: lspin .7s linear infinite; margin-bottom: 6px;
}
.lvc-card-load-msg { font-size: 10px; font-weight: 700; color: #315082; letter-spacing: .06em; text-align: center; }
.lvc-card-load-pct { font-size: 11px; font-weight: 700; color: #315082; margin-top: 4px; }
@keyframes lspin { to { transform: rotate(360deg); } }
/* Elements that host a card-load need position:relative */
.lvc-scene-frame, .lvc-char-img, .lvc-scen-img { position: relative; overflow: hidden; }

/* ── Header ─────────────────────────────────────── */
.lvc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 20px; border-bottom: 1px solid #eef0f5; margin-bottom: 24px;
}
.lvc-brand { font-weight: 700; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; color: #0d1a2e; }
.lvc-tagline { font-weight: 300; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #aaa; margin-top: 2px; }
.lvc-header-right { display: flex; align-items: center; gap: 10px; }
.lvc-autosave-lbl { font-size: 10px; font-weight: 600; color: #22c55e; letter-spacing: .06em; white-space: nowrap; }
.lvc-project-name-input { font-family: Raleway, sans-serif; font-size: 13px; font-weight: 600; color: #1e2a3a; background: #fff; border: 1.5px solid #dde2ed; border-radius: 6px; padding: 6px 10px; width: 180px; outline: none; transition: border-color .2s; }
.lvc-project-name-input::placeholder { color: #bbc; font-weight: 400; }
.lvc-project-name-input:focus { border-color: #315082; }
@media (max-width: 600px) { .lvc-project-name-input { width: 120px; } }
.lvc-credits-badge { text-align: right; }
.lvc-credits-num { font-weight: 700; font-size: 24px; color: #315082; line-height: 1; }
.lvc-credits-lbl { font-size: 9px; color: #aaa; text-transform: uppercase; letter-spacing: .12em; }

/* ── Buttons ────────────────────────────────────── */
.lvc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; background: #315082; color: #fff !important;
  border: 1.5px solid #315082; border-radius: 6px;
  font-family: Raleway, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; transition: all .15s;
}
.lvc-btn:hover { background: #1e3460; border-color: #1e3460; }
.lvc-btn-sec { background: #fff; color: #315082 !important; }
.lvc-btn-sec:hover { background: #315082; color: #fff !important; }
.lvc-btn-ghost { background: transparent; color: #555 !important; border-color: #ddd; }
.lvc-btn-ghost:hover { background: #f5f6fa; border-color: #bbb; color: #315082 !important; }
.lvc-btn-sm { padding: 6px 14px; font-size: 10px; }
.lvc-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Form elements ──────────────────────────────── */
.lvc-input, .lvc-select, .lvc-ta {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e4e8f0; border-radius: 6px;
  font-family: Raleway, sans-serif; font-size: 13px; color: #111;
  background: #fff; transition: border-color .15s;
}
.lvc-input:focus, .lvc-ta:focus, .lvc-select:focus { outline: none; border-color: #315082; box-shadow: 0 0 0 3px rgba(49,80,130,.1); }
.lvc-ta { min-height: 120px; resize: vertical; }
.lvc-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #888; margin: 14px 0 6px; }
.lvc-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #bbb; }
.lvc-required { color: #c0392b; font-weight: 600; }

/* ── Cards ──────────────────────────────────────── */
.lvc-card {
  background: #fff; border: 1px solid #e8ecf4;
  border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.lvc-card:hover { border-color: #cdd5e8; }

/* ── Step indicator ─────────────────────────────── */
.lvc-steps-wrap {
  display: flex; align-items: center; margin-bottom: 32px;
  border-bottom: 1px solid #eef0f5; padding-bottom: 20px;
}
.lvc-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 0 0 auto; cursor: default;
}
.lvc-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f0f2f7; color: #aaa; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; transition: all .2s;
}
.lvc-step-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #bbb; transition: color .2s; }
.lvc-step.on .lvc-step-circle { background: #315082; color: #fff; border-color: #315082; box-shadow: 0 0 0 4px rgba(49,80,130,.18); }
.lvc-step.on .lvc-step-label { color: #315082; }
.lvc-step.ok .lvc-step-circle { background: #0d1a2e; color: #fff; border-color: #0d1a2e; }
.lvc-step.ok .lvc-step-circle::after { content: '✓'; }
.lvc-step.ok .lvc-step-circle { font-size: 0; }
.lvc-step.ok .lvc-step-label { color: #0d1a2e; }
.lvc-step-line { flex: 1; height: 2px; background: #eef0f5; margin: 0 4px; margin-bottom: 22px; }

/* ── Panel header ───────────────────────────────── */
.lvc-panel-title {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f2f7;
}
.lvc-panel-num { font-size: 32px; font-weight: 700; color: #e8ecf4; line-height: 1; flex-shrink: 0; }
.lvc-panel-name { font-weight: 700; font-size: 16px; color: #0d1a2e; letter-spacing: .04em; }
.lvc-panel-sub { font-size: 12px; color: #888; margin-top: 3px; }

/* ── Upload area ────────────────────────────────── */
.lvc-upload-card {
  padding: 40px 24px; text-align: center; cursor: pointer;
  border: 2px dashed #dde2ed; border-radius: 10px;
  transition: all .15s; margin-bottom: 16px; background: #fafbff;
}
.lvc-upload-card:hover { border-color: #315082; background: #f4f6fc; }
.lvc-upload-icon { font-size: 40px; color: #c8d0e8; margin-bottom: 10px; }
.lvc-upload-text { font-size: 13px; color: #888; }
.lvc-upload-fn { font-size: 12px; color: #315082; font-weight: 600; margin-top: 8px; }
.lvc-trim-info { font-size: 12px; color: #555; }
.lvc-warn-chip { font-size: 11px; color: #c0392b; font-weight: 600; }
.lvc-ok-chip { font-size: 12px; color: #166534; font-weight: 600; }

/* ── Style buttons ──────────────────────────────── */
.lvc-styles-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lvc-style-btn {
  padding: 8px 15px; border: 1.5px solid #e4e8f0; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer; background: #fff;
  color: #333; transition: all .15s; font-family: Raleway, sans-serif;
  display: flex; align-items: center; gap: 5px;
}
.lvc-style-btn:hover { border-color: #315082; color: #315082; background: #f4f6fc; }
.lvc-style-btn.active { background: #315082; border-color: #315082; color: #fff; }

/* ── Warn / info boxes ──────────────────────────── */
.lvc-warn-box { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 10px 14px; font-size: 12px; font-weight: 600; color: #92400e; margin: 10px 0; }
.lvc-err { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 6px; padding: 10px 14px; color: #991b1b; font-size: 13px; margin-bottom: 12px; }
.lvc-err--credits { background: #315082; border-color: #1e3358; color: #fff; }
.lvc-suc { background: #f0fdf4; border: 1px solid #86efac; border-radius: 6px; padding: 10px 14px; color: #166534; font-size: 13px; margin-bottom: 12px; }

/* ── Stats row (step 2) ─────────────────────────── */
.lvc-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.lvc-stat-card { text-align: center; padding: 16px 12px; background: #fff; border: 1px solid #e8ecf4; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.lvc-stat-num { font-size: 30px; font-weight: 700; color: #0d1a2e; line-height: 1; }
.lvc-stat-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.lvc-stat-input { margin-top: 8px; width: 80px; padding: 5px 8px; border: 1px solid #e4e8f0; border-radius: 5px; font-family: Raleway, sans-serif; font-size: 12px; text-align: center; }

/* ── Concepts grid ──────────────────────────────── */
.lvc-concepts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.lvc-concept-card {
  border: 2px solid #e8ecf4; border-radius: 10px; padding: 18px;
  cursor: pointer; transition: all .15s; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.lvc-concept-card:hover { border-color: #315082; box-shadow: 0 4px 16px rgba(49,80,130,.15); }
.lvc-concept-card.sel { border-color: #315082; background: #f4f6fc; box-shadow: 0 4px 16px rgba(49,80,130,.2); }
.lvc-concept-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #0d1a2e; }
.lvc-concept-desc { font-size: 12px; color: #666; margin-bottom: 8px; line-height: 1.5; }
.lvc-concept-style { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .1em; }
.lvc-concept-palette { font-size: 10px; color: #315082; margin-top: 4px; }
/* Editable concept contenteditable fields */
.lvc-concept-editable {
  outline: none;
  border-radius: 4px;
  transition: background .15s, box-shadow .15s;
  cursor: text;
  word-break: break-word;
}
.lvc-concept-editable:hover {
  background: rgba(49,80,130,.06);
}
.lvc-concept-editable:focus {
  background: rgba(49,80,130,.08);
  box-shadow: 0 0 0 2px rgba(49,80,130,.18);
}

/* ── Video Preview Modal ────────────────────────── */
.lvc-vid-modal-bd {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(5,10,20,.88);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: lvcModalIn .18s ease;
}
@keyframes lvcModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lvc-vid-modal-box {
  position: relative;
  width: min(880px, 95vw);
  background: #0d1117;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  animation: lvcModalBoxIn .2s ease;
}
@keyframes lvcModalBoxIn {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lvc-vid-modal-video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
  outline: none;
}
.lvc-vid-modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 10;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 15px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lvc-vid-modal-close:hover { background: rgba(220,60,60,.8); }
body.lvc-modal-open { overflow: hidden; }

/* ── Concept banner (step 3) ────────────────────── */
.lvc-concept-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: #f4f6fc; border: 1px solid #c7d0ea; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px;
}
.lvc-concept-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #315082; background: rgba(49,80,130,.12); padding: 2px 8px; border-radius: 4px; }

/* ── Character card ─────────────────────────────── */
.lvc-chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 24px; }
.lvc-char-card { background: #fff; border: 1px solid #e8ecf4; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.lvc-char-img { width: 100%; aspect-ratio: 16/9; background: #f5f6fa; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 32px; }
.lvc-char-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lvc-char-body { padding: 14px; }
.lvc-char-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: #0d1a2e; }
.lvc-char-rol { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }

/* ── Nchar buttons ──────────────────────────────── */
.lvc-nchar-btn {
  width: 48px; height: 48px; border: 2px solid #e4e8f0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; font-size: 18px;
  background: #fff; color: #444; transition: all .15s;
}
.lvc-nchar-btn:hover { border-color: #315082; color: #315082; }
.lvc-nchar-btn.active { border-color: #315082; background: #315082; color: #fff; }

/* ── Section divider ────────────────────────────── */
.lvc-section-divider {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #eef0f5; margin: 28px 0 16px; padding-top: 20px;
}
.lvc-section-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #0d1a2e; }
.lvc-section-sub { font-size: 11px; color: #888; margin-top: 2px; }

/* ── Scenarios grid ─────────────────────────────── */
.lvc-scenarios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
.lvc-scen-card { background: #fff; border: 1px solid #e8ecf4; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.lvc-scen-img { width: 100%; aspect-ratio: 16/9; background: #f5f6fa; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 28px; overflow: hidden; }
.lvc-scen-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-scen-body { padding: 10px 12px; }
.lvc-scen-name { font-size: 12px; font-weight: 700; color: #315082; margin-bottom: 2px; }
.lvc-scen-desc { font-size: 10px; color: #888; margin-bottom: 8px; }

/* ── Scene cards ────────────────────────────────── */
.lvc-scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.lvc-scene-card { background: #fff; border: 1px solid #e8ecf4; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.lvc-scene-frame {
  width: 100%; aspect-ratio: 16/9;
  background: #f0f2f7; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 28px; overflow: hidden;
}
.lvc-scene-frame img, .lvc-scene-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.lvc-scene-ov {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transition: opacity .2s;
}
.lvc-scene-frame:hover .lvc-scene-ov { opacity: 1; }
.lvc-scene-body { padding: 12px 14px; }
.lvc-scene-hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lvc-scene-num { font-size: 11px; font-weight: 700; color: #315082; text-transform: uppercase; letter-spacing: .1em; }
.lvc-scene-sec { font-size: 10px; color: #bbb; }

/* ── Select (scene scenario/char) ───────────────── */
.lvc-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; cursor: pointer; }

/* ── Lipsync toggle ─────────────────────────────── */
.lvc-lip-row { background: #f8f9ff; border: 1px solid #e4e8f8; border-radius: 6px; padding: 10px 12px; margin-top: 8px; }
.lvc-lip-cb-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #315082; cursor: pointer; }
.lvc-lip-hint { font-size: 11px; color: #888; margin-top: 5px; }

/* ── Audio player ───────────────────────────────── */
.lvc-audio-row { background: #f4f6fc; border: 1px solid #c8d4f0; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.lvc-audio-time { font-size: 10px; font-weight: 700; color: #315082; margin-bottom: 6px; }
.lvc-audio-ctrl { display: flex; gap: 8px; align-items: center; }
.lvc-audio-bar { flex: 1; height: 4px; background: #d0d8f0; border-radius: 2px; overflow: hidden; }
.lvc-audio-fill { height: 100%; width: 0%; background: #315082; border-radius: 2px; transition: none; }

/* ── Step 5 summary ─────────────────────────────── */
.lvc-summary-card {
  display: flex; gap: 0; flex-wrap: wrap;
  background: #fff; border: 1px solid #e8ecf4; border-radius: 10px;
  overflow: hidden; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.lvc-summary-item { flex: 1; min-width: 120px; padding: 14px 16px; border-right: 1px solid #f0f2f7; }
.lvc-summary-item:last-child { border-right: none; }
.lvc-summary-lbl { display: block; font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.lvc-sum-total { color: #315082; font-size: 16px; }

/* ── Global progress (step 5) ───────────────────── */
.lvc-global-prog { background: #fff; border: 1px solid #e8ecf4; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.lvc-gprog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lvc-gprog-lbl { font-size: 12px; color: #555; font-weight: 600; }
.lvc-gprog-pct { font-size: 14px; font-weight: 700; color: #315082; }
.lvc-gprog-track { height: 8px; background: #f0f2f7; border-radius: 8px; overflow: hidden; }
.lvc-gprog-fill { height: 100%; background: linear-gradient(90deg, #315082 0%, #5078b8 100%); border-radius: 8px; transition: width .6s ease; }

/* ── Projects panel ─────────────────────────────── */
.lvc-projects-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: #f8f9ff; border: 1px solid #e4e8f8;
  border-radius: 10px 10px 0 0; margin-bottom: -1px;
}
.lvc-projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; padding: 16px; background: #fff;
  border: 1px solid #e4e8f8; border-radius: 0 0 10px 10px;
  margin-bottom: 24px;
}
.lvc-proj-card {
  border: 1.5px solid #e8ecf4; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: all .15s; background: #fff;
}
.lvc-proj-card:hover { border-color: #315082; box-shadow: 0 4px 14px rgba(49,80,130,.14); }
.lvc-proj-thumb { width: 100%; aspect-ratio: 16/9; background: #f0f2f7; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 24px; }
.lvc-proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-proj-info { padding: 10px 12px; }
.lvc-proj-name { font-size: 12px; font-weight: 700; color: #0d1a2e; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvc-proj-date { font-size: 10px; color: #aaa; }
.lvc-proj-status { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; margin-top: 4px; }
.lvc-proj-status.draft { background: #fff3cd; color: #856404; }
.lvc-proj-status.processing { background: #d1ecf1; color: #0c5460; }
.lvc-proj-status.completed { background: #d4edda; color: #155724; }
.lvc-proj-status.failed { background: #f8d7da; color: #721c24; }
.lvc-proj-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ── Nav row ─────────────────────────────────────── */
.lvc-nav-row { display: flex; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #f0f2f7; flex-wrap: wrap; }

/* ── Notifications ──────────────────────────────── */
#lvc-msgs { margin-bottom: 8px; }

/* ── Gen grid video preview ─────────────────────────────────── */
.lvc-cb-gen-vidpreview {
  position: relative; cursor: pointer; border-radius: 6px; overflow: hidden; display: block;
}
.lvc-cb-gen-vidpreview img { width: 100%; display: block; border-radius: 6px; }
.lvc-cb-gen-vid-ph {
  background: #1e2540; width: 100%; height: 72px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; border-radius: 6px;
}
.lvc-cb-gen-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: 22px;
  opacity: 0; transition: opacity .18s;
}
.lvc-cb-gen-vidpreview:hover .lvc-cb-gen-play-btn { opacity: 1; }

/* ── Inline editable fields ─────────────────────────────────── */
.lvc-editable {
  cursor: text; border-radius: 4px; transition: background .15s, box-shadow .15s;
  outline: none; min-width: 20px;
}
.lvc-editable:hover { background: rgba(79,70,229,.06); }
.lvc-editable:focus {
  background: rgba(79,70,229,.08);
  box-shadow: 0 0 0 2px rgba(79,70,229,.25);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 700px) {
  .lvc-concepts-grid { grid-template-columns: 1fr; }
  .lvc-scenarios-grid { grid-template-columns: 1fr; }
  .lvc-stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .lvc-summary-card { flex-direction: column; }
  .lvc-summary-item { border-right: none; border-bottom: 1px solid #f0f2f7; }
  .lvc-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lvc-step-label { display: none; }
}
@media (max-width: 480px) {
  .lvc-stats-row { grid-template-columns: 1fr; }
}

/* ── App plan widget (header) ───────────────────────────────────────────────── */
.lvc-app-plan-widget {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lvc-app-plan-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 5px;
  padding: 3px 10px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.lvc-app-plan-manage,
.lvc-app-plan-buy {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.lvc-app-plan-manage {
  background: #f0f2f7;
  color: #315082;
  border: 1px solid #dde3f0;
}
.lvc-app-plan-manage:hover { background: #e2e8f5; }
.lvc-app-plan-buy {
  background: #315082;
  color: #fff;
  border: 1px solid transparent;
  animation: lvc-pulse-buy 2.5s ease-in-out infinite;
}
.lvc-app-plan-buy:hover { background: #1e3358; color: #fff; animation: none; }
@keyframes lvc-pulse-buy {
  0%, 100% { box-shadow: 0 0 0 0 rgba(49,80,130,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(49,80,130,0); }
}

/* ── [lvc_planes] Pricing Cards ─────────────────────────────────────────────── */
.lvc-planes-wrap {
  font-family: Raleway, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.lvc-plan-current {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: #f8f9ff;
  border: 1px solid #e0e6f5;
  border-radius: 10px;
}
.lvc-plan-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}
.lvc-plan-pill.lvc-plan-active  { background: #dcfce7; color: #166534; }
.lvc-plan-pill.lvc-plan-free    { background: #f0f2f7; color: #555; }
.lvc-plan-credits-info { font-size: 13px; color: #555; margin-left: auto; }
.lvc-plan-manage-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  background: #315082;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}
.lvc-plan-manage-btn:hover { background: #1e3358; color: #fff; }

.lvc-planes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .lvc-planes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .lvc-planes-grid { grid-template-columns: 1fr; } }

.lvc-plan-card {
  background: #fff;
  border: 2px solid #e8ecf4;
  border-radius: 16px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.lvc-plan-card:hover {
  box-shadow: 0 8px 32px rgba(49,80,130,.12);
  border-color: #b8c8e8;
}
.lvc-plan-card--active {
  border-color: #315082;
  box-shadow: 0 4px 20px rgba(49,80,130,.18);
}
.lvc-plan-card--featured {
  border-color: #2563eb;
  box-shadow: 0 8px 36px rgba(37,99,235,.15);
}
.lvc-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
}
.lvc-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.lvc-plan-price {
  font-size: 38px;
  font-weight: 800;
  color: #315082;
  margin-bottom: 4px;
  line-height: 1;
}
.lvc-plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: #888;
}
.lvc-plan-credits {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f2f7;
}
.lvc-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.lvc-plan-features li {
  font-size: 13px;
  color: #444;
  padding: 4px 0;
  line-height: 1.5;
}
.lvc-plan-feat-divider {
  padding: 10px 0 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa !important;
  border-top: 1px solid #f0f2f7;
  margin-top: 6px;
}
.lvc-plan-feat-divider span { display: block; }
.lvc-plan-feat-ideal {
  color: #666 !important;
  font-size: 12px !important;
}
.lvc-plan-cta {
  display: block;
  text-align: center;
  padding: 11px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: #315082;
  color: #fff;
  text-decoration: none;
  transition: background .2s;
  cursor: pointer;
  border: none;
}
.lvc-plan-cta:hover { background: #1e3358; color: #fff; }
.lvc-plan-cta--current {
  background: #f0f2f7;
  color: #315082;
  cursor: default;
}
.lvc-plan-cta--current:hover { background: #f0f2f7; }
.lvc-planes-cancel {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 0 0 8px;
}
.lvc-planes-cancel a { color: #315082; }
.lvc-planes-note {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   [lvc_landing] — Landing page
   ══════════════════════════════════════════════════════════════ */

/* Base */
.lvc-ld {
  font-family: Raleway, sans-serif;
  color: #111;
  overflow-x: hidden;
}
.lvc-ld * { box-sizing: border-box; }
.lvc-ld-container {
  max-width: 1650px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.lvc-ld-section-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 16px;
}
.lvc-ld-h2 {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 48px;
  color: #0f0f1a;
}

/* ── HERO ─────────────────────────────────────────── */
.lvc-ld-hero {
  position: relative;
  background: #06061a;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.lvc-ld-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* ── Hero background video — full opacity, dimming is done by the dimmer only ── */
.lvc-ld-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* ── Single overlay: pure black, opacity set inline from WP admin ── */
.lvc-ld-hero-vid-dimmer {
  position: absolute;
  inset: 0;
  background: #000;
}
.lvc-ld-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.lvc-ld-hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #5b21b6 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: lvc-ld-float 10s ease-in-out infinite;
}
.lvc-ld-hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation: lvc-ld-float 13s ease-in-out infinite reverse;
}
.lvc-ld-hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #db2777 0%, transparent 70%);
  top: 40%; left: 55%;
  animation: lvc-ld-float 8s ease-in-out infinite 2s;
}
.lvc-ld-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}
@keyframes lvc-ld-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.lvc-ld-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: .06em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.lvc-ld-h1 {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -.025em;
}
.lvc-ld-gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lvc-ld-hero-sub {
  font-size: clamp(19px, 2.2vw, 25px);
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 0 44px;
  font-weight: 400;
}
.lvc-ld-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.lvc-ld-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: Raleway, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.lvc-ld-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  box-shadow: 0 8px 32px rgba(124,58,237,.4);
}
.lvc-ld-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124,58,237,.55);
  color: #fff;
}
.lvc-ld-btn--ghost {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.lvc-ld-btn--ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-2px);
}
.lvc-ld-btn--lg { padding: 20px 42px; font-size: 20px; }
.lvc-ld-hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lvc-ld-proof-item {
  font-size: 16px;
  color: rgba(255,255,255,.5);
}
.lvc-ld-proof-item strong {
  color: #fff;
  font-weight: 800;
}
.lvc-ld-proof-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.15);
}

/* ── CÓMO FUNCIONA ────────────────────────────────── */
.lvc-ld-how {
  background: #f5f5fb;
  padding: 110px 0;
}
.lvc-ld-how .lvc-ld-section-label { color: #7c3aed; }
.lvc-ld-how .lvc-ld-h2 { color: #0f0f1a; }
.lvc-ld-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.lvc-ld-step {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.lvc-ld-step:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,.1);
  transform: translateY(-4px);
}
.lvc-ld-step-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #a78bfa;
  margin-bottom: 10px;
}
.lvc-ld-step-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}
.lvc-ld-step h3 {
  font-size: 21px;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
}
.lvc-ld-step p {
  font-size: 16px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.lvc-ld-step-arrow {
  font-size: 24px;
  color: #d1d5db;
  padding-top: 60px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   COLLAGE 3D
   ════════════════════════════════════════════════════ */
.lvc-ld-collage-section {
  background: radial-gradient(ellipse 140% 100% at 50% 50%, #0e0724 0%, #060818 50%, #020610 100%);
  overflow: hidden;
}

/* Escenario — las tarjetas se solapan y salen por los bordes; la section recorta */
.lvc-ld-collage {
  position: relative;
  width: 100%;
  height: clamp(600px, 92vh, 980px);
  overflow: visible; /* section recorta — las tarjetas pueden sangrar */
}

/* ── Tarjeta base ── */
.lvc-ld-cv {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0d16;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 24px 60px rgba(0,0,0,.9),
    0 4px 20px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
  will-change: transform;
  transition: box-shadow .3s;
}
.lvc-ld-cv video {
  display: block;
  width: 100%;
  height: calc(100% - 20px);
  object-fit: cover;
}

/* Barra de reproductor falsa */
.lvc-ld-cv-bar {
  height: 20px;
  background: #0c1020;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
}
.lvc-ld-cv-bar::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
  box-shadow: 0 0 6px #7c3aed;
}
.lvc-ld-cv-bar::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed 35%, rgba(255,255,255,.08) 35%);
  border-radius: 2px;
}

/* ── Mosaic layout — 3 filas que se solapan, cobertura total ────────────────
   FILA 1  │ cv1 (izq-grande) │ cv2 (centro)  │ cv3 (dcha-grande) │
   FILA 2  │ cv5 (izq)        │  [TEXTO]       │ cv4 (dcha)        │
   FILA 3  │ cv8 (izq)  │ cv6 (centro-izq)  │ cv7 (centro-dcha) │ cv9 (dcha) │
   ── */

/* ─── FILA 1 — arriba ─── */
.lvc-ld-cv--1 {
  width: 34%; aspect-ratio: 16/9.5;
  left: -5%; top: -5%;
  z-index: 2;
  transform: perspective(1000px) rotateY(8deg) rotateX(-4deg) rotate(-4deg);
  animation: lvcCv1 9s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 50px rgba(124,58,237,.12);
}
.lvc-ld-cv--2 {
  width: 30%; aspect-ratio: 16/9.5;
  left: 35%; top: -8%;
  z-index: 2;
  transform: perspective(1000px) rotateY(1deg) rotateX(-5deg) rotate(3deg);
  animation: lvcCv2 7.5s ease-in-out infinite .7s;
}
.lvc-ld-cv--3 {
  width: 34%; aspect-ratio: 16/9.5;
  right: -5%; top: -5%;
  z-index: 2;
  transform: perspective(1000px) rotateY(-8deg) rotateX(-4deg) rotate(4deg);
  animation: lvcCv3 10s ease-in-out infinite .4s;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 50px rgba(96,165,250,.10);
}

/* ─── FILA 2 — medio (flanquean el texto) ─── */
.lvc-ld-cv--5 {
  width: 28%; aspect-ratio: 16/9.5;
  left: -4%; top: 32%;
  z-index: 3;
  transform: perspective(1000px) rotateY(12deg) rotateX(1deg) rotate(-5deg);
  animation: lvcCv5 8.5s ease-in-out infinite 1.2s;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 40px rgba(244,114,182,.08);
}
.lvc-ld-cv--4 {
  width: 28%; aspect-ratio: 16/9.5;
  right: -4%; top: 32%;
  z-index: 3;
  transform: perspective(1000px) rotateY(-12deg) rotateX(1deg) rotate(5deg);
  animation: lvcCv4 11s ease-in-out infinite 1.8s;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 40px rgba(124,58,237,.10);
}

/* ─── FILA 3 — abajo (4 tarjetas, cobertura total) ─── */
.lvc-ld-cv--8 {
  width: 26%; aspect-ratio: 16/9.5;
  left: -4%; bottom: -6%;
  z-index: 4;
  transform: perspective(1000px) rotateY(7deg) rotateX(8deg) rotate(-3deg);
  animation: lvcCv8 8.8s ease-in-out infinite 1.5s;
}
.lvc-ld-cv--6 {
  width: 30%; aspect-ratio: 16/9.5;
  left: 20%; bottom: -7%;
  z-index: 4;
  transform: perspective(1000px) rotateY(2deg) rotateX(9deg) rotate(3deg);
  animation: lvcCv6 8s ease-in-out infinite .6s;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 40px rgba(124,58,237,.10);
}
.lvc-ld-cv--7 {
  width: 30%; aspect-ratio: 16/9.5;
  left: 50%; bottom: -7%;
  z-index: 4;
  transform: perspective(1000px) rotateY(-3deg) rotateX(9deg) rotate(-2deg);
  animation: lvcCv7 9.5s ease-in-out infinite 2.2s;
}
.lvc-ld-cv--9 {
  width: 26%; aspect-ratio: 16/9.5;
  right: -4%; bottom: -6%;
  z-index: 4;
  transform: perspective(1000px) rotateY(-7deg) rotateX(8deg) rotate(3deg);
  animation: lvcCv9 10.2s ease-in-out infinite 0.3s;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 40px rgba(96,165,250,.08);
}

/* ── Flotado suave ── */
@keyframes lvcCv1 {
  0%,100% { transform: perspective(1000px) rotateY(8deg)  rotateX(-4deg) rotate(-4deg) translateY(0); }
  50%      { transform: perspective(1000px) rotateY(8deg)  rotateX(-4deg) rotate(-4deg) translateY(-14px); }
}
@keyframes lvcCv2 {
  0%,100% { transform: perspective(1000px) rotateY(1deg)  rotateX(-5deg) rotate(3deg)  translateY(0); }
  50%      { transform: perspective(1000px) rotateY(1deg)  rotateX(-5deg) rotate(3deg)  translateY(-10px); }
}
@keyframes lvcCv3 {
  0%,100% { transform: perspective(1000px) rotateY(-8deg) rotateX(-4deg) rotate(4deg)  translateY(0); }
  50%      { transform: perspective(1000px) rotateY(-8deg) rotateX(-4deg) rotate(4deg)  translateY(-16px); }
}
@keyframes lvcCv4 {
  0%,100% { transform: perspective(1000px) rotateY(-12deg) rotateX(1deg) rotate(5deg)  translateY(0); }
  50%      { transform: perspective(1000px) rotateY(-12deg) rotateX(1deg) rotate(5deg)  translateY(-11px); }
}
@keyframes lvcCv5 {
  0%,100% { transform: perspective(1000px) rotateY(12deg)  rotateX(1deg) rotate(-5deg) translateY(0); }
  50%      { transform: perspective(1000px) rotateY(12deg)  rotateX(1deg) rotate(-5deg) translateY(-10px); }
}
@keyframes lvcCv6 {
  0%,100% { transform: perspective(1000px) rotateY(2deg)   rotateX(9deg) rotate(3deg)  translateY(0); }
  50%      { transform: perspective(1000px) rotateY(2deg)   rotateX(9deg) rotate(3deg)  translateY(-12px); }
}
@keyframes lvcCv7 {
  0%,100% { transform: perspective(1000px) rotateY(-3deg)  rotateX(9deg) rotate(-2deg) translateY(0); }
  50%      { transform: perspective(1000px) rotateY(-3deg)  rotateX(9deg) rotate(-2deg) translateY(-10px); }
}
@keyframes lvcCv8 {
  0%,100% { transform: perspective(1000px) rotateY(7deg)   rotateX(8deg) rotate(-3deg) translateY(0); }
  50%      { transform: perspective(1000px) rotateY(7deg)   rotateX(8deg) rotate(-3deg) translateY(-13px); }
}
@keyframes lvcCv9 {
  0%,100% { transform: perspective(1000px) rotateY(-7deg)  rotateX(8deg) rotate(3deg)  translateY(0); }
  50%      { transform: perspective(1000px) rotateY(-7deg)  rotateX(8deg) rotate(3deg)  translateY(-11px); }
}

/* ── Vignette central — más fuerte al haber más vídeos ── */
.lvc-ld-collage-vignette {
  position: absolute;
  inset: 0;
  background:
    /* oscurece los 4 bordes para fundir las tarjetas con el fondo */
    linear-gradient(to bottom, rgba(3,4,14,.7) 0%, transparent 18%, transparent 82%, rgba(3,4,14,.7) 100%),
    linear-gradient(to right,  rgba(3,4,14,.5) 0%, transparent 20%, transparent 80%, rgba(3,4,14,.5) 100%),
    /* ovalo central para leer el título */
    radial-gradient(ellipse 55% 52% at 50% 50%,
      rgba(4,5,18,.95) 0%,
      rgba(4,5,18,.70) 30%,
      rgba(4,5,18,.20) 58%,
      transparent 72%);
  z-index: 10;
  pointer-events: none;
}

/* ── Título centrado ── */
.lvc-ld-collage-headline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
}
.lvc-ld-collage-pre {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0 0 20px;
  opacity: .9;
}
.lvc-ld-collage-h2 {
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: clamp(56px, 10vw, 136px);
  line-height: .92;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
}
.lvc-ld-collage-h2--accent {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Marcas decorativas ── */
.lvc-ld-deco {
  position: absolute;
  color: rgba(167,139,250,.3);
  font-size: 18px;
  font-weight: 300;
  z-index: 15;
  pointer-events: none;
  animation: lvcDeco 4s ease-in-out infinite;
}
.lvc-ld-deco--1 { top: 12%; left: 18%; animation-delay: 0s; }
.lvc-ld-deco--2 { top: 10%; right: 20%; animation-delay: 1.1s; }
.lvc-ld-deco--3 { bottom: 16%; left: 28%; animation-delay: 2s; }
.lvc-ld-deco--4 { bottom: 20%; right: 16%; animation-delay: .5s; }
@keyframes lvcDeco {
  0%,100% { opacity: .3; transform: scale(1); }
  50%      { opacity: .65; transform: scale(1.35); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .lvc-ld-collage { height: clamp(440px, 72vw, 600px); }
  /* Tablet: fila superior completa + flancos laterales + fila inferior exterior */
  .lvc-ld-cv--6, .lvc-ld-cv--7 { display: none; }
  .lvc-ld-cv--1 { width: 37%; left: -5%; top: -3%; }
  .lvc-ld-cv--2 { width: 32%; left: 33%; top: -5%; }
  .lvc-ld-cv--3 { width: 37%; right: -5%; top: -3%; }
  .lvc-ld-cv--5 { width: 31%; left: -4%; top: 33%; }
  .lvc-ld-cv--4 { width: 31%; right: -4%; top: 33%; }
  .lvc-ld-cv--8 { width: 30%; left: -4%; bottom: -5%; }
  .lvc-ld-cv--9 { width: 30%; right: -4%; bottom: -5%; }
}
@media (max-width: 560px) {
  .lvc-ld-collage { height: 480px; }
  /* Móvil: solo 3 filas × 2 columnas, sin centro */
  .lvc-ld-cv--2, .lvc-ld-cv--6, .lvc-ld-cv--7 { display: none; }
  .lvc-ld-cv--1 { width: 48%; left: -5%; top: -3%; }
  .lvc-ld-cv--3 { width: 48%; right: -5%; top: -3%; }
  .lvc-ld-cv--5 { width: 44%; left: -4%; top: 33%; }
  .lvc-ld-cv--4 { width: 44%; right: -4%; top: 33%; }
  .lvc-ld-cv--8 { width: 46%; left: -5%; bottom: -5%; }
  .lvc-ld-cv--9 { width: 46%; right: -5%; bottom: -5%; }
  .lvc-ld-collage-h2 { font-size: clamp(42px, 13vw, 72px); }
}

/* ════════════════════════════════════════════════════
   REEL / FORMATO VERTICAL
   ════════════════════════════════════════════════════ */
.lvc-ld-reel {
  position: relative;
  background: linear-gradient(160deg, #07071e 0%, #0e0628 55%, #07071e 100%);
  padding: 120px 0 130px;
  overflow: hidden;
}
/* ambient orbs */
.lvc-ld-reel-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lvc-ld-reel-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 65%);
  right: -140px; top: 50%;
  transform: translateY(-50%);
  filter: blur(20px);
}
.lvc-ld-reel-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,.10) 0%, transparent 65%);
  left: 5%; bottom: -80px;
  filter: blur(20px);
}

/* ── two-col layout ── */
.lvc-ld-reel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── text side ── */
.lvc-ld-reel-text .lvc-ld-section-label { color: #a78bfa; }
.lvc-ld-reel-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 0 40px;
}
.lvc-ld-reel-desc strong { color: #fff; }
.lvc-ld-reel-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lvc-ld-reel-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.lvc-ld-reel-platform:hover {
  background: rgba(167,139,250,.12);
  border-color: rgba(167,139,250,.4);
}
.lvc-ld-reel-platform svg { opacity: .85; flex-shrink: 0; }

/* ── phone wrap ── */
.lvc-ld-reel-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* extra room for the 3D perspective overhang */
  padding: 40px 60px 40px 20px;
}
/* purple + blue glow behind the phone */
.lvc-ld-phone-glow {
  position: absolute;
  width: 290px; height: 440px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(124,58,237,.45) 0%,
    rgba(96,165,250,.25) 50%,
    transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

/* ── 3D phone ── */
.lvc-ld-phone {
  position: relative;
  z-index: 2;
  transform: perspective(900px) rotateY(-20deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: lvcPhoneFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 50px 80px rgba(0,0,0,.8))
          drop-shadow(0 0 40px rgba(124,58,237,.3));
}
@keyframes lvcPhoneFloat {
  0%,100% { transform: perspective(900px) rotateY(-20deg) rotateX(5deg) translateY(0); }
  50%      { transform: perspective(900px) rotateY(-20deg) rotateX(5deg) translateY(-16px); }
}

/* ── phone shell ── */
.lvc-ld-phone-shell {
  width: 278px;
  height: 570px;
  background: linear-gradient(170deg, #1e1e30 0%, #111120 100%);
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 0 rgba(0,0,0,.5),
    2px 0 0 rgba(255,255,255,.04),          /* fake right edge highlight */
    4px 4px 0 rgba(0,0,0,.3);               /* fake depth bottom */
  position: relative;
  overflow: hidden;
}

/* ── dynamic island ── */
.lvc-ld-phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 10;
  box-shadow: 0 0 0 2px rgba(0,0,0,.9);
}
.lvc-ld-phone-island::before,
.lvc-ld-phone-island::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  border-radius: 50%;
}
/* camera dot */
.lvc-ld-phone-island::after {
  width: 8px; height: 8px;
  right: 10px;
  background: radial-gradient(circle, #1a3a4a 0%, #0a1f2a 100%);
  border: 1px solid rgba(255,255,255,.08);
}

/* ── screen ── */
.lvc-ld-phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}
.lvc-ld-phone-screen > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── home indicator ── */
.lvc-ld-phone-home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 5px;
  background: rgba(255,255,255,.32);
  border-radius: 100px;
  z-index: 10;
}

/* ── physical buttons ── */
.lvc-ld-phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #252535 0%, #18182a 100%);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
}
.lvc-ld-phone-btn--power {
  width: 4px; height: 58px;
  right: -5px; top: 28%;
}
.lvc-ld-phone-btn--vol1 {
  width: 4px; height: 44px;
  left: -5px; top: 22%;
}
.lvc-ld-phone-btn--vol2 {
  width: 4px; height: 44px;
  left: -5px; top: calc(22% + 56px);
}

/* ════════════════════════════════
   Instagram / Reels UI overlay
   ════════════════════════════════ */
.lvc-ld-phone-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 32px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.18) 45%,
    transparent 70%
  );
  z-index: 5;
}
/* right-side action column */
.lvc-ld-phone-ui-right {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lvc-ld-phone-ui-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}
.lvc-ld-phone-ui-action span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}
/* spinning vinyl disc */
.lvc-ld-phone-ui-disc {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3e, #111);
  border: 2px solid rgba(255,255,255,.2);
  overflow: hidden;
  animation: lvcDiscSpin 4s linear infinite;
}
.lvc-ld-phone-ui-disc-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #a78bfa 0%, transparent 40%);
  opacity: .7;
}
@keyframes lvcDiscSpin {
  to { transform: rotate(360deg); }
}
/* bottom text area */
.lvc-ld-phone-ui-bottom {
  padding: 0 12px 0 14px;
  max-width: calc(100% - 52px);
}
.lvc-ld-phone-ui-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lvc-ld-phone-ui-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  border: 2px solid #fff;
  flex-shrink: 0;
}
.lvc-ld-phone-ui-user strong {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.lvc-ld-phone-ui-caption {
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.lvc-ld-phone-ui-music {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}

/* ── responsive ── */
@media (max-width: 900px) {
  .lvc-ld-reel-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    justify-items: center;
    text-align: center;
  }
  .lvc-ld-reel-platforms { justify-content: center; }
  .lvc-ld-reel-desc { max-width: 560px; margin-left: auto; margin-right: auto; }
  .lvc-ld-reel-phone-wrap { padding: 30px 40px; }
}
@keyframes lvcPhoneFloatMobile {
  0%,100% { transform: perspective(900px) rotateY(-10deg) rotateX(3deg) translateY(0); }
  50%      { transform: perspective(900px) rotateY(-10deg) rotateX(3deg) translateY(-10px); }
}
@media (max-width: 560px) {
  .lvc-ld-reel { padding: 80px 0 90px; }
  .lvc-ld-phone { animation-name: lvcPhoneFloatMobile; }
  .lvc-ld-phone-shell { width: 238px; height: 488px; }
  .lvc-ld-phone-glow  { width: 240px; height: 370px; }
}

/* ── CAPACIDADES ──────────────────────────────────── */
.lvc-ld-features {
  background: #06061a;
  padding: 110px 0;
}
.lvc-ld-features .lvc-ld-section-label { color: #a78bfa; }
.lvc-ld-features .lvc-ld-h2 { color: #fff; }
.lvc-ld-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lvc-ld-feat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s;
}
.lvc-ld-feat-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-4px);
}
.lvc-ld-feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.lvc-ld-feat-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.lvc-ld-feat-card p {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0;
}

/* ── ESTILOS VISUALES ─────────────────────────────── */
.lvc-ld-styles {
  background: #0c0c1e;
  padding: 90px 0;
}
.lvc-ld-styles .lvc-ld-section-label { color: #a78bfa; }
.lvc-ld-styles .lvc-ld-h2 { color: #fff; margin-bottom: 32px; }
.lvc-ld-styles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lvc-ld-style-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 16px;
  transition: transform .2s;
}
.lvc-ld-style-pill:hover { transform: scale(1.06); }
.lvc-ld-style-pill span:first-child { font-size: 22px; }

/* ── PLANES ───────────────────────────────────────── */
.lvc-ld-plans {
  background: #f5f5fb;
  padding: 110px 0 90px;
}
.lvc-ld-plans .lvc-ld-section-label { color: #7c3aed; }
.lvc-ld-plans .lvc-ld-h2 { color: #0f0f1a; margin-bottom: 12px; }
.lvc-ld-plans-sub {
  font-size: 20px;
  color: #555;
  margin: 0 0 52px;
  line-height: 1.65;
}
/* The [lvc_planes] shortcode inside the landing resets its own max-width */
.lvc-ld-plans .lvc-planes-wrap { max-width: 100%; padding: 0; }

/* ── CTA FINAL ────────────────────────────────────── */
.lvc-ld-cta-final {
  position: relative;
  background: #06061a;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.lvc-ld-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lvc-ld-cta-final-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  animation: lvc-ld-pulse 3s ease-in-out infinite;
}
@keyframes lvc-ld-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}
.lvc-ld-cta-final-h2 {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 22px;
  line-height: 1.1;
}
.lvc-ld-cta-final-sub {
  font-size: 22px;
  color: rgba(255,255,255,.6);
  margin: 0 0 48px;
  line-height: 1.65;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .lvc-ld-feat-grid   { grid-template-columns: repeat(2, 1fr); }
  .lvc-ld-plans-row   { grid-template-columns: repeat(2, 1fr); }
  .lvc-ld-step-arrow  { display: none; }
  .lvc-ld-steps       { gap: 14px; }
  .lvc-ld-step        { min-width: calc(50% - 7px); flex: none; }
}

/* Pasos — timeline vertical en móvil */
@media (max-width: 640px) {
  .lvc-ld-steps {
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 48px;
  }
  .lvc-ld-steps::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #a78bfa, #60a5fa);
    border-radius: 2px;
  }
  .lvc-ld-step {
    position: relative;
    min-width: 100%;
    flex: none;
    margin-bottom: 16px;
    padding: 22px 20px;
  }
  .lvc-ld-step::before {
    content: attr(data-n);
    position: absolute;
    left: -42px;
    top: 22px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .lvc-ld-step-num    { display: none; }
  .lvc-ld-step-icon   { font-size: 24px; margin-bottom: 10px; }
  .lvc-ld-step h3     { font-size: 14px; }
  .lvc-ld-step-arrow  { display: none; }
}

@media (max-width: 600px) {
  .lvc-ld-hero        { min-height: auto; padding: 80px 0 60px; }
  .lvc-ld-h1          { font-size: 36px; }
  .lvc-ld-feat-grid   { grid-template-columns: 1fr; }
  .lvc-ld-plans-row   { grid-template-columns: 1fr; }
  .lvc-ld-hero-ctas   { flex-direction: column; }
  .lvc-ld-btn         { width: 100%; justify-content: center; }
  .lvc-ld-proof-sep   { display: none; }
  .lvc-ld-hero-proof  { gap: 10px; }
}

/* ══════════════════════════════════════════════════════════════
   CANVAS ASSISTANT — v4.0  (light theme)
   ══════════════════════════════════════════════════════════════ */

/* ── Canvas layout ──────────────────────────────────────────── */
#lvc-app {
  background: #f0f3fa;
  color: #1a2035;
  font-family: Raleway, sans-serif;
  min-height: 100vh;
  max-width: 100%;
  padding: 0 0 40px;
}
#lvc-canvas {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
#lvc-canvas-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}

/* ── Base block ─────────────────────────────────────────────── */
.lvc-cb {
  margin-bottom: 18px;
  animation: lvcCbIn .28s ease both;
}
@keyframes lvcCbIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Assistant bubble (left) ────────────────────────────────── */
.lvc-cb--assistant { display: flex; }
.lvc-cb-ai-row {
  display: flex; align-items: flex-start; gap: 12px; max-width: 88%;
}
.lvc-cb-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 0;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.lvc-cb-avatar-gif { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.lvc-cb-bubble {
  background: #fff; border: 1px solid #e5e9f5;
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px; line-height: 1.65; font-size: 15px; color: #1e2540; flex: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.lvc-cb-bubble strong { color: #4f46e5; }
.lvc-cb-bubble em     { color: #64748b; }


/* ── User choice (right) ────────────────────────────────────── */
.lvc-cb--user-choice { display: flex; justify-content: flex-end; }
.lvc-cb--user-choice > * {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff; border-radius: 18px 4px 18px 18px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; max-width: 80%;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.lvc-cb-uc-icon { font-size: 16px; }
.lvc-cb-uc-change {
  background: rgba(255,255,255,.92); border: none;
  color: #4338ca; border-radius: 20px; padding: 3px 11px;
  font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: Raleway, sans-serif; letter-spacing: .03em;
  transition: background .15s, color .15s;
  line-height: 1.6;
}
.lvc-cb-uc-change:hover { background: #fff; color: #3730a3; }

/* ── Action block ───────────────────────────────────────────── */
.lvc-cb--action {
  background: #fff; border: 1px solid #e5e9f5;
  border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
}

/* ── Spinner ────────────────────────────────────────────────── */
.lvc-cb--spinner { display: flex; }
.lvc-cb-spin-row {
  display: flex; align-items: center; gap: 12px;
  color: #64748b; font-size: 14px; padding: 6px 0;
}
.lvc-cb-spin-anim {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid #dde4f4; border-top-color: #4f46e5;
  border-radius: 50%; animation: lvcSpin .7s linear infinite; flex-shrink: 0;
}
@keyframes lvcSpin { to { transform: rotate(360deg); } }

/* ── Error ──────────────────────────────────────────────────── */
.lvc-cb--error .lvc-cb-err-row {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 10px; padding: 12px 16px; font-size: 14px;
}
.lvc-cb-err-link { color: #4f46e5; text-decoration: underline; margin-left: 6px; }

/* ── Stats ──────────────────────────────────────────────────── */
.lvc-cb--stats { padding: 4px 0; }
.lvc-cb-stats  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lvc-cb-stat {
  background: #f6f8ff; border: 1px solid #e5e9f5;
  border-radius: 10px; padding: 10px 18px; text-align: center; min-width: 80px;
}
.lvc-cb-stat strong { display: block; font-size: 22px; color: #4f46e5; font-weight: 800; }
.lvc-cb-stat span   { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; }
.lvc-cb-bpm-row     { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #94a3b8; }
.lvc-cb-bpm-row .lvc-input {
  background: #fff; border: 1px solid #e5e9f5; color: #1e2540;
  border-radius: 8px; padding: 6px 10px; font-family: Raleway, sans-serif; font-size: 13px;
}
.lvc-cb-bpm-row .lvc-input:focus { outline: none; border-color: #4f46e5; }

/* ── Audio drop zone ────────────────────────────────────────── */
.lvc-cb-drop-zone {
  border: 2px dashed #c7d2e8; border-radius: 14px;
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #f6f8ff;
}
.lvc-cb-drop-zone:hover, .lvc-cb-drop-zone.drag {
  border-color: #4f46e5; background: rgba(79,70,229,.04);
}
.lvc-cb-drop-zone.loaded { border-color: #22c55e; border-style: solid; background: #f0fdf4; }
.lvc-cb-drop-icon { font-size: 36px; margin-bottom: 10px; }
.lvc-cb-drop-text { font-size: 15px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.lvc-cb-drop-sub  { font-size: 12px; color: #94a3b8; }
.lvc-cb-drop-fn   { font-size: 13px; color: #16a34a; margin-top: 8px; font-weight: 600; }

/* ── WaveSurfer wrap ────────────────────────────────────────── */
.lvc-cb-wave-wrap { padding: 4px 0; }
.lvc-cb-wave-row  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

/* ── Lyrics textarea ────────────────────────────────────────── */
.lvc-cb-lyrics-wrap .lvc-ta {
  width: 100%; min-height: 200px;
  background: #f9fbff; border: 1px solid #e5e9f5; color: #1e2540;
  font-family: Raleway, sans-serif; font-size: 14px; line-height: 1.7;
  border-radius: 10px; padding: 14px 16px; resize: vertical;
}
.lvc-cb-lyrics-wrap .lvc-ta:focus { outline: none; border-color: #4f46e5; }

/* ── Style picker ───────────────────────────────────────────── */
.lvc-cb-style-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lvc-cb-style-btn {
  background: #fff; border: 1.5px solid #dde4f2; color: #334155;
  border-radius: 50px; padding: 9px 18px;
  font-size: 14px; font-family: Raleway, sans-serif; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.lvc-cb-style-btn:hover    { border-color: #4f46e5; color: #4f46e5; background: #f0f0ff; }
.lvc-cb-style-btn.selected { border-color: #4f46e5; background: linear-gradient(135deg,#4338ca,#6d28d9); color: #fff; }
.lvc-cb-style-btn:disabled { opacity: .5; cursor: default; }

/* "Otro" custom style row */
.lvc-cb-style-other {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; flex-wrap: wrap;
}
.lvc-cb-style-other .lvc-input {
  flex: 1 1 200px; min-width: 0;
  padding: 8px 14px; border-radius: 50px;
  border: 1.5px solid #dde4f2; font-size: 14px;
  font-family: Raleway, sans-serif;
  transition: border-color .18s;
}
.lvc-cb-style-other .lvc-input:focus {
  outline: none; border-color: #4f46e5;
}

/* ── Theme input ────────────────────────────────────────────── */
.lvc-cb-theme-wrap .lvc-input {
  width: 100%; background: #fff; border: 1px solid #e5e9f5; color: #1e2540;
  border-radius: 10px; padding: 12px 16px;
  font-family: Raleway, sans-serif; font-size: 14px;
}
.lvc-cb-theme-wrap .lvc-input:focus { outline: none; border-color: #4f46e5; }

/* ── Concept cards ──────────────────────────────────────────── */
.lvc-cb-concepts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 4px;
}
.lvc-cb-concept-card {
  background: #fff; border: 1.5px solid #e5e9f5; border-radius: 14px;
  padding: 18px 16px; transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.lvc-cb-concept-card:hover { border-color: #4f46e5; box-shadow: 0 4px 20px rgba(79,70,229,.1); }
.lvc-cb-concept-num   { font-size: 11px; color: #4f46e5; font-weight: 800; letter-spacing: .1em; }
.lvc-cb-concept-title { font-size: 16px; font-weight: 800; color: #1e2540; margin: 0; }
.lvc-cb-concept-desc  { font-size: 13px; color: #64748b; line-height: 1.6; flex: 1; }
.lvc-cb-concept-meta  { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #94a3b8; }
.lvc-cb-concept-pick  { margin-top: 4px; align-self: flex-start; }

/* ── Num chars picker ───────────────────────────────────────── */
.lvc-cb-nchar-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.lvc-cb-nchar-btn {
  background: #fff; border: 1.5px solid #dde4f2; color: #334155;
  border-radius: 10px; padding: 12px 20px;
  font-size: 14px; font-family: Raleway, sans-serif; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.lvc-cb-nchar-btn:hover    { border-color: #4f46e5; color: #4f46e5; background: #f0f0ff; }
.lvc-cb-nchar-btn:disabled { opacity: .5; cursor: default; }

/* ── Character cards ────────────────────────────────────────── */
.lvc-cb-chars-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.lvc-cb-char-card {
  background: #fff; border: 1px solid #e5e9f5; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.lvc-cb-char-img-wrap { position: relative; aspect-ratio: 16/9; background: #f0f2f9; overflow: hidden; }
.lvc-cb-char-img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-cb-char-img-ph   { display: flex; align-items: center; justify-content: center; font-size: 40px; height: 100%; color: #c7d2e8; }
.lvc-cb-char-info     { padding: 12px 14px; }
.lvc-cb-char-name     { display: block; font-size: 14px; font-weight: 800; color: #1e2540; margin-bottom: 2px; }
.lvc-cb-char-role     { font-size: 11px; color: #4f46e5; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display: block; }
.lvc-cb-char-desc     { font-size: 12px; color: #64748b; line-height: 1.5; margin: 0 0 10px; }
.lvc-cb-char-btns     { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Char image — loading overlay */
.lvc-cb-char-gen-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; border-radius: 4px;
  backdrop-filter: blur(2px);
}
.lvc-cb-char-gen-spin {
  width: 30px !important; height: 30px !important;
  border-width: 3px !important;
}

/* Selfie upload */
.lvc-cb-selfie-wrap   { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lvc-cb-selfie-label  { cursor: pointer; }
.lvc-cb-selfie-status { font-size: 11px; color: #64748b; }
.lvc-cb-selfie-submit { font-size: 11px; color: #6366f1; text-decoration: none; font-weight: 600; }
.lvc-cb-selfie-submit:hover { text-decoration: underline; }

/* ── Scene cards ────────────────────────────────────────────── */
.lvc-cb-scenes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.lvc-cb-scene-card {
  background: #fff; border: 1px solid #e5e9f5; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: border-color .18s;
}
.lvc-cb-scene-card:hover { border-color: #a5b4fc; }
.lvc-cb-scene-img-wrap   { position: relative; aspect-ratio: 16/9; background: #f0f2f9; overflow: hidden; }
.lvc-cb-scene-thumb      { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-cb-scene-thumb-ph   { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #c7d2e8; height: 100%; }
.lvc-cb-scene-preview    { position: absolute; bottom: 6px; right: 6px; opacity: 0; transition: opacity .18s; }
.lvc-cb-scene-card:hover .lvc-cb-scene-preview { opacity: 1; }
.lvc-cb-lipsync-badge    { position: absolute; top: 6px; left: 6px; background: rgba(79,70,229,.85); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.lvc-cb-scene-body   { padding: 10px 12px; }
.lvc-cb-scene-num    { font-size: 11px; font-weight: 800; color: #4f46e5; letter-spacing: .06em; margin-bottom: 4px; }
.lvc-cb-scene-desc   { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lvc-cb-scene-shot   { font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.lvc-cb-scene-btns   { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.lvc-cb-lipsync-toggle    { font-size: 12px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.lvc-cb-lipsync-toggle.on { color: #4f46e5; }
.lvc-cb-lipsync-toggle input { display: none; }

/* ── Quality cards ──────────────────────────────────────────── */
.lvc-cb-quality-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.lvc-cb-quality-card {
  background: #fff; border: 2px solid #e5e9f5; border-radius: 14px; padding: 20px 16px;
  cursor: pointer; transition: all .2s; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.lvc-cb-quality-card:hover    { border-color: #4f46e5; box-shadow: 0 6px 24px rgba(79,70,229,.12); }
.lvc-cb-quality-card.selected { border-color: #4f46e5; background: #f5f3ff; }
.lvc-cb-quality-card strong   { font-size: 18px; color: #1e2540; display: block; }
.lvc-cb-quality-icon  { font-size: 30px; }
.lvc-cb-quality-model { font-size: 12px; color: #4f46e5; font-weight: 600; }
.lvc-cb-quality-cr    { font-size: 14px; font-weight: 800; color: #6d28d9; }
.lvc-cb-quality-desc  { font-size: 12px; color: #94a3b8; }

/* ── Generation progress grid ───────────────────────────────── */
.lvc-cb-gen-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px;
}
.lvc-cb-gen-card {
  background: #fff; border: 1px solid #e5e9f5; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.lvc-cb-gen-thumb { aspect-ratio: 16/9; background: #f0f2f9; overflow: hidden; }
.lvc-cb-gen-thumb img, .lvc-cb-gen-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-cb-gen-info   { padding: 8px 10px; }
.lvc-cb-gen-num    { font-size: 11px; font-weight: 700; color: #94a3b8; margin-bottom: 3px; }
.lvc-cb-gen-status { font-size: 11px; color: #64748b; }
/* progress bar inside gen block */
.lvc-cb-gen-progress {
  height: 3px; background: #e5e9f5; border-radius: 3px; margin: 10px 0 4px; overflow: hidden;
}
.lvc-cb-gen-progress-fill {
  height: 100%; background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 3px; transition: width .4s ease;
}

/* ── Big primary button ─────────────────────────────────────── */
.lvc-btn.lvc-btn-primary-big {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff; border: none; border-radius: 12px;
  padding: 14px 28px; font-size: 16px; font-weight: 700;
  font-family: Raleway, sans-serif; cursor: pointer;
  box-shadow: 0 6px 24px rgba(99,102,241,.35);
  transition: transform .15s, box-shadow .15s;
}
.lvc-btn.lvc-btn-primary-big:hover    { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99,102,241,.45); }
.lvc-btn.lvc-btn-primary-big:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Final video ────────────────────────────────────────────── */
.lvc-cb--final .lvc-cb-final-wrap { display: flex; flex-direction: column; gap: 14px; }
.lvc-cb-final-video  { width: 100%; border-radius: 12px; display: block; background: #000; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.lvc-cb-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Chat user message ──────────────────────────────────────── */
.lvc-cb--chat-user { display: flex; justify-content: flex-end; }
.lvc-cb-chat-user {
  background: #f1f5ff; border: 1px solid #dde4f2; border-radius: 18px 4px 18px 18px;
  padding: 10px 16px; font-size: 14px; color: #334155; max-width: 80%;
}

/* ── Orientation picker ─────────────────────────────────────── */
.lvc-cb-orient-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px;
}
.lvc-cb-orient-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 16px; border: 2px solid #dde4f2; border-radius: 14px;
  background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s;
  text-align: center; font-family: Raleway, sans-serif;
}
.lvc-cb-orient-btn:hover  { border-color: #6366f1; background: #f5f3ff; }
.lvc-cb-orient-btn.selected { border-color: #6366f1; background: #f0eeff; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.lvc-cb-orient-btn strong { font-size: 15px; font-weight: 700; color: #1e2540; }
.lvc-cb-orient-btn span   { font-size: 12px; color: #64748b; line-height: 1.4; }
.lvc-cb-orient-icon       { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: #6366f1; line-height: 1; }
.lvc-cb-orient-icon--v    { font-size: 36px; letter-spacing: 3px; }
.lvc-cb-orient-icon--h    { font-size: 20px; letter-spacing: 6px; }

/* ── Header: light sticky ───────────────────────────────────── */
.lvc-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e5e9f5;
  border-top: none; padding: 12px 20px; margin-bottom: 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.lvc-header .lvc-brand   { color: #1e2540; }
.lvc-header .lvc-tagline { color: #94a3b8; }
.lvc-header .lvc-credits-num { color: #4f46e5; }
.lvc-cb-credits-refresh {
  background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 13px;
  padding: 0 4px; transition: color .18s;
}
.lvc-cb-credits-refresh:hover { color: #4f46e5; }
/* projects button in header */
#lvc-projects-btn {
  background: #f6f8ff; border: 1px solid #dde4f2; color: #4f46e5;
  border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  font-family: Raleway, sans-serif; cursor: pointer; transition: all .18s;
}
#lvc-projects-btn:hover { background: #ebe9ff; border-color: #4f46e5; }

/* ── Projects modal ─────────────────────────────────────────── */
.lvc-proj-modal-bd {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(15,20,40,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 60px;
}
.lvc-proj-modal-box {
  background: #fff; border-radius: 16px; width: min(640px,95vw);
  max-height: 75vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.lvc-proj-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid #f0f2f9; position: sticky; top: 0; background: #fff;
}
.lvc-proj-modal-title { font-weight: 800; font-size: 16px; color: #1e2540; }
.lvc-proj-modal-close {
  background: none; border: none; font-size: 20px; cursor: pointer; color: #94a3b8;
  line-height: 1; padding: 0 4px;
}
.lvc-proj-modal-close:hover { color: #1e2540; }
.lvc-proj-list { padding: 12px 16px; }
.lvc-proj-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px solid #f0f2f9;
}
.lvc-proj-row:last-child { border-bottom: none; }
.lvc-proj-thumb {
  width: 60px; height: 34px; border-radius: 6px;
  background: #f0f2f9; overflow: hidden; flex-shrink: 0;
}
.lvc-proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lvc-proj-info { flex: 1; min-width: 0; }
.lvc-proj-name { font-size: 14px; font-weight: 700; color: #1e2540; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvc-proj-meta { font-size: 11px; color: #94a3b8; }
/* Expiry notice inside the projects modal */
.lvc-proj-notice {
  margin: 0; padding: 11px 20px;
  background: #fffbeb; border-bottom: 1px solid #fde68a;
  font-size: 13px; color: #92400e; line-height: 1.5;
}

.lvc-proj-status {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.lvc-proj-status.completed  { background: #dcfce7; color: #15803d; }
.lvc-proj-status.draft      { background: #f1f5ff; color: #4f46e5; }
.lvc-proj-status.processing { background: #fff7ed; color: #c2410c; }
.lvc-proj-status.generating { background: #fff7ed; color: #c2410c; }
.lvc-proj-status.assembling { background: #fef9c3; color: #92400e; }
.lvc-proj-status.pending    { background: #f1f5ff; color: #6366f1; }
.lvc-proj-status.failed     { background: #fef2f2; color: #dc2626; }
.lvc-proj-status.expired    { background: #f8fafc; color: #94a3b8; }

/* Expiry warning under the final video */
.lvc-cb-final-expire {
  margin-top: 14px; padding: 11px 16px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  font-size: 13px; color: #92400e; line-height: 1.5; text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  #lvc-canvas { padding: 0 12px 40px; }
  .lvc-cb-ai-row        { max-width: 95%; }
  .lvc-cb-concepts-grid { grid-template-columns: 1fr; }
  .lvc-cb-quality-grid  { grid-template-columns: 1fr; }
  .lvc-cb-chars-grid    { grid-template-columns: 1fr; }
  .lvc-cb-scenes-grid   { grid-template-columns: repeat(2, 1fr); }
  .lvc-cb-gen-grid      { grid-template-columns: repeat(2, 1fr); }
  .lvc-cb-orient-grid   { grid-template-columns: 1fr; }
}

/* ── Reel / vertical mode — 9:16 card thumbnails ────────────── */
.lvc-reel-mode .lvc-cb-char-img-wrap  { aspect-ratio: 9/16; }
.lvc-reel-mode .lvc-cb-scene-img-wrap { aspect-ratio: 9/16; }
.lvc-reel-mode .lvc-cb-gen-thumb      { aspect-ratio: 9/16; }
.lvc-reel-mode .lvc-cb-gen-thumb img  { object-fit: cover; width: 100%; height: 100%; }
