/* ===== VARIÁVEIS DE CORES ===== */
:root {
  /* Tema Claro */
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-light: #0f766e;
  
  --color-bg-light: #f0f9ff;
  --color-bg-lighter: #e0f2fe;
  --color-bg-white: #ffffff;
  
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-light: #94a3b8;
  
  --color-border: #cbd5e1;
  --color-border-light: #e2e8f0;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Espaçamento */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Raio de Borda */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Transições */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;

  /* Background do body (tema claro) */
  --body-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  --body-color: #1e293b;
  --header-bg: #ffffff;
}

/* ===== TEMA ESCURO ===== */
body.theme-dark {
  --color-bg-light: #0f172a;
  --color-bg-lighter: #1e293b;
  --color-bg-white: #1e293b;
  
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-light: #64748b;
  
  --color-border: #334155;
  --color-border-light: #475569;

  /* Background e cor do body no tema escuro */
  --body-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --body-color: #f1f5f9;
  --header-bg: #1e293b;

  background: var(--body-bg);
  color: var(--body-color);
}

/* ===== ESTILOS BASE ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--body-bg);
  color: var(--body-color);
  line-height: 1.5;
  transition: background var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT DO APP ===== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
}

/* ===== BARRA DE NAVEGAÇÃO ===== */
.app-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  flex-wrap: nowrap;
}

.navbar-toggle {
  display: none;
  order: 1;
  margin-right: 15px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  flex-shrink: 0;
  order: 2;
}

.logo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #1e293b;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  order: 3;
}

.navbar-brand {
  position: relative;
  /* padding-right removed to remove space from the line */
  order: 2;
}

.navbar-brand::after {
  display: none;
}

.navbar-nav {
  display: flex;
  gap: var(--spacing-lg);
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0ea5e9;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #0ea5e9;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: var(--spacing-lg);
  flex-wrap: nowrap;
  flex-shrink: 0;
  order: 4;
}

/* ===== BOTÕES ===== */
.btn-primary,
.btn-secondary,
.btn-google,
.btn-icon {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #e0f2fe;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-google {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.btn-google:hover {
  background: #e0f2fe;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

/* Google Sign-In Button - Estilo oficial do Google */
.google-signin-btn {
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #3c4043;
  cursor: pointer;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
}

.google-signin-btn:hover {
  background-color: #f8f9fa;
  border-color: #d2d4d8;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.15);
}

.google-signin-btn:active {
  background-color: #f1f3f4;
  border-color: #d2d4d8;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
}

.google-signin-btn:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.google-signin-btn .google-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.google-signin-btn span {
  color: #3c4043;
  font-weight: 500;
}

/* Tema escuro para botão do Google */
body.theme-dark .google-signin-btn {
  background-color: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

body.theme-dark .google-signin-btn span {
  color: #f1f5f9;
}

body.theme-dark .google-signin-btn:hover {
  background-color: #334155;
  border-color: #64748b;
}

/* Botão Voltar */
.btn-voltar {
  width: 100%;
  height: 44px;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 0 16px;
  margin-top: 24px;
  transition: background-color 0.2s;
}

.btn-voltar:hover {
  background-color: #cbd5e1;
}

.btn-voltar:active {
  background-color: #b8c4d0;
}

.btn-voltar:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.3);
}

/* Tema escuro para botões */
body.theme-dark .btn-voltar {
  background-color: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

body.theme-dark .btn-voltar:hover {
  background-color: #475569;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  background: transparent;
  border: none;
  padding: 8px;
  font-size: 1.2rem;
}

.access-menu .btn-icon {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0ea5e9;
}

/* ===== ACESSIBILIDADE ===== */
.access-menu {
  position: fixed;
  top: 96px;
  right: 16px;
  z-index: 120;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.access-menu-toggle,
.access-btn {
  padding: 6px 12px;
  background: #ffffff;
  color: #0ea5e9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

#btn-theme-toggle {
  font-size: 1rem;
  padding: 3px 10px;
}

.access-menu-toggle:hover,
.access-menu-toggle:focus-visible,
.access-btn:hover,
.access-btn:focus-visible {
  border-color: #0ea5e9;
  background: #0ea5e9;
  color: white;
  outline: none;
}

.access-panel {
  position: fixed;
  top: 140px;
  right: 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-width: 200px;
}

.access-panel[hidden] {
  display: none;
}

.access-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.access-status {
  font-size: 0.8rem;
  color: #64748b;
  padding-top: var(--spacing-sm);
  border-top: 1px solid #cbd5e1;
}

/* ===== FORMULÁRIOS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #ffffff;
  color: #1e293b;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== CARDS E CONTAINERS ===== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== PÁGINAS ===== */

/* Autenticação */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: var(--spacing-lg);
}

.auth-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  margin: 0 0 var(--spacing-lg) 0;
  color: #1e293b;
  text-align: center;
}

