/* ==========================================================================
   MeClipe — Global Stylesheet (Consolidado Definitivo e Limpo)
   ========================================================================== */

:root {
  --bg-dark: #09090b;
  --card-dark: rgba(24, 24, 27, 0.85);
  --card-solid-dark: #18181b;
  --text-dark: #f4f4f5;
  --muted-dark: #a1a1aa;
  --border-dark: rgba(255, 255, 255, 0.08);
  --input-bg-dark: #0f0f12;
  --log-text-dark: #a78bfa;

  --bg-light: #f8fafc;
  --card-light: rgba(255, 255, 255, 0.90);
  --card-solid-light: #ffffff;
  --text-light: #0f172a;
  --muted-light: #64748b;
  --border-light: rgba(0, 0, 0, 0.08);
  --input-bg-light: #f1f5f9;
  --log-text-light: #475569;

  --accent-primary: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --accent: #8b5cf6;
  --success: #22c55e;
  
  --handle-content: #38bdf8;
  --handle-facecam: #a78bfa;

  --bg: var(--bg-dark);
  --card: var(--card-dark);
  --card-solid: var(--card-solid-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --border: var(--border-dark);
  --input-bg: var(--input-bg-dark);
  --log-text: var(--log-text-dark);

  --radius-lg: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --card: var(--card-light);
  --card-solid: var(--card-solid-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --border: var(--border-light);
  --input-bg: var(--input-bg-light);
  --log-text-light: #475569;
  --accent-glow: rgba(139, 92, 246, 0.15);
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 0;
  margin: 0;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   BARRA DE ROLAGEM PERSONALIZADA
   ========================================================================== */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 7px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
* {
  scrollbar-width: auto;
  scrollbar-color: var(--accent-primary) var(--bg);
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.nav-logo span {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent-primary); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  list-style: none;
  padding: 8px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 100;
}
.nav-item.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu li a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: block;
  transition: var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-actions .theme-toggle, 
.nav-actions .btn-login {
  height: 38px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  margin: 0 !important;
  border-radius: var(--radius-sm) !important;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
  width: auto;
}
.btn-login:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--input-bg);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: auto;
  margin: 0;
  box-shadow: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.theme-toggle {
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: var(--transition);
  width: auto;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. LARGURAS E ESTRUTURA GERAL
   ========================================================================== */
.main-wrapper, .container {
  max-width: 840px !important;
  width: 100% !important;
  margin: 32px auto !important;
  padding: 0 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

body:has(form) .main-wrapper {
  max-width: 440px !important;
  margin: 60px auto !important;
}

body:has(.footer) .main-wrapper {
  max-width: 840px !important;
  margin: 32px auto !important;
  padding: 0 16px !important;
  gap: 24px !important;
  flex: 1 !important;
}

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4px;
  width: 100%;
}
.brand-area {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
h1, .brand-area h1 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
h1 span {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1, .pricing-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 850px;
}

.sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

body:has(form) header,
body:has(form) .brand-area {
  text-align: center;
  align-items: center;
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}
.card:hover { border-color: rgba(139, 92, 246, 0.3); }
body:has(form) .card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
h3 { margin: 0 0 16px; font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

.card button, .player-controls button, #btnPlay, #maskPlayBtn, #modalPlayBtn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: var(--transition);
}
.card button:hover:not(:disabled), .player-controls button:hover:not(:disabled), #btnPlay:hover:not(:disabled), #maskPlayBtn:hover:not(:disabled), #modalPlayBtn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.card button:disabled, .player-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--muted);
}
.card button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.card button.ghost:hover:not(:disabled) { background: var(--input-bg); border-color: var(--accent-primary); color: var(--accent-primary); }
.card button.tiny { width: auto; padding: 6px 12px; margin: 0; font-size: 0.8rem; background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.card button.tiny:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.card button.main-btn { margin-top: 20px; }

.player-controls button, #btnPlay, #maskPlayBtn, #modalPlayBtn {
  width: auto;
  margin: 0;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ==========================================================================
   3. ESTILOS ESPECÍFICOS DAS FERRAMENTAS
   ========================================================================== */
.drop-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--border); padding: 36px 20px; text-align: center; border-radius: var(--radius-sm);
  cursor: pointer; background: var(--input-bg); transition: var(--transition);
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--accent-primary); background: var(--accent-glow); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#fileText, #dropText { margin: 0; font-size: 0.95rem; color: var(--muted); }
#fileText strong, #dropText strong { color: var(--text); }

.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.params label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.params input { background: var(--input-bg); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition); }
.params input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }

