/* ==========================================================================
   HUMANIQ STUDIO — Design System "Sala de Projeção"
   Paleta (papéis fixos):
   - Base #0A0908 (sala escura)  · Ink #F4EEE6 (texto, papel)
   - Tungstênio #FFB23F → Brasa #FF5E3A (ação, títulos, CTA)
   - Ciano monitor #7FE3D4 (concluído, progresso real, confirmações)
   Tipografia: Instrument Serif (display) · Geist (corpo) · Geist Mono (dados)
   ========================================================================== */

:root {
  --bg: #0A0908;
  --bg-2: #0F0D0B;
  --surface: #141110;
  --surface-2: #1B1815;
  --surface-3: #25201C;
  --line: rgba(255, 236, 214, 0.08);
  --line-2: rgba(255, 236, 214, 0.14);
  --line-3: rgba(255, 236, 214, 0.24);

  --ink: #F4EEE6;
  --ink-2: #C2B9AD;
  --ink-3: #8B8277;
  --ink-4: #5E574F;

  --amber: #FFB23F;
  --amber-2: #FF8A3D;
  --ember: #FF5E3A;
  --amber-ink: #1A1004;
  --amber-soft: rgba(255, 178, 63, 0.12);
  --amber-line: rgba(255, 160, 80, 0.32);

  --cool: #7FE3D4;
  --cool-soft: rgba(127, 227, 212, 0.12);
  --cool-line: rgba(127, 227, 212, 0.32);

  --danger: #FF6A5C;
  --danger-soft: rgba(255, 106, 92, 0.12);

  --grad: linear-gradient(100deg, #FFCB66 0%, #FF9442 50%, #FF5E3A 100%);
  --grad-text: linear-gradient(95deg, #FFD27A 0%, #FF9A4A 45%, #FF6A3D 100%);

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 180ms;
  --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.7);

  --topbar-h: 68px;
  --maxw: 1240px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* (granulado de filme em tela cheia removido: feTurbulence fixo custava repintura a cada rolagem) */
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(255, 178, 63, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.form-hint { font-size: 0.8rem; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.ic { flex-shrink: 0; }

/* ------------------------------------------------------------- tipografia */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  padding-right: 0.06em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .ic { color: var(--amber); }
.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
}
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 60ch; margin: 0; }

/* ----------------------------------------------------------------- botões */
.btn {
  --h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 0.84rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: var(--amber-ink);
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(255, 120, 50, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover:not([disabled]) { box-shadow: 0 14px 40px -10px rgba(255, 120, 50, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); transform: translateY(-1px); }

.btn-secondary, .btn-line {
  background: rgba(255, 236, 214, 0.04);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-secondary:hover:not([disabled]), .btn-line:hover:not([disabled]) { border-color: var(--line-3); background: rgba(255, 236, 214, 0.08); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not([disabled]) { color: var(--ink); background: rgba(255, 236, 214, 0.06); }

.btn-cool { background: var(--cool-soft); border-color: var(--cool-line); color: var(--cool); }
.btn-cool:hover:not([disabled]) { background: rgba(127, 227, 212, 0.2); }

.btn-danger-outline { background: transparent; border-color: rgba(255, 106, 92, 0.4); color: var(--danger); }
.btn-danger-outline:hover:not([disabled]) { background: var(--danger-soft); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.03);
  color: var(--ink-2);
  transition: all var(--t) var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255, 236, 214, 0.07); }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: rgba(255, 236, 214, 0.04);
  white-space: nowrap;
}
.badge-neutral { }
.badge-emerald, .badge-cool { color: var(--cool); border-color: var(--cool-line); background: var(--cool-soft); }
.badge-amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.badge-danger { color: var(--danger); border-color: rgba(255, 106, 92, 0.35); background: var(--danger-soft); }
.badge-glass { background: rgba(10, 9, 8, 0.6); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 960;
  height: var(--topbar-h);
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar--site { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0.85), rgba(10, 9, 8, 0.35)); border-bottom-color: transparent; }
.topbar-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-name em { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 1.06rem; margin-left: 4px; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); background: rgba(255, 236, 214, 0.07); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 236, 214, 0.04);
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: border-color var(--t) var(--ease);
}
.pill strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.pill-credits:hover { border-color: var(--amber-line); }
.pill-credits .ic { color: var(--amber); }
.pill-turbo { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); font-family: var(--font-mono); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    top: var(--topbar-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--r);
    background: #141110;
    z-index: 950;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 12px 14px; }
  .pill-unit { display: none; }
  .topbar-inner { gap: 14px; padding: 0 16px; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .topbar-actions { gap: 6px; min-width: 0; flex-shrink: 1; }
  .topbar-actions .btn-sm { padding: 0 11px; font-size: 0.8rem; }
  .topbar-actions .pill { padding: 0 10px; }
}

/* --------------------------------------------------------- formulário base */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 18px; }
.label, .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
}
.input, .textarea, .select {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 11px 14px;
  font-size: 0.94rem;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus { outline: none; border-color: var(--amber-line); box-shadow: 0 0 0 4px rgba(255, 178, 63, 0.08); background: rgba(0, 0, 0, 0.4); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

/* ----------------------------------------------------------------- alertas */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 236, 214, 0.04);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-error { border-color: rgba(255, 106, 92, 0.38); background: var(--danger-soft); color: #FFC9C2; }
.alert-success { border-color: var(--cool-line); background: var(--cool-soft); color: #CFF5EF; }
.alert-amber { border-color: var(--amber-line); background: var(--amber-soft); color: #FFE0B0; }

/* ----------------------------------------------------------------- cards */
.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.035), rgba(255, 236, 214, 0.01));
}
.card-pad { padding: 24px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

/* ----------------------------------------------------------------- tabelas */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.data-table tbody tr { transition: background var(--t); }
.data-table tbody tr:hover { background: rgba(255, 236, 214, 0.025); }
.data-table tbody tr:last-child td { border-bottom: none; }
.prompt-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* ------------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(10px);
  animation: fadeIn 180ms var(--ease);
}
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1A1613, #12100E);
  box-shadow: var(--shadow);
  animation: rise 220ms var(--ease);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.modal-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.02em; }
