@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cores base */
  --bg-dark: hsl(222, 19%, 8%);
  --bg-card: hsla(222, 19%, 12%, 0.7);
  --bg-card-hover: hsla(222, 19%, 16%, 0.8);
  --border-color: hsla(222, 19%, 20%, 0.5);
  --border-neon-cyan: hsla(180, 100%, 50%, 0.3);
  --border-neon-orange: hsla(24, 100%, 50%, 0.3);
  
  /* Cores de status e destaque */
  --color-primary: hsl(180, 100%, 45%);
  --color-primary-glow: hsla(180, 100%, 45%, 0.25);
  --color-accent: hsl(24, 100%, 50%);
  --color-accent-glow: hsla(24, 100%, 50%, 0.25);
  --color-success: hsl(145, 100%, 45%);
  --color-success-glow: hsla(145, 100%, 45%, 0.2);
  --color-danger: hsl(355, 100%, 60%);
  --color-info: hsl(200, 100%, 50%);
  
  /* Tipografia */
  --text-main: hsl(210, 20%, 95%);
  --text-muted: hsl(215, 15%, 65%);
  --text-dark: hsl(220, 15%, 15%);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  
  /* Efeitos */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --neon-cyan-shadow: 0 0 15px hsla(180, 100%, 45%, 0.2);
  --neon-orange-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, hsla(180, 100%, 45%, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, hsla(24, 100%, 50%, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Utilitários Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Navbar Premium */
.navbar {
  background: hsla(222, 19%, 8%, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}
.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.logo {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--text-main);
}
.logo-title {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.logo #logo-sub-text {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 15px;
  border-left: 1px solid var(--border-color);
  padding-left: 8px;
  margin-left: 2px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-card);
}
.btn-toggle-admin {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--bg-dark) !important;
  font-weight: 700 !important;
  box-shadow: var(--neon-cyan-shadow);
}
.btn-toggle-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px hsla(180, 100%, 45%, 0.4);
}

/* Responsividade Navbar - Mobile Swipe Menu */
@media (max-width: 1024px) {
  .navbar .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; /* Garante que não quebre linha */
  }
  .nav-menu li {
    flex-shrink: 0; /* Impede os itens de encolherem no swipe */
  }
  .nav-menu::-webkit-scrollbar {
    height: 4px; /* Barra de rolagem fina para mobile */
  }
  .nav-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0 40px 0;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 15px;
  line-height: 1.2;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--color-primary), #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 25px auto;
}

@media (max-width: 600px) {
  .hero {
    padding: 50px 0 30px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 14px;
  }
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}
.card-glass:hover {
  border-color: var(--border-neon-cyan);
  box-shadow: var(--glass-shadow), var(--neon-cyan-shadow);
  background: var(--bg-card-hover);
}

@media (max-width: 480px) {
  .card-glass {
    padding: 16px;
  }
}

/* Helper Grid Geral Responsivo */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Utilitários Responsivos Customizados */
.flex-group-center-responsive {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 480px) {
  .flex-group-center-responsive {
    flex-direction: column;
    align-items: stretch;
  }
  .flex-group-center-responsive .btn,
  .flex-group-center-responsive a {
    width: 100%;
  }
}

.flex-group-responsive {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

@media (max-width: 576px) {
  .flex-group-responsive {
    flex-direction: column;
    align-items: stretch;
  }
  .flex-group-responsive input,
  .flex-group-responsive button {
    width: 100% !important;
  }
}

.grid-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .grid-form-cols {
    grid-template-columns: 1fr;
  }
}

.section-header-responsive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  width: 100%;
}