.bar { height: 8px; background: var(--input-bg); border-radius: 4px; overflow: hidden; margin-top: 16px; display: none; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-primary), #3b82f6); transition: width 0.2s ease; }

.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.clip-card { background: var(--input-bg); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; transition: var(--transition); }
.clip-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.clip-img { width: 100%; border-radius: 6px; border: 1px solid var(--border); display: block; background: #000; aspect-ratio: 16/9; object-fit: cover; }
.clip-card strong { color: var(--text); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-card span { color: var(--muted); font-size: 0.8rem; }
.clip-card button.save { background: transparent; color: var(--accent-primary); border: 1px solid var(--accent-primary); padding: 8px; border-radius: 6px; font-weight: 600; text-align: center; width: 100%; margin: 0; font-size: 0.85rem; box-shadow: none; }
.clip-card button.save:hover { background: var(--accent-primary); color: #fff; }

.log-box { background-color: var(--input-bg); border: 1px solid var(--border); color: var(--log-text); padding: 16px; height: 150px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.8rem; overflow-y: auto; border-radius: var(--radius-sm); white-space: pre-wrap; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-height: 280px; overflow: auto; }
.file-row { display: flex; align-items: center; gap: 10px; background: var(--input-bg); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); transition: var(--transition); }
.file-row:hover { border-color: rgba(139, 92, 246, 0.3); }
.file-row span { flex: 1; }
.outname { width: 100%; background: var(--input-bg); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm); margin-top: 8px; font-size: 0.9rem; transition: var(--transition); }
.outname:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }

