/**
 * Estilos exclusivos da página /video/ — não afeta outras rotas.
 */
body.page-video {
  background: linear-gradient(165deg, #f0f2f8 0%, #e8ecf4 35%, #f6f7fb 100%);
  color: #14162b;
}

body.page-video .app {
  min-height: 100vh;
}

body.page-video .header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 22, 43, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.page-video .main {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 28px;
  padding-bottom: 48px;
}

body.page-video .section-create {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body.page-video .create-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card principal de criação */
body.page-video .prompt-unified-block {
  border: 1px solid rgba(20, 22, 43, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 48px rgba(20, 22, 43, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

body.page-video .prompt-unified-block:hover {
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 52px rgba(108, 92, 231, 0.1);
}

body.page-video .prompt-unified-block:focus-within {
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow:
    0 0 0 3px rgba(108, 92, 231, 0.12),
    0 16px 48px rgba(20, 22, 43, 0.08);
}

body.page-video .prompt-intro-box {
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid #eef2f7;
}

body.page-video .prompt-intro-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, #7c6cf0 0%, #5b4cdb 100%);
  box-shadow: 0 4px 14px rgba(91, 76, 219, 0.28);
}

body.page-video .prompt-intro-copy {
  flex: 1;
  min-width: 0;
}

body.page-video .prompt-intro-text {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #14162b;
  letter-spacing: -0.01em;
}

body.page-video .prompt-intro-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.4;
}

/* Área do prompt */
body.page-video .prompt-create-card .prompt-field-wrap {
  border: none;
  background: #fff;
}

body.page-video .prompt-hero textarea {
  min-height: 128px;
  padding: 18px 52px 14px 20px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1e293b;
}

body.page-video .prompt-dice-btn,
body.page-video .prompt-mic-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

body.page-video .prompt-dice-btn:hover,
body.page-video .prompt-mic-btn:hover {
  background: #e8ecf4;
  border-color: #cbd5e1;
}

/* Barra de ações (câmera + gerar) */
body.page-video .prompt-actions-inside {
  padding: 16px 18px 18px;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  gap: 12px;
}

body.page-video .prompt-actions-buttons {
  gap: 10px;
  width: 100%;
}

body.page-video .btn-add-ref {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(20, 22, 43, 0.04);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.page-video .btn-add-ref:hover {
  border-color: #6c5ce7;
  color: #5b4cdb;
  background: #f5f3ff;
}

body.page-video .prompt-actions-inside .btn-generate-inline {
  flex: 1;
  min-height: 48px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7 0%, #5b4cdb 100%);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

body.page-video .prompt-actions-inside .btn-generate-inline:hover:not(:disabled) {
  background: linear-gradient(135deg, #5f4ed4 0%, #4f3fc9 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.38);
}

body.page-video .prompt-actions-inside:not(.has-prompt) .btn-generate-inline:not(:disabled) {
  background: linear-gradient(135deg, #6c5ce7 0%, #5b4cdb 100%);
  opacity: 1;
}

/* Painel de configurações */
body.page-video .config-section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 6px 16px 16px;
  background: #fff;
  border: 1px solid rgba(20, 22, 43, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 22, 43, 0.05);
}

body.page-video .config-section-header {
  padding: 14px 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.page-video .config-section-icon {
  display: none;
}

body.page-video .config-section-chevron {
  color: #94a3b8;
  font-size: 0.65rem;
}

body.page-video .config-main-options .mode-fields {
  gap: 10px;
}

body.page-video .config-card {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  box-shadow: none;
}

body.page-video .config-card:hover {
  border-color: #c7d2fe;
  background: #fff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.08);
}

body.page-video .config-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8ecf4;
  color: #5b4cdb;
}

body.page-video .config-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

body.page-video .config-card-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #14162b;
}

/* Aviso do modelo */
body.page-video .model-processing-time {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  box-shadow: none;
}

body.page-video .model-processing-time .model-processing-icon {
  color: #059669;
}

body.page-video .model-processing-time .model-processing-text {
  font-size: 0.88rem;
  color: #334155;
}

body.page-video .model-processing-time .model-processing-time-value {
  color: #047857;
}

body.page-video .model-processing-time .model-processing-desc {
  font-size: 0.8rem;
  color: #64748b;
}

/* Como funciona */
body.page-video .section-como-fazer {
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

body.page-video .mode-howto-compact {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 22, 43, 0.06);
  border-radius: 14px;
  padding: 4px 14px;
}

body.page-video .mode-howto-compact summary {
  font-size: 0.88rem;
  color: #64748b;
}

/* Créditos no header */
body.page-video .header-credits-wrap {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20, 22, 43, 0.04);
}

body.page-video .btn-add-credits {
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
}

/* Prompts prontos */
body.page-video .prompt-suggestions-themes {
  margin-top: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(20, 22, 43, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 22, 43, 0.05);
}

body.page-video .prompt-suggestions-themes .suggestions-label {
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.page-video .prompt-suggestions-more {
  margin-top: 8px;
}

body.page-video .prompt-suggestions-themes .chip {
  padding: 11px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  white-space: normal;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

body.page-video .prompt-suggestions-themes .chip:hover {
  color: #5b4cdb;
  background: #f8f7ff;
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
  transform: none;
}

body.page-video .prompt-suggestions-themes .chip:active {
  background: #f1efff;
}

/* ============================================================
   PREMIUM UPGRADE — apenas camada visual/UX (sem mexer na lógica)
   ============================================================ */

/* Estimativa de vídeos ao lado dos créditos */
body.page-video .credits-videos-est {
  font-size: 0.74rem;
  font-weight: 600;
  color: #8b93a7;
  white-space: nowrap;
}

/* ---------- Exemplos rápidos (chips com emoji) ---------- */
body.page-video .quick-examples {
  margin-top: 4px;
}
body.page-video .quick-examples-label {
  display: block;
  margin: 2px 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
body.page-video .quick-examples-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
body.page-video .quick-examples-row::-webkit-scrollbar { display: none; }
body.page-video .quick-example-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 22, 43, 0.04);
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}
body.page-video .quick-example-chip:hover {
  color: #5b4cdb;
  background: #f8f7ff;
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.14);
  transform: translateY(-1px);
}
body.page-video .quick-example-chip:active { transform: translateY(0); background: #f1efff; }

/* ---------- Selos + custo acima do botão gerar ---------- */
body.page-video .generate-trust-cost {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
body.page-video .generate-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}
body.page-video .generate-trust-item {
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.page-video .generate-trust-item::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
}
body.page-video .generate-cost-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  border: 1px solid #e0e7ff;
}
body.page-video .generate-cost-line.hidden { display: none; }
body.page-video .gcl-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
body.page-video .gcl-value {
  font-size: 0.86rem;
  font-weight: 800;
  color: #4f3fc9;
  letter-spacing: -0.01em;
}
body.page-video .gcl-coin { font-size: 0.9rem; }

/* ---------- Botão gerar maior / mais destaque ---------- */
body.page-video .prompt-actions-inside .btn-generate-inline {
  min-height: 56px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 26px rgba(108, 92, 231, 0.36);
}
body.page-video .prompt-actions-inside .btn-generate-inline:hover:not(:disabled) {
  box-shadow: 0 16px 34px rgba(108, 92, 231, 0.44);
}

/* ---------- Estado vazio premium ---------- */
body.page-video .output-placeholder-premium {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  border: 1px dashed #d6dbe8;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
  overflow: hidden;
}
body.page-video .output-placeholder-premium .placeholder-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(108, 92, 231, 0.18), transparent 70%);
  pointer-events: none;
}
body.page-video .output-placeholder-premium .placeholder-icon {
  position: relative;
  font-size: 2.6rem;
  animation: zv-float 3.2s ease-in-out infinite;
}
@keyframes zv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
body.page-video .output-placeholder-premium .placeholder-title {
  position: relative;
  margin: 12px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #14162b;
}
body.page-video .output-placeholder-premium .placeholder-sub {
  position: relative;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #64748b;
}
body.page-video .output-placeholder-premium .placeholder-sub strong { color: #4f3fc9; }
body.page-video .output-placeholder-premium .placeholder-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
body.page-video .output-placeholder-premium .placeholder-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #5b4cdb;
  background: #f1efff;
  border: 1px solid #e0e7ff;
  padding: 5px 12px;
  border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  body.page-video .output-placeholder-premium .placeholder-icon { animation: none; }
}

/* ---------- Etapas durante a geração (decorativo, loop suave) ---------- */
body.page-video .gen-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
  width: 100%;
  max-width: 240px;
}
body.page-video .gen-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}
body.page-video .gen-step-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.page-video .gen-step-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s ease;
}
/* Ciclo de ~7.2s marcando as 4 etapas em sequência (impressão de progresso vivo) */
body.page-video .loading-placeholder:not(.hidden) .gen-step {
  animation: zv-step-on 7.2s linear infinite;
}
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(1) { animation-delay: 0s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(2) { animation-delay: 1.8s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(3) { animation-delay: 3.6s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(4) { animation-delay: 5.4s; }
@keyframes zv-step-on {
  0%, 100% { color: rgba(255, 255, 255, 0.55); }
  12%, 95% { color: #fff; }
}
body.page-video .loading-placeholder:not(.hidden) .gen-step .gen-step-check {
  animation: zv-check-on 7.2s linear infinite;
}
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(1) .gen-step-check { animation-delay: 0s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(2) .gen-step-check { animation-delay: 1.8s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(3) .gen-step-check { animation-delay: 3.6s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(4) .gen-step-check { animation-delay: 5.4s; }
@keyframes zv-check-on {
  0% { background: transparent; border-color: rgba(255, 255, 255, 0.4); }
  12%, 100% { background: #6c5ce7; border-color: #6c5ce7; }
}
body.page-video .loading-placeholder:not(.hidden) .gen-step .gen-step-check::after {
  animation: zv-check-mark 7.2s linear infinite;
}
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(1) .gen-step-check::after { animation-delay: 0s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(2) .gen-step-check::after { animation-delay: 1.8s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(3) .gen-step-check::after { animation-delay: 3.6s; }
body.page-video .loading-placeholder:not(.hidden) .gen-step:nth-child(4) .gen-step-check::after { animation-delay: 5.4s; }
@keyframes zv-check-mark {
  0%, 8% { transform: rotate(45deg) scale(0); }
  16%, 100% { transform: rotate(45deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.page-video .gen-steps { display: none; }
}

/* ---------- Polimento dos cards de ajustes ---------- */
body.page-video .config-card-model.config-card {
  background: linear-gradient(135deg, #f8f7ff 0%, #f1f5ff 100%);
  border-color: #dfe3ff;
}
body.page-video .config-card-model .config-card-icon {
  background: linear-gradient(145deg, #7c6cf0 0%, #5b4cdb 100%);
  border-color: transparent;
  color: #fff;
}

/* ---------- Card principal premium (borda refinada + glow roxo suave) ---------- */
body.page-video .prompt-unified-block {
  border-color: rgba(124, 58, 237, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 60px rgba(124, 58, 237, 0.15),
    0 8px 24px rgba(20, 22, 43, 0.06);
}
body.page-video .prompt-unified-block:hover {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 68px rgba(124, 58, 237, 0.2),
    0 8px 24px rgba(20, 22, 43, 0.06);
}
body.page-video .prompt-unified-block:focus-within {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.12),
    0 20px 60px rgba(124, 58, 237, 0.18);
}

/* ---------- Cards de modelo clicáveis ---------- */
body.page-video.has-model-cards .field-model { display: none; }
body.page-video .model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
body.page-video .model-cards[hidden] { display: none; }
body.page-video .model-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 13px 14px;
  text-align: left;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #e8ecf4;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s, background 0.18s;
}
body.page-video .model-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.12);
  transform: translateY(-2px);
}
body.page-video .model-card.is-active {
  border-color: #6c5ce7;
  background: linear-gradient(135deg, #f8f7ff 0%, #f1f0ff 100%);
  box-shadow: 0 10px 26px rgba(108, 92, 231, 0.2);
}
body.page-video .model-card-emoji { font-size: 1.25rem; line-height: 1; }
body.page-video .model-card-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #14162b;
  letter-spacing: -0.01em;
}
body.page-video .model-card.is-active .model-card-name { color: #4f3fc9; }
body.page-video .model-card-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.25;
}
body.page-video .model-card-info {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  font-size: 0.68rem;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.3;
}
body.page-video .model-card-badge {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #4f3fc9;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
body.page-video .model-card.is-active .model-card-badge {
  color: #fff;
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(139, 92, 255, 0.55);
}

/* ---------- Templates populares (thumbnail + título + usar) ---------- */
body.page-video .templates-pop {
  margin-top: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(20, 22, 43, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 22, 43, 0.05);
}
body.page-video .templates-pop-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #14162b;
}
body.page-video .templates-pop-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
body.page-video .templates-pop-row::-webkit-scrollbar { display: none; }
body.page-video .template-card {
  flex: 0 0 auto;
  width: 124px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(20, 22, 43, 0.05);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
body.page-video .template-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 12px 26px rgba(108, 92, 231, 0.16);
  transform: translateY(-2px);
}
body.page-video .template-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0e0c1c;
  overflow: hidden;
}
body.page-video .template-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.page-video .template-emoji {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.95rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
body.page-video .template-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 10px;
}
body.page-video .template-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #14162b;
}
body.page-video .template-card-use {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b4cdb;
}

/* ---------- Mobile ---------- */
@media (max-width: 599px) {
  body.page-video .credits-videos-est { display: none; }
  body.page-video .generate-trust-row { gap: 5px 10px; }
  body.page-video .generate-trust-item { font-size: 0.72rem; }
  body.page-video .quick-example-chip { font-size: 0.8rem; padding: 9px 13px; }
  body.page-video .model-cards { grid-template-columns: 1fr; gap: 8px; }
  body.page-video .model-card { padding: 13px 14px; }
  body.page-video .model-card-badge { margin-top: 8px; }
  body.page-video .model-card-desc { font-size: 0.74rem; }
  body.page-video .model-card-info { font-size: 0.7rem; }
  body.page-video .template-card { width: 116px; }
}

@media (min-width: 600px) {
  body.page-video .main {
    max-width: 560px;
  }

  body.page-video .config-main-options .mode-fields {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-video .quick-examples-row { flex-wrap: wrap; overflow: visible; }
}

/* ============================================================
   TEMA ESCURO — alinhado à homepage (fundo escuro + roxo).
   Redefine os design tokens do styles.css no escopo da página
   e sobrescreve as superfícies claras. Estrutura intacta.
   ============================================================ */
body.page-video {
  --bg: #06060f;
  --bg-card: #131127;
  --bg-soft: #1e1b3a;
  --border: rgba(255, 255, 255, 0.10);
  --border-focus: #8b5cff;
  --text: #f5f4fc;
  --text-muted: #a7a3c6;
  --btn-bg: #6c5ce7;
  --btn-hover: #7d6ef0;
  --accent: #8b5cff;
  --success: #34d399;
  --error: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);

  background:
    radial-gradient(1100px 700px at 80% -5%, rgba(139, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 620px at 0% 6%, rgba(79, 134, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #06060f 0%, #0c0a1d 45%, #06060f 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* Header */
body.page-video .header {
  background: rgba(8, 7, 20, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
body.page-video .logo-wordmark { filter: none; }
body.page-video .header-credits-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Card principal de criação */
body.page-video .prompt-unified-block {
  background: var(--bg-card);
  border-color: rgba(139, 92, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 60px rgba(124, 58, 237, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.45);
}
body.page-video .prompt-unified-block:hover {
  border-color: rgba(139, 92, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 70px rgba(124, 58, 237, 0.3),
    0 8px 28px rgba(0, 0, 0, 0.5);
}
body.page-video .prompt-unified-block:focus-within {
  border-color: rgba(139, 92, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(139, 92, 255, 0.18),
    0 20px 60px rgba(124, 58, 237, 0.25);
}
body.page-video .prompt-intro-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-bottom: 1px solid var(--border);
}
body.page-video .prompt-intro-text { color: var(--text); }
body.page-video .prompt-intro-hint { color: var(--text-muted); }
body.page-video .prompt-create-card { background: transparent; }
body.page-video .prompt-create-card .prompt-field-wrap { background: transparent; }
body.page-video .prompt-hero textarea {
  color: var(--text);
  background: transparent;
  -webkit-text-fill-color: var(--text);
}
body.page-video .prompt-hero textarea:focus { color: var(--text); -webkit-text-fill-color: var(--text); }
body.page-video .prompt-hero textarea::placeholder { color: #6f6b92; }
body.page-video .prompt-placeholder-animated { color: #6f6b92; }
body.page-video .prompt-dice-btn,
body.page-video .prompt-mic-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #cfcae8;
}
body.page-video .prompt-dice-btn:hover,
body.page-video .prompt-mic-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(139, 92, 255, 0.5);
}
body.page-video .prompt-actions-inside {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
}
body.page-video .btn-add-ref {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cfcae8;
}
body.page-video .btn-add-ref:hover {
  border-color: #8b5cff;
  color: #fff;
  background: rgba(139, 92, 255, 0.18);
}

/* Selos + custo */
body.page-video .generate-trust-item { color: #c9c5e4; }
body.page-video .generate-cost-line {
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.14), rgba(79, 134, 255, 0.1));
  border: 1px solid rgba(139, 92, 255, 0.28);
}
body.page-video .gcl-label { color: var(--text-muted); }
body.page-video .gcl-value { color: #c8b9ff; }

/* Painel de ajustes + cards */
body.page-video .config-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
body.page-video .config-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
body.page-video .config-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 255, 0.5);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
}
body.page-video .config-card-value { color: var(--text); }
body.page-video .config-card-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #b9a7ff;
}
body.page-video .config-card-model.config-card {
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.16), rgba(79, 134, 255, 0.1));
  border-color: rgba(139, 92, 255, 0.3);
}
body.page-video .config-card-model .config-card-icon {
  background: linear-gradient(145deg, #8b5cff 0%, #5b4cdb 100%);
  border-color: transparent;
  color: #fff;
}
body.page-video .model-processing-time {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.28);
}
body.page-video .model-processing-time .model-processing-icon { color: #34d399; }
body.page-video .model-processing-time .model-processing-text { color: #d8e8e1; }
body.page-video .model-processing-time .model-processing-time-value { color: #6ee7b7; }
body.page-video .model-processing-time .model-processing-desc { color: var(--text-muted); }

/* Cards de modelo */
body.page-video .model-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
}
body.page-video .model-card:hover {
  border-color: rgba(139, 92, 255, 0.5);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22);
}
body.page-video .model-card.is-active {
  border-color: #8b5cff;
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.2), rgba(79, 134, 255, 0.12));
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.3);
}
body.page-video .model-card-name { color: var(--text); }
body.page-video .model-card.is-active .model-card-name { color: #d8ccff; }
body.page-video .model-card-desc { color: var(--text-muted); }
body.page-video .model-card-info {
  color: rgba(226, 232, 240, 0.62);
  border-top-color: rgba(139, 92, 255, 0.22);
}

/* Templates populares */
body.page-video .templates-pop {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
body.page-video .templates-pop-label { color: var(--text); }
body.page-video .template-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
body.page-video .template-card:hover {
  border-color: rgba(139, 92, 255, 0.5);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.25);
}
body.page-video .template-card-title { color: var(--text); }
body.page-video .template-card-use { color: #b9a7ff; }

/* Estado vazio premium */
body.page-video .output-placeholder-premium {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
body.page-video .output-placeholder-premium .placeholder-title { color: var(--text); }
body.page-video .output-placeholder-premium .placeholder-sub { color: var(--text-muted); }
body.page-video .output-placeholder-premium .placeholder-sub strong { color: #c8b9ff; }
body.page-video .output-placeholder-premium .placeholder-tags span {
  color: #d8ccff;
  background: rgba(139, 92, 255, 0.16);
  border: 1px solid rgba(139, 92, 255, 0.3);
}

/* Como funciona */
body.page-video .mode-howto-compact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
body.page-video .mode-howto-compact summary { color: var(--text-muted); }
body.page-video .mode-howto-list { color: var(--text-muted); }

/* Histórico (usa tokens, mas reforça contraste de thumb) */
body.page-video .creation-thumb { background: #0a0820; }

/* Selects nativos (caso apareçam) */
body.page-video select option { background: #131127; color: var(--text); }

/* ---------- Central de Atualizações (sino) ---------- */
.updates-wrap { position: relative; display: flex; align-items: center; }
.updates-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e7e8f3;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.updates-bell-btn:hover {
  background: rgba(139, 92, 255, 0.16);
  border-color: rgba(139, 92, 255, 0.5);
}
.updates-bell-btn.has-unread { color: #fff; }
.updates-bell-btn.has-unread svg { animation: updates-bell-shake 2.4s ease-in-out 0.6s 2; transform-origin: top center; }
@keyframes updates-bell-shake {
  0%, 92%, 100% { transform: rotate(0); }
  94% { transform: rotate(-12deg); }
  96% { transform: rotate(10deg); }
  98% { transform: rotate(-6deg); }
}
.updates-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d6d, #c026d3);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #0c0a1e;
}
.updates-badge.hidden { display: none; }

.updates-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 28px));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: #16142e;
  border: 1px solid rgba(139, 92, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 1200;
  overflow: hidden;
  animation: updates-pop 0.16s ease-out;
}
.updates-dropdown.hidden { display: none; }
@keyframes updates-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.updates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(139, 92, 255, 0.08);
}
.updates-title { font-size: 0.95rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.updates-mark-all {
  border: none;
  background: none;
  color: #b9a7ff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.updates-mark-all:hover { color: #fff; text-decoration: underline; }
.updates-list { padding: 6px; overflow-y: auto; }
.update-card {
  padding: 12px 12px 13px;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.update-card:hover { background: rgba(255, 255, 255, 0.04); }
.update-card--new { background: rgba(139, 92, 255, 0.1); }
.update-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8b90ad;
  margin-bottom: 3px;
}
.update-card-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d6d, #c026d3);
}
.update-card-title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f2f1fb;
  letter-spacing: -0.01em;
}
.update-card-icon { font-size: 1rem; }
.update-card-desc { margin: 0; font-size: 0.8rem; color: #aeb2c9; line-height: 1.4; }

@media (max-width: 599px) {
  .updates-bell-btn { width: 36px; height: 36px; }
  .updates-dropdown { right: -8px; }
}
