/* components.css - Componentes UI do Vídeo Tinkers Dashboard */

/* 1. Sidebar Components */
.sidebar-header {
  padding: 20px 20px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(124, 58, 237, 0.14);
  color: #c084fc;
  border-color: rgba(124, 58, 237, 0.3);
  font-weight: 600;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.nav-pill {
  margin-left: auto;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.nav-pill.new {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credit-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.credit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.credit-title {
  font-weight: 600;
  color: var(--text-primary);
}

.credit-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.credit-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.btn-upgrade-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: white;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-upgrade-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* 2. Top Header Components */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workspace-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s;
}

.workspace-dropdown:hover {
  border-color: var(--border-medium);
}

.workspace-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.workspace-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.header-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
}

/* 3. Hero Quick-Clip Hub */
.hero-clipping-section {
  background: var(--gradient-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
}

.hero-clipping-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-headline-group {
  margin-bottom: 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 680px;
}

/* Input Bar & Actions */
.clip-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.clip-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-link-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: var(--text-muted);
}

.clip-url-input {
  width: 100%;
  height: 52px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0 16px 0 46px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: all 0.25s ease;
}

.clip-url-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  background: var(--bg-surface-hover);
}

.clip-url-input::placeholder {
  color: var(--text-muted);
}

.btn-get-clips {
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-get-clips:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55);
}

.btn-upload-file {
  height: 52px;
  padding: 0 20px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-upload-file:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

/* Amostras Rápidas (Sample Presets) */
.sample-presets-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sample-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.sample-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-pill-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

/* 4. Clips & Project Section */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-count-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.clips-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}

.filter-select:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Grade de Clipes */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.clip-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.clip-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.15);
}

/* Top bar do card: Virality Score */
.clip-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.virality-score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.virality-score-badge.amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.virality-score-badge.fire {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffedd5;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.score-num {
  font-size: 15px;
}

/* Termômetro Viral do Instagram & YouTube Calibrado */
.termometro-box {
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(15, 17, 26, 0.95), rgba(24, 28, 43, 0.9));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.termometro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.termometro-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.termometro-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 45%, #ef4444 85%, #ec4899 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.platform-targets-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.platform-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.platform-pill.reels {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.35);
}