.controls { display: flex; gap: 15px; flex-direction: column; margin-bottom: 16px; background: var(--input-bg); padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.control-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.control-group { display: flex; align-items: center; gap: 15px; }
.control-group label { font-size: 0.9rem; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-weight: 500; }
.player-controls { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 16px; }

.preview-container { position: relative; width: 100%; max-width: 100%; background: #000; margin: 0 auto 16px auto; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.layer-bg { display: block; width: 100%; height: auto; }
.layer-content { position: absolute; border: 3px solid var(--handle-content); background: rgba(56, 189, 248, 0.15); cursor: move; touch-action: none; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.layer-facecam { position: absolute; border: 3px solid var(--handle-facecam); background: rgba(139, 92, 246, 0.2); cursor: move; touch-action: none; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.shape-circle { border-radius: 50%; } .shape-square { border-radius: 12px; } .shape-rect { border-radius: 6px; }
.handle { position: absolute; width: 12px; height: 12px; border: 2px solid #000; border-radius: 50%; z-index: 10; }
.layer-content .handle { background: var(--handle-content); } .layer-facecam .handle { background: var(--handle-facecam); }
.handle.tl { top: -6px; left: -6px; cursor: nwse-resize; } .handle.tr { top: -6px; right: -6px; cursor: nesw-resize; }
.handle.bl { bottom: -6px; left: -6px; cursor: nesw-resize; } .handle.br { bottom: -6px; right: -6px; cursor: nwse-resize; }

.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.batch-item { background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; transition: var(--transition); }
.batch-item:hover { border-color: rgba(139, 92, 246, 0.3); }
.batch-preview { width: 110px; height: 195px; background: #000; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); position: relative; display: flex; align-items: center; justify-content: center; }
.batch-canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.batch-info { width: 100%; display: flex; justify-content: space-between; font-size: 0.8rem; }
.batch-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
.batch-status { color: var(--muted); }
.batch-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.batch-fill { display: block; height: 100%; width: 0%; background: var(--accent-primary) !important; transition: width 0.1s; }
button.btn-single { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 8px; font-size: 0.8rem; font-weight: 600; width: 100%; border-radius: 6px; cursor: pointer; transition: var(--transition); margin-top: 4px; }
button.btn-single:hover:not(:disabled) { background: var(--accent-primary); color: #fff; }
button.btn-single:disabled { opacity: 0.4; cursor: not-allowed; border-color: var(--border); color: var(--muted); }

.controls input[type=number] { background: var(--input-bg); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius-sm); width: 100px; font-size: 1rem; font-weight: bold; text-align: center; transition: var(--transition); }
.controls input[type=number]:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.action-row { display: flex; gap: 12px; margin-top: 16px; }
.action-row button { margin-top: 0; flex: 1; }
#btnZip { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25); }
#btnZip:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 16px; max-height: 450px; overflow-y: auto; padding-right: 4px; }
.thumb-item { background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; transition: var(--transition); }
.thumb-item:hover { border-color: rgba(139, 92, 246, 0.3); }
.thumb-img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); display: block; }
.thumb-info { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-align: center; }
.btn-dl { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 6px; font-size: 0.75rem; font-weight: 600; width: 100%; border-radius: 6px; cursor: pointer; text-align: center; text-decoration: none; display: block; transition: var(--transition); }
.btn-dl:hover { background: var(--accent-primary); color: #fff; }

/* ==========================================================================
   4. PÁGINA DE LOGIN
   ========================================================================== */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.form-group input { background: var(--input-bg); border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: var(--radius-sm); font-size: 0.95rem; transition: var(--transition); }
.form-group input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-footer { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.form-footer a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   5. PÁGINAS DE MARKETING (Início & Planos)
   ========================================================================== */
.hero, .pricing-hero { text-align: center; padding: 100px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pricing-hero { padding: 100px 20px 20px; }
.hero-badge { background: var(--accent-glow); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--accent-primary); padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.hero p, .pricing-hero p { color: var(--muted); font-size: 1.25rem; max-width: 700px; margin: 0; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; margin-top: 16px; }

.btn-primary, .btn-secondary, .btn-plan { display: block; box-sizing: border-box; text-align: center; text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); padding: 16px 36px; }
.btn-primary, .btn-plan { background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)); color: #fff; border: none; box-shadow: 0 8px 25px var(--accent-glow); }
.btn-primary:hover, .btn-plan:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 12px 35px var(--accent-glow); }
.btn-secondary, .btn-plan.outline { background: var(--card-solid); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.btn-secondary:hover, .btn-plan.outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: var(--input-bg); }
.btn-plan { padding: 16px 24px; width: 100%; margin-top: auto; }

.tech-showcase { background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; box-shadow: 0 25px 50px -15px rgba(0,0,0,0.35); }
.showcase-content { display: flex; flex-direction: column; gap: 24px; }
.showcase-content h2 { font-size: 2.5rem; font-weight: 800; margin: 0; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.showcase-content p { color: var(--muted); margin: 0; line-height: 1.7; font-size: 1.05rem; }
.tech-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.spec-item { background: var(--input-bg); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius-sm); }
.spec-value { font-size: 1.5rem; font-weight: 800; color: var(--accent-primary); margin-bottom: 6px; }
.spec-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.showcase-visual { background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); height: 380px; display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; overflow: hidden; }
.showcase-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 75%); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; display: flex; flex-direction: column; gap: 16px; }
.section-header h2 { font-size: 2.75rem; font-weight: 800; margin: 0; letter-spacing: -0.025em; }
.section-header p { color: var(--muted); margin: 0; font-size: 1.1rem; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); padding: 40px 32px; border-radius: 24px; box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25); transition: var(--transition); text-decoration: none; display: flex; flex-direction: column; gap: 20px; }
.feature-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-6px); box-shadow: 0 20px 45px -10px var(--accent-glow); }
.feature-icon { width: 56px; height: 56px; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.feature-card h3 { margin: 0; font-size: 1.35rem; color: var(--text); font-weight: 700; }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

.benefits-banner { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 60px; display: flex; flex-direction: column; gap: 40px; }
.benefits-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.benefit-item { display: flex; gap: 20px; align-items: flex-start; }
.benefit-check { background: var(--accent-glow); color: var(--accent-primary); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; border: 1px solid rgba(139, 92, 246, 0.3); }
.benefit-text h4 { margin: 0 0 6px 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.benefit-text p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; width: 100%; }
.price-card { background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); padding: 48px 36px; border-radius: 24px; box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; gap: 24px; position: relative; transition: var(--transition); }
.price-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-6px); box-shadow: 0 20px 45px -10px var(--accent-glow); }
.price-card.featured { border-color: var(--accent-primary); box-shadow: 0 20px 45px -10px var(--accent-glow); }
.badge { position: absolute; top: -14px; right: 32px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.price-card h3 { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.price { font-size: 3rem; font-weight: 800; color: var(--text); display: flex; align-items: baseline; gap: 6px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.features-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 0.95rem; color: var(--muted); }
.features-list li { display: flex; align-items: center; gap: 12px; }
.features-list li::before { content: "✓"; color: var(--accent-primary); font-weight: 700; font-size: 1.1rem; }

.footer { background: var(--card-solid); border-top: 1px solid var(--border); margin-top: 140px; padding: 70px 0 35px; transition: var(--transition); }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.025em; }
.footer-logo span { background: linear-gradient(135deg, #a78bfa, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 300px; margin: 0; }
.footer-title { font-size: 0.95rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 24px 20px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.8rem; }

/* ==========================================================================
   6. SLIDERS (RANGE) E CONTROLES CUSTOMIZADOS
   ========================================================================== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  margin: 8px 0;
  accent-color: var(--accent-primary);
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--accent-primary) !important;
  margin-top: -5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--accent-primary) !important;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   7. SLICER & BOTÕES ESPECÍFICOS DO PLAYER
   ========================================================================== */
.video-preview-box {
  width: 100%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slicer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  background: var(--input-bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.range-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.range-group label span {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}
.time-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.time-input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.time-input-field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.time-input-field input {
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  transition: var(--transition);
}
.time-input-field input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ==========================================================================
   8. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 960px) {
  .tech-showcase { grid-template-columns: 1fr; padding: 40px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-solid);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  .nav-menu.active { display: flex; }
  .hamburger { display: flex; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 12px;
    margin-top: 6px;
  }
  .hero h1, .pricing-hero h1 { font-size: 2.25rem; }
  .brand-area h1, header h1 { font-size: 1.65rem; }
  body:has(.footer) .main-wrapper { gap: 40px; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  div[style*="grid-template-columns: repeat(12, 1fr)"] > .card {
    grid-column: span 12 !important;
  }
}

:root {
  --primary: var(--accent-primary);
}

#btnPlay, 
#maskPlayBtn, 
#modalPlayBtn {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border: none !important;
}

.clip-preview:hover .play-overlay {
  opacity: 1 !important;
}

.player-hud {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.player-hud input[type="range"] {
  padding: 0 !important;
  height: 6px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.player-hud button {
  flex-shrink: 0;
  width: auto;
  box-sizing: border-box;
  margin: 0 !important;
}

.player-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.player-modal-actions button {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#modalDownload {
  background: var(--primary);
  color: #fff;
  border: none;
}

#modalDownload:hover {
  opacity: 0.9;
}

#modalClose {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

#modalClose:hover {
  background: var(--border);
}

#maskCloseBtn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  margin: 0;
}

#maskCloseBtn:hover {
  background: var(--border);
}

#modalClose, #maskCloseBtn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#modalClose:hover, #maskCloseBtn:hover {
  background: var(--border);
}

/* ==========================================================================
   SUPORTE E DESTAQUES NA PÁGINA DE FERRAMENTAS (Cutter e BeatSync)
   ========================================================================== */
.tools-wrapper {
  max-width: 1100px !important;
}

.tools-header {
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tools-brand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.tools-brand-area h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tools-brand-area .sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.feature-card.highlight-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
}

.feature-card.cutter-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-color: #3b82f6;
}