.modal-body { padding: 16px 24px; color: var(--ink-2); font-size: 0.92rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; flex-wrap: wrap; }
.cost-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0; overflow: hidden; }
.cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 0.9rem; }
.cost-row + .cost-row { border-top: 1px solid var(--line); }
.cost-row strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(24, 20, 17, 0.96);
  box-shadow: var(--shadow);
  animation: rise 240ms var(--ease);
  font-size: 0.9rem;
}
.toast-thumb { width: 54px; height: 38px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surface-3); }
.toast-thumb img, .toast-thumb video { width: 100%; height: 100%; object-fit: cover; }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; font-weight: 600; }
.toast-body span { color: var(--ink-3); font-size: 0.82rem; }
.toast--ok { border-color: var(--cool-line); }
.toast--err { border-color: rgba(255, 106, 92, 0.4); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cool); flex-shrink: 0; }
.toast--err .toast-dot { background: var(--danger); }

/* --------------------------------------------------------------- animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(255, 178, 63, 0.45); } 100% { box-shadow: 0 0 0 12px rgba(255, 178, 63, 0); } }
@keyframes dust { from { transform: translateY(0); opacity: 0; } 20% { opacity: 0.8; } to { transform: translateY(-120px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   LANDING
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--topbar-h) + 64px) 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-beam {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 1500px;
  height: 1000px;
  transform: translateX(-50%);
  /* degrade mais largo no lugar do blur (blur de 18px num elemento gigante pesava muito) */
  background: conic-gradient(from 180deg at 50% 0%, transparent 158deg, rgba(255, 196, 120, 0.05) 166deg, rgba(255, 204, 140, 0.14) 173deg, rgba(255, 220, 170, 0.24) 180deg, rgba(255, 204, 140, 0.14) 187deg, rgba(255, 196, 120, 0.05) 194deg, transparent 202deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
  animation: breathe 8s ease-in-out infinite;
  will-change: opacity;
}
.hero-lamp {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 260px;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 220, 170, 0.55), transparent 70%);
  filter: blur(10px);
}
.hero-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 340px;
  background: radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 94, 58, 0.30), transparent 70%), radial-gradient(ellipse 35% 22% at 50% 100%, rgba(255, 178, 63, 0.28), transparent 70%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 236, 214, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 236, 214, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000, transparent 75%);
}
.hero-dust span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #FFE2B5;
  animation: dust 9s linear infinite;
}
.hero-dust span:nth-child(1) { left: 47%; top: 46%; animation-delay: 0s; }
.hero-dust span:nth-child(2) { left: 52%; top: 52%; animation-delay: 2.5s; }
.hero-dust span:nth-child(3) { left: 49%; top: 38%; animation-delay: 4s; }
.hero-dust span:nth-child(4) { left: 54%; top: 44%; animation-delay: 6s; }
.hero-dust span:nth-child(5) { left: 45%; top: 56%; animation-delay: 7.5s; }

.hero-content { position: relative; z-index: 10; text-align: center; max-width: 940px; padding: 0 24px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
}
.hero-sub { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 620px; margin: 0 auto; }

.prompt-bar {
  position: relative;
  z-index: 10;
  margin: 36px auto 0;
  width: min(760px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(20, 17, 15, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 178, 63, 0.04), 0 0 60px -20px rgba(255, 140, 60, 0.35);
  transition: border-color var(--t) var(--ease);
}
.prompt-bar:focus-within { border-color: var(--amber-line); }
.prompt-bar .ic { color: var(--amber); }
.prompt-bar input { flex: 1; min-width: 0; border: none; background: transparent; padding: 12px 4px; font-size: 1rem; color: var(--ink); }
.prompt-bar input:focus { outline: none; }
.prompt-bar input::placeholder { color: var(--ink-3); }

.mode-chips { position: relative; z-index: 10; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.03);
  color: var(--ink-2);
  font-size: 0.86rem;
  transition: all var(--t) var(--ease);
}
.mode-chip .ic { color: var(--ink-3); transition: color var(--t); }
.mode-chip:hover { border-color: var(--amber-line); color: var(--ink); background: var(--amber-soft); }
.mode-chip:hover .ic { color: var(--amber); }

/* cards flutuantes que ladeiam o hero */
.flank {
  position: absolute;
  z-index: 20;
  top: 36%;
  width: 236px;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(22, 19, 17, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floatY 7s ease-in-out infinite;
}
.flank--left { left: max(24px, calc(50% - 700px)); --rot: -4deg; }
.flank--right { right: max(24px, calc(50% - 700px)); --rot: 4deg; animation-delay: -3.5s; top: 44%; }
.flank-media { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.flank-frame { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.flank-frame .scene { width: 100%; height: 100%; }
.flank-arrow { color: var(--amber); }
.flank-cap { margin: 10px 2px 2px; font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; }
.flank-cap strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.86rem; }
.flank-play { position: relative; }
.flank-play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.0) 30%, rgba(0, 0, 0, 0.25));
}
.play-dot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--amber-ink);
  animation: pulseRing 2.2s ease-out infinite;
}
.play-dot .ic { margin-left: 2px; }
@media (max-width: 1180px) { .flank { display: none; } }

/* rolo de filme */
.reel {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.reel-track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; will-change: transform; }

