/* ============================================
   VIDEO CREATOR CSS
   Styles for video creator components
   ============================================ */

/* Prevent text selection anywhere inside video creator */
.main-container,
.main-container *,
#vc-editor,
#vc-editor *,
#vc-edit-panel,
#vc-edit-panel *,
#vc-inspector-content,
#vc-inspector-content * {
  -webkit-user-select: none;
  user-select: none;
}

.vc-inspector-field {
  margin-top: 8px;
}

.vc-inspector-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.vc-inspector-input {
  background: rgba(255, 255, 255, 0.03);
}

.vc-asset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.vc-asset-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vc-asset-perf-banner {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.65);
  color: rgb(229, 231, 235);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}

.vc-asset-alert-banner {
  margin: 6px 0 10px 0;
}

.vc-asset-alert-banner__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vc-asset-alert-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
}

.vc-asset-alert-banner__subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.vc-asset-alert-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vc-alert-badge {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.vc-alert-badge:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.vc-alert-badge[data-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.10);
  color: rgba(253, 230, 138, 0.98);
}

.vc-alert-badge[data-tone="info"] {
  border-color: rgba(99, 102, 241, 0.40);
  background: rgba(99, 102, 241, 0.12);
  color: rgba(199, 210, 254, 0.98);
}

.vc-alert-badge[data-tone="muted"] {
  border-color: rgba(148, 163, 184, 0.30);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.96);
}

.vc-asset-content {
  flex: 1;
  min-width: 0;
}

.vc-asset-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-asset-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.vc-asset-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.vc-asset-delete:hover {
  opacity: 1;
}

.vc-inspector-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vc-inspector-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.vc-inspector-value {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #94a3b8;
}

.vc-inspector-textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
  resize: vertical;
}

.vc-inspector-input-group {
  display: flex;
  gap: 12px;
}

.vc-inspector-input-group>div {
  flex: 1;
}

.vc-inspector-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-script-highlight {
  position: absolute;
  inset: 0;
  padding: 20px;
  font-size: 20px;
  line-height: 1.7;
  color: #e5e7eb;
  background: transparent;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
  display: none;
}

.vc-script-highlight .vc-script-word {
  padding: 2px 6px;
  border-radius: 8px;
  transition: background-color 120ms ease;
}

.vc-script-highlight .vc-script-word.is-active {
  background: rgba(139, 92, 246, 0.38);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.45);
}

/* Replace Scene modal */
.vc-context-menu-item--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.95));
  color: #ffffff;
  border: none;
}

.vc-context-menu-item--primary:hover {
  filter: brightness(1.05);
}

.vc-replace-scene-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.vc-replace-scene-modal {
  width: min(1120px, 96vw);
  max-height: 90vh;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vc-replace-scene-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.vc-replace-scene-title {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.vc-replace-scene-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.vc-replace-scene-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 18px;
  cursor: pointer;
}

.vc-replace-scene-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.vc-replace-scene-primary {
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.vc-replace-scene-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vc-replace-scene-status {
  color: #94a3b8;
  font-size: 12px;
}

.vc-replace-scene-body {
  padding: 18px 22px 22px;
  overflow: auto;
}

.vc-replace-scene-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.vc-replace-scene-meta-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.vc-replace-scene-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.vc-replace-scene-meta-value {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.vc-replace-scene-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-replace-scene-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #c7d2fe;
  font-size: 11px;
}

.vc-replace-scene-muted {
  color: #94a3b8;
  font-size: 12px;
}

.vc-replace-scene-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vc-replace-scene-modes {
  display: inline-flex;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.vc-replace-scene-mode-btn {
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5f5;
  border: none;
  cursor: pointer;
}

.vc-replace-scene-mode-btn.is-active {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.vc-replace-scene-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vc-replace-scene-search-input {
  min-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}

.vc-replace-scene-search-btn,
.vc-replace-scene-clear-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  cursor: pointer;
}

.vc-replace-scene-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #cbd5f5;
  font-size: 12px;
}

.vc-replace-scene-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 -22px;
  /* Pull out to edges */
  padding: 0 22px;
}

.vc-replace-scene-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 16px;
  /* Bottom padding for shadow/border visibility */
  scroll-behavior: smooth;
  cursor: grab;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vc-replace-scene-carousel::-webkit-scrollbar {
  display: none;
}

.vc-replace-scene-carousel.active {
  cursor: grabbing;
  scroll-behavior: auto;
  /* Disable smooth scroll while dragging */
}

/* Navigation buttons */
.vc-replace-scene-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(-6px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vc-replace-scene-nav:hover {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-50%) translateY(-6px) scale(1.05);
}

.vc-replace-scene-nav-prev {
  left: 12px;
}

.vc-replace-scene-nav-next {
  right: 12px;
}

.vc-replace-scene-card {
  flex: 0 0 220px;
  /* Fixed width for carousel items */
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
  /* Prevent text selection while dragging */
}

.vc-replace-scene-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.4);
}

.vc-replace-scene-card.is-selected {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

.vc-replace-scene-thumb {
  width: 100%;
  padding-top: 56%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.vc-replace-scene-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

.vc-replace-scene-card-body {
  padding: 10px 12px 12px;
}

.vc-replace-scene-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-replace-scene-card-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.vc-replace-scene-empty {
  padding: 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

/* Story setup tabs (Create with AI -> Popular niche) */
.vc-story-setup-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  flex: 1 1 auto;
  justify-content: center;
}

.vc-story-tab-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.15) 75%);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}

