/* =============================================================================
   Spadini3D - Sistema de Design Tech Claro (Tech Light Theme)
   ============================================================================= */

:root {
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-subtle: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-accent: rgba(37, 99, 235, 0.25);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --secondary: #4f46e5;
  --secondary-hover: #4338ca;

  --accent-green: #059669;
  --accent-gold: #d97706;
  --danger: #dc2626;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 20px var(--primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  min-height: 100vh;
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #4f46e5 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================================================
   NAVBAR
   ============================================================================= */
.navbar {
  position: sticky;
  top: 15px;
  z-index: 100;
  margin: 0 20px;
  padding: 12px 28px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.7rem;
}

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

.badge-tech {
  font-size: 0.7rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #4338ca);
  color: #ffffff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-glow {
  box-shadow: var(--shadow-glow);
}

.btn-icon {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover, .btn-icon.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* =============================================================================
   HERO SECTION (LANDING PAGE - SEM BORDAS/QUADRADOS NA ESPADA)
   ============================================================================= */
.hero-section {
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 35px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CONTAINER DA ESPADA 3D TOTALMENTE FLUTUANTE SEM QUADRADO OU BORDA */
.hero-canvas-wrapper {
  position: relative;
  height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-seamless-viewport {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 100%;
  width: 100%;
}

/* =============================================================================
   3D CANVAS VIEWPORT (INSPECTOR)
   ============================================================================= */
.canvas-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: grab;
}

.canvas-viewport:active {
  cursor: grabbing;
}

.canvas-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  z-index: 10;
  pointer-events: none;
}

.canvas-spinner i {
  font-size: 2.5rem;
}

/* =============================================================================
   CATÁLOGO WORKBENCH
   ============================================================================= */
.catalog-section {
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-body);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* LAYOUT DO CATÁLOGO COM SIDEBAR DE CATEGORIAS */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
  align-items: start;
  margin-top: 25px;
}

.catalog-sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.category-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

.category-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box;
}

.category-nav-btn i {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  color: var(--primary);
  transition: color 0.2s ease;
}

.category-nav-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateX(3px);
}

.category-nav-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.category-nav-btn.active i {
  color: #ffffff !important;
}

.catalog-sidebar .search-box,
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.search-box i {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.search-box input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.search-box:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-glow), 0 4px 12px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.search-box:focus-within i {
  color: var(--primary);
  transform: scale(1.1);
}


.workbench-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 30px;
}

/* CARDS DOS MODELOS */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  align-content: start;
}

.model-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.2s;
}

.model-card:hover::before, .model-card.active::before {
  opacity: 1;
}

.model-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.model-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.badge-category {
  font-size: 0.8rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.model-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.model-card-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

/* PAINEL DE INSPEÇÃO */
.inspector-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #ffffff;
  max-height: 880px;
  overflow-y: auto;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.inspect-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.inspect-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

.inspect-viewport-wrapper {
  position: relative;
}

.inspect-canvas {
  height: 340px;
}

.inspect-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.inspect-canvas-toolbar {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* FORMULÁRIO DE PARÂMETROS */
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.params-inputs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.param-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.param-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.param-unit {
  color: var(--text-muted);
}

.param-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.param-input-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.param-number {
  width: 70px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-mono);
}

.param-text-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.param-text-input:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* DOWNLOAD BOX */
.download-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 18px;
  border-radius: var(--radius-sm);
}

.download-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.credit-cost {
  color: var(--accent-gold);
  font-weight: 700;
}

.user-balance {
  color: var(--accent-green);
  font-weight: 700;
}

.download-buttons {
  display: flex;
  gap: 12px;
}

.download-alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.download-alert.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

/* =============================================================================
   PLANOS E PREÇOS
   ============================================================================= */
.plans-section {
  padding: 80px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.plan-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

.plan-featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.18);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-body);
}

.badge-popular {
  background: var(--primary);
  color: #ffffff;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.plan-features li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
}

.text-success { color: var(--accent-green); }
.text-muted { color: var(--text-light); }

/* =============================================================================
   SOBRE E FOOTER
   ============================================================================= */
.about-section {
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 45px;
  background: #ffffff;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.about-text p {
  color: var(--text-body);
  margin-top: 16px;
  font-size: 1.05rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-box {
  background: var(--bg-subtle);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.highlight-box i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.highlight-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: 45px 20px;
  background: #ffffff;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =============================================================================
   MODAIS & COOKIE BANNER LGPD
   ============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 650px;
  margin: 0 auto;
  padding: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cookie-content {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--accent-gold);
}

.cookie-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-body);
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  padding: 35px;
  background: #ffffff;
}

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

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
}

.divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-light);
}

.divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-google {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.login-tip {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--accent-green);
  text-align: center;
  font-weight: 600;
}

.lgpd-modal-card {
  max-width: 650px;
}

.lgpd-body h4 {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--primary);
}

.lgpd-body p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 6px;
}

/* =============================================================================
   MOLD STUDIO & GENERATOR STYLES
   ============================================================================= */

.mold-studio-section {
  padding: 40px 20px 80px 20px;
  max-width: 1350px;
  margin: 0 auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  align-items: start;
}

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

.studio-controls-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-viewport-column {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* STL Upload Dropzone */
.stl-dropzone {
  border: 2px dashed rgba(37, 99, 235, 0.35);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stl-dropzone:hover, .stl-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

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

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

.upload-file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #065f46;
}

/* Sample Model Chips */
.sample-models-picker {
  margin-top: 16px;
}

.sample-picker-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sample-models-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.sample-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Analysis Card */
.analysis-card {
  padding: 20px;
}

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

.analysis-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.analysis-metric {
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.analysis-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-body);
}

.analysis-materials span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

/* Parameters Card */
.params-card {
  padding: 22px;
}

.param-group {
  margin-bottom: 16px;
}

.param-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.param-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.param-value-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.form-select, .form-range {
  width: 100%;
}

.form-select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* 3D Viewport Controls */
.view-modes-bar {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.view-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.view-mode-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.view-mode-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.explosion-control-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.explosion-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explosion-slider {
  flex: 1;
}

/* Download Actions Card */
.download-card {
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239, 246, 255, 0.95));
  border: 1px solid var(--border-accent);
}

.download-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.download-cost-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-download-primary {
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.quick-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* Steps / How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

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

.step-card {
  padding: 30px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Materials Cards Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.material-card {
  padding: 24px;
  text-align: center;
}

.material-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px auto;
}

.material-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* =============================================================================
   RESPONSIVIDADE
   ============================================================================= */
@media (max-width: 1200px) {
  .workbench-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .catalog-layout, .hero-container, .plans-grid, .about-container {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .search-box {
    width: 100%;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