/* Leveza: seções abaixo da dobra só renderizam quando chegam perto da tela */
.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Celular/tablet: sem vidro fosco nem animações de fundo (economia de GPU/bateria) */
@media (max-width: 900px), (hover: none) {
  .topbar, .topbar--site { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 9, 8, 0.96); }
  .prompt-bar, .flank, .modal-backdrop, .take-play, .reel-play, .badge-glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .prompt-bar { background: #17130f; }
  .badge-glass { background: rgba(10, 9, 8, 0.78); }
  .modal-backdrop { background: rgba(5, 4, 3, 0.9); }
  .hero-beam { animation: none; width: 900px; height: 700px; }
  .hero-grid-lines, .hero-dust { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--topbar-h) + 40px); }
  .reel-track { animation-duration: 110s; }
  .reel--live .reel-item { width: 240px; }
  .tile:hover, .reel-item:hover .reel-frame { transform: none; }
}
@media (max-width: 640px) {
  .seq-tag { display: none; }
  .tile { padding: 18px; border-radius: 22px; }
  .tile h3 { font-size: 1.6rem; }
  .seq-progress em { font-size: 0.56rem; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.8rem); line-height: 1.02; }
  .prompt-bar { width: calc(100vw - 24px); padding: 6px 6px 6px 14px; gap: 6px; }
  .prompt-bar .btn { padding: 0 14px; }
}
.reel:hover .reel-track { animation-play-state: paused; }
.reel-item { width: 268px; flex-shrink: 0; }
.reel-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform 300ms var(--ease), border-color var(--t);
}
.reel-frame .scene { width: 100%; height: 100%; }
.reel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}
.reel-item:hover .reel-frame { transform: translateY(-4px); border-color: var(--amber-line); }
.reel-tag { position: absolute; z-index: 2; left: 10px; bottom: 10px; }
button.reel-frame { display: block; width: 100%; padding: 0; background: #080706; cursor: pointer; font: inherit; color: inherit; }
.reel-frame img, .reel-frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.reel-frame:hover img, .reel-frame:hover video { transform: scale(1.04); }
.reel--live .reel-item { width: 320px; }
.reel--live .reel-track { animation-duration: 90s; }
.reel-play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 9, 8, 0.65); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(6px); transition: background var(--t); }
.reel-frame:hover .reel-play { background: var(--grad); color: var(--amber-ink); border-color: transparent; }
.reel-note { position: relative; z-index: 10; margin: 14px 0 0; font-size: 0.8rem; color: var(--ink-3); text-align: center; }
.reel-cap { margin-top: 10px; font-size: 0.82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* seções */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* bento de recursos */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  grid-column: span 2;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.04), rgba(255, 236, 214, 0.012));
  display: flex;
  flex-direction: column;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile--wide { grid-column: span 3; }
