/* ==========================================================================
   STUDIO AI — DESIGN SYSTEM DARK & GOLD PROFISSIONAL
   Paleta estrita: #09090B (Preto Profundo), #121216 (Card Translúcido),
   #27272A (Borda Neutra), #D4AF37 (Dourado Metálico), #EAB308 (Dourado Hover),
   #FAFAFA (Texto Claro), #A1A1AA (Texto Secundário).
   ZERO degradê roxo genérico de IA.
   ========================================================================== */

:root {
  --bg-primary: #09090b;
  --bg-card: #121216;
  --bg-card-hover: #17171d;
  --bg-elevated: #1a1a22;
  --border-subtle: #27272a;
  --border-gold: #d4af37;
  --gold-primary: #d4af37;
  --gold-hover: #eab308;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-badge-bg: rgba(212, 175, 55, 0.12);
  --text-primary: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --danger: #ef4444;
  --success: #10b981;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-gold: 0 4px 20px -2px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Subtle Grid Texture (Dark & Gold) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -100px, rgba(212, 175, 55, 0.12) 0%, rgba(9, 9, 11, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header Fixo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #d4af37, #9a7b1c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.brand-name span {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.938rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--gold-primary);
  color: #09090b;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -2px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.063rem;
  border-radius: var(--radius-md);
}

/* Botão Voltar Obrigatório */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-back:hover {
  background: var(--bg-elevated);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateX(-3px);
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gold-badge-bg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hero Section */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 20px auto;
  color: var(--text-primary);
}

.hero h1 .highlight-gold {
  color: var(--gold-primary);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.hero-guarantee span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Cards & Glassmorphism */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.card-gold-highlight {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 18, 22, 1) 100%);
  box-shadow: 0 12px 40px -10px rgba(212, 175, 55, 0.2);
}

/* Como Funciona */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.063rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-badge-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.938rem;
}

/* Radar de Atualizações */
.radar-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-coming {
  background: var(--gold-badge-bg);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Tabela de Preços */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px;
  display: flex;
  position: relative;
  cursor: pointer;
}

.toggle-option {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.toggle-option.active {
  background-color: var(--gold-primary);
  color: #09090b;
}

.discount-tag {
  color: var(--gold-primary);
  font-size: 0.813rem;
  font-weight: 700;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border: 2px solid var(--gold-primary);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: #09090b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-gold);
}

.price-box {
  margin: 24px 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  vertical-align: top;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.price-period {
  color: var(--text-muted);
  font-size: 0.938rem;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.938rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.price-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-primary);
}

.price-features li strong {
  color: var(--text-primary);
}

/* Formulários (Login / Cadastro) */
.auth-wrapper {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.938rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: #0d0d10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.938rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input::placeholder {
  color: #52525b;
}

/* Botão Olhinho (Mostrar/Ocultar Senha) */
.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: var(--gold-primary);
}

/* Checkbox Estilizado */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: #0d0d10;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: var(--transition);
}

.form-checkbox:checked {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.form-checkbox:checked::before {
  content: "";
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background-color: #09090b;
}

/* Turnstile Box */
.turnstile-box {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* Páginas Jurídicas (Termos, Privacidade, Voz) */
.legal-page {
  padding: 40px 0 80px;
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.legal-content {
  color: #d4d4d8;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content h3 {
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-alert {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  color: var(--text-primary);
}

/* Banner de Consentimento de Cookies LGPD */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background-color: #121216;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease-out forwards;
}

.cookie-content h4 {
  font-size: 1.05rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rodapé */
.site-footer {
  margin-top: auto;
  background-color: #0c0c0e;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  font-size: 0.938rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.938rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 0.813rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsividade */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ==========================================================================
   PAINEL SAAS COMPLETO (DASHBOARD) — DARK & GOLD SYSTEM
   Zero Roxo — Preto Profundo (#09090B), Card (#121216), Dourado (#D4AF37)
   ========================================================================== */

/* Layout Geral do Dashboard */
.dashboard-app {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Sidebar Fixa & Responsiva */
.dashboard-sidebar {
  width: 280px;
  background-color: #0d0d10;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-profile {
  padding: 20px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(18, 18, 22, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #27272a, #121216);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.profile-details {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-badge-bg);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-credits {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.credits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.credits-progress-bg {
  height: 6px;
  background-color: #27272a;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.credits-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #eab308);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.btn-upgrade-sidebar {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-upgrade-sidebar:hover {
  background: var(--gold-primary);
  color: #09090b;
}

/* Menu de Navegação da Sidebar */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-card);
  border-color: rgba(212, 175, 55, 0.2);
}

.nav-item.active {
  color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold);
}

.nav-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: #0a0a0c;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.system-status-indicator span.online {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.system-status-indicator span.online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Área Principal */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  max-width: calc(100vw - 280px);
  overflow-x: hidden;
}

/* Cabeçalho Contextual (REGRA DE OURO) */
.contextual-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--gold-primary);
  font-size: 0.813rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-back:hover {
  background-color: var(--bg-elevated);
  border-color: var(--gold-primary);
  transform: translateX(-2px);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--gold-primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Seletor de Simulação de Plano (DEV MODE) */
.plan-simulator-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.plan-simulator-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-simulator-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.plan-simulator-select option {
  background-color: #121216;
  color: #fafafa;
}

/* Conteúdo das Telas */
.dashboard-content-area {
  padding: 32px 28px 80px;
  flex: 1;
}

/* Wizard Stepper em 3 Etapas */
.wizard-stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
}

.wizard-step.active .step-circle {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #09090b;
  box-shadow: var(--shadow-gold);
}

.wizard-step.completed .step-circle {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step.active .step-label {
  color: var(--gold-primary);
  font-weight: 700;
}

.wizard-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-subtle);
  margin: 0 16px;
  position: relative;
}

.wizard-line.active {
  background: linear-gradient(90deg, #d4af37, #eab308);
}

/* Cards de Modelos 9:16 (Wizard Etapa 1) */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.model-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 12px 30px -8px rgba(212, 175, 55, 0.15);
}

.model-card.selected {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-primary), 0 10px 30px -5px rgba(212, 175, 55, 0.3);
}

.model-card-badge-selected {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--gold-primary);
  color: #09090b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  z-index: 5;
}