.vc-idea-preset-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vc-idea-preset-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px;
  flex: 1 1 auto;
}

.vc-idea-preset-scroller::-webkit-scrollbar {
  height: 6px;
}

.vc-idea-preset-scroller::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.vc-idea-preset-nav {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.vc-idea-preset-nav iconify-icon {
  --iconify-width: 16px;
  --iconify-height: 16px;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  min-width: 16px;
  min-height: 16px;
}

.vc-idea-preset-prev iconify-icon {
  transform: translateX(-1px);
}

.vc-idea-preset-next iconify-icon {
  transform: translateX(1px);
}

.vc-idea-preset-nav:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.vc-model-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.vc-model-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.vc-model-scroller::-webkit-scrollbar {
  height: 6px;
}

.vc-model-scroller::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.vc-model-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  color: #e5e7eb;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  cursor: pointer;
  position: relative;
}

.vc-model-card:hover,
.vc-model-card:focus-visible {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  outline: none;
}

.vc-model-card.is-selected {
  border-width: 2px;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
  padding: 5px;
}

.vc-model-card-thumb {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(15, 23, 42, 0.6);
}

.vc-model-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
  text-align: center;
}

#vc-idea-video-model-select,
#vc-idea-image-model-select {
  display: none !important;
}

.vc-diamonds-tooltip-wrap {
  position: relative;
}

.vc-diamonds-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.vc-diamonds-tooltip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.vc-diamonds-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(99, 102, 241, 0.35);
  border-top: 1px solid rgba(99, 102, 241, 0.35);
}

.vc-diamonds-tooltip-wrap:hover .vc-diamonds-tooltip,
.vc-diamonds-tooltip-wrap:focus-within .vc-diamonds-tooltip,
.vc-diamonds-tooltip:hover,
.vc-diamonds-tooltip:focus-within {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.vc-diamonds-tooltip-title {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.01em;
}

.vc-diamonds-tooltip-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: 1px solid rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.vc-diamonds-tooltip-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.vc-topic-mode-custom {
  border-color: rgba(148, 163, 184, 0.55);
}

.vc-idea-preset-thumb {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  color: #e5e7eb;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 176px;
  cursor: pointer;
  position: relative;
}

.vc-idea-preset-thumb:hover,
.vc-idea-preset-thumb:focus-visible {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  outline: none;
}

.vc-idea-preset-thumb.is-selected {
  border-width: 2px;
  border-color: rgba(99, 102, 241, 0.9);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  padding: 7px;
}

.vc-idea-preset-thumb.is-disabled,
.vc-idea-preset-thumb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vc-idea-preset-thumb-img {
  width: 176px;
  height: 108px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(15, 23, 42, 0.6);
}

.vc-idea-preset-thumb-img.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
}

.vc-idea-preset-thumb-img.is-fallback iconify-icon {
  font-size: 28px;
  color: #cbd5f5;
}

.vc-idea-preset-thumb-label {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: color 0.15s ease;
}

.vc-idea-preset-label-text {
  color: #e2e8f0;
  transition: color 0.15s ease;
}

.vc-idea-preset-thumb:hover .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb:focus-visible .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb.is-selected .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb:hover .vc-idea-preset-label-text,
.vc-idea-preset-thumb:focus-visible .vc-idea-preset-label-text,
.vc-idea-preset-thumb.is-selected .vc-idea-preset-label-text {
  color: #93c5fd;
}

.vc-idea-preset-diamond-tag {
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.vc-idea-preset-star {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.vc-idea-preset-star:hover {
  color: #fcd34d;
}

.vc-idea-preset-star iconify-icon {
  font-size: 14px;
}

.vc-idea-preset-description {
  font-size: 35px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
}

.vc-story-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.vc-story-tab-btn.is-active {
  border-color: rgba(99, 102, 241, 0.65);
  color: #f8fafc;
  background: radial-gradient(circle at 35% 35%, rgba(129, 140, 248, 0.55), rgba(99, 102, 241, 0.28) 45%, rgba(67, 56, 202, 0.35) 78%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 10px 16px rgba(30, 27, 75, 0.35), 0 0 0 2px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vc-story-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6), 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.35);
}

.vc-story-tab-btn iconify-icon {
  font-size: 18px;
}

.vc-story-tab-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 20;
}

.vc-story-setup-panel {
  overflow: visible;
}

.vc-story-tab-btn:hover .vc-story-tab-tooltip,
.vc-story-tab-btn:focus-visible .vc-story-tab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vc-story-section[data-vc-story-tab-active="false"] {
  display: none;
}

.vc-voiceover-status-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.vc-voiceover-status {
  font-size: 13px;
  color: #e5e7eb;
  text-align: center;
}

.vc-voiceover-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.vc-voiceover-progress-bar {
  width: 0%;
  height: 100%;
  background: #a855f7;
  transition: width 0.2s ease;
}

.vc-color-picker {
  width: 60px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
}

.vc-color-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
}

.vc-inspector-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 15px;
  cursor: default;
}

/* Style all selects in video creator */
#vc-edit-form select,
#vc-inspector-content select,
.vc-inspector-field select {
  padding: 12px 16px !important;
  font-size: 15px !important;
  cursor: default !important;
}