.divider {
  text-align: center;
  margin: var(--spacing-lg) 0;
  color: #64748b;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #cbd5e1;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.auth-link {
  text-align: center;
  margin-top: var(--spacing-md);
  color: #64748b;
  font-size: 0.9rem;
}

.auth-link a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Página Inicial */
.home-container {
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.hero-section {
  text-align: center;
  padding: calc(var(--spacing-2xl) + 80px) 0 var(--spacing-2xl);
  margin-bottom: 0;
}

/* ===== SEÇÃO DE PLANOS NA HERO ===== */
.hero-plans-section {
  padding: 32px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--body-bg, #f8fafc) 100%);
}

.hero-content h2 {
  font-size: 2.5rem;
  margin: 0 0 var(--spacing-md) 0;
  color: #1e293b;
}

.hero-content p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Planos de Assinatura */
.subscription-container {
  padding: var(--spacing-2xl) var(--spacing-lg);
  max-width: 1600px;
  margin: 0 auto;
}

.subscription-cta {
  text-align: center;
  padding: var(--spacing-2xl);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: var(--radius-lg);
  color: white;
}

.subscription-cta h3 {
  margin: 0 0 var(--spacing-lg) 0;
}

.plans-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.plans-header h1 {
  margin: 0 0 var(--spacing-sm);
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.plans-header p {
  margin: 0;
  color: #475569;
  font-size: 1.1rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  padding: var(--spacing-xl);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.plan-card-pro {
  /* Sem destaque permanente - aplicado apenas no hover */
}

.plan-card:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
  transform: translateY(-8px);
}

.plan-badge,
.plan-badge-basic,
.plan-badge-anual {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  right: auto;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-badge,
.plan-badge-basic,
.plan-badge-anual {
  background: #0ea5e9;
  color: white;
}

.plan-card h3 {
  margin: 0 0 var(--spacing-lg);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
}

.plan-pricing {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.plan-pricing-header {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.plan-pricing .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0ea5e9;
}

.plan-pricing .original-price {
  font-size: 1.1rem;
  color: #64748b;
  text-decoration: line-through;
}

.plan-pricing .discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-pricing .duration {
  font-size: 0.95rem;
  color: #64748b;
  width: 100%;
}

.btn-free,
.btn-pro,
.btn-anual {
  width: 100%;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-free,
.btn-pro,
.btn-anual {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.btn-free:hover,
.btn-pro:hover,
.btn-anual:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.plan-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs);
  flex: 1;
  align-content: start;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.feature-item.included {
  color: #475569;
}

.feature-item.included:hover {
  background: rgba(14, 165, 233, 0.05);
}

.feature-item.excluded {
  color: #64748b;
  opacity: 0.6;
}

.feature-item.excluded:hover {
  background: rgba(148, 163, 184, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
}

.feature-item.included .feature-icon {
  color: #0ea5e9;
}

.feature-item.excluded .feature-icon {
  color: #64748b;
}

.feature-name {
  word-break: break-word;
  line-height: 1.4;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0ea5e9;
  margin: var(--spacing-md) 0;
}

.period {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* ===== Página de Pagamento ===== */
.payment-container {
  max-width: 600px;
  margin: 0 auto;
}

.payment-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.payment-header h2 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.5rem;
  color: #1e293b;
}

.payment-header p {
  margin: 0 0 var(--spacing-md);
  color: #475569;
}

.payment-amount {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.payment-amount span {
  color: #475569;
}

.payment-amount strong {
  color: #0ea5e9;
  font-size: 1.5rem;
}

.payment-period {
  font-size: 0.9rem;
  color: #64748b;
}

.payment-methods {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.payment-option {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.payment-option:hover {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 100%);
}

.payment-option.selected {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}

.payment-icon {
  width: 32px;
  height: 32px;
  color: #0ea5e9;
  flex-shrink: 0;
}

.payment-option h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.payment-option p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* Escaneamento */
.scan-container,
.recovery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: var(--spacing-lg);
}

.scan-card,
.recovery-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
}

.scan-card h2,
.recovery-card h2 {
  margin-top: 0;
  color: #1e293b;
}

/* Cartões de Dispositivos */
.devices-list,
.file-types-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.device-card:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
}

.device-card:active {
  transform: translateX(2px);
}

.device-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-info {
  flex: 1;
  min-width: 0;
}

.device-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.device-capacity {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.device-arrow {
  flex-shrink: 0;
  color: #64748b;
  display: flex;
  align-items: center;
}

.device-card:hover .device-arrow {
  color: #0ea5e9;
}

.loading-devices {
  text-align: center;
  padding: 40px 20px;
  color: #475569;
}

.spinner-small {
  border: 3px solid #cbd5e1;
  border-top: 3px solid #0ea5e9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

/* Tema escuro para device cards */
body.theme-dark .device-card {
  background: #1e293b;
  border-color: #475569;
}

body.theme-dark .device-card:hover {
  background: #334155;
  border-color: #0ea5e9;
}

.recovery-info {
  background: #f0f9ff;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  font-size: 0.9rem;
  color: #475569;
}

.recovery-info p {
  margin: var(--spacing-sm) 0;
  line-height: 1.6;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--spacing-lg) 0;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #e2e8f0;
}

.results-count {
  font-size: 0.9rem;
  color: #475569;
}

.results-list {
  max-height: 400px;
  overflow-y: auto;
  margin: var(--spacing-lg) 0;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.result-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.result-item:hover:not(.disabled) {
  background-color: #f0f9ff;
}

.result-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.02);
}

.result-item:last-child {
  border-bottom: none;
}

.file-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0ea5e9;
}

.result-item.disabled .file-checkbox {
  cursor: not-allowed;
}

.file-icon {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  margin: 0;
  font-weight: 500;
  color: #1e293b;
  word-break: break-word;
}

.file-size {
  margin: var(--spacing-xs) 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.blocked-reason {
  margin: var(--spacing-xs) 0 0 0;
  font-size: 0.85rem;
  color: var(--color-danger);
  font-weight: 500;
}

/* Progresso */
.progress-section {
  margin: var(--spacing-lg) 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
  width: 0%;
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.progress-text {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.files-list {
  margin: var(--spacing-lg) 0;
  max-height: 400px;
  overflow-y: auto;
}

.recovery-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.recovery-actions button {
  flex: 1;
}

/* Rodapé */
.app-footer {
  background: #2d2d3a;
  color: #9ca3af;
  margin-top: auto;
  flex-shrink: 0;
  padding: var(--spacing-xl) var(--spacing-md);
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.footer-copyright {
  margin-bottom: var(--spacing-md);
}

.footer-copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0 var(--spacing-xs);
}

.footer-links a:hover {
  color: #0ea5e9;
}

.footer-links .separator {
  color: #6b7280;
  user-select: none;
}

/* Pagamento: confirmação, carregamento e erro */
.loading-container,
.error-container,
.success-container {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.loading-container h2,
.error-container h2,
.success-container h2 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.4rem;
}

.loading-container p,
.error-container p,
.success-container p {
  margin: 0 0 var(--spacing-md);
  color: #475569;
  font-size: 0.95rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--spacing-md);
}

.success-details {
  font-size: 0.9rem;
  color: #64748b;
}

/* Caixa de download pós-pagamento */
.success-download-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0 8px;
  text-align: left;
  flex-wrap: wrap;
}

.success-download-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.success-download-info {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.success-download-info strong {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.success-download-info span {
  font-size: 0.82rem;
  color: #64748b;
}

.success-download-btn {
  padding: 11px 22px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}

.success-download-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

body.theme-dark .success-download-box {
  background: linear-gradient(135deg, #0f2233 0%, #0c1c2c 100%);
  border-color: #0ea5e9;
}

body.theme-dark .success-download-info strong {
  color: #e2e8f0;
}

body.theme-dark .success-container {
  background: #1e293b;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--spacing-md);
  border: 4px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Janela Modal */
.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  padding: 0;
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  overflow-y: auto;
  margin: 0;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal-content {
  padding: var(--spacing-xl);
  padding-right: calc(var(--spacing-xl) + 20px);
  position: relative;
  max-width: 100%;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1e293b;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #0ea5e9;
}

/* Notificações */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification {
  animation: slideIn var(--transition-normal);
}

/* ===== ACESSIBILIDADE - ALTO CONTRASTE ===== */
body.high-contrast {
  --color-border: #000;
  --color-text-primary: #000;
  --color-text-secondary: #000;
  --color-bg-white: #fff;
}

body.theme-dark.high-contrast {
  --color-border: #fff;
  --color-text-primary: #fff;
  --color-text-secondary: #fff;
  --color-bg-white: #000;
  --color-primary: #fff;
}

/* ===== ACESSIBILIDADE - LEITURA AO PASSAR ===== */
body.hover-read *:hover {
  outline: 2px dashed var(--color-primary) !important;
  cursor: pointer !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .container,
  .home-container,
  .subscription-container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .logo-image {
    width: 54px;
    height: 54px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu.active {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
  }

  .navbar-menu.active .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: var(--spacing-md);
  }

  .navbar-menu.active .navbar-nav .nav-link {
    padding: var(--spacing-sm) 0;
  }

    .navbar-actions {
      flex-direction: row;
      width: auto;
      gap: var(--spacing-sm);
    }  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons button {
    width: 100%;
  }

    .access-menu {
      top: 96px;
      bottom: auto;
      right: 16px;
    }

    .access-panel {
      top: 140px;
      bottom: auto;
      right: 16px;
    }  .recovery-actions {
    flex-direction: column;
  }

  .recovery-actions button {
    width: 100%;
  }

  .plan-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .navbar-container {
    padding: 0 var(--spacing-md);
  }

  .navbar-nav {
    gap: var(--spacing-md);
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .navbar-actions {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    height: 56px;
    padding: 0 var(--spacing-md);
  }

  .logo-image {
    width: 44px;
    height: 44px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-subtitle {
    display: none;
  }

  .auth-card {
    padding: var(--spacing-lg);
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .subscription-cta {
    padding: var(--spacing-lg);
  }

  .plan-card {
    padding: var(--spacing-md);
  }

    .plan-card h3 {
      margin-top: 2.5rem;
      text-align: center;
    }

  .footer-links {
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .footer-links a,
  .footer-links .separator {
    padding: 0 4px;
  }

  .modal-dialog {
    width: 95%;
    max-width: 95vw;
    max-height: 90vh;
  }

  .modal-content {
    padding: var(--spacing-lg);
  }

  .devices-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .device-card {
    padding: var(--spacing-md);
    min-height: auto;
  }

  .device-icon {
    font-size: 2.5rem;
  }

  .device-icon i {
    font-size: 2.5rem;
  }

  .use-case-icon i {
    font-size: 2.5rem;
  }

  .step-icon i {
    font-size: 2.2rem;
  }

  .support-icon i {
    font-size: 2.2rem;
  }

  #modal-body {
    max-height: calc(90vh - 80px);
  }

  .modal-dialog h2 {
    font-size: 1.3rem;
    padding-right: var(--spacing-xl);
  }

  .modal-dialog h3 {
    font-size: 1rem;
  }

  .modal-dialog p,
  .modal-dialog li {
    font-size: 0.9rem;
  }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.plan-card {
  animation: fadeIn var(--transition-normal);
}

.modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: #000000 !important;
  transition: color var(--transition-fast);
  padding: 0;
  line-height: 1;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ff0000 !important;
}

.modal-dialog h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  color: #1e293b;
}

.modal-dialog h1 {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  color: #1e293b;
  font-size: 1.3rem;
  padding-right: var(--spacing-xl);
}

.modal-dialog h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: #1e293b;
  font-size: 1.1rem;
}

.modal-dialog p {
  margin-bottom: var(--spacing-md);
  color: #1e293b !important;
  line-height: 1.6;
}

.modal-dialog strong {
  color: #1e293b !important;
  font-weight: 600;
}

.modal-dialog ul {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.modal-dialog li {
  margin-bottom: var(--spacing-xs);
  color: #1e293b !important;
  line-height: 1.6;
}

.modal-dialog a {
  color: #0ea5e9;
  text-decoration: underline;
}

.modal-dialog a:hover {
  color: #0284c7;
}

/* Scroll suave dentro do modal */
#modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 100px);
  padding-right: var(--spacing-sm);
}

#modal-body::-webkit-scrollbar {
  width: 8px;
}

#modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-dialog li {
  margin-bottom: var(--spacing-sm);
  color: #1e293b !important;
  line-height: 1.6;
}

/* Centralização do Container de Autenticação */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--spacing-xl);
}

.auth-card {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.auth-card h2 {
  margin-bottom: var(--spacing-lg);
}

.auth-card p {
  margin-bottom: var(--spacing-xl);
  color: #475569;
}

.auth-card button {
  width: 100%;
}

/* Posição do container do assistente */
.wizard-container {
  position: relative;
}

/* Estilos da página de upgrade */
.upgrade-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 30px 20px;
}

.upgrade-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.upgrade-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 10px 0;
}

.upgrade-price {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  text-align: center;
  margin: 0 0 25px 0;
}

.upgrade-features {
  margin-bottom: 20px;
}

.features-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 15px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.feature-item-upgrade {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-check {
  flex-shrink: 0;
}

.feature-item-upgrade span {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.btn-full {
  width: 100%;
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .upgrade-card {
    padding: 20px 15px;
  }
  
  .upgrade-title {
    font-size: 22px;
  }
  
  .upgrade-price {
    font-size: 16px;
  }
}
/* ===== SEÇÃO DE DOWNLOAD ===== */
.download-section {
  margin: 40px 0;
  padding: 20px;
}

.download-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 2px solid #0ea5e9;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.download-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.download-card h3 {
  color: #0ea5e9;
  font-size: 1.75rem;
  margin: 0 0 var(--spacing-md) 0;
  font-weight: 700;
}

.download-card p {
  color: #475569;
  font-size: 1.1rem;
  margin: 0 0 var(--spacing-xl) 0;
  line-height: 1.6;
}

.btn-download {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.5);
}

.btn-download:active {
  transform: translateY(-1px);
}

.btn-download svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .download-card {
    padding: var(--spacing-lg);
  }
  
  .download-card h3 {
    font-size: 1.5rem;
  }
  
  .download-card p {
    font-size: 1rem;
  }
  
  .btn-download {
    width: 100%;
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* ===== SEÇÕES DA PÁGINA INICIAL ===== */
.btn-large {
  padding: 16px 40px !important;
  font-size: 1.1rem !important;
  min-width: 220px;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Seção de Casos de Uso */
.use-cases-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: #e0f2fe;
  margin: var(--spacing-2xl) 0;
  border-radius: var(--radius-lg);
}

.use-cases-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.use-case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #0ea5e9;
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: #0ea5e9;
}

.use-case-icon i {
  font-size: 3rem;
  color: #0ea5e9;
}

.use-case-card h4 {
  color: #1e293b;
  font-size: 1.2rem;
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: 600;
}

.use-case-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Seção Como Funciona */
.how-it-works-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.how-it-works-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

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

.step-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 2px solid #0ea5e9;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card h4 {
  color: #1e293b;
  font-size: 1.3rem;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-weight: 600;
}

.step-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.step-icon {
  font-size: 2.5rem;
  margin-top: var(--spacing-md);
  color: #0ea5e9;
}

.step-icon i {
  font-size: 2.5rem;
  color: #0ea5e9;
}

/* Seção de Dispositivos Suportados */
.devices-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.devices-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.device-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 280px;
}

.device-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #0ea5e9;
}

.device-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  display: block;
  flex-shrink: 0;
  color: #0ea5e9;
}

.device-icon i {
  font-size: 3.5rem;
  color: #0ea5e9;
}

.device-card h4 {
  margin: var(--spacing-md) 0;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.device-card p {
  color: #475569;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Seção de Depoimentos */
.testimonials-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: #e0f2fe;
  margin: var(--spacing-2xl) 0;
  border-radius: var(--radius-lg);
}

.testimonials-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
}

  .testimonial-card {
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Garante tamanho mínimo padronizado */
    flex: 1 1 300px; /* Permite crescer mas mantém base */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
  }

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stars {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  display: block;
  color: #f59e0b;
}

.testimonial-text {
  color: #1e293b;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 var(--spacing-md) 0;
  font-size: 0.95rem;
}

.testimonial-author {
  color: #475569;
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
}

/* Seção de Confiança */
.trust-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
  margin: var(--spacing-2xl) 0;
  border-radius: var(--radius-lg);
  border: 2px solid #0ea5e9;
}

.trust-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  color: #475569;
  font-weight: 600;
  font-size: 1rem;
}

/* Seção de Suporte */
.support-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: #e0f2fe;
  margin: var(--spacing-2xl) 0;
  border-radius: var(--radius-lg);
}

.support-section h3 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.support-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #0ea5e9;
}

.support-icon {
  font-size: 2.5rem;
  color: #0ea5e9;
}

.support-icon i {
  font-size: 2.5rem;
  color: #0ea5e9;
}

.support-card h4 {
  color: #1e293b;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.support-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.support-card .btn-secondary {
  width: 100%;
  margin-top: auto;
}

/* Comportamento de rolagem suave para navegação por âncoras */
html {
  scroll-behavior: smooth;
}

/* Estilo do link de navegação ativo */
.nav-link {
  position: relative;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: color var(--transition-fast);
  padding: 4px 2px;
}

.nav-link:hover {
  color: #0ea5e9;
}

.nav-link.active {
  color: #0ea5e9;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar-brand {
    padding-right: 0;
  }

  .navbar-brand::after {
    display: none;
  }

  .navbar-menu {
    justify-content: flex-end;
  }

  .navbar-nav {
    justify-content: flex-start;
  }

  .navbar-actions {
    margin-left: 0;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
  
  .support-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .support-section h3 {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .nav-link {
    padding: var(--spacing-sm) 0;
  }
  
  .nav-link::after {
    bottom: -2px;
  }
}

/* Seção de Chamada para Ação */
.cta-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
}

.cta-section h3 {
  font-size: 2rem;
  color: #1e293b;
  margin: 0 0 var(--spacing-md) 0;
  font-weight: 700;
}

.cta-section p {
  color: #475569;
  font-size: 1.1rem;
  margin: 0 0 var(--spacing-xl) 0;
}

@media (max-width: 768px) {
  .use-cases-grid,
  .steps-grid,
  .testimonials-grid,
  .trust-stats {
    grid-template-columns: 1fr;
  }
  
  .use-cases-section,
  .how-it-works-section,
  .testimonials-section,
  .trust-section,
  .cta-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .use-cases-section h3,
  .how-it-works-section h3,
  .testimonials-section h3,
  .trust-section h3,
  .cta-section h3 {
    font-size: 1.5rem;
  }
  
  .btn-large {
    width: 100%;
    min-width: auto;
  }
  
  .step-card {
    padding: var(--spacing-lg);
  }

  .step-icon i {
    font-size: 2.2rem;
  }

  .use-case-icon i {
    font-size: 2.2rem;
  }
  
  .device-card {
    padding: var(--spacing-lg);
    min-height: 240px;
  }
  
  .devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .device-icon {
    font-size: 3rem;
  }

  .device-icon i {
    font-size: 3rem;
  }

  .support-icon i {
    font-size: 2.2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ================================================================
   TEMA ESCURO — Overrides para cards e seções da home
   ================================================================ */

/* Seções com fundo claro fixo */
body.theme-dark .use-cases-section,
body.theme-dark .testimonials-section,
body.theme-dark .support-section {
  background: #1e293b;
}

body.theme-dark .trust-section {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(2, 132, 199, 0.04) 100%);
  border-color: #0ea5e9;
}

body.theme-dark .cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-dark .how-it-works-section,
body.theme-dark .devices-section {
  background: transparent;
}

/* Headings de seção */
body.theme-dark .use-cases-section h3,
body.theme-dark .how-it-works-section h3,
body.theme-dark .devices-section h3,
body.theme-dark .testimonials-section h3,
body.theme-dark .trust-section h3,
body.theme-dark .support-section h3,
body.theme-dark .cta-section h3 {
  color: #f1f5f9;
}

body.theme-dark .cta-section p {
  color: #cbd5e1;
}

/* Cards: use-case */
body.theme-dark .use-case-card {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .use-case-card:hover {
  background: #273549;
  border-color: #0ea5e9;
}

body.theme-dark .use-case-card h4 {
  color: #f1f5f9;
}

body.theme-dark .use-case-card p {
  color: #94a3b8;
}

/* Cards: steps (como funciona) */
body.theme-dark .step-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.12) 100%);
  border-color: #0ea5e9;
}