.tile--hero { grid-column: span 4; grid-row: span 2; min-height: 520px; }
.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  margin-bottom: auto;
}
.tile-icon.cool { color: var(--cool); background: var(--cool-soft); border-color: var(--cool-line); }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; letter-spacing: -0.025em; line-height: 1.05; margin: 22px 0 8px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 0.93rem; max-width: 46ch; }
.tile-atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tile--hero .tile-atmos { background: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255, 140, 60, 0.18), transparent 70%); }
.seq-player { position: relative; margin: 20px 0 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #070605; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.seq-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 120ms linear; }
.seq-v.on { opacity: 1; }
.seq-now { position: absolute; left: 12px; top: 12px; z-index: 2; }
.seq-tag { position: absolute; right: 12px; top: 12px; z-index: 2; }
.seq-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seq-progress span { position: relative; display: block; height: 22px; }
.seq-progress span::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.22); }
.seq-progress i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 9px; background: var(--grad); }
.seq-progress em { position: absolute; left: 0; bottom: 7px; font-style: normal; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); transition: color var(--t); }
.seq-progress span.cur em { color: #fff; }
.seq-player + .seq-demo { margin-top: 14px; }
.seq-demo { display: flex; align-items: center; gap: 10px; margin: 28px 0 6px; }
.seq-demo .seq-frame { flex: 1; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.seq-demo .seq-frame .scene { width: 100%; height: 100%; }
.seq-demo .seq-frame .badge { position: absolute; left: 8px; top: 8px; z-index: 2; pointer-events: none; }
.seq-demo .seq-link { color: var(--amber); flex-shrink: 0; }
.tile-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 22px 0 0; }
.tile-mini-grid div { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tile-mini-grid .scene { width: 100%; height: 100%; }
.sc-media { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #080706; cursor: pointer; overflow: hidden; }
.sc-media img, .sc-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.sc-media:hover img, .sc-media:hover video { transform: scale(1.05); }
.sc-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.tile-media { margin: 20px 0 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.pair-demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 20px 0 0; }
.pair-demo > div { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.pair-demo .badge { position: absolute; left: 8px; top: 8px; pointer-events: none; }
.pair-demo .seq-link { color: var(--amber); }
/* demo "Ao vivo": render → vídeo aparece → aviso (ciclo de 9s) */
.live-demo { position: relative; margin: 20px 0 0; }
.live-card { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #080706; }
.live-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: liveReveal 9s var(--ease) infinite; }
.live-media .scene { width: 100%; height: 100%; }
.live-render { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 150, 70, 0.16), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 236, 214, 0.03) 0 1px, transparent 1px 4px), #0c0a09; animation: liveCover 9s var(--ease) infinite; }
.live-title { font-family: var(--font-display); font-size: 1.15rem; }
.live-bar { width: 62%; height: 3px; border-radius: 9px; background: rgba(255, 236, 214, 0.1); overflow: hidden; }
.live-bar i { display: block; height: 100%; background: var(--grad); animation: liveBar 9s linear infinite; }
.live-time { font-size: 0.68rem; color: var(--ink-3); }
.live-toast { position: absolute; right: -6px; bottom: -14px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--cool-line); background: rgba(24, 20, 17, 0.96); box-shadow: var(--shadow-sm); font-size: 0.74rem; animation: liveToast 9s var(--ease) infinite; }
.live-toast strong { display: block; font-size: 0.78rem; }
.live-toast span:not(.toast-dot) { color: var(--ink-3); }
.live-toast em { font-style: normal; color: var(--cool); font-weight: 600; margin-left: 4px; }
@keyframes liveBar { 0% { width: 4%; } 55% { width: 92%; } 60%, 100% { width: 100%; } }
@keyframes liveCover { 0%, 58% { opacity: 1; } 66%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes liveReveal { 0%, 58% { opacity: 0; transform: scale(1.04); } 66%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes liveToast { 0%, 64% { opacity: 0; transform: translateY(8px); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

/* demo "Voz, Clonagem & Dublagem" */
.audio-demo {
  position: relative;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 80% 70% at 20% 20%, rgba(255, 178, 63, 0.16), transparent 65%),
              radial-gradient(ellipse 70% 60% at 85% 85%, rgba(127, 227, 212, 0.14), transparent 65%),
              #100E0C;
  display: grid;
  gap: 12px;
}
.audio-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}
.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 227, 212, 0.14);
  border: 1px solid var(--cool-line);
  color: var(--cool);
  font-weight: 600;
}
.audio-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 44px;
  padding: 0 4px;
}
.audio-wave i {
  display: block;
  flex: 1;
  max-width: 6px;
  border-radius: 999px;
  background: var(--grad);
  animation: audioPulse 1.4s ease-in-out infinite alternate;
}
.audio-wave i:nth-child(odd) { height: 34%; animation-delay: 0.15s; }
.audio-wave i:nth-child(2n) { height: 78%; animation-delay: 0.35s; }
.audio-wave i:nth-child(3n) { height: 52%; animation-delay: 0.55s; }
.audio-wave i:nth-child(4n) { height: 92%; animation-delay: 0.25s; }
.audio-wave i:nth-child(5n) { height: 42%; animation-delay: 0.65s; }
@keyframes audioPulse {
  0% { transform: scaleY(0.45); opacity: 0.72; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* demo "Estorno": extrato se escrevendo (ciclo de 8s) */
.refund-demo { margin: 20px 0 0; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; }
.rf-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; background: rgba(255, 236, 214, 0.03); opacity: 0; animation: rfRow 8s var(--ease) infinite; }
.rf-row span:nth-child(2) { color: var(--ink-2); }
.rf-row b { font-weight: 500; color: var(--ink-2); }
.rf-row .rf-plus { color: var(--cool); }
.rf-2 { animation-delay: 1s; }
.rf-3 { animation-delay: 2s; }
.rf-balance { display: flex; justify-content: space-between; padding: 6px 8px 2px; border-top: 1px solid var(--line); color: var(--ink-3); }
.rf-balance .mono { color: var(--ink); position: relative; }
.rf-b1, .rf-b2 { display: inline-block; }
.rf-b1 { animation: rfB1 8s var(--ease) infinite; }
.rf-b2 { position: absolute; left: 0; color: var(--cool); animation: rfB2 8s var(--ease) infinite; }
@keyframes rfRow { 0% { opacity: 0; transform: translateY(6px); } 6%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes rfB1 { 0%, 32% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes rfB2 { 0%, 32% { opacity: 0; } 38%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .live-media, .live-toast, .rf-row, .rf-b2 { animation: none !important; opacity: 1 !important; transform: none !important; }
  .live-render, .rf-b1 { display: none; }
  .rf-b2 { position: static; }
}

.batch-demo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.batch-demo div { aspect-ratio: 9 / 13; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.batch-demo .scene { width: 100%; height: 100%; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--hero { grid-column: span 2; grid-row: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide, .tile--hero { grid-column: span 1; }
}

/* como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
}
.step-num { font-family: var(--font-display); font-style: italic; font-size: 3.6rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 16px 0 8px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* velocidade (fila x janela) */
.speed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.speed-card { padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(255, 236, 214, 0.02); }
.speed-card.hot { border-color: var(--amber-line); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 140, 60, 0.12), transparent 70%), rgba(255, 236, 214, 0.02); }
.speed-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 14px 0 6px; letter-spacing: -0.02em; }
.speed-price { font-family: var(--font-mono); font-size: 1rem; color: var(--ink); margin: 18px 0; }
.speed-price b { font-size: 1.6rem; font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.92rem; }
.ticks li .ic { color: var(--cool); margin-top: 3px; }
.speed-card.hot .ticks li .ic { color: var(--amber); }
@media (max-width: 860px) { .speed-grid { grid-template-columns: 1fr; } }

/* planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1120px) { .plans-4 { grid-template-columns: repeat(2, 1fr); } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
}
.plan.featured {
  border-color: transparent;
  background: linear-gradient(#15110F, #15110F) padding-box, linear-gradient(160deg, rgba(255, 200, 110, 0.75), rgba(255, 94, 58, 0.25) 45%, rgba(255, 236, 214, 0.08)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 90px -40px rgba(255, 120, 50, 0.45);
}
.plan > .badge, .speed-card > .badge { align-self: flex-start; }
.plan-name { font-size: 1.05rem; font-weight: 600; margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .cur { color: var(--ink-3); font-size: 1rem; }
.plan-price .amt { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; }
.plan-price .per { color: var(--ink-3); font-size: 0.88rem; }
.plan-desc { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.plan .ticks { padding-top: 18px; border-top: 1px solid var(--line); flex: 1; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 236, 214, 0.02); transition: border-color var(--t); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 14px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform 220ms var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--amber); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 0.93rem; }

/* cta final */
.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background: #110E0C;
}
.cta-final .hero-beam { top: -30%; width: 1100px; height: 700px; }
.cta-final > *:not(.hero-atmos) { position: relative; z-index: 10; }
.cta-final .h-section { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.cta-final .lead { margin: 0 auto 28px; }

/* rodapé */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-left: auto; font-size: 0.88rem; color: var(--ink-3); }
@media (max-width: 720px) {
  .footer-links { margin-left: 0; width: 100%; }
}
.footer-links a:hover { color: var(--ink); }
.footer-legal { width: 100%; margin: 0; font-size: 0.78rem; color: var(--ink-4); }

/* ==========================================================================
   PÁGINAS INTERNAS (painel, pix, planos, login)
   ========================================================================== */
.page { position: relative; isolation: isolate; padding: 44px 0 40px; min-height: calc(100vh - var(--topbar-h)); }
.page-atmos { position: absolute; inset: 0 0 auto; height: 520px; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 15% 0%, rgba(255, 140, 60, 0.10), transparent 70%); }
.page > .wrap { position: relative; z-index: 10; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; margin: 10px 0 10px; }
.page-sub { color: var(--ink-2); margin: 0; max-width: 62ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 236, 214, 0.025); display: flex; flex-direction: column; gap: 6px; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-3); }
.stat-label .ic { color: var(--amber); }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.05; letter-spacing: -0.02em; }
.stat-meta { font-size: 0.82rem; color: var(--ink-3); }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.turbo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--amber-line);
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(255, 140, 60, 0.16), transparent 70%), rgba(255, 178, 63, 0.04);
  margin-bottom: 20px;
}
.turbo-banner p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.88rem; }
.turbo-count { font-family: var(--font-mono); font-size: 1.6rem; color: var(--amber); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* pix */
.pix-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 960px) { .pix-grid { grid-template-columns: 1fr; } }
.pack-list { display: flex; flex-direction: column; gap: 10px; }
.pack-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  transition: all var(--t) var(--ease);
}
.pack-option:hover { border-color: var(--line-2); }
.pack-option.active { border-color: var(--amber-line); background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(255, 178, 63, 0.2); }
.pack-option strong { font-weight: 600; }
.pack-option p { margin: 4px 0 0; font-size: 0.84rem; color: var(--ink-2); }
.pack-price { font-family: var(--font-display); font-size: 1.9rem; white-space: nowrap; }
.pack-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); flex-shrink: 0; display: grid; place-items: center; }
.pack-option.active .pack-radio { border-color: var(--amber); }
.pack-option.active .pack-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.qr-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.qr-svg-box { width: 232px; height: 232px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 6px rgba(255, 178, 63, 0.08), var(--shadow-sm); }
.qr-svg-box svg { width: 100%; height: 100%; }
.brcode-box { display: flex; gap: 8px; }
.brcode-input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.78rem; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--ink-2); }
.empty-art { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber-line); }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-art { position: relative; isolation: isolate; overflow: hidden; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; background: #0D0B0A; }
.auth-art .hero-beam { top: -20%; width: 1100px; }
.auth-art > *:not(.hero-atmos) { position: relative; z-index: 10; }
.auth-quote { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 18px; }
.auth-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.auth-frames div { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.auth-frames div:nth-child(2) { transform: translateY(-18px); }
.auth-frames .scene { width: 100%; height: 100%; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 410px; }
.auth-box h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.8rem; letter-spacing: -0.03em; line-height: 1; margin: 22px 0 8px; }
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.seg button, .seg .seg-btn {
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--t) var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px -6px rgba(0, 0, 0, 0.6); }