.vc-inspector-styling-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Purple gradient buttons for Find Images and Find Videos */
#vc-find-images,
#vc-find-video,
#vc-find-images-edit,
#vc-find-video-edit,
#focus-find-images,
#focus-find-videos {
  transition: all 0.2s ease;
}

#vc-find-images:hover,
#vc-find-video:hover,
#vc-find-images-edit:hover,
#vc-find-video-edit:hover,
#focus-find-images:hover,
#focus-find-videos:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

#vc-find-images:active,
#vc-find-video:active,
#vc-find-images-edit:active,
#vc-find-video-edit:active,
#focus-find-images:active,
#focus-find-videos:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

/* Selection styles for video creator items - solid line instead of dotted, thinner */
#vc-asset-items [data-item-id]:focus,
#vc-asset-items [data-item-id]:focus-visible,
#vc-asset-items>div:focus,
#vc-asset-items>div:focus-visible {
  outline: 1px solid rgba(99, 102, 241, 0.7) !important;
  outline-offset: 2px;
  outline-style: solid !important;
}

/* Override any dotted/dashed outlines on selected items */
#vc-asset-items [data-item-id].selected,
#vc-asset-items [data-item-id][aria-selected="true"],
#vc-asset-items>div.selected {
  outline: 1px solid rgba(99, 102, 241, 0.7) !important;
  outline-offset: 2px;
  outline-style: solid !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline tracks (Video + Audio, Canva-like expand/collapse)                 */
/* -------------------------------------------------------------------------- */
.vc-timeline {
  /* Canva-ish scale: 10s ≈ 240px */
  --vc-pps: 24;
  --vc-timeline-height: 276px;
  /* Give the ruler a little extra vertical breathing room so labels don't get clipped */
  --vc-ruler-height: 34px;
  --vc-lane-gap: 8px;
  --vc-lane-inset: 3px;
  --vc-lane-radius: 10px;
  --vc-lane-cta-font-size: 13px;
  --vc-gutter-width: 170px;
  --vc-video-lane-height: 88px;
  --vc-text-lane-height: 50px;
  --vc-audio-lane-height: 60px;
}

/* -------------------------------------------------------------------------- */
/* Preview playbar (below preview): show only play button (no pill chrome)     */
/* -------------------------------------------------------------------------- */
.vc-playbar {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.vc-play-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.vc-play-button-container .vc-play-time {
  display: inline-block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  color: rgba(229, 231, 235, 0.92);
}

.vc-play-button-container .vc-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.20);
  border: 2px solid rgba(99, 102, 241, 0.32);
  color: #818cf8;
}

/* -------------------------------------------------------------------------- */
/* Preview aspect ratio lock (always 16:9, centered, responsive)               */
/* -------------------------------------------------------------------------- */
#vc-preview-wrap {
  /* Outer container should be allowed to be wide; inner stage holds the 16:9 frame. */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#vc-preview-stage {
  /* JS sets explicit width/height; these are safe fallbacks */
  aspect-ratio: var(--vc-preview-aspect, 16 / 9);
  /* Square border + only the stage is black */
  border-radius: 0 !important;
  background: #000;
  /* Make hover/select states feel like the preview splitter hover. */
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

#vc-preview-stage>canvas#vc-canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Preview hover/select affordance (border like the splitter hover)            */
/* -------------------------------------------------------------------------- */
#vc-preview-stage.vc-preview-hovered,
#vc-preview-stage.vc-preview-selected {
  border-color: rgba(129, 140, 248, 0.70) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.14),
    0 10px 26px rgba(99, 102, 241, 0.14),
    0 0 18px rgba(129, 140, 248, 0.35);
}

#vc-preview-stage.vc-preview-selected {
  /* Slightly stronger to read as "locked in" after click */
  border-color: rgba(168, 85, 247, 0.85) !important;
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.22),
    0 14px 34px rgba(99, 102, 241, 0.16),
    0 0 22px rgba(168, 85, 247, 0.30);
}

/* -------------------------------------------------------------------------- */
/* Preview vertical splitter (below playbar)                                   */
/* -------------------------------------------------------------------------- */
.vc-preview-splitter {
  width: 100%;
  /* Large hit-area, thin visual line */
  height: 22px;
  margin: 8px 0 10px;
  cursor: row-resize;
  touch-action: none;
  /* ensure drag events aren't converted into scrolling in webviews */
  position: relative;
  flex: 0 0 auto;
  z-index: 50;
  pointer-events: auto;
}

.vc-preview-splitter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 2px;
  border-radius: 999px;
  /* Full-width line that "tapers" (fades) at the ends */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.06) 6%,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0.12) 80%,
      rgba(255, 255, 255, 0.06) 94%,
      rgba(255, 255, 255, 0.00) 100%);
  transition: background 140ms ease, box-shadow 140ms ease, height 140ms ease;
  pointer-events: none;
}

.vc-preview-splitter:hover::before,
body.vc-preview-resizing .vc-preview-splitter::before {
  height: 2px;
  background: linear-gradient(90deg,
      rgba(129, 140, 248, 0.00) 0%,
      rgba(129, 140, 248, 0.18) 6%,
      rgba(129, 140, 248, 0.70) 22%,
      rgba(168, 85, 247, 0.70) 78%,
      rgba(129, 140, 248, 0.18) 94%,
      rgba(129, 140, 248, 0.00) 100%);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.14),
    0 10px 26px rgba(99, 102, 241, 0.14),
    0 0 18px rgba(129, 140, 248, 0.35);
}