.platform-pill.shorts {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

.termometro-verdict {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

/* Efeito de arrastar e soltar (Drag and Drop) */
.clip-input-wrapper.dragover {
  border-color: #a855f7 !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), inset 0 0 15px rgba(168, 85, 247, 0.2) !important;
  transform: scale(1.01);
}

.global-drag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 26, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px dashed var(--accent-primary);
  pointer-events: none;
}

.global-drag-overlay.active {
  display: flex;
}


.platform-pill.shorts {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.fidelity-indicator-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.clip-duration-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Área do Vídeo / Canvas */
.clip-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clip-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background-color: #000;
}

.clip-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

/* Overlay de Legendas Dinâmicas */
.subtitles-overlay {
  position: absolute;
  bottom: 12%; /* Trazido para baixo por padrão a pedido do usuário */
  left: 6%;
  right: 6%;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  line-height: 1.35;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Posições Selecionáveis da Legenda */
.subtitles-overlay.pos-bottom {
  bottom: 8% !important;
  top: auto !important;
  transform: none !important;
}

.subtitles-overlay.pos-middle {
  top: 54% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.subtitles-overlay.pos-top {
  top: 18% !important;
  bottom: auto !important;
  transform: none !important;
}

/* Barra de Posição da Legenda */
.caption-position-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}

.btn-caption-pos {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-caption-pos:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-caption-pos.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
}

.caption-word {
  display: inline-block;
  padding: 2px 4px;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Estilos de Legenda */
.style-hormozi {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 17px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.9);
}

.style-hormozi .active-word {
  color: var(--word-color, #facc15) !important;
  transform: scale(1.18);
  display: inline-block;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.8);
}

.style-neon {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 0 8px #38bdf8, 0 0 20px #ec4899;
}

.style-neon .active-word {
  color: #38bdf8 !important;
  transform: scale(1.15);
  text-shadow: 0 0 14px #38bdf8, 0 0 28px #38bdf8;
}

.style-minimal {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #f8fafc;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.style-minimal .active-word {
  color: #c084fc !important;
  font-weight: 700;
}

.style-karaoke {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.style-karaoke .active-word {
  color: #22c55e !important;
  transform: scale(1.22);
  text-shadow: 0 0 12px #22c55e;
}

/* Play button overlay */
.play-trigger-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  z-index: 6;
}

.clip-media-container:hover .play-trigger-overlay,
.play-trigger-overlay.visible {
  opacity: 1;
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-bright);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.play-circle-btn:hover {
  transform: scale(1.1);
  background: var(--gradient-brand);
}

/* Corpo do Card & Detalhes */
.clip-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clip-title-hook {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.clip-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Ações do Card */
.clip-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-card-action {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn-card-action:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.btn-card-action.primary {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: #c084fc;
}

.btn-card-action.primary:hover {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
}

/* 5. Processing Modal / AI Pipeline */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.processing-card {
  width: 90%;
  max-width: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.processing-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
  animation: pulse-glow 2s infinite ease-in-out;
}

.processing-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.processing-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 22px;
}

.processing-bar-wrapper {
  width: 100%;
  height: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.processing-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.processing-percentage {
  font-size: 13px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 20px;
}

.pipeline-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pipeline-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.pipeline-step-item.active {
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}

.pipeline-step-item.done {
  color: #10b981;
}

/* 6. Deep Dive Clip Editor Modal */
.editor-modal-container {
  width: 95%;
  max-width: 1040px;
  height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.editor-header {
  height: 60px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.editor-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.editor-close-btn:hover {
  color: var(--text-primary);
}

.editor-split-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Lado Esquerdo: Player de Vídeo */
.editor-video-pane {
  flex: 1.1;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-right: 1px solid var(--border-subtle);
}

.editor-canvas-wrapper {
  position: relative;
  max-height: 480px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.editor-video-controls {
  width: 100%;
  max-width: 320px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-scrubber-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
}

.timeline-scrubber-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.editor-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ctrl-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.aspect-ratio-toggle-group {
  display: flex;
  gap: 4px;
}

.btn-ratio {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.btn-ratio.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Lado Direito: Editor de Transcrição e Estilos */
.editor-config-pane {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  overflow-y: auto;
  padding: 24px;
}

.config-section-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.style-card-option {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.style-card-option:hover {
  border-color: var(--border-medium);
}

.style-card-option.active {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
}

.style-option-name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.style-option-badge {
  font-size: 10px;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Transcrição Interativa */
.transcript-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.8;
}

.transcript-word-chip {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.transcript-word-chip:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.transcript-word-chip.current {
  background: rgba(124, 58, 237, 0.35);
  color: #f8fafc;
  font-weight: 700;
}

.editor-footer-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
}

.btn-export-clip {
  flex: 1;
  height: 44px;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-export-clip:hover {
  opacity: 0.95;
}

/* 7. Outras Telas: Brand Templates, Scheduler & ClipAnything */
.tab-view-content {
  display: none;
}

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

.brand-kit-container,
.scheduler-container,
.clipanything-container {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.social-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 8. Cards de Vídeos Virais Interativos na Biblioteca de Projetos */
.project-clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.project-clip-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-clip-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

.project-clip-video-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 290px;
  background: #000;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-clip-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.project-clip-play-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
  transition: all 0.2s ease;
  z-index: 5;
}

.project-clip-video-box:hover .project-clip-play-btn {
  transform: scale(1.1);
  background: var(--accent-primary);
}

.project-clip-badges-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.project-clip-badge {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-clip-badge.fire {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.project-clip-badge.audio {
  color: #34d399;
}

.project-clip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-clip-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-clip-metrics {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-clip-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.project-clip-actions button {
  flex: 1;
  height: 34px;
  font-size: 11.5px;
}

/* 9. Título Automático nos Primeiros 5 Segundos (Vídeo Tinkers) */
.auto-title-banner {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(12, 14, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  border-left: 4px solid var(--accent-primary);
}

.auto-title-banner-text {
  flex: 1;
}

.auto-title-banner-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-title-banner-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.auto-title-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-toggle-auto-title {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toggle-auto-title:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.btn-close-banner {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close-banner:hover {
  color: #ffffff;
}

/* Badge Flutuante do Título Automático nos primeiros 5s */
.auto-title-hook-overlay {
  position: absolute;
  top: auto;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 250px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  z-index: 6;
  pointer-events: none;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, transform 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.auto-title-hook-overlay.pos-bottom {
  top: auto !important;
  bottom: 22% !important;
  transform: translateX(-50%) !important;
}

.auto-title-hook-overlay.pos-middle {
  top: 38% !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
}

.auto-title-hook-overlay.pos-top {
  top: 8% !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
}

.auto-title-hook-overlay.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

/* Pílula de Duração no canto inferior direito do vídeo */
.clip-timecode-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  z-index: 7;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Barra de Ações Rápidas (Agendar, Baixar, Editar) */
.quick-action-icons-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-action:hover {
  color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.15);
  transform: scale(1.1);
}

/* Modal de Conexões de Contas Sociais (Vídeo Tinkers) */
.social-modal-container {
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 520px;
  max-width: 95%;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

.social-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}

.social-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.social-card-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.social-card-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.social-card-btn.connected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.social-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.social-card-info {
  flex: 1;
  min-width: 0;
}

.social-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-badge-pro {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.social-n8n-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Modal de Agendamento */
.schedule-modal-container {
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 540px;
  max-width: 95%;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.platform-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px 0;
}

.platform-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.platform-chip.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.form-group-schedule {
  margin-bottom: 16px;
}

.form-group-schedule label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.schedule-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.schedule-input:focus {
  border-color: var(--accent-primary);
}

/* ==========================================================================
   PAINEL DE COPY, REDLINE E HOOKS (INSTAGRAM & YOUTUBE)
   ========================================================================== */
.clip-social-copy-drawer {
  margin-top: 14px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: none;
  animation: fadeInDrawer 0.25s ease;
}

.clip-social-copy-drawer.open {
  display: block;
}

@keyframes fadeInDrawer {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 8px;
}

.drawer-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.drawer-tab-btn:hover {
  color: #fff;
}

.drawer-tab-btn.active.tab-instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(131, 58, 180, 0.3));
  border: 1px solid rgba(225, 48, 108, 0.5);
  color: #ff758c;
}

.drawer-tab-btn.active.tab-linkedin {
  background: rgba(10, 102, 194, 0.25);
  border: 1px solid rgba(10, 102, 194, 0.55);
  color: #60a5fa;
}

.drawer-tab-btn.active.tab-youtube {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.drawer-tab-btn.active.tab-tiktok {
  background: rgba(0, 242, 234, 0.2);
  border: 1px solid rgba(0, 242, 234, 0.5);
  color: #22d3ee;
}

.social-copy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-field-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.copy-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.copy-field-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.title-redline { color: #f43f5e; }
.title-hook { color: #38bdf8; }
.title-copy { color: #34d399; }

.btn-copy-snippet {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-snippet:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.btn-copy-snippet.copied {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}

.copy-field-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}