.model-card.selected .model-card-badge-selected {
  display: flex;
}

.model-preview-holder {
  aspect-ratio: 9 / 12;
  background-color: #09090b;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-preview-holder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.model-card:hover .model-preview-holder video {
  transform: scale(1.03);
}

.model-overlay-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.model-info-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.model-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.model-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Editor de Cenas do Roteiro (Wizard Etapa 2) */
.scene-card-item {
  background-color: #121216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.scene-card-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.scene-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scene-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.scene-visual-input {
  width: 100%;
  background-color: #0d0d10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.scene-narration-textarea {
  width: 100%;
  background-color: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.938rem;
  color: var(--text-primary);
  resize: vertical;
  line-height: 1.5;
}

.scene-narration-textarea:focus {
  border-color: var(--gold-primary);
  outline: none;
}

/* Seletor de Vozes (Wizard Etapa 3) */
.voice-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.voice-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.voice-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.voice-card.selected {
  border-color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 0 1px var(--gold-primary);
}

.voice-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.voice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.voice-name {
  font-weight: 700;
  font-size: 0.938rem;
  color: var(--text-primary);
}

.voice-lock-icon {
  color: var(--gold-primary);
  font-size: 0.875rem;
}

/* Caixa de Alerta de Marca d'água */
.watermark-banner-free {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animação do Progresso de Renderização em Tempo Real */
.render-progress-card {
  background: #121216;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.progress-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.progress-step-item.current {
  color: var(--gold-primary);
  font-weight: 700;
}

.progress-step-item.done {
  color: #10b981;
}

.pulse-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Galeria Meus Vídeos */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.user-video-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-video-player {
  aspect-ratio: 9 / 16;
  background-color: #000;
  position: relative;
}

.user-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-published-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(212, 175, 55, 0.9);
  color: #09090b;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.user-video-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-caption-box {
  background-color: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.813rem;
  color: var(--text-muted);
  max-height: 85px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Modais Dourados */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-dialog {
  background-color: #121216;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold-primary);
}

/* Mobile Sidebar Drawer & Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-sidebar-close {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: min(280px, 85vw);
    transform: translateX(-100%);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.open,
  .sidebar-backdrop.active {
    display: block;
  }
  .dashboard-main {
    margin-left: 0;
    max-width: 100vw;
    width: 100%;
  }
  .mobile-menu-toggle,
  .mobile-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    transform: translateX(-100%);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .contextual-header {
    padding: 10px 14px;
    gap: 10px;
  }
  .breadcrumb-trail {
    display: none;
  }
  .dashboard-content-area {
    padding: 14px 12px !important;
    overflow-x: hidden;
    max-width: 100%;
  }
  .chat-toolbar-minimal {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .chat-toolbar-selectors {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .dropdown-wrapper {
    width: 100%;
  }
  .btn-dropdown-select {
    width: 100%;
    justify-content: space-between;
    min-width: 0;
  }
  .btn-dropdown-select .dropdown-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dropdown-menu-list {
    left: 0;
    right: 0;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  .guided-3d-workspace,
  .prompt-externo-workspace,
  .visual-scenes-container {
    padding: 16px !important;
    border-radius: 12px !important;
    max-width: 100% !important;
  }
  .scene-visual-card {
    padding: 14px !important;
    word-break: break-word;
  }
  .scene-card-topbar,
  .visual-scenes-header,
  .approve-render-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .approve-render-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-dialog {
    padding: 18px !important;
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* ==========================================================================
   AGENTE ROTEIRISTA IA — CHAT CONVERSACIONAL (CHATGPT / GEMINI DARK & GOLD)
   ========================================================================== */

/* Trava de Acesso para o Plano Grátis */
.ai-lock-banner {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 18, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

.ai-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Container Principal do Chat */
.ai-chat-card {
  background-color: #121216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  margin-bottom: 28px;
}

.chat-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #0d0d10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #9a7b1c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.chat-messages-viewport {
  padding: 24px;
  min-height: 340px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: #0c0c0f;
  scroll-behavior: smooth;
}

/* Balões de Mensagem */
.chat-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.chat-row.assistant {
  justify-content: flex-start;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}

.chat-row.assistant .chat-bubble {
  background-color: #17171d;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.chat-row.user .chat-bubble {
  background-color: #1e1e26;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fafafa;
  border-top-right-radius: 4px;
}

/* Indicador de Digitação (Typing Indicator) */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background-color: #17171d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Barra de Envio Fixa */
.chat-input-container {
  padding: 16px 20px;
  background-color: #0e0e12;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input-field {
  flex: 1;
  background-color: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.938rem;
  outline: none;
  transition: var(--transition);
}

.chat-input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px var(--gold-primary);
}