.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.pw-toggle:hover { color: var(--ink); background: rgba(255, 236, 214, 0.06); }
.pw-toggle:focus-visible { outline: 2px solid var(--amber-line); outline-offset: 1px; }
.pw-toggle .pw-eye-closed { display: none; }
.pw-toggle.is-visible { color: var(--amber); }
.pw-toggle.is-visible .pw-eye-open { display: none; }
.pw-toggle.is-visible .pw-eye-closed { display: block; }

.auth-aux-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.auth-aux-row .btn-link {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--ink-3);
  font-size: 0.84rem;
  cursor: pointer;
  transition: color var(--t) var(--ease);
}
.auth-aux-row .btn-link:hover { color: var(--amber); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--ink-3);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 236, 214, 0.03);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.btn-oauth:hover {
  border-color: var(--amber-line);
  background: rgba(255, 178, 63, 0.08);
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* comparativo planos */
.compare-table td:first-child { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   ESTÚDIO (gerar.php)
   ========================================================================== */
body.app { overflow: hidden; }
.studio {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - var(--topbar-h));
}
@media (max-width: 1100px) {
  body.app { overflow: auto; }
  .studio { grid-template-columns: 1fr; height: auto; }
}

/* mesa (painel esquerdo) */
.desk {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #110F0D, #0D0B0A);
}
.desk form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.desk-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 26px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.desk-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.desk-title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -0.03em; margin: 0; }

.modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 20px; }
.mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  transition: all var(--t) var(--ease);
}
.mode:hover { color: var(--ink); border-color: var(--line-2); }
.mode.active { color: var(--ink); border-color: var(--amber-line); background: var(--amber-soft); }
.mode.active .ic { color: var(--amber); }

.continuity {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: var(--r);
  border: 1px solid var(--cool-line);
  background: var(--cool-soft);
}
.continuity-thumb { width: 84px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #000; flex-shrink: 0; }
.continuity-thumb video, .continuity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continuity-text { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--ink-2); }
.continuity-text strong { display: block; color: var(--cool); font-weight: 600; font-size: 0.86rem; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border-radius: var(--r);
  border: 1.5px dashed var(--line-2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink-2);
  text-align: center;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.drop .ic { color: var(--amber); }
.drop:hover, .drop.dragging { border-color: var(--amber-line); background: var(--amber-soft); }
.drop small { color: var(--ink-3); font-size: 0.76rem; }
.ref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ref-row .form-hint { flex: 1; min-width: 0; font-size: 0.76rem; }
.mini-btn { white-space: nowrap; }
.ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.ref-grid:empty { display: none; }
.ref-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 8, 0.75);
  color: #fff;
  opacity: 0;
  transition: opacity var(--t);
}
.ref-thumb:hover button, .ref-thumb button:focus-visible { opacity: 1; }
.ref-thumb span { position: absolute; left: 4px; bottom: 4px; font-family: var(--font-mono); font-size: 0.6rem; padding: 1px 5px; border-radius: 5px; background: rgba(10, 9, 8, 0.7); }

.prompt-box { border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.28); transition: border-color var(--t), box-shadow var(--t); }
.prompt-box:focus-within { border-color: var(--amber-line); box-shadow: 0 0 0 4px rgba(255, 178, 63, 0.07); }
.prompt-box textarea { width: 100%; min-height: 132px; max-height: 340px; resize: vertical; border: none; background: transparent; padding: 14px 14px 6px; color: var(--ink); line-height: 1.55; font-size: 0.95rem; }
.prompt-box textarea:focus { outline: none; }
.prompt-box textarea::placeholder { color: var(--ink-4); }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px 12px; }
.prompt-tools { display: flex; align-items: center; gap: 4px; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-size: 0.78rem;
  transition: all var(--t) var(--ease);
}
.mini-btn:hover { color: var(--ink); background: rgba(255, 236, 214, 0.06); }
.mini-btn.on { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
  color: var(--ink-2);
  font-size: 0.84rem;
  transition: all var(--t) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.active { color: var(--ink); border-color: var(--amber-line); background: var(--amber-soft); }
.chip small { color: var(--ink-3); font-size: 0.72rem; }
.ratio-ico { border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.8; }
.ratio-ico.r169 { width: 18px; height: 10px; }
.ratio-ico.r916 { width: 10px; height: 18px; }
.ratio-ico.r11 { width: 13px; height: 13px; }

.advanced { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.advanced summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--ink-3); }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary .ic { transition: transform 200ms var(--ease); }
.advanced[open] summary .ic { transform: rotate(45deg); color: var(--amber); }
.advanced .input { margin-top: 10px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: none; background: transparent; color: var(--ink-2); display: grid; place-items: center; transition: background var(--t); }
.stepper button:hover:not([disabled]) { background: rgba(255, 236, 214, 0.06); color: var(--ink); }
.stepper button[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-family: var(--font-mono); font-size: 0.95rem; }
.batch-row { display: flex; align-items: center; gap: 12px; }
.batch-row .form-hint { flex: 1; }

.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.speed-opt {
  text-align: left;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
  transition: all var(--t) var(--ease);
}
.speed-opt:hover { border-color: var(--line-2); }
.speed-opt.active { border-color: var(--amber-line); background: var(--amber-soft); }
.speed-opt strong { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; }
.speed-opt.active strong .ic { color: var(--amber); }
.speed-opt span { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--ink-3); line-height: 1.35; }