body.theme-dark .step-card h4 {
  color: #f1f5f9;
}

body.theme-dark .step-card p {
  color: #94a3b8;
}

/* Cards: dispositivos */
body.theme-dark .device-card {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .device-card:hover {
  background: #273549;
  border-color: #0ea5e9;
}

body.theme-dark .device-card h4 {
  color: #f1f5f9;
}

body.theme-dark .device-card p {
  color: #94a3b8;
}

/* Cards: depoimentos */
  body.theme-dark .testimonial-card {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .testimonial-card:hover {
  background: #273549;
}

body.theme-dark .testimonial-text {
  color: #cbd5e1;
}

body.theme-dark .testimonial-author {
  color: #94a3b8;
}

/* Seção de estatísticas */
body.theme-dark .stat-label {
  color: #cbd5e1;
}

/* Cards: suporte */
body.theme-dark .support-card {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .support-card:hover {
  background: #273549;
  border-color: #0ea5e9;
}

body.theme-dark .support-card h4 {
  color: #f1f5f9;
}

body.theme-dark .support-card p {
  color: #94a3b8;
}

body.theme-dark .support-card .btn-secondary {
  background: #334155;
  color: #e2e8f0;
  border-color: #475569;
}

body.theme-dark .support-card .btn-secondary:hover {
  background: #475569;
  color: #f1f5f9;
}

/* Cards: planos */
body.theme-dark .plan-card {
  background: linear-gradient(135deg, #1a2741 0%, #1e293b 100%);
  border-color: #334155;
}

body.theme-dark .plan-card:hover {
  background: linear-gradient(135deg, #1e3050 0%, #243347 100%);
  border-color: #0ea5e9;
}

body.theme-dark .plan-card h3 {
  color: #f1f5f9;
}

body.theme-dark .plan-pricing .duration,
body.theme-dark .plan-pricing .original-price {
  color: #94a3b8;
}

body.theme-dark .plan-pricing {
  border-color: #334155;
}

body.theme-dark .feature-item.included {
  color: #cbd5e1;
}

body.theme-dark .feature-item.excluded {
  color: #64748b;
}

body.theme-dark .plans-header h1 {
  color: #f1f5f9;
}

body.theme-dark .plans-header p {
  color: #94a3b8;
}

/* Hero */
body.theme-dark .hero-content h2 {
  color: #f1f5f9;
}

body.theme-dark .hero-content p {
  color: #cbd5e1;
}

/* Header no tema escuro */
body.theme-dark .app-header {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .navbar-menu.active {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .navbar-toggle span {
  background: #f1f5f9;
}

body.theme-dark .nav-link {
  color: #94a3b8;
}

body.theme-dark .nav-link:hover,
body.theme-dark .nav-link.active {
  color: #0ea5e9;
}

/* Formulários e inputs */
body.theme-dark input[type="text"],
body.theme-dark input[type="email"],
body.theme-dark input[type="password"],
body.theme-dark select,
body.theme-dark textarea {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #334155;
}

body.theme-dark label {
  color: #e2e8f0;
}

/* Auth card */
body.theme-dark .auth-card {
  background: #1e293b;
}

body.theme-dark .auth-card h2 {
  color: #f1f5f9;
}

body.theme-dark .auth-link {
  color: #94a3b8;
}

/* Cards genéricos */
body.theme-dark .card {
  background: #1e293b;
  border-color: #334155;
}

/* Scan/Recovery cards */
body.theme-dark .scan-card,
body.theme-dark .recovery-card {
  background: #1e293b;
}

body.theme-dark .scan-card h2,
body.theme-dark .recovery-card h2 {
  color: #f1f5f9;
}

/* Modal */
body.theme-dark .modal-dialog {
  background: #1e293b;
}

body.theme-dark .modal-dialog h2,
body.theme-dark .modal-dialog h3 {
  color: #f1f5f9 !important;
}

body.theme-dark .modal-dialog p,
body.theme-dark .modal-dialog li,
body.theme-dark .modal-dialog strong {
  color: #cbd5e1 !important;
}

body.theme-dark .modal-close {
  color: #f1f5f9 !important;
}

/* Acessibilidade */
body.theme-dark .access-menu-toggle,
body.theme-dark .access-btn {
  background: #1e293b;
  border-color: #475569;
}

body.theme-dark .access-panel {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .btn-secondary {
  background: #334155;
  color: #e2e8f0;
  border-color: #475569;
}

body.theme-dark .btn-secondary:hover {
  background: #475569;
  color: #f1f5f9;
}

/* ================================================================
   CHECKOUT PAGE - Estilo inspirado no EaseUS, cores Filesfy
   ================================================================ */

.checkout-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: inherit;
}

/* === BARRA DO PRODUTO (topo) === */
.checkout-product-bar {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 28px 18px;
  margin-bottom: 0;
}
.checkout-product-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.checkout-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
.checkout-product-icon svg {
  display: block;
}
.checkout-product-name {
  font-size: 1.05rem;
  color: var(--color-text-primary);
}
.checkout-product-period {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  margin-left: 4px;
}
/* Quantidade */
.checkout-product-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.checkout-qty-btn {
  width: 34px;
  height: 34px;
  background: var(--color-bg-lighter);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
}
.checkout-qty-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.checkout-qty-value {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  line-height: 34px;
}
/* Preços */
.checkout-product-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 100px;
}
.checkout-original-price {
  color: var(--color-text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.checkout-current-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Cupom */
.checkout-coupon-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
}
.checkout-coupon-link {
  color: var(--color-primary);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.checkout-coupon-link:hover {
  text-decoration: underline;
}
.checkout-coupon-input-area {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.checkout-coupon-apply-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--transition-fast);
}
.checkout-coupon-apply-btn:hover {
  background: var(--color-primary-dark);
}

/* Totais */
.checkout-totals {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--color-text-primary);
}
.checkout-totals-row strong {
  font-size: 1.15rem;
  color: var(--color-text-primary);
}
.checkout-tax-row {
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
}

/* === TABS DE PAGAMENTO === */
.checkout-payment-tabs {
  display: flex;
  gap: 0;
  margin-top: 24px;
  border-bottom: 2.5px solid var(--color-border-light);
}
.checkout-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--color-bg-lighter);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.checkout-tab.active {
  background: var(--color-bg-white);
  border-bottom: 3px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14,165,233,0.07);
}
.checkout-tab:hover:not(.active) {
  background: var(--color-bg-white);
  color: var(--color-primary);
}
.checkout-tab svg {
  flex-shrink: 0;
}

/* === FORMULÁRIO === */
.checkout-form-wrapper {
  background: var(--color-bg-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 22px;
  margin-bottom: 0;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checkout-field {
  margin-bottom: 14px;
}
.checkout-row {
  display: flex;
  gap: 12px;
}
.checkout-field-half {
  flex: 1 1 50%;
  min-width: 0;
}
.checkout-field-third {
  flex: 1 1 33%;
  min-width: 0;
}
.checkout-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  margin-bottom: 3px;
}
.checkout-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  outline: none;
  box-sizing: border-box;
  height: 46px;
  line-height: 1.4;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}
.checkout-input::placeholder {
  color: var(--color-text-light);
}
.checkout-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.checkout-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  height: 46px;
  line-height: 1.4;
  transition: border var(--transition-fast);
  appearance: auto;
}
.checkout-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

/* Seção do cartão */
.checkout-card-section {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1.5px solid var(--color-border-light);
}
.checkout-input-card {
  letter-spacing: 2px;
  font-size: 1.08rem;
}
.checkout-row-card {
  gap: 10px;
}
.checkout-cvv-wrap {
  position: relative;
}
.checkout-cvv-wrap .checkout-input {
  padding-right: 36px;
}

/* Seção PIX */
.checkout-pix-section {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1.5px solid var(--color-border-light);
}
.checkout-pix-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-text-primary);
}
.checkout-pix-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0 0 14px 0;
}
.checkout-pix-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.checkout-pix-option {
  cursor: pointer;
  display: block;
}
.checkout-pix-option input[type="radio"] {
  display: none;
}
.checkout-pix-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: border var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.checkout-pix-option input[type="radio"]:checked + .checkout-pix-option-content {
  border-color: var(--color-primary);
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10);
  font-weight: 600;
}
.checkout-pix-option-content:hover {
  border-color: var(--color-primary);
}
.checkout-pix-option-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.checkout-pix-info {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  margin: 10px 0 0 0;
  line-height: 1.5;
}
.checkout-cvv-help {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  cursor: help;
  background: var(--color-bg-lighter);
}