@media (max-width: 768px) {
  .section-header-responsive {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.header-search-wrapper {
  display: flex;
  gap: 10px;
  width: 250px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header-search-wrapper {
    width: 100%;
  }
}

.budget-total-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .budget-total-container {
    justify-content: center;
    font-size: 16px;
  }
}

.flex-group-end-responsive {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .flex-group-end-responsive {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .flex-group-end-responsive button {
    width: 100% !important;
  }
}

/* Grid de Filtros e Cadastro */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Formulários Modernos */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  transition: var(--transition-smooth);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
select.form-control option {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* Botões Modernos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: hsl(180, 100%, 55%);
  box-shadow: var(--neon-cyan-shadow);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--text-main);
}
.btn-accent:hover {
  background: hsl(24, 100%, 60%);
  box-shadow: var(--neon-orange-shadow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  color: var(--text-main);
  background: var(--bg-card);
  border-color: var(--text-muted);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover {
  background: hsl(355, 100%, 70%);
}

/* Métricas do Dashboard */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.metric-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 8px;
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.metric-trend {
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

/* Celular: métricas do dashboard em 2x2 (menos scroll) em vez de 4 empilhadas */
@media (max-width: 600px) {
  .metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .metrics-row .card-glass { padding: 14px; }
  .metrics-row .metric-value { font-size: 20px; margin-top: 4px; }
  .metrics-row .metric-label { font-size: 11px; line-height: 1.25; }
  .metrics-row .metric-trend { font-size: 10px; margin-top: 4px; }
}

/* Tabelas e Registros */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}
.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: var(--bg-card);
  min-width: 650px; /* Evita achatamento de colunas cruciais em telas minúsculas */
}
.modern-table th {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}
.modern-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}
.modern-table tr:last-child td {
  border-bottom: none;
}
.modern-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges e Status */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}
.badge-success {
  background: var(--color-success-glow);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}
.badge-warning {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.badge-danger {
  background: hsla(355, 100%, 60%, 0.15);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}
.badge-info {
  background: hsla(200, 100%, 50%, 0.15);
  color: var(--color-info);
  border: 1px solid var(--color-info);
}

/* Vitrine Online Widget */
.vitrine-widget {
  background: radial-gradient(circle at top right, hsla(180, 100%, 45%, 0.05), transparent 60%), var(--bg-card);
  border: 1px solid var(--border-neon-cyan);
}

/* SPA Views */
.spa-view {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}
.spa-view.active {
  display: block;
}

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

/* Promo Banner (Landing) */
.promo-badge {
  background: var(--color-accent);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}

/* Orçamentos Modelos Rápidos */
.templates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.template-card {
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.template-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.template-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* Modais Flutuantes Responsivos */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 15px; /* Margem de segurança para mobile */
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 600px;
  padding: 24px;
  position: relative;
  box-shadow: var(--glass-shadow);
  transform: scale(0.95);
  transition: var(--transition-smooth);
  max-height: 90vh; /* Não deixa transbordar da tela do celular */
  overflow-y: auto; /* Rolagem interna se o conteúdo for longo */
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.modal-close:hover {
  color: var(--text-main);
}

/* Landing Page Grid */
.landing-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.search-bar-container {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}
.search-bar-container .filter-select {
  width: 200px;
}

@media (max-width: 600px) {
  .search-bar-container {
    flex-direction: column;
    gap: 10px;
  }
  .search-bar-container .filter-select {
    width: 100%;
  }
}

/* Alerta de Estoque */
.stock-warning {
  color: var(--color-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stock-critical {
  color: var(--color-danger);
  font-weight: 700;
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: hsla(222, 19%, 25%, 0.5);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
}

/* Painel de OS Lista */
.os-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.os-card {
  border-left: 4px solid var(--color-info);
}
.os-card.status-aberto { border-left-color: var(--color-info); }
.os-card.status-execucao { border-left-color: var(--color-accent); }
.os-card.status-concluido { border-left-color: var(--color-success); }
.os-card.status-pago { border-left-color: var(--color-primary); }

.os-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.os-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 10px;
}
.os-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .os-actions {
    flex-wrap: wrap;
  }
  .os-actions select {
    flex-grow: 1;
  }
}

/* Fotos da OS (antes/depois) */
.os-foto-secao { margin-bottom: 18px; }
.os-foto-secao h4 { font-size: 14px; margin-bottom: 10px; }
.os-foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.os-foto-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.os-foto-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.os-foto-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.os-foto-del:hover { background: var(--color-danger); }
.os-foto-add {
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
  line-height: 1.3;
  transition: var(--transition-smooth);
}
.os-foto-add:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Redesenho do Catálogo Público (Honda / Yamaha) */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon-cyan);
  box-shadow: var(--glass-shadow), var(--neon-cyan-shadow);
}

.product-card.is-promo:hover {
  border-color: var(--border-neon-orange);
  box-shadow: var(--glass-shadow), var(--neon-orange-shadow);
}