.vc-preview-splitter:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.65);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Auto sidebars: hover peek + pin button on splitters                         */
/* -------------------------------------------------------------------------- */
.vc-splitter {
  position: relative;
}

.vc-sidebar-pin-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: rgba(229, 231, 235, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  z-index: 30;
}

.vc-sidebar-pin-btn iconify-icon {
  font-size: 14px;
}

.vc-splitter:hover .vc-sidebar-pin-btn,
.vc-left-sidebar:hover+.vc-splitter .vc-sidebar-pin-btn,
.vc-right-sidebar:hover~.vc-splitter .vc-sidebar-pin-btn {
  opacity: 1;
  pointer-events: auto;
}

.vc-sidebar-pin-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
}

.vc-sidebar-pin-btn--left {
  left: 50%;
  transform: translate(-50%, -50%);
}

.vc-sidebar-pin-btn--right {
  left: 50%;
  transform: translate(-50%, -50%);
}

.vc-sidebar-pin-btn[data-mode="open"] {
  opacity: 1;
  pointer-events: auto;
}

.vc-sidebar-pin-btn[data-mode="closed"] {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* Left sidebar collapsed rail                                                 */
/* -------------------------------------------------------------------------- */
/* Free user gating - hide sidebars and toggle buttons */
body.is-free-user .vc-left-sidebar,
body.is-free-user .vc-right-sidebar,
body.is-free-user .vc-splitter,
body.is-free-user #vc-toggle-left,
body.is-free-user #vc-toggle-right {
  display: none !important;
}

body.is-free-user #vc-sidebar-toggles-container {
  display: none !important;
}

.vc-left-sidebar .vc-sidebar-rail {
  display: none;
}

.vc-left-sidebar.collapsed .vc-sidebar-rail {
  display: flex;
}

.vc-left-sidebar.collapsed> :not(.vc-sidebar-rail) {
  display: none !important;
}

.vc-sidebar-rail {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  box-sizing: border-box;
}

.vc-sidebar-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-sidebar-rail-btn iconify-icon {
  font-size: 18px;
}

.vc-sidebar-rail-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.28);
}

.vc-timeline.vc-timeline--audio-expanded {
  --vc-video-track-height: 84px;
  --vc-audio-track-height: 220px;
}

.vc-timeline {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  height: var(--vc-timeline-height);
  border-radius: 0;
  background: transparent;
  border: none;
  position: relative;
}

.vc-timeline-panel {
  /* Remove the outer wrapper chrome so we don't get "panel inside panel" spacing */
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.vc-timeline-panel::before {
  display: none !important;
}

.vc-timeline .vc-timeline-left {
  width: var(--vc-gutter-width);
  flex: 0 0 var(--vc-gutter-width);
  padding: 10px 10px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.vc-timeline .vc-timeline-left .vc-left-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-timeline .vc-timeline-left .vc-add-media {
  width: 44px;
  height: 44px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-timeline .vc-timeline-left .vc-left-hint {
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
}

.vc-timeline .vc-timeline-left .vc-add-audio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  width: fit-content;
}

.vc-timeline .vc-track-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: 8px 10px 10px;
}

.vc-timeline .vc-track-stack {
  display: flex;
  flex-direction: column;
  gap: var(--vc-lane-gap);
  min-width: max-content;
  /* allow horizontal scroll */
  padding-bottom: 6px;
}

.vc-timeline .vc-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vc-timeline .vc-track-header {
  display: none !important;
  /* Canva-style: no per-track headers */
}

.vc-timeline .vc-track-header .vc-track-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vc-timeline .vc-track-header .vc-track-hint {
  color: rgba(148, 163, 184, 0.9);
  font-size: 11px;
  font-weight: 550;
}

.vc-timeline .vc-track-row {
  position: relative;
  display: block;
  min-height: 1px;
  border-radius: var(--vc-lane-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--vc-lane-inset);
}

.vc-timeline .vc-track-row.vc-track-row--drop {
  outline: 2px dashed rgba(99, 102, 241, 0.55);
  outline-offset: -2px;
}

/* Live reordering feedback (timeline drag) */
.vc-timeline .vc-track-row.vc-reordering .vc-track-item:not(.vc-item-dragging):not(.vc-item-resizing) {
  transition: left 90ms ease;
}

.vc-timeline .vc-track-row .vc-reorder-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
  border-radius: 2px;
  z-index: 30;
  pointer-events: none;
  display: none;
}

