/* ==========================================================================
   ETIQUETAFLOW - DESIGN SYSTEM & ESTILOS GLOBAIS
   Tema: Windows 11 Fluent Dark / Slate & Emerald Accent
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-input: #151f30;
  
  --border-subtle: #334155;
  --border-active: #38bdf8;
  --border-card: rgba(255, 255, 255, 0.08);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-invert: #090d16;

  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-blue: #0284c7;
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #10b981, #0284c7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text .badge-pro {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-pill.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-pill.primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   HERO & BARRA DE BUSCA
   ========================================================================== */
.hero-section {
  padding: 48px 24px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #38bdf8, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Barra de Busca de Alta Performance */
.search-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  width: 100%;
  height: 56px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0 54px 0 52px;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.search-box:focus {
  border-color: #38bdf8;
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), var(--shadow-md);
}

.search-icon-left {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ==========================================================================
   FILTROS POR CATEGORIA (TABS)
   ========================================================================== */
.categories-bar {
  max-width: 1400px;
  margin: 24px auto 16px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.category-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.category-tab .count {
  font-size: 0.75rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   GRADE DE MARKETPLACES
   ========================================================================== */
.marketplaces-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 60px;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.grid-marketplaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .grid-marketplaces {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-marketplaces {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid-marketplaces {
    grid-template-columns: 1fr;
  }
}

.marketplace-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.marketplace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, #38bdf8);
  opacity: 0.8;
  transition: width var(--transition-fast);
}

.marketplace-card:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.marketplace-card:hover::before {
  width: 6px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon-brand {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--card-accent, #ffffff);
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast);
}

.card-icon-brand img,
.card-icon-brand svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  display: block;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-body p.pain-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-tag-pill {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.card-action-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.marketplace-card:hover .card-action-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* ==========================================================================
   WORKSPACE EMBUTIDO (CONVERSOR UNIVERSAL DIRETO NA PÁGINA)
   ========================================================================== */
.embedded-workspace-container {
  max-width: 1400px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.embedded-workspace-card {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(2, 132, 199, 0.12);
  transition: all var(--transition-normal);
}

.embedded-workspace-card.active-focus-glow {
  border-color: #38bdf8;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45), 0 16px 36px rgba(0, 0, 0, 0.7);
  animation: workspacePulse 1.4s ease-in-out;
}

@keyframes workspacePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.006); }
  100% { transform: scale(1); }
}

.workspace-header {
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MODAL DE CONVERSÃO (LEGADO / OVERLAY)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay[style*="display: none"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-accent, var(--card-accent, #ffffff));
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-avatar img,
.brand-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  display: block;
}

.modal-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-title p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: #ef4444;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow-y: auto;
}

/* Coluna da Esquerda: Controles */
.workspace-controls {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Área de Dropzone */
.dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #38bdf8;
}

.dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Configurações de Formato */
.control-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.format-btn {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.format-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.format-btn.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-primary);
}

.format-btn span.badge-sub {
  font-size: 0.7rem;
  color: #10b981;
}

/* Toggles e Switches */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.switch-label {
  display: flex;
  flex-direction: column;
}

.switch-label strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.switch-label span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.switch-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Coluna da Direita: Preview */
.workspace-preview {
  padding: 24px;
  background: #090d16;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.preview-box {
  flex: 1;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.label-canvas-mock {
  background: white;
  color: black;
  width: 280px;
  height: 420px;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

/* Rodapé do Modal com Botão de Ação */
.modal-footer {
  padding: 16px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.limit-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.limit-counter strong {
  color: #10b981;
}

.actions-group {
  display: flex;
  gap: 12px;
}

.btn-action {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all var(--transition-fast);
}

.btn-action.download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-action.download:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

.btn-action.sample {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-action.sample:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   MODAL DE MONETIZAÇÃO PIX
   ========================================================================== */
.pix-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pix-icon-top {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.pix-qr-frame {
  width: 180px;
  height: 180px;
  margin: 20px auto;
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.pix-key-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   SELETOR DE IDIOMAS
   ========================================================================== */
.lang-selector {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

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

.lang-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* ==========================================================================
   COMO FUNCIONA (3 PASSOS)
   ========================================================================== */
.steps-section {
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 0 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ ACCORDION (SEO GOOGLE)
   ========================================================================== */
.faq-section {
  max-width: 1000px;
  margin: 50px auto 60px;
  padding: 0 24px;
}

.faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.faq-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.faq-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question .faq-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: #38bdf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
  }
  .workspace-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .header-actions .btn-pill:not(.primary):not(#btnOpenLicenseLogin) {
    display: none;
  }
  #btnOpenLicenseLogin {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   SELETOR DE IDIOMAS COM BANDEIRINHA E ENGRENAGEM (15 IDIOMAS)
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-lang-trigger:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.05em;
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.75rem;
}

.lang-gear {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-lang-trigger:hover .lang-gear {
  transform: rotate(45deg);
  opacity: 1;
}

/* Menu Popover */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 12px;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.15s ease-out;
}

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

.lang-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-auto-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

.lang-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.lang-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-option-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
}

.lang-option-item.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.lang-opt-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-opt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lang-opt-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
}

.lang-opt-region {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.lang-opt-check {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  color: #10b981;
}

.lang-option-item.active .lang-opt-check {
  opacity: 1;
}

/* Card Especial do Conversor Universal */
.marketplace-card.universal-card {
  border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
  background: linear-gradient(145deg, rgba(2, 132, 199, 0.1), rgba(16, 185, 129, 0.06), var(--bg-card)) !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.18) !important;
}

.marketplace-card.universal-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-4px) scale(1.01);
}