.product-image-container {
  height: 150px;
  width: 100%;
  background: radial-gradient(circle at center, hsla(180, 100%, 45%, 0.08), transparent 70%), rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-container {
  border-color: rgba(0, 240, 255, 0.25);
  background: radial-gradient(circle at center, hsla(180, 100%, 45%, 0.15), transparent 70%), rgba(0, 0, 0, 0.4);
}

.product-image-container svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-container svg {
  transform: scale(1.1) rotate(5deg);
}

.product-card.is-promo .product-image-container {
  background: radial-gradient(circle at center, hsla(24, 100%, 50%, 0.08), transparent 70%), rgba(0, 0, 0, 0.3);
}

.product-card.is-promo:hover .product-image-container {
  border-color: rgba(254, 100, 45, 0.25);
  background: radial-gradient(circle at center, hsla(24, 100%, 50%, 0.15), transparent 70%), rgba(0, 0, 0, 0.4);
}

.product-card.is-promo .product-image-container svg {
  filter: drop-shadow(0 0 8px rgba(254, 100, 45, 0.4));
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: monospace;
}

.product-compatibility-list {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px;
  border-radius: 6px;
  border-left: 3px solid var(--border-color);
  min-height: 52px;
}

.product-compatibility-list.is-compatible-match {
  border-left-color: var(--color-success);
  background: rgba(145, 100, 45, 0.05);
  color: var(--text-main);
}

.product-price-section {
  margin-bottom: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}


.product-price-installed {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-price-installed span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.category-pill {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover, .category-pill.active {
  background: var(--color-primary);
  color: var(--bg-dark);
  border-color: var(--color-primary);
  box-shadow: var(--neon-cyan-shadow);
}

.floating-cart-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--neon-cyan-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition-smooth);
  animation: pulseCart 2s infinite alternate;
}

@keyframes pulseCart {
  from {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--neon-cyan-shadow);
  }
  to {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4), var(--neon-orange-shadow);
  }
}

.floating-cart-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 35px rgba(254, 100, 45, 0.5);
  animation: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 8px rgba(255,0,0,0.6);
}

.moto-selector-card {
  background: radial-gradient(circle at top left, hsla(180, 100%, 45%, 0.03), transparent 50%), var(--bg-card);
  border: 1px dashed var(--border-color);
}

.moto-selector-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glass-shadow);
}