.feature-card.cutter-highlight::before {
  content: 'MAIS USADO';
  position: absolute;
  top: 20px;
  right: 24px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.feature-card.beatsync-highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-color: var(--accent-primary);
}

.feature-card.beatsync-highlight::before {
  content: 'NOVO / DESTAQUE';
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   ELEMENTOS VFX, STATUS BAR E PROGRESS (BeatSync / Efeitos)
   ========================================================================== */
.vfx-flash-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: #fff; 
  opacity: 0; 
  pointer-events: none; 
  z-index: 30; 
}

@keyframes vfx-flash { 
  0% { opacity: 1; } 
  100% { opacity: 0; } 
}

.vfx-flash-active { 
  animation: vfx-flash 0.12s ease-out forwards; 
}

.status-bar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 12px 16px; 
  background: rgba(0,0,0,0.2); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 0.9rem; 
  margin-bottom: 12px; 
}

.bpm-badge { 
  background: var(--success); 
  color: #000; 
  padding: 4px 10px; 
  border-radius: 20px; 
  font-weight: 700; 
  font-size: 0.85rem; 
}

[data-theme="dark"] .bpm-badge { 
  color: #fff !important; 
}

.progress-container { 
  margin-bottom: 12px; 
}

.progress-label { 
  font-size: 0.8rem; 
  font-weight: 600; 
  color: var(--muted); 
  margin-bottom: 4px; 
  display: block; 
  text-transform: uppercase; 
}

button:disabled, input[type=range]:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  pointer-events: none; 
}

/* ==========================================================================
   ESTILOS DE LOTE E PREVIEW (Mask / Grelhas / Clips)
   ========================================================================== */
.batch-preview:hover .play-overlay { 
  opacity: 1 !important; 
}

.clip-preview:hover .play-overlay { 
  opacity: 1 !important; 
}

.batch-fill { 
  background: var(--primary) !important; 
}

input[type="range"] { 
  accent-color: var(--primary) !important; 
}