.desk-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(10px);
}
.cost-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cost-line strong { font-family: var(--font-mono); font-weight: 500; font-size: 0.98rem; }
.cost-line span { font-size: 0.78rem; color: var(--ink-3); text-align: right; }
.cost-line span a { color: var(--amber); }
.gen-btn { width: 100%; }
.gen-btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26, 16, 4, 0.3); border-top-color: var(--amber-ink); animation: spin 0.8s linear infinite; }

/* palco (painel direito) */
.stage { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.stage-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 60% 0%, rgba(255, 150, 70, 0.09), transparent 70%), radial-gradient(ellipse 40% 40% at 100% 100%, rgba(127, 227, 212, 0.04), transparent 70%); }
.stage > *:not(.stage-atmos) { position: relative; z-index: 10; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.tab { height: 34px; padding: 0 14px; border: none; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 0.86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all var(--t) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface-3); color: var(--ink); }
.tab .count { font-family: var(--font-mono); font-size: 0.7rem; padding: 1px 6px; border-radius: 6px; background: rgba(255, 236, 214, 0.08); color: var(--ink-2); }
.tab .count.live { background: var(--amber-soft); color: var(--amber); }
.lib-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-tools .input { width: 200px; height: 34px; padding: 0 12px; font-size: 0.85rem; }
.filter-chip { height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font-size: 0.8rem; transition: all var(--t); }
.filter-chip:hover { color: var(--ink); }
.filter-chip.active { color: var(--ink); border-color: var(--line-3); background: rgba(255, 236, 214, 0.06); }
.stage-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 40px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.stage-body > .alert { margin-bottom: 18px; }

/* destaque (spotlight) */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.spot.solo { grid-template-columns: 1fr; }
@media (max-width: 1360px) { .spot { grid-template-columns: 1fr; } }
.screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: #070605;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
/* A caixa segue o formato do video: reel (9:16) fica estreito e alto, 1:1 quadrado. A largura e calculada pela
   altura disponivel (nunca passa da tela nem da coluna), entao o player e os controles cabem inteiros, no PC e no celular. */
.screen[data-aspect="9:16"] {
  aspect-ratio: 9 / 16;
  height: auto;
  width: min(100%, calc(min(74vh, 780px) * 9 / 16));
  justify-self: center;
  margin-inline: auto;
}
.screen[data-aspect="1:1"] {
  aspect-ratio: 1 / 1;
  height: auto;
  width: min(100%, min(70vh, 640px));
  justify-self: center;
  margin-inline: auto;
}
.screen video, .screen img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen-content video, .screen-content img { max-width: 100%; max-height: 100%; }

/* ------------------------------------------------------------ player proprio */
.hq-player { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; border-radius: inherit; outline: none; }
.hq-player:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); }
.hq-player video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; background: #000; }
.hqp-big {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 178, 63, 0.92); color: var(--amber-ink);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.8);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.hqp-big svg { width: 30px; height: 30px; margin-left: 3px; }
.hq-player.playing .hqp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.9); }
.hqp-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 26px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  transition: opacity 200ms var(--ease);
}
.hq-player.playing.idle .hqp-bar { opacity: 0; pointer-events: none; }
.hq-player.playing.idle { cursor: none; }
.hqp-btn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px;
  display: grid; place-items: center; background: transparent; color: #fff;
}
.hqp-btn:hover { background: rgba(255, 255, 255, 0.12); }
.hqp-btn svg { width: 22px; height: 22px; }
.hqp-time { flex: none; font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hqp-seek {
  --p: 0%;
  flex: 1 1 auto; min-width: 40px; height: 22px; margin: 0 4px; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.hqp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber) var(--p), rgba(255, 255, 255, 0.28) var(--p)); }
.hqp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.hqp-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--amber); }
.hqp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.hqp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
/* telas estreitas (reel no celular): esconde o tempo, sobra espaco para a barra */
@media (max-width: 420px) { .hqp-time { display: none; } .hqp-bar { gap: 2px; padding-inline: 6px; } }
.hq-player:fullscreen, .hq-player:-webkit-full-screen { border-radius: 0; }
.viewer-media .hq-player { height: auto; max-height: calc(100vh - 40px); }
.viewer-media .hq-player video { max-height: calc(100vh - 40px); }

/* botoes de qualidade: rotulo + resolucao */
.quality-chips .chip small { margin-left: 4px; font-size: 0.72rem; opacity: 0.7; font-family: var(--font-mono); }
.screen-content { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.thumb .rendering { gap: 6px; padding: 8px; }
.thumb .rendering-title { font-size: 0.95rem; }
.thumb .rendering-prompt, .take-media .rendering-prompt { display: none; }
.screen-empty { text-align: center; padding: 40px 24px; max-width: 520px; }
.screen-empty h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.02; margin: 18px 0 10px; }
.screen-empty p { color: var(--ink-2); margin: 0 0 20px; }
.screen-beam { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from 180deg at 50% -10%, transparent 165deg, rgba(255, 200, 130, 0.10) 180deg, transparent 195deg); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.idea { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 236, 214, 0.03); color: var(--ink-2); font-size: 0.82rem; text-align: left; transition: all var(--t); max-width: 100%; }
.idea:hover { border-color: var(--amber-line); color: var(--ink); background: var(--amber-soft); }