/* ==========================================
   MOBILE-FIRST APP EXPERIENCE (MEDIA QUERIES <= 768PX)
   ========================================== */

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Espaço de margem na base do body para não sobrepor inputs/botões */
  body {
    padding-bottom: 80px !important;
  }

  /* Ocultar a nav tradicional do topo e centralizar o logotipo */
  .navbar .nav-menu {
    display: none !important;
  }
  .navbar .nav-container {
    justify-content: center !important;
  }

  /* Barra de Navegação Inferior (Abas de App) */
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: hsla(222, 19%, 6%, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }

  .bottom-nav-container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .bottom-nav-container::-webkit-scrollbar {
    display: none;
  }

  .bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 0 auto;
    min-width: 60px;
    height: 100%;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    padding: 6px 0;
  }

  .bottom-nav-item svg {
    color: var(--text-muted);
    transition: var(--transition-smooth);
  }

  .bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--color-primary);
  }

  .bottom-nav-item.active svg {
    color: var(--color-primary);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 4px var(--color-primary-glow));
  }

  /* Ajustes de Modais - Design de Bottom Sheets */
  .modal-overlay {
    align-items: flex-end; /* Fixa o modal na base da tela */
    padding: 0;
  }
  
  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.45, 1);
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding: 24px 18px 40px 18px; /* Padding extra para a barra */
  }

  /* Alça visual cinza padrão de bottom sheets (drag handle indicator) */
  .modal-content::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: -12px auto 16px auto;
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

  /* Aumentar Tamanhos de Toque e Prevenir Auto-zoom no iOS Safari */
  .form-control, .btn, select, input {
    min-height: 48px !important;
    font-size: 16px !important; /* Tamanho mínimo de 16px impede auto-zoom */
  }

  .flex-group-end-responsive button {
    width: 100% !important;
    margin-top: 6px;
  }

  /* Forçar quebra de colunas em formulários no mobile */
  .grid-form-cols {
    grid-template-columns: 1fr !important;
  }

  /* Transmutar Tabelas em Cards no Estoque, Orçador e Carrinho */
  .table-container {
    border: none !important;
    background: transparent !important;
    overflow-x: visible !important;
    box-shadow: none !important;
  }

  .modern-table {
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  .modern-table, 
  .modern-table thead, 
  .modern-table tbody, 
  .modern-table th, 
  .modern-table td, 
  .modern-table tr {
    display: block !important;
    width: 100% !important;
  }

  .modern-table thead {
    display: none !important; /* Esconder cabeçalho no mobile */
  }

  /* Estilizar linhas de tabelas como cards de blocos */
  #inventory-table-body tr,
  #budget-items-tbody tr,
  #cart-items-tbody tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin-bottom: 15px !important;
    position: relative !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  }

  #inventory-table-body td,
  #budget-items-tbody td,
  #cart-items-tbody td {
    border-bottom: none !important;
    padding: 8px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
  }

  /* Pseudo-conteúdos informativos para as tabelas transformadas */
  #inventory-table-body td:nth-of-type(1) { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
  }
  #inventory-table-body td:nth-of-type(2):before { content: "Categoria:"; font-weight: bold; color: var(--text-muted); }
  #inventory-table-body td:nth-of-type(3):before { content: "Custo:"; font-weight: bold; color: var(--text-muted); }
  #inventory-table-body td:nth-of-type(4):before { content: "Venda:"; font-weight: bold; color: var(--text-muted); }
  #inventory-table-body td:nth-of-type(5):before { content: "Margem:"; font-weight: bold; color: var(--text-muted); }
  #inventory-table-body td:nth-of-type(6):before { content: "Estoque:"; font-weight: bold; color: var(--text-muted); }
  #inventory-table-body td:nth-of-type(7) { 
    justify-content: flex-end !important; 
    padding-top: 12px !important; 
    border-top: 1px dashed var(--border-color) !important; 
  }

  /* Construtor de Orçamentos (Admin) */
  #budget-items-tbody td:nth-of-type(1) { flex-direction: column !important; align-items: stretch !important; }
  #budget-items-tbody td:nth-of-type(1):before { content: "Tipo de Item"; font-weight: 700; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
  
  #budget-items-tbody td:nth-of-type(2) { flex-direction: column !important; align-items: stretch !important; }
  #budget-items-tbody td:nth-of-type(2):before { content: "Descrição da Peça ou Serviço"; font-weight: 700; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
  
  #budget-items-tbody td:nth-of-type(3):before { content: "Quantidade:"; font-weight: bold; color: var(--text-muted); }
  #budget-items-tbody td:nth-of-type(4):before { content: "Valor Unitário:"; font-weight: bold; color: var(--text-muted); }
  #budget-items-tbody td:nth-of-type(5):before { content: "Total Item:"; font-weight: bold; color: var(--text-muted); }
  #budget-items-tbody td:nth-of-type(6) { 
    justify-content: flex-end !important; 
    padding-top: 10px !important; 
    border-top: 1px dashed var(--border-color) !important; 
  }

  /* Carrinho Público (Simulador) */
  #cart-items-tbody td:nth-of-type(1) { flex-direction: column !important; align-items: flex-start !important; font-weight: 700; }
  #cart-items-tbody td:nth-of-type(2):before { content: "Qtd:"; font-weight: bold; color: var(--text-muted); }
  #cart-items-tbody td:nth-of-type(3):before { content: "Instalação:"; font-weight: bold; color: var(--text-muted); }
  #cart-items-tbody td:nth-of-type(4):before { content: "Subtotal:"; font-weight: bold; color: var(--text-muted); }
  #cart-items-tbody td:nth-of-type(5) { justify-content: flex-end !important; }

  /* Ajustes extras de espaçamento e flexibilidade */
  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 10px !important;
    margin-bottom: 74px !important;
  }
  .dashboard-grid aside {
    order: 2 !important;
  }
  .dashboard-grid main {
    order: 1 !important;
    margin-bottom: 25px !important;
  }

  /* Estilização para as linhas vazias de tabelas para manter centralizado e sem visual de card */
  #inventory-table-body tr.empty-row,
  #budget-items-tbody tr.empty-row,
  #cart-items-tbody tr.empty-row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #inventory-table-body tr.empty-row td,
  #budget-items-tbody tr.empty-row td,
  #cart-items-tbody tr.empty-row td {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 40px 10px !important;
    color: var(--text-muted) !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px dashed var(--border-color) !important;
    border-radius: 8px !important;
  }
  
  #inventory-table-body tr.empty-row td::before,
  #budget-items-tbody tr.empty-row td::before,
  #cart-items-tbody tr.empty-row td::before {
    content: none !important;
  }

  #inventory-table-body td .td-value,
  #budget-items-tbody td .td-value,
  #cart-items-tbody td .td-value {
    text-align: right !important;
    width: 100% !important;
  }
}