.btn-chat-send {
  background-color: var(--gold-primary);
  color: #09090b;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.938rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-chat-send:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Card de Revisão Rápida do Roteiro Gerado */
.script-review-card {
  background-color: #121216;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.15);
  animation: slideUp 0.3s ease-out forwards;
}

.script-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   EXPERIÊNCIA MINIMALISTA: CHAT HOME, DROPDOWNS & CARDS VISUAIS DE CENA
   ========================================================================== */

/* Barra de Ferramentas Minimalista do Chat */
.chat-toolbar-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #101014;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.chat-toolbar-selectors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Dropdown Minimalista com Setinha */
.dropdown-wrapper {
  position: relative;
}

.btn-dropdown-select {
  background: #18181e;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dropdown-select:hover {
  border-color: var(--gold-primary);
  color: #fff;
  background: #202028;
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: var(--gold-primary);
  margin-left: 2px;
}

.dropdown-menu-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #121216;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  min-width: 280px;
  z-index: 1000;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.dropdown-menu-header {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: #0a0a0d;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #1c1c24;
  transition: background 0.15s ease;
}

.dropdown-menu-item:hover {
  background: rgba(212, 175, 55, 0.08);
}

.dropdown-menu-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--gold-primary);
}

.badge-lock-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.04em;
}

.btn-play-preview-inline {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #27272a;
  color: var(--gold-primary);
  border: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-play-preview-inline:hover {
  background: var(--gold-primary);
  color: #09090b;
  border-color: var(--gold-primary);
}

.dropdown-menu-footer {
  padding: 10px 12px;
  background: #0d0d11;
  border-top: 1px solid var(--border-subtle);
}

.btn-quick-clone-voice {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--gold-primary);
  color: var(--gold-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-clone-voice:hover {
  background: rgba(212, 175, 55, 0.15);
}

/* Chat Home Centralizado */
.chat-home-container {
  max-width: 900px;
  margin: 0 auto;
}

.chat-welcome-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 24px;
}

/* Banner de Carregamento das Cenas */
.loading-scenes-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(18, 18, 22, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 20px 0;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { border-color: rgba(212, 175, 55, 0.4); }
  50% { border-color: rgba(212, 175, 55, 0.9); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
}

/* Visualização das 5 Cenas */
.visual-scenes-container {
  background: #121216;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.visual-scenes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.edits-counter-badge {
  background: #1a1a22;
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.scenes-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.scene-visual-card {
  background: #0b0b0e;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.scene-visual-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.scene-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.scene-number-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.btn-edit-scene-trigger {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-scene-trigger:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: #202026;
}

.scene-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.scene-narration-block {
  margin-bottom: 14px;
}

.scene-narration-text {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.scene-visual-block {
  background: #131318;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scene-visual-text {
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.scene-screen-text {
  font-size: 0.8rem;
  color: var(--gold-light);
}

.scene-edit-inline-panel {
  margin-top: 14px;
  background: #18181f;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 14px;
  animation: fadeIn 0.2s ease;
}

/* Legenda SEO e Footer de Aprovação */
.seo-caption-box {
  background: #0e0e12;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.approve-render-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}



