/* ==========================================================================
   IXLA SOLUTIONS — PHOTONIC NEON DESIGN SYSTEM (MATRIX UPWARD EDITION)
   Colors: Cyber Cyan (#00F0FF), Electric Emerald (#00FF88), Solar Gold (#FFB800)
   ========================================================================== */

:root {
  --bg-dark: #02050E;
  --bg-card: rgba(8, 16, 32, 0.88);
  --bg-card-hover: rgba(14, 28, 54, 0.96);
  --bg-glass: rgba(4, 10, 22, 0.8);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.55);
  --neon-cyan-subtle: rgba(0, 240, 255, 0.15);
  
  --neon-emerald: #00FF88;
  --neon-emerald-glow: rgba(0, 255, 136, 0.55);
  
  --neon-gold: #FFB800;
  --neon-gold-glow: rgba(255, 184, 0, 0.45);
  
  --neon-purple: #A855F7;
  --neon-pink: #FF2A6D;
  
  --border-subtle: rgba(0, 240, 255, 0.14);
  --border-neon: rgba(0, 240, 255, 0.65);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-photonic: 0 0 40px rgba(0, 240, 255, 0.25), 0 0 80px rgba(0, 255, 136, 0.15);
  --shadow-card: 0 15px 35px -10px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Sfondo Matrix che sale dal basso verso l'alto */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
}

/* Ambient Radial Overlay */
.ambient-glow-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(0, 255, 136, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
}

/* Typography & Photonic Shimmers */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.mono {
  font-family: var(--font-mono);
}

.gradient-photonic {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--neon-cyan) 40%, var(--neon-emerald) 80%, var(--neon-gold) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinePhotonic 6s ease-in-out infinite alternate;
}

@keyframes shinePhotonic {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.neon-text-glow {
  color: #FFF;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.5);
}

.container-badge {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.18) 0%, rgba(249, 115, 22, 0.25) 100%);
  border: 1px solid var(--neon-gold);
  color: #FEF08A;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.35);
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 5, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-img-wrapper {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 50px rgba(0, 255, 136, 0.5);
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFF;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099FF 60%, var(--neon-emerald) 100%);
  color: #02050E;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 0 50px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.8), 0 0 70px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: #FFF;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.15);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,5,14,0.6) 0%, rgba(2,5,14,0.3) 40%, #02050E 100%);
}

.hero-text-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.2rem;
  line-height: 1.05;
  margin: 20px 0 24px 0;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15), var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-mono);
}

.stat-value span {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Feature Preview Card */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.25), inset 0 0 25px rgba(0, 240, 255, 0.08);
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.8rem;
  margin: 16px 0;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Logistics Card */
.logistics-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 240, 255, 0.08) 100%);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.container-graphic {
  background: rgba(2, 5, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 25px;
  text-align: center;
}

.container-cutout {
  border: 2px dashed var(--neon-gold);
  border-radius: 8px;
  padding: 20px 10px;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 184, 0, 0.06);
}

.cube-box {
  width: 104px;
  height: 104px;
  border: 2px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: #FFF;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

/* ==========================================================================
   BUILDER SECTION (RESPONSIVE, STABLE, DUAL-ENGINE 2D/3D)
   ========================================================================== */
.builder-viewport-container {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.2), var(--shadow-card);
}

.builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.view-mode-selector {
  display: inline-flex;
  background: rgba(2, 5, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.view-mode-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099FF 100%);
  color: #02050E;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.viewport-stage {
  position: relative;
  background: #01040A;
  border: 1.5px solid var(--border-neon);
  border-radius: var(--radius-md);
  height: 580px;
  min-height: 580px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.1);
}

#canvas3D {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

#canvas3D:active {
  cursor: grabbing;
}

#canvas2D {
  width: 100% !important;
  height: 100% !important;
  display: none;
  cursor: crosshair;
}

.viewport-overlay-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.viewport-overlay-controls > * {
  pointer-events: auto;
}

.overlay-btn-group {
  display: flex;
  gap: 6px;
  background: rgba(2, 5, 14, 0.85);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.overlay-btn-group .btn {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.overlay-btn-group .btn.active {
  background: var(--neon-cyan);
  color: #02050E;
  font-weight: 700;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.viewport-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 5, 14, 0.92);
  border: 1px solid var(--border-neon);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--neon-cyan);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  white-space: nowrap;
}

/* Sidebar for Builder */
.builder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-group-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 10px 0 6px 0;
  font-weight: 700;
}

.module-palette-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.module-palette-grid::-webkit-scrollbar {
  width: 4px;
}
.module-palette-grid::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.palette-item:hover, .palette-item.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  color: #FFF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.palette-item-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 10px;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

/* Live Stats & Container Summary */
.builder-stats-box {
  background: rgba(2, 5, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.06);
}

.builder-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.builder-stat-line strong {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.builder-stat-line.container-calc {
  background: rgba(255, 184, 0, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 0, 0.45);
  margin: 10px 0;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.builder-stat-line.container-calc strong {
  color: var(--neon-gold);
  font-size: 1.15rem;
  text-shadow: 0 0 10px var(--neon-gold);
}

.builder-stat-line.total-budget {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}

.builder-stat-line.total-budget strong {
  color: var(--neon-emerald);
  font-size: 1.4rem;
  text-shadow: 0 0 15px var(--neon-emerald);
}

/* Cost Breakdown Cards (15k Strategy) */
.cost-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.cost-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.cost-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cost-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.cost-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neon-emerald);
  text-shadow: 0 0 10px var(--neon-emerald-glow);
}

/* ALL 12 IMAGES GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  background: #01040A;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 35px rgba(0, 240, 255, 0.35);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 5, 14, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.gallery-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.gallery-title {
  font-size: 1.05rem;
  color: #FFF;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.3);
  border: 1px solid var(--border-neon);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Contact & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.2), var(--shadow-card);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(2, 5, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

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

.form-status-msg {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.9rem;
}

.form-status-msg.success {
  display: block;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--neon-emerald);
  color: var(--neon-emerald);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.form-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #EF4444;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  background: #010308;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .viewport-stage {
    height: 480px;
    min-height: 480px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin: 0 auto 36px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .logistics-card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
}


/* Category Filter Bar & Module Catalog Styling */
.category-filter-bar .btn {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-filter-bar .btn:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.3);
}

.category-filter-bar .btn.active {
  background: var(--primary);
  color: #020617;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.module-palette-grid::-webkit-scrollbar {
  width: 5px;
}

.module-palette-grid::-webkit-scrollbar-track {
  background: rgba(2, 6, 16, 0.6);
  border-radius: 4px;
}

.module-palette-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

.module-palette-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.palette-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(2px);
}

.palette-item.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.palette-item-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}