/* Container de Toast */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Item de Toast */
.toast-item {
  pointer-events: auto;
  background: hsla(222, 19%, 10%, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: 380px;
  font-size: 13px;
  font-weight: 500;
  animation: slideInRight 0.3s ease-out forwards;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-item.toast-success {
  border-left: 4px solid var(--color-success);
  box-shadow: 0 4px 15px rgba(0, 220, 100, 0.15);
}

.toast-item.toast-error {
  border-left: 4px solid var(--color-danger);
  box-shadow: 0 4px 15px rgba(255, 50, 50, 0.15);
}

.toast-item.toast-warning {
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(254, 100, 45, 0.15);
}

.toast-item.toast-info {
  border-left: 4px solid var(--color-info);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.toast-item.hide {
  opacity: 0;
  transform: translateX(100%);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  #toast-container {
    top: auto;
    bottom: 80px;
    right: 12px;
    left: 12px;
  }
  .toast-item {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================
   9. IMPRESSÃO DA ORDEM DE SERVIÇO (PDF)
   ========================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
  }

  /* Oculta toda a aplicação web */
  .navbar,
  .container,
  .bottom-nav,
  .modal-overlay,
  #toast-container,
  .floating-cart-btn {
    display: none !important;
  }

  /* Exibe a via de impressão */
  #view-print-os {
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  .print-logo {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
  }

  .print-meta h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    text-align: right;
  }

  .print-meta div {
    font-size: 12px;
    color: #555555;
    text-align: right;
    margin-top: 4px;
  }

  .print-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .print-info-card {
    border: 1px solid #dddddd;
    padding: 12px;
    border-radius: 4px;
  }

  .print-info-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 6px;
    margin-bottom: 8px;
    color: #333333;
  }

  .print-section {
    margin-bottom: 25px;
  }

  .print-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
    padding-bottom: 4px;
    margin-bottom: 10px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  .print-table th {
    border-bottom: 2px solid #000000;
    text-align: left;
    padding: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
  }

  .print-table td {
    border-bottom: 1px solid #eeeeee;
    padding: 8px;
    font-size: 12px;
  }

  .print-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 15px;
    gap: 6px;
  }

  .print-total-row {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    width: 250px;
  }

  .print-total-final {
    border-top: 2px solid #000000;
    padding-top: 8px;
    font-size: 16px;
    font-weight: 800;
  }

  .print-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 40px;
  }

  .print-sig-box {
    flex: 1;
    text-align: center;
  }

  .print-sig-line {
    border-top: 1px solid #000000;
    margin-bottom: 8px;
  }

  .print-sig-box p {
    font-size: 11px;
    color: #555555;
  }

  .print-terms {
    margin-top: 40px;
    font-size: 10px;
    color: #777777;
    text-align: center;
    border-top: 1px dashed #dddddd;
    padding-top: 10px;
  }
}

/* ==========================================
   10. RELATÓRIOS (Diário / Semanal / Mensal)
   ========================================== */
.report-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.report-tab {
  flex: 1;
  min-width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.report-tab:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
}
.report-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--bg-dark);
  border-color: transparent;
}

.report-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.report-stat {
  padding: 18px 20px;
  text-align: center;
}
.report-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.report-stat-value {
  font-size: 26px;
  font-weight: 800;
}

.report-block {
  padding: 20px;
  margin-bottom: 16px;
}
.report-block h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text-main);
}
.report-empty {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .report-two-col {
    grid-template-columns: 1fr;
  }
}

/* Ranking (top peças / serviços / mecânicos) */
.report-rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.report-rank-row:last-child {
  border-bottom: none;
}
.report-rank-pos {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 14px;
  width: 28px;
  flex-shrink: 0;
}
.report-rank-info {
  flex: 1;
  min-width: 0;
}
.report-rank-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.report-rank-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.report-rank-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
}
.report-rank-val {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-success);
  flex-shrink: 0;
}
.report-rank-qty {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Gráfico de barras (semanal) */
.report-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 190px;
  padding-top: 10px;
}
.report-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.report-bar {
  width: 70%;
  max-width: 38px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-glow));
  border-radius: 6px 6px 0 0;
  transition: var(--transition-smooth);
}
.report-bar-val {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.report-bar-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Recebido por forma de pagamento */
.report-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 560px) {
  .report-pay-grid {
    grid-template-columns: 1fr;
  }
}
.report-pay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.report-pay-item span {
  color: var(--text-muted);
}
.report-pay-item strong {
  font-weight: 800;
}

