
/* ========================================
   DARK VIOLET THEME
======================================== */

:root {
  /* Primary - Violet */
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --primary-light: #2E1B50;

  /* Secondary */
  --secondary: #A1A1AA;
  --secondary-hover: #D4D4D8;

  /* Dark surfaces */
  --background: #0B0B12;
  --surface: #13131D;
  --border: #292938;

  /* Text */
  --text: #F4F4F5;
  --text-muted: #9292A6;

  /* Success */
  --success: #22C55E;
  --success-light: #10291D;

  /* Warning */
  --warning: #F59E0B;
  --warning-light: #30230F;

  /* Danger */
  --danger: #EF4444;
  --danger-light: #301519;

  /* Accent */
  --accent: #A78BFA;
  --accent-hover: #C4B5FD;

  /* UI */
  --radius: 8px;

  /* Shadows */
  --shadow:
    0 4px 12px rgb(0 0 0 / 0.25),
    0 2px 4px rgb(0 0 0 / 0.15);

  --shadow-lg:
    0 12px 32px rgb(0 0 0 / 0.4),
    0 4px 12px rgb(0 0 0 / 0.2);
}


/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
}

.logo-bold {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a, .nav-links button {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links button:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

/* Main Content Area */
.main-content {
  padding-top: 40px;
  padding-bottom: 60px;
  min-height: calc(100vh - 170px);
}

/* Views & Routing visibility */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Cards & Layout */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mb {
  margin-bottom: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 900px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.price .period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
  color: var(--secondary);
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-block {
  display: width: 100%;
  width: 100%;
}

/* Forms & Auth */
.auth-container {
  max-width: 450px;
  margin: 60px auto;
}

.auth-container h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 14px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Dashboard & Grids */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.dashboard-header h2 {
  font-size: 28px;
}

.dashboard-header p {
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 18px;
  color: var(--secondary);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--background);
}

.table tbody tr:hover {
  background-color: var(--primary-light);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-active {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-pending {
  background-color: var(--warning-light);
  color: var(--warning);
}

.badge-cancelled {
  background-color: #f1f5f9;
  color: var(--secondary);
}

.badge-expired {
  background-color: var(--danger-light);
  color: var(--danger);
}

.badge-revoked {
  background-color: #f5f5f5;
  color: #737373;
  text-decoration: line-through;
}

.badge-demo {
  background-color: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-weight: 600;
}

.badge-pro {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.time-remaining {
  font-size: 12px;
  font-weight: 600;
  color: #d97706;
  margin-left: 6px;
}

/* Checkout Page */
.checkout-container {
  max-width: 600px;
  margin: 30px auto;
}

.checkout-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-header p {
  color: var(--text-muted);
}

.checkout-details {
  background-color: var(--background);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-row:last-child {
  border-bottom: none;
  font-size: 18px;
}

.pix-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.qrcode-wrapper {
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.qrcode-wrapper img {
  display: block;
  width: 200px;
  height: 200px;
}

.pix-code-container {
  width: 100%;
}

.copy-box {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.copy-box input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  background-color: var(--background);
}

/* Polling Loader */
.polling-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--border);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.polling-status .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.dev-simulation-box {
  margin-top: 30px;
  padding: 16px;
  background-color: var(--warning-light);
  border: 1px solid #fde047;
  border-radius: var(--radius);
}

.dev-simulation-box h4 {
  color: var(--warning);
  margin-bottom: 6px;
}

.dev-simulation-box p {
  font-size: 13px;
  color: #78350f;
  margin-bottom: 12px;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

#license-modal .modal-close {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  margin-top: -10px;
}

#license-modal .modal-close:hover {
  color: var(--text);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.code-preview {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 12px;
  overflow-y: auto;
  max-height: 250px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Admin Dashboard CSS */
.admin-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 8px;
}

.tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 15px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.search-bar input {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  width: 250px;
}

.admin-license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .admin-license-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.p-block {
  padding-top: 15px;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: white;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.2s, opacity 0.2s;
  transform: translateY(0);
}

.toast.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.toast-success {
  background-color: var(--success);
}

.toast-error {
  background-color: var(--danger);
}

.toast-warning {
  background-color: var(--warning);
}

/* Active license block styling */
.active-license-box {
  background-color: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px;
}

.license-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.license-row:last-child {
  margin-bottom: 0;
}

.license-copy-area {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  background-color: var(--surface);
  margin-top: 40px;
}

.hidden {
  display: none !important;
}


/* ==========================================================================
   ESTILOS ADICIONADOS PARA A LANDING PAGE (HERO E FUNCIONALIDADES)
   ========================================================================== */

/* Tag/Badge de Destaque */
.badge-tag {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary, #2563eb);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Container da Screenshot Principal */
.hero-screenshot-container {
  margin: 30px auto 50px auto;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-size: cover;
}
.hero-screenshot-container img{
  width: 100% !important;
  margin-bottom: -10px;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Títulos das Seções da Landing Page */
.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title p {
  color: #64748b;
  font-size: 1rem;
}

/* Seção de Funcionalidades */
.features-section {
  margin: 60px 0;
}

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

.feature-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 20px;
}

.feature-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-content p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.btn-download-soft{
  background: var(--primary)  !important; 
  padding: 0px 10px 0px 10px; 
  border-radius: 30px !important; 
  color: #fff !important;
  padding-left: 0px;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
}
.btn-download-soft svg{
  width: 26px;
  height: 26px;
  float: left;
  padding: 2px;
  background: #fff;
  border-radius: 30px;
  margin-right: 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  color: #333;
}

/* ==========================================================================
   MELHORIAS DO PAINEL / DASHBOARD E ADMIN
   ========================================================================== */

/* Banner de Destaque para Ativação do Teste Gratuito */
.demo-banner {
  background: linear-gradient(135deg, #0d9488 0%, #109C7E 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(16, 156, 126, 0.25);
  animation: fadeIn 0.3s ease-in-out;
}

.demo-banner-content {
  max-width: 650px;
}

.demo-badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-banner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.demo-banner p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.4;
  color: #f1f5f9;
}

.demo-banner .btn-activate-demo {
  background: #ffffff !important;
  color: #002B29 !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: transform 0.2s, background-color 0.2s !important;
  white-space: nowrap;
}

.demo-banner .btn-activate-demo:hover {
  transform: translateY(-2px);
  background: #f8fafc !important;
}

/* Guia de Ativação de Licença */
.license-activation-guide {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 20px;
}

.license-activation-guide h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.license-activation-guide ol {
  padding-left: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.6;
}

.license-activation-guide ol li {
  margin-bottom: 6px;
}

.license-activation-guide ol li:last-child {
  margin-bottom: 0;
}

/* Painel de Métricas do Administrador */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-users { background: #eff6ff; color: #2563eb; }
.icon-pro { background: #ecfdf5; color: #059669; }
.icon-demo { background: #f5f3ff; color: #7c3aed; }
.icon-revenue { background: #fefce8; color: #ca8a04; }
.icon-licenses { background: #f0fdf4; color: #16a34a; }

.admin-stat-info .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.admin-stat-info .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ==========================================================================
FOOTER
========================================================================== */

.footer {
margin-top: 40px;
padding: 45px 20px 20px;
background-color: var(--surface);
border-top: 1px solid var(--border);
color: var(--text-muted);
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1.5fr 1fr 1fr;
gap: 50px;
}

.footer-brand {
max-width: 400px;
}

.footer-logo {
display: inline-block;
margin-bottom: 10px;
color: var(--primary);
font-size: 24px;
font-weight: 700;
text-decoration: none;
transition: color 0.2s ease;
}

.footer-logo:hover {
color: var(--accent-hover);
}

.footer-brand p {
margin: 0;
color: var(--text-muted);
font-size: 14px;
line-height: 1.6;
}

.footer-section {
display: flex;
flex-direction: column;
gap: 9px;
}

.footer-section h4 {
margin: 0 0 5px;
color: var(--text);
font-size: 15px;
font-weight: 600;
}

.footer-section a,
.footer-section span {
color: var(--text-muted);
font-size: 14px;
text-decoration: none;
line-height: 1.5;
transition: color 0.2s ease;
}

.footer-section a:hover {
color: var(--primary);
}

.footer-bottom {
max-width: 1200px;
margin: 35px auto 0;
padding-top: 20px;
border-top: 1px solid var(--border);

display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;

color: var(--text-muted);
font-size: 13px;
}

/* Responsivo */
@media (max-width: 700px) {
.footer {
padding: 35px 20px 20px;
}

.footer-container {
grid-template-columns: 1fr;
gap: 28px;
}

.footer-bottom {
flex-direction: column;
text-align: center;
gap: 8px;
margin-top: 30px;
}
}



/* ==========================================================================
   RESPONSIVIDADE (Media Queries)
   ========================================================================== */

/* Ajustes para Tablets e telas médias (até 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  /* Empilha as colunas do dashboard e admin para evitar esmagamento */
  .dashboard-grid,
  .admin-license-grid {
    grid-template-columns: 1fr;
  }
}

/* Ajustes para Celulares e telas pequenas (até 768px) */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .navbar {
    height: auto;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .nav-links a, .nav-links button {
    width: 100%;
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  /* --- Hero Section --- */
  .hero h1 {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 16px;
  }

  .badge-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .hero-screenshot-container {
    margin: 20px 0 30px 0;
    border-radius: 8px;
  }

  /* --- Grids (Features, Pricing, Admin Stats) --- */
  .features-grid,
  .pricing-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr; /* Força 1 coluna em telas pequenas */
    gap: 20px;
  }
  
  .pricing-grid {
    max-width: 100%;
  }

  /* --- Cards e Containers --- */
  .card {
    padding: 16px;
  }

  .auth-container {
    margin: 30px auto;
    width: 100%;
  }

  .checkout-container {
    margin: 20px 15px;
  }

  /* --- Tabelas e Busca --- */
  .table th, .table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar input {
    width: 100% !important; /* Sobrescreve os 250px fixos */
  }

  /* --- Demo Banner --- */
  .demo-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .demo-banner .btn-activate-demo {
    width: 100%;
    margin-top: 10px;
  }

  /* --- Modais --- */
  .modal-content {
    width: 95%;
    padding: 15px;
    max-height: 90vh;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-actions .btn {
    width: 100%;
  }

  /* --- Admin Tabs (Rolagem horizontal suave) --- */
  .tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: thin; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  
  .tabs::-webkit-scrollbar {
    height: 4px;
  }
  
  .tabs::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
  }

  .tab-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* --- Footer --- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Ajustes para telas muito pequenas (menos de 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  
  .price {
    font-size: 28px;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }

  /* Cards de estatísticas do admin empilhados */
  .admin-stat-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }
  
  .license-activation-guide {
    padding: 15px;
  }
  
  .license-activation-guide ol {
    padding-left: 15px;
    font-size: 12px;
  }
  
  .copy-box {
    flex-direction: column;
  }
  
  .copy-box .btn {
    width: 100%;
  }
}

/* ==========================================================================
   HEADER & NAVBAR (Responsivo com Menu Hamburguer)
   ========================================================================== */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  z-index: 101;
}

.logo-bold {
  font-weight: 700;
}

/* Container da direita (idioma + links) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a, .nav-links button {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links button:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

/* Seletor de idioma */
.lang-selector select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

/* Botão Hamburguer (ESCONDIDO no desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animação do X quando aberto */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}









/* ==========================================================================
   NAVBAR MOBILE (até 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Mantém logo e hamburguer na mesma linha */
  .nav-container {
    height: 65px;
    padding: 0 20px;
    flex-direction: row !important; /* Força linha horizontal */
    justify-content: space-between !important; /* Logo esquerda, hamburguer direita */
    align-items: center;
  }

  /* Logo à esquerda */
  .logo {
    margin: 0;
    flex-shrink: 0;
  }

  /* Mostra o botão hamburguer à direita */
  .menu-toggle {
    display: flex;
    order: 2; /* Garante que fique na direita */
  }

  /* Container da direita vira menu dropdown */
  .nav-right {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    
    /* Escondido por padrão */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 10px 0 10px

  }

  .nav-right .btn-download-soft{
    margin-top: 10px;
  }
  /* Quando aberto (classe adicionada via JS) */
  .nav-right.active {
    max-height: 500px;
  }

  /* Seletor de idioma em tela cheia */
  .lang-selector {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }

  .lang-selector select {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }

  /* Links empilhados verticalmente */
  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-links a, 
  .nav-links button {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-links a:last-child,
  .nav-links button:last-child {
    border-bottom: none;
  }
}

.imagem-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.imagem-modal.ativo {
  display: flex;
}

.imagem-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.imagem-modal-content img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
}

.imagem-modal .modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #222;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: -45px;
  margin-top: 5px;
  margin-right: 5px;
}

.feature-card img {
  cursor: pointer;
}