/* In-lane add controls (Canva-style) */
.vc-timeline .vc-lane-add {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--vc-lane-radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.vc-timeline .vc-lane-add--media {
  min-width: 240px;
  /* Remove the container "pill" — keep only the button bordered */
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.vc-timeline .vc-lane-add--audio {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.vc-timeline .vc-lane-add--text {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.vc-timeline .vc-lane-add .vc-add-media {
  width: 54px;
  height: 54px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-timeline .vc-lane-add__text {
  color: rgba(148, 163, 184, 0.95);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.vc-timeline .vc-lane-add .vc-add-audio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  font-size: var(--vc-lane-cta-font-size);
  font-weight: 700;
}

.vc-timeline .vc-lane-add .vc-add-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  font-size: var(--vc-lane-cta-font-size);
  font-weight: 700;
}

/* Hide the old left gutter if it exists from a previous render */
.vc-timeline-left {
  display: none !important;
}

.vc-timeline .vc-track--video .vc-track-row {
  height: var(--vc-video-lane-height);
}

.vc-timeline .vc-track--audio .vc-track-row {
  height: var(--vc-audio-lane-height);
}

.vc-timeline .vc-track--text .vc-track-row {
  height: var(--vc-text-lane-height);
}

.vc-timeline .vc-track--color-grade .vc-track-row {
  height: var(--vc-text-lane-height);
}

.vc-timeline .vc-track-item {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  padding: 6px 8px !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px !important;
  border: 1px solid var(--vc-item-border, rgba(255, 255, 255, 0.10)) !important;
  background: var(--vc-item-bg, rgba(255, 255, 255, 0.06)) !important;
  /* Always show a subtle type-colored accent stripe so items are scannable at a glance */
  box-shadow: inset 3px 0 0 var(--vc-item-accent, rgba(129, 140, 248, 0.55));
  overflow: hidden;
  cursor: grab;
}

/* Timeline item delete button removed — deletion is now via right-click context menu. */

.vc-timeline .vc-track-item.vc-item-dragging {
  cursor: grabbing;
  opacity: 0.92;
  border-color: var(--vc-item-accent, rgba(99, 102, 241, 0.45)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  /* First principles: the dragged item must track the pointer exactly (no easing/lag). */
  transition: none !important;
}

.vc-timeline.vc-timeline--dragging,
.vc-timeline.vc-timeline--dragging * {
  cursor: grabbing !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline context menu (right-click on an item)                              */
/* -------------------------------------------------------------------------- */
.vc-context-menu {
  position: fixed;
  z-index: 30000;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.vc-context-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(229, 231, 235, 0.95);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vc-context-menu-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vc-context-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.95;
}

.vc-context-menu-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.vc-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.vc-context-menu-item--danger {
  color: rgba(254, 202, 202, 0.98);
}

.vc-context-menu-item--danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

/* In track view, keep items "timeline-like" by default: show header + waveform/thumb, hide action buttons until hover/focus. */
.vc-timeline .vc-track-item__actions {
  display: none !important;
}

.vc-timeline .vc-track-item:hover .vc-track-item__actions,
.vc-timeline .vc-track-item:focus-within .vc-track-item__actions {
  display: none !important;
}

/* Remove in-timeline action buttons and "Add Asset" tile (Canva-style timeline is clean) */
.vc-timeline .duplicate-btn,
.vc-timeline .remove-btn,
.vc-timeline #vc-add-asset-btn {
  display: none !important;
}

/* Make track items feel like timeline blocks (not cards) */
.vc-timeline .duration-badge,
.vc-timeline .audio-badge,
.vc-timeline .handle {
  display: none !important;
}

.vc-timeline .vc-track-item {
  /* Needed so resize handles can be positioned reliably. */
  position: absolute;
}

.vc-timeline .vc-track-item--locked {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.vc-timeline .vc-track-item--locked .vc-track-item__settings,
.vc-timeline .vc-track-item--locked .vc-clip-handle {
  opacity: 0.45;
  pointer-events: none;
}

.vc-timeline .vc-track-item__lock {
  position: absolute;
  top: 6px;
  right: 42px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.95);
}

/* Clip resize handles (start/end trim) */
.vc-timeline .vc-clip-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  z-index: 5;
  /* Make it easy to grab without blocking the whole clip. */
  background: transparent;
  pointer-events: auto;
}

.vc-timeline .vc-clip-handle--start {
  left: -2px;
  cursor: ew-resize;
}

.vc-timeline .vc-clip-handle--end {
  right: -2px;
  cursor: ew-resize;
}

/* Visible affordance on hover/active */
.vc-timeline .vc-track-item:hover .vc-clip-handle::before,
.vc-timeline .vc-track-item.vc-item-resizing .vc-clip-handle::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 4px;
  border-radius: 4px;
  background: rgba(229, 231, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.vc-timeline .vc-track-item:hover .vc-clip-handle--end::before,
.vc-timeline .vc-track-item.vc-item-resizing .vc-clip-handle--end::before {
  left: auto;
  right: 3px;
}

.vc-timeline .vc-track-item {
  border-radius: 8px !important;
}

.vc-timeline .vc-track-item__text,
.vc-timeline .vc-track-item__audio-player {
  display: none !important;
}

.vc-timeline .vc-track-item {
  background: var(--vc-item-bg, rgba(255, 255, 255, 0.04)) !important;
  border-color: var(--vc-item-border, rgba(255, 255, 255, 0.10)) !important;
}

.vc-timeline .vc-track-item.selected,
.vc-timeline .vc-track-item[aria-selected="true"] {
  border-color: var(--vc-item-accent, rgba(99, 102, 241, 0.55)) !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline ruler + playhead                                                   */
/* -------------------------------------------------------------------------- */
.vc-timeline .vc-track-scroll {
  position: relative;
}

.vc-timeline .vc-time-ruler {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--vc-ruler-height);
  margin-bottom: calc(var(--vc-lane-gap) + 15px);
  border-radius: 0;
  border: 0;
  background: transparent;
  /* Labels were getting visually clipped in some layouts; allow them to render fully. */
  overflow: visible;
}

.vc-timeline .vc-time-zoom-overlay {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 60;
  pointer-events: none;
}

.vc-timeline .vc-time-zoom {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(6px);
  z-index: 5;
  pointer-events: auto;
}

.vc-timeline .vc-time-zoom-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(99, 102, 241, 0.18);
  color: rgba(229, 231, 235, 0.95);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.vc-timeline .vc-time-zoom-btn:hover {
  background: rgba(99, 102, 241, 0.28);
}

.vc-timeline .vc-time-zoom-value {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
  letter-spacing: 0.02em;
}

.vc-timeline .vc-time-ruler-inner {
  position: relative;
  height: 100%;
  min-width: max-content;
}

.vc-timeline .vc-time-tick {
  position: absolute;
  /* Dots instead of vertical lines */
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  /* "Platinum" signature purple (match gradient buttons vibe) */
  background: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.18);
  z-index: 1;
}

.vc-timeline .vc-time-tick[data-major="true"] {
  background: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.26);
}

#vc-total {
  opacity: 0.5;
}

.vc-timeline .vc-time-label {
  position: absolute;
  /* Keep labels above the dot ticks with consistent spacing */
  top: auto;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0.80;
  line-height: 1;
  font-weight: 700;
  color: rgba(229, 231, 235, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.vc-timeline .vc-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  margin-left: -6px;
  z-index: 60;
  pointer-events: auto;
  cursor: grab;
}

.vc-timeline .vc-playhead.vc-playhead--dragging {
  cursor: grabbing;
}

.vc-timeline .vc-playhead .vc-playhead-tooltip,
.vc-timeline .vc-ghost-playhead .vc-playhead-tooltip {
  position: absolute;
  left: 50%;
  top: calc(var(--vc-ruler-height, 26px) - 1px);
  transform: translate(-50%, -100%);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  background: linear-gradient(90deg, #6d28d9, #7c3aed, #6366f1, #8b5cf6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
  pointer-events: none;
  z-index: 62;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
}

.vc-timeline:hover .vc-playhead .vc-playhead-tooltip,
.vc-timeline:hover .vc-ghost-playhead .vc-playhead-tooltip {
  opacity: 1;
  visibility: visible;
}

.vc-timeline .vc-ghost-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 55;
  pointer-events: none;
  opacity: 1;
}

.vc-timeline .vc-ghost-playhead::before {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 2px);
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(148, 163, 184, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.vc-timeline .vc-ghost-playhead::after {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 14px);
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.65);
}

.vc-timeline .vc-playhead::before {
  content: "";
  position: absolute;
  /* Keep knob below the ruler so it never covers the "0s" label */
  top: calc(var(--vc-ruler-height, 26px) + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(99, 102, 241, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.vc-timeline .vc-playhead::after {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 14px);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(99, 102, 241, 0.9);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12);
}

/* Keep the top row single-line / compact in track mode */
.vc-timeline .vc-track-item__top {
  flex-wrap: nowrap !important;
}

.vc-timeline .vc-track-item__top .audio-title {
  white-space: nowrap !important;
}

/* Make non-audio (video/text/image) items compact by default */
.vc-timeline .vc-track--video .vc-track-item__thumb {
  border-radius: 10px;
}

.vc-timeline .vc-track--video .vc-track-item__text,
.vc-timeline .vc-track--video>.vc-track-row .vc-track-item>div[style*="-webkit-line-clamp"] {
  /* leave legacy text preview alone; height is constrained by track row */
  display: block;
}

.vc-timeline .vc-track--video .vc-track-item__thumb {
  flex: 1;
  min-height: 0;
}

.vc-timeline.vc-timeline--audio-expanded .vc-track--video .vc-track-item__thumb,
.vc-timeline.vc-timeline--audio-expanded .vc-track--video audio,
.vc-timeline.vc-timeline--audio-expanded .vc-track--video .vc-track-item__audio-controls {
  display: none !important;
}

.vc-timeline .vc-track--audio .vc-track-item__audio-controls {
  display: none;
}

.vc-timeline.vc-timeline--audio-expanded .vc-track--audio .vc-track-item__audio-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Audio waveform is drawn as an overlay inside the audio clip (Advanced Editor style) */
.vc-timeline .vc-track-item--audio .vc-track-item__waveform {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.15) 0px,
      rgba(255, 255, 255, 0.15) 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 6px);
  opacity: 0.55;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Expanded mode just increases lane height; waveform overlay already fills clip */
.vc-timeline.vc-timeline--audio-expanded .vc-track-item--audio .vc-track-item__waveform {
  opacity: 0.7;
}

.vc-timeline .vc-track-item--audio .vc-track-item__waveform canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* -------------------------------------------------------------------------- */
/* Hover-only transition button (between adjacent clips)                      */
/* -------------------------------------------------------------------------- */
.vc-timeline .vc-transition-flyout {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%) scale(0.92);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: opacity 140ms ease, transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vc-timeline .vc-transition-flyout.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
  pointer-events: auto;
}

.vc-timeline .vc-transition-flyout__btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.vc-timeline .vc-transition-flyout__btn iconify-icon {
  font-size: 13px;
  color: rgba(199, 210, 254, 0.95);
}

.vc-timeline .vc-transition-flyout__btn:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.78);
}