/* Caixa — linhas de movimento */
.caixa-mov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.caixa-mov-row:last-child {
  border-bottom: none;
}
.caixa-mov-info {
  flex: 1;
  min-width: 0;
}
.caixa-mov-desc {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.caixa-mov-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.caixa-mov-val {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.caixa-mov-lock {
  font-size: 13px;
  opacity: 0.5;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}

/* ==========================================
   11. FOLHA DE ESTILO DE IMPRESSÃO (OS/Cupom)
   ========================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12px !important;
  }
  
  /* Esconde absolutamente tudo na tela */
  body > * {
    display: none !important;
  }
  
  /* Mostra apenas a área de impressão */
  #view-print-os, #view-print-os * {
    display: block !important;
  }
  
  #view-print-os {
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 10px !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #000 !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
  }
  
  .print-logo {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #000 !important;
  }
  
  .print-meta {
    text-align: right !important;
  }
  
  .print-meta h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
  }
  
  .print-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .print-info-card {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    border-radius: 4px !important;
    background: #fff !important;
  }
  
  .print-info-card h3 {
    font-size: 11px !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid #000 !important;
    padding-bottom: 3px !important;
    color: #555 !important;
  }
  
  .print-section {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    background: #fff !important;
  }
  
  .print-section h3 {
    font-size: 11px !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid #000 !important;
    padding-bottom: 3px !important;
  }
  
  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 5px !important;
  }
  
  .print-table th, .print-table td {
    border: 1px solid #ddd !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    text-align: left !important;
    display: table-cell !important;
  }
  
  .print-table th {
    background: #f0f0f0 !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .print-footer {
    margin-top: 25px !important;
  }
  
  .print-totals {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    margin-bottom: 25px !important;
  }
  
  .print-total-row {
    display: flex !important;
    justify-content: space-between !important;
    width: 250px !important;
    padding: 4px 0 !important;
    font-size: 12px !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .print-total-final {
    font-size: 15px !important;
    font-weight: 800 !important;
    border-top: 1px solid #000 !important;
    border-bottom: 2px double #000 !important;
    padding: 6px 0 !important;
  }
  
  .print-signatures {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    gap: 30px !important;
  }
  
  .print-sig-box {
    flex: 1 !important;
    text-align: center !important;
  }
  
  .print-sig-line {
    border-top: 1px solid #000 !important;
    margin-bottom: 5px !important;
  }
  
  .print-sig-box p {
    font-size: 10px !important;
    color: #555 !important;
    margin: 0 !important;
  }
  
  .print-terms {
    font-size: 9px !important;
    color: #777 !important;
    text-align: center !important;
    border-top: 1px solid #eee !important;
    padding-top: 10px !important;
    margin-top: 20px !important;
  }
}

/* ==========================================
   Estilos da Landing Page B2B SaaS (Mecanizou)
   ========================================== */

.hero-saas {
  padding: 100px 0 60px 0;
  text-align: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-saas-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-saas h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-saas h1 span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-saas p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}
.hero-saas-features-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-saas-features-strip span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.btn-glow {
  box-shadow: 0 0 20px var(--color-primary-glow);
  transition: var(--transition-smooth);
}
.btn-glow:hover {
  box-shadow: 0 0 30px var(--color-primary);
}

/* SaaS Sections */
.saas-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}
.saas-section.pricing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  transition: var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--neon-cyan-shadow);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Pricing Card */
.pricing-card {
  max-width: 450px;
  width: 100%;
  padding: 40px;
  position: relative;
  text-align: center;
  border: 1px solid var(--border-neon-orange);
  box-shadow: var(--neon-orange-shadow);
}
.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}
.pricing-price {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.pricing-price .currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}
.pricing-price .amount {
  font-size: 64px;
  font-weight: 800;
  color: var(--color-primary);
}
.pricing-price .period {
  font-size: 18px;
  color: var(--text-muted);
}
.pricing-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  padding: 0;
}
.pricing-features li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.faq-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Info pills for Vitrine */
.oficina-info-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-saas h1 {
    font-size: 42px;
  }
  .hero-saas p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero-saas {
    padding: 60px 0 45px 0;
  }
  .hero-saas h1 {
    font-size: 32px;
  }
  .hero-saas p {
    font-size: 14px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .pricing-card {
    padding: 30px 20px;
  }
}