/* Checkboxes */
.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.checkout-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* Termos */
.checkout-terms-text {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  margin: 8px 0 18px 0;
  line-height: 1.5;
}
.checkout-terms-link {
  color: var(--color-primary);
  text-decoration: none;
}
.checkout-terms-link:hover {
  text-decoration: underline;
}

/* Botão Comprar */
.checkout-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}
.checkout-submit-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

/* Selos de segurança */
.checkout-security-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 22px;
  padding: 16px 0;
}
.checkout-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  line-height: 1.3;
}
.checkout-badge svg {
  flex-shrink: 0;
}

/* Voltar */
.checkout-back-row {
  text-align: center;
  margin-top: 12px;
}
.checkout-back-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: color var(--transition-fast);
}
.checkout-back-btn:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .checkout-product-bar,
  .checkout-form-wrapper {
    padding: 16px 14px;
  }
  .checkout-product-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .checkout-product-prices {
    align-items: flex-start;
  }
  .checkout-row {
    flex-direction: column;
    gap: 0;
  }
  .checkout-row-card {
    flex-direction: column;
    gap: 0;
  }
  .checkout-payment-tabs {
    flex-wrap: wrap;
  }
  .checkout-tab {
    font-size: 0.85rem;
    padding: 10px 6px;
  }
  .checkout-security-badges {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* MELHORIAS GERAIS DE RESPONSIVIDADE (DESKTOP E MOBILE) */
@media screen and (max-width: 992px) { .container, .home-container { width: 100%; max-width: 100%; padding: 0 15px; } .plans-grid, .features-grid, .use-cases-grid, .steps-grid { grid-template-columns: 1fr !important; gap: 20px; } .hero h1 { font-size: 2rem !important; } .hero p { font-size: 1.1rem !important; } .checkout-container { flex-direction: column !important; } .checkout-form-wrapper, .checkout-summary-wrapper { width: 100% !important; min-width: 100% !important; } }
@media screen and (max-width: 480px) { body { font-size: 14px; } .btn-primary:not(#login-btn), .btn-secondary:not(#logout-btn) { width: 100%; justify-content: center; } .modal-content { padding: 15px; width: 95%; margin: 10px; } .header-actions { flex-direction: column; align-items: stretch; width: 100%; } .navbar-nav { display: none; } /* Ocultar nav no celular e forçar menu hamburguer */ .navbar-menu.active { display: flex; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--header-bg); padding: 20px; border-bottom: 1px solid var(--color-border); } .navbar-menu.active .navbar-nav { display: flex; flex-direction: column; width: 100%; gap: 15px;} .navbar-actions { flex-direction: row; width: auto; } img { max-width: 100%; height: auto; } .checkout-pix-qrcode img { width: 200px !important; height: 200px !important; } }



/* Fix Navbar Actions on Mobile */
@media screen and (max-width: 992px) { .navbar-actions .btn-primary, .navbar-actions .btn-secondary { width: auto !important; padding: 8px 16px !important; font-size: 0.9rem !important; } }



@media screen and (max-width: 992px) { .hero-section, .subscription-container { 
padding-top: 100px !important; } }

/* ===== MODAL DE DOWNLOAD OS ===== */
.download-os-modal {
  text-align: center;
  padding: 10px 0;
}

.download-os-modal h2 {
  margin-bottom: 10px;
}

.download-os-modal p {
  color: var(--color-text-secondary) !important;
  margin-bottom: 25px;
}

.os-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.os-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: var(--color-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.os-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  background: rgba(14, 165, 233, 0.05);
}

.os-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.os-card span {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-text);
}

.os-card small {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

body.theme-dark .os-card {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

body.theme-dark .os-card span {
  color: #f1f5f9;
}

body.theme-dark .os-card:hover {
  background: #0f172a;
  border-color: var(--color-primary);
}

@media screen and (max-width: 480px) {
  .os-options {
    grid-template-columns: 1fr;
  }
}
 .testimonial-text { flex-grow: 1; }
.testimonial-author-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: auto; } .review-actions { display: flex; gap: 10px; } .review-action-btn { background: none; border: none; color: var(--color-primary); cursor: pointer; font-size: 0.85rem; padding: 0; display: flex; align-items: center; gap: 4px; } .review-action-btn:hover { text-decoration: underline; } .review-action-btn.error-btn { color: #ef4444; }