.vc-timeline .vc-transition-flyout__label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.95);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.85);
  white-space: nowrap;
}

.vc-timeline .vc-track--audio .vc-track-header {
  cursor: pointer;
}

.vc-timeline .vc-track--audio .vc-track-header:focus-within,
.vc-timeline .vc-track--audio .vc-track-header:hover {
  border-color: rgba(99, 102, 241, 0.30);
  background: rgba(99, 102, 241, 0.08);
}

/* Ensure no dotted outlines appear on video creator elements */
#vc-editor *:focus,
#vc-editor *:focus-visible,
#vc-edit-panel *:focus,
#vc-edit-panel *:focus-visible,
#vc-inspector-content *:focus,
#vc-inspector-content *:focus-visible {
  outline-style: solid !important;
  outline-width: 1px !important;
}

/* Custom Scale Slider Styling */
.vc-scale-slider-container {
  position: relative;
}

.vc-custom-scale-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  transition: background 0.2s;
}

.vc-custom-scale-slider:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Webkit browsers (Chrome, Safari, Edge) */
.vc-custom-scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.vc-custom-scale-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
  border-color: #ffffff;
}

.vc-custom-scale-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.5);
}

/* Firefox */
.vc-custom-scale-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.vc-custom-scale-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
  border-color: #ffffff;
}