/* estado "gerando" — revelação do quadro */
.rendering { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; overflow: hidden; }
.rendering::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 150, 70, 0.14), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 236, 214, 0.025) 0 1px, transparent 1px 4px);
}
.rendering::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 150, 0.08), transparent);
  animation: sweep 2.6s var(--ease) infinite;
}
.rendering > * { position: relative; z-index: 1; }
.rendering-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.05; }
.rendering-prompt { max-width: 56ch; color: var(--ink-3); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress { width: min(360px, 80%); height: 4px; border-radius: 999px; background: rgba(255, 236, 214, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 900ms linear; }
.progress.small { width: 100%; height: 3px; }
.eta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--amber); letter-spacing: 0.02em; }
.thumb .eta, .take-media .eta { font-size: 0.66rem; }
.elapsed { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.elapsed b { color: var(--amber); font-weight: 500; }

.spot-info { display: flex; flex-direction: column; gap: 14px; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.spot-prompt { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.6; max-height: 220px; overflow: auto; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-actions .btn { flex: 1 1 auto; }
.spot-sub { font-size: 0.8rem; color: var(--ink-3); }

/* faixa de recentes */
.strip-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }
.strip-head h3 { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* cards da biblioteca */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lib-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 60px 20px; }
.take {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
  animation: rise 260ms var(--ease);
}
.take:hover { border-color: var(--line-2); }
.take.is-in-seq { border-color: var(--amber-line); box-shadow: 0 0 0 1px var(--amber-line); }
.take.is-parent { border-color: var(--cool-line); box-shadow: 0 0 0 1px var(--cool-line); }
.take.just-done { animation: rise 260ms var(--ease), glowDone 2.4s var(--ease); }
@keyframes glowDone { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 212, 0.0); } 20% { box-shadow: 0 0 0 3px rgba(127, 227, 212, 0.55); } 100% { box-shadow: 0 0 0 0 rgba(127, 227, 212, 0); } }
.take-media { position: relative; aspect-ratio: 16 / 10; background: #080706; overflow: hidden; cursor: pointer; }
.take-media video, .take-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.take:hover .take-media video, .take:hover .take-media img { transform: scale(1.03); }
.take-media .rendering { gap: 8px; padding: 12px; }
.take-media .rendering-title { font-size: 1.2rem; }
.take-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; z-index: 2; }
.take-badges > div { display: flex; gap: 6px; }
.take-play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 9, 8, 0.7); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; opacity: 0; transition: opacity var(--t); pointer-events: none; }
.take:hover .take-play { opacity: 1; }
.take-body { padding: 12px 14px 4px; }
.take-prompt { margin: 0; font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.take-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 12px 14px; }
.take-foot time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-4); }
.take-actions { display: flex; gap: 4px; }
.take-actions .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.take-actions .icon-btn.go { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.take-actions .icon-btn.in-seq,
.spot-actions .btn.in-seq { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.take-error { margin: 6px 0 0; font-size: 0.76rem; color: var(--danger); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080706;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t);
}
.thumb:hover { border-color: var(--amber-line); transform: translateY(-2px); }
.thumb.sel { border-color: var(--amber); }
.thumb.is-in-seq { border-color: var(--amber-line); box-shadow: inset 0 0 0 1px var(--amber-line); }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge { position: absolute; left: 6px; bottom: 6px; }
.thumb .rendering-title { font-size: 0.9rem; }
.thumb-seq-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 9, 8, 0.72);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity var(--t), background var(--t), border-color var(--t), color var(--t);
}
.thumb:hover .thumb-seq-btn,
.thumb:focus-within .thumb-seq-btn,
.thumb-seq-btn.on { opacity: 1; }
.thumb-seq-btn:hover { border-color: var(--amber-line); color: var(--amber); }
.thumb-seq-btn.on { background: var(--amber); color: var(--amber-ink); border-color: transparent; font-weight: 600; }
@media (hover: none) { .thumb-seq-btn { opacity: 1; } }

/* visualizador */
.viewer .modal-card { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.viewer-media { background: #000; display: grid; place-items: center; min-height: 300px; max-height: calc(100vh - 40px); }
.viewer-media video, .viewer-media img { width: 100%; max-height: calc(100vh - 40px); object-fit: contain; }
.viewer-side { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); }
.viewer-side .spot-prompt { max-height: 40vh; }
@media (max-width: 860px) {
  .viewer .modal-card { grid-template-columns: 1fr; }
  .viewer-side { border-left: none; border-top: 1px solid var(--line); }
}
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }

.video-player-inline { width: 100%; border-radius: var(--r); background: #000; max-height: 70vh; }

/* ==========================================================================
   MONTADOR DE SEQUÊNCIA / CENAS (gerar.php)
   ========================================================================== */
.seq-empty {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: #070605;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.seq-empty .screen-empty { position: relative; z-index: 1; }
.seq-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.seq-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1360px) { .seq-workspace { grid-template-columns: 1fr; } }

.seq-stage { min-width: 0; }
.seq-screen { width: 100%; }
.seq-hq-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-hq-player .seq-v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 80ms linear;
}
.seq-hq-player .seq-v.on { opacity: 1; z-index: 1; pointer-events: auto; }
.seq-hq-player .seq-now,
.seq-hq-player .seq-tag { z-index: 3; pointer-events: none; }
.seq-hq-player .hqp-big { z-index: 4; }
.seq-hq-player .seq-bar {
  z-index: 4;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 28px 12px 8px;
}

.seq-segments {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.seq-seg {
  position: relative;
  flex: 1 1 0%;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.seq-seg-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: height var(--t) var(--ease), background var(--t);
}
.seq-seg:hover .seq-seg-track,
.seq-seg.cur .seq-seg-track { height: 6px; background: rgba(255, 255, 255, 0.34); }
.seq-seg-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--grad);
}
.seq-ctrl-row { display: flex; align-items: center; gap: 6px; }
.seq-ctrl-spacer { flex: 1; }

.seq-list-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.03), rgba(255, 236, 214, 0.01));
}
.seq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.seq-panel-title { margin: 0; font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.seq-panel-tools { display: flex; align-items: center; gap: 6px; }

.seq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.seq-item {
  display: grid;
  grid-template-columns: 22px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.seq-item:hover { border-color: var(--line-2); }
.seq-item.is-playing { border-color: var(--amber-line); background: var(--amber-soft); }
.seq-item-order {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}
.seq-item.is-playing .seq-item-order { color: var(--amber); }
.seq-item-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  padding: 0;
  cursor: pointer;
}
.seq-item-thumb video { width: 100%; height: 100%; object-fit: cover; }
.seq-item-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.seq-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}
.seq-item-prompt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seq-item-actions { display: flex; align-items: center; gap: 3px; }
.seq-item-actions .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.seq-item-actions .icon-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.seq-item-actions .icon-btn.del:hover { color: var(--danger); border-color: rgba(255, 106, 92, 0.4); background: var(--danger-soft); }

.seq-compat { margin: 0; font-size: 0.8rem; line-height: 1.4; }
.seq-save-box { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.seq-save-box .btn .spinner,
.seq-dock-actions .btn .spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(26, 16, 4, 0.3);
  border-top-color: var(--amber-ink);
  animation: spin 0.8s linear infinite;
}