.vc-custom-scale-slider::-moz-range-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.5);
}

/* Track fill (progress) */
.vc-custom-scale-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-radius: 4px;
}

.vc-custom-scale-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* Create-with-AI: Source video picker (YouTube)                               */
/* -------------------------------------------------------------------------- */
.vc-source-picker-overlay {
  position: fixed;
  inset: 0;
  /* Must be ABOVE Create-with-AI modal + loading overlay (see style.css modal z-index ~20050+) */
  z-index: 20080 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.vc-source-picker-modal {
  width: min(1120px, calc(100vw - 24px));
  height: min(720px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vc-source-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(255, 255, 255, 0.02));
}

.vc-source-picker-title {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1.2;
}

.vc-source-picker-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.vc-source-picker-cap {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.vc-source-picker-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  /* Critical: give the grid a definite row height so children can do height:100% correctly */
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  min-height: 0;
  flex: 1;
}

.vc-source-plan-modal .vc-source-picker-body {
  grid-template-columns: unset;
}

.vc-source-plan-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 14px;
  padding: 14px 16px;
  min-height: 520px;
}

.vc-source-plan-beats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.vc-source-plan-beat {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vc-source-plan-beat:hover {
  background: rgba(255, 255, 255, 0.07);
}

.vc-source-plan-beat.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.10);
}

.vc-source-plan-beat-time {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.vc-source-plan-beat-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.vc-source-plan-beat-sub {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.vc-source-plan-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5f5;
}

.vc-source-plan-beat-selected {
  font-size: 12px;
  color: #cbd5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-source-plan-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-source-plan-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 6px;
}

.vc-source-plan-refresh {
  font-size: 12px;
  padding: 6px 12px;
}

.vc-source-plan-image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.vc-source-picker-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.vc-source-picker-iframe-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #000;
  /* Let the preview grow to fill the available space. Using aspect-ratio + <webview>
     can yield non-definite heights, making the webview render "half height". */
  flex: 1 1 auto;
  min-height: 0;
}

.vc-source-picker-iframe-wrap .vc-source-picker-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vc-source-picker-preview-meta {
  flex: 0 0 auto;
}

.vc-source-picker-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vc-source-picker-preview-title {
  font-size: 13px;
  font-weight: 650;
  color: #e5e7eb;
  line-height: 1.35;
}

.vc-source-picker-preview-sub {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Create-with-AI: Idea picker (modal)                                         */
/* -------------------------------------------------------------------------- */
.vc-idea-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 20080 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.vc-idea-picker-modal {
  width: min(820px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vc-idea-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(255, 255, 255, 0.02));
}

.vc-idea-picker-title {
  font-size: 16px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-idea-picker-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.vc-idea-picker-body {
  padding: 14px 16px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-idea-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.vc-idea-picker-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 13px;
}

.vc-idea-picker-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vc-idea-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 12px 12px 42px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  user-select: none;
}

.vc-idea-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.vc-idea-card.is-selected {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 12px 34px rgba(99, 102, 241, 0.18);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 197, 94, 0.07));
}

.vc-idea-card-check {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.95);
}

.vc-idea-card.is-selected .vc-idea-card-check {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
}

.vc-idea-card-text {
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.vc-idea-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 18, 32, 0.35);
}

.vc-idea-picker-footnote {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-idea-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-source-picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(203, 213, 225, 0.95);
  font-size: 11px;
}

.vc-source-picker-grid-wrap {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.vc-source-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vc-source-picker-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  outline: none;
}

.vc-source-picker-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.vc-source-picker-card.is-active {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.vc-source-picker-card.is-selected {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.vc-source-picker-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
}

.vc-source-picker-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.55);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.vc-source-picker-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(229, 231, 235, 0.95);
  font-size: 11px;
  font-weight: 650;
}

/* ============================================
   Scenes modal
   ============================================ */
.vc-scenes-modal {
  width: min(92vw, 980px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.vc-scenes-modal .ai-row {
  align-items: flex-start;
}

.vc-scenes-modal .ai-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.vc-scenes-modal .panel-title {
  font-size: 16px;
  font-weight: 800;
}

.vc-scenes-modal label.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.vc-scenes-modal label.stack>span {
  text-align: left;
}

.vc-scenes-modal .vs-dd,
.vc-scenes-modal .ai-select {
  width: 100%;
}

.vc-scenes-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.vc-scenes-question {
  font-size: 24px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 10px;
}

.vc-scenes-textarea {
  min-height: 140px;
  font-size: 18px;
  line-height: 1.6;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(129, 140, 248, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
}

.vc-scenes-textarea::placeholder {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-scenes-modal .ai-input::placeholder {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-scenes-settings-btn {
  right: 46px;
  font-size: 14px;
}

.vc-scenes-settings-btn[aria-pressed="true"] {
  border-color: rgba(129, 140, 248, 0.7);
  background: rgba(99, 102, 241, 0.2);
}

.vc-scenes-settings-panel {
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vc-scenes-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.vc-scenes-reference-text {
  min-height: 78px;
  resize: vertical;
}

.vc-scenes-subsection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vc-scenes-subsection:first-child {
  border-top: none;
}

.vc-scenes-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
}

.vc-scenes-preset-grid-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-scenes-preset-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
  scroll-behavior: smooth;
  cursor: grab;
  flex: 1;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vc-scenes-preset-grid::-webkit-scrollbar {
  display: none;
}

.vc-scenes-preset-grid.active {
  cursor: grabbing;
  scroll-behavior: auto;
}

.vc-scenes-preset-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.vc-scenes-preset-nav:hover {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.4);
  transform: scale(1.05);
}

.vc-scenes-preset-card {
  flex: 0 0 170px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  user-select: none;
}

.vc-scenes-preset-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.5);
}

.vc-scenes-preset-card.is-selected {
  border-color: rgba(129, 140, 248, 0.9);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(129, 140, 248, 0.18));
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.15);
}

.vc-scenes-preset-media {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.55);
}

.vc-scenes-preset-placeholder {
  width: 100%;
  height: 108px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vc-scenes-preset-title {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 600;
}

.vc-scenes-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.vc-scenes-style-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.vc-scenes-style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.5);
}

.vc-scenes-style-card.is-selected {
  border-color: rgba(129, 140, 248, 0.9);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(129, 140, 248, 0.18));
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.15);
}

.vc-scenes-style-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.55);
}

.vc-scenes-style-card span {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 600;
}

.vc-scenes-card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vc-scenes-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.vc-scenes-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vc-scenes-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-scenes-preview-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.vc-scenes-preview {
  width: 100%;
  height: min(34vh, 280px);
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.vc-scenes-preview-video {
  object-fit: contain;
}

.vc-scenes-regen-count {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5f5;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

#vc-scenes-generate {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
}

#vc-scenes-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

#vc-scenes-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.vc-scenes-selected-template {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5f5;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(30, 41, 59, 0.6);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  .vc-scenes-settings-grid {
    grid-template-columns: 1fr;
  }

  .vc-scenes-preview-grid {
    grid-template-columns: 1fr;
  }
}

.vc-source-picker-card-body {
  padding: 10px 10px 12px;
}

.vc-source-picker-card-title {
  font-size: 12px;
  font-weight: 650;
  color: #e5e7eb;
  line-height: 1.35;
  max-height: 3.9em;
  overflow: hidden;
}

.vc-source-picker-card-sub {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-source-picker-muted {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-source-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.vc-source-picker-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-source-picker-counter {
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
}

.vc-ai-chat-row {
  display: flex;
  justify-content: flex-start;
  margin: 6px 0;
}

.vc-ai-chat-bubble {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(124, 58, 237, 0.6);
  font-size: 14px;
  color: #f8fafc;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.vc-ai-chat-bubble--assistant {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(124, 58, 237, 0.8);
}

.vc-ai-chat-bubble--user {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.95);
}

.vc-ai-chat-bubble--error {
  border-color: rgba(248, 113, 113, 0.6);
}

.vc-ai-chat-meta {
  margin-top: 6px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vc-ai-chat-status {
  margin-top: 6px;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* Custom Number Input Styles */
.vc-inspector-number-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.vc-inspector-number-input input[type="number"],
.vc-inspector-number-input input[type="text"] {
  width: 100%;
  padding-right: 24px;
  /* Space for buttons */
  -moz-appearance: textfield;
}

.vc-inspector-number-input input[type="number"]::-webkit-inner-spin-button,
.vc-inspector-number-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vc-numeric-step-btn {
  position: absolute;
  right: 4px;
  width: 16px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: all 0.15s ease;
  z-index: 2;
}

.vc-numeric-step-btn:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.vc-numeric-step-btn.up {
  top: 3px;
}

.vc-numeric-step-btn.down {
  bottom: 3px;
}

.vc-numeric-step-btn svg {
  width: 8px;
  height: 8px;
  display: block;
}

/* Custom Number Input Style */
.vc-inspector-number-input {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s;
}

.vc-inspector-number-input:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Hide default spinner */
.vc-inspector-number-input input[type=number]::-webkit-inner-spin-button,
.vc-inspector-number-input input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vc-inspector-number-input input[type=number] {
  -moz-appearance: textfield;
  text-align: center;
  background: transparent !important;
  border: none !important;
  width: 100%;
  padding: 8px 32px;
  /* Space for buttons */
  color: #e5e7eb;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.vc-numeric-step-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: all 0.2s;
  line-height: 1;
}

.vc-numeric-step-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.vc-numeric-step-btn.minus {
  left: 0;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.vc-numeric-step-btn.plus {
  right: 0;
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   LANDING V2 OVERRIDES (VC COMPONENTS)
   ============================================ */
.vc-asset-item,
.vc-asset-perf-banner,
.vc-asset-alert-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3, 5, 15, 0.35);
}

.vc-asset-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.vc-inspector-input,
.vc-inspector-textarea,
.vc-inspector-value {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f1f5f9;
}

.vc-alert-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