/* dock compacto no rodapé do palco */
.seq-dock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 26px;
  border-top: 1px solid var(--amber-line);
  background: rgba(18, 15, 12, 0.94);
  box-shadow: 0 -10px 30px -15px rgba(0, 0, 0, 0.8);
}
.seq-dock-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; flex-wrap: wrap; }
.seq-dock-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--ink);
  white-space: nowrap;
}
.seq-dock-title .ic { color: var(--amber); }
.seq-dock-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seq-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 236, 214, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}
.seq-chip button {
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: var(--ink-3);
  display: inline-grid;
  place-items: center;
}
.seq-chip button:hover { color: var(--danger); }
.seq-dock-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

@media (max-width: 1100px) {
  .seq-dock { position: sticky; bottom: 0; z-index: 30; padding: 10px 16px; }
}
@media (max-width: 640px) {
  .seq-item { grid-template-columns: 18px 54px minmax(0, 1fr); }
  .seq-item-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .seq-dock { padding: 10px 14px; }
  .seq-dock-chips { display: none; }
  .seq-dock-actions { width: 100%; justify-content: flex-end; }
}

/* modal picker de vídeos do Montador */
.seq-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.seq-picker-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.seq-pick-card { text-align: left; cursor: pointer; }
.seq-pick-card.is-in-seq { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.seq-pick-preview {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 11, 10, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.seq-pick-preview:hover,
.seq-pick-preview.is-playing {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}
.seq-pick-order {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Voz & Áudio / Dublagem */
.clone-voice-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(255, 236, 214, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clone-voice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink);
}
.clone-voice-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hq-audio-wrap {
  width: 100%;
  height: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 178, 63, 0.12), rgba(14, 12, 10, 0.92));
}
.hq-audio-wrap .ic {
  color: var(--amber);
}
.hq-audio-player {
  width: 100%;
  max-width: 360px;
  height: 36px;
}
.seq-narration-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dub-modal-card {
  max-width: 680px;
}
.dub-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dub-step + .dub-step {
  margin-top: 12px;
}
.dub-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.dub-segments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.dub-segment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}
.dub-seg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}
.dub-seg-voice {
  width: auto;
  min-width: 170px;
  max-width: 100%;
  padding: 5px 10px;
  font-size: 0.78rem;
}
.dub-seg-text {
  min-height: 54px;
  resize: vertical;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Atalho de dublagem + Estúdio de Áudio responsivo */
.tts-dub-shortcut {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tts-controls-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
}
.tts-ctrl-item { display: flex; flex-direction: column; gap: 4px; }
.tts-dub-shortcut .btn { flex: 1 1 auto; justify-content: center; min-height: 38px; }

.audio-studio-hero {
  padding: 18px 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--amber-line);
  background: linear-gradient(135deg, rgba(240, 148, 54, 0.10), rgba(255, 236, 214, 0.02));
  margin-bottom: 16px;
}
.audio-studio-title {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
}
.audio-studio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.audio-action-card {
  padding: 16px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.025);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audio-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.audio-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.audio-studio-section { margin-bottom: 22px; }
.audio-voices-grid,
.audio-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.audio-voice-card,
.audio-job-card {
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audio-voice-top,
.audio-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.audio-voice-btns,
.audio-job-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.audio-job-prompt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes .mode[data-mode="TTS"] {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    padding: 10px 12px;
  }
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { white-space: nowrap; flex: 0 0 auto; }
  .audio-studio-cards,
  .audio-voices-grid,
  .audio-jobs-grid { grid-template-columns: 1fr; }
  .audio-action-btns .btn,
  .audio-voice-btns .btn,
  .audio-job-btns .btn,
  .tts-dub-shortcut .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .modal-card { max-height: 92dvh; margin: 8px; }
  .pager-btn { min-width: 42px; height: 42px; }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.03);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pager-btn:hover:not(:disabled) {
  border-color: var(--line-2);
  color: var(--ink);
}
.pager-btn.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}
.pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Notice Card (bottom-left, non-blocking, avoids Brave cosmetic cookie-banner filter) */
.hq-notice-card {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 920;
  width: min(410px, calc(100vw - 36px));
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(18, 16, 14, 0.98);
  border: 1px solid var(--amber-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}
.hq-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hq-notice-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 148, 66, 0.16);
  color: var(--amber);
}
.hq-notice-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.hq-notice-text a {
  color: var(--amber);
  text-decoration: underline;
}
.hq-notice-prefs {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.hq-notice-opt,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-2);
  cursor: pointer;
}
.hq-notice-opt input,
.check-row input {
  margin-top: 3px;
  accent-color: var(--amber);
}
.check-row a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hq-notice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hq-notice-link-btn,
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
}
.hq-notice-link-btn:hover,
.footer-link-btn:hover {
  color: var(--amber);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.legal-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  line-height: 1.65;
}
.legal-doc h2 {
  margin-top: 10px;
  font-size: 1.08rem;
  color: var(--ink);
}
.legal-doc p,
.legal-list {
  color: var(--ink-2);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.legal-list {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.legal-doc a {
  color: var(--amber);
  overflow-wrap: anywhere;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans-4 { grid-template-columns: 1fr; }
  .hq-notice-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 12px 14px;
    backdrop-filter: none;
  }
  .hq-notice-text { font-size: 0.78rem; margin-bottom: 10px; }
  body.has-notice-open { padding-bottom: 155px; }
}
.ticket-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
}
.ticket-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* -------------------------------------------------- segmented / payMethodTabs */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.segmented .seg-btn,
.seg .seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.25;
  text-align: center;
  transition: all var(--t) var(--ease);
}
.segmented .seg-btn:hover,
.seg .seg-btn:hover {
  color: var(--ink);
  background: rgba(255, 236, 214, 0.05);
}
.segmented .seg-btn.active,
.seg .seg-btn.active {
  background: var(--amber-soft);
  border-color: var(--amber-line);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px -6px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------- Mercado Pago Secure Fields (iframes) */
.mp-secure-field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  color-scheme: dark;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.mp-secure-field:hover { border-color: var(--line-3); }
.mp-secure-field:focus-within,
.mp-secure-field.is-focused {
  border-color: var(--amber-line);
  box-shadow: 0 0 0 4px rgba(255, 178, 63, 0.08);
  background: rgba(0, 0, 0, 0.4);
}
.mp-secure-field iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color-scheme: dark;
}

