/* ═══════════════════════════════════════════════════════════════
   DentGenie Cost Estimator - Premium Dark Theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Colors - Ultra-Premium Cyber Obsidian Palette */
  --bg-primary:     #050811;
  --bg-secondary:   #0b0e17;
  --bg-card:        rgba(15, 22, 38, 0.65);
  --bg-card-hover:  rgba(25, 35, 58, 0.75);
  --bg-input:       rgba(7, 11, 22, 0.6);
  
  --accent:         #ed1c24;
  --accent-hover:   #ff3b42;
  --accent-glow:    rgba(237, 28, 36, 0.45);
  --accent-soft:    rgba(237, 28, 36, 0.1);
  
  --blue:           #0984e3;
  --blue-glow:      rgba(9, 132, 227, 0.35);
  
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  
  --border:         rgba(255, 255, 255, 0.08);
  --border-active:  rgba(237, 28, 36, 0.5);
  
  --success:        #10b981;
  --warning:        #f59e0b;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Shadows */
  --shadow-card: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-glow: 0 0 50px var(--accent-glow);
  
  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
}

/* ─── Base Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, .logo, .btn, .step-number, .header-subtitle, .progress-step {
  font-family: 'Outfit', sans-serif;
}

/* ─── Background Effects ─── */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1527 0%, var(--bg-primary) 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

.glow-1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -250px;
  right: -250px;
  animation: float 18s ease-in-out infinite;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--blue);
  bottom: -200px;
  left: -200px;
  animation: float 22s ease-in-out infinite reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* ─── App Container ─── */
#app {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-md);
  padding-bottom: 140px;
}

/* ─── Header ─── */
.app-header {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo-text {
  color: var(--text-primary);
}

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

.header-subtitle {
  margin-top: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Progress Bar ─── */
.progress-container {
  margin-bottom: var(--space-xl);
}

.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px var(--accent-glow);
  width: 16.66%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
}

.progress-step.active {
  color: var(--accent);
}

.progress-step.completed {
  color: var(--success);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.progress-step.active .progress-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.3);
}

.progress-step.completed .progress-dot {
  background: var(--success);
}

/* ─── Steps ─── */
.steps-container {
  position: relative;
}

.step {
  display: none;
  animation: fadeSlideIn 0.4s var(--ease);
}

.step.active {
  display: block;
}

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

.step-header {
  margin-bottom: var(--space-xl);
}

.step-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  opacity: 0.7;
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

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

/* ─── Vehicle Types Grid ─── */
.vehicle-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.vehicle-type-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.vehicle-type-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.vehicle-type-card:hover {
  border-color: rgba(237, 28, 36, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.vehicle-type-card:hover::before {
  opacity: 1;
}

.vehicle-type-card.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.vehicle-type-card.selected::before {
  opacity: 1;
}

.vehicle-type-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.vehicle-type-label {
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.vehicle-type-badge {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 2px 10px;
  background: rgba(237, 28, 36, 0.15);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ─── Form Controls ─── */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  pointer-events: none;
}

select, input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ─── Color Grid ─── */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 16px var(--space-xs);
  padding: 10px 0;
}

.color-option-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.color-swatch {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-option-wrapper:hover .color-swatch {
  transform: scale(1.08);
  border-color: rgba(0, 238, 252, 0.4);
}

.color-option-wrapper.selected .color-swatch {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.5);
  transform: scale(1.1);
}

.color-swatch-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.color-option-wrapper:hover .color-swatch-label,
.color-option-wrapper.selected .color-swatch-label {
  color: #ffffff;
}

/* ─── Car Diagram ─── */
.car-diagram-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.car-view-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.view-tab {
  flex: 1;
  padding: var(--space-md);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.view-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.view-tab.active {
  color: var(--text-primary);
}

.view-tab.active::after {
  transform: scaleX(1);
}

.car-diagram {
  padding: var(--space-lg);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

/* Hologram 3D Viewer */
.hologram-viewer {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(0, 238, 252, 0.25);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 0 15px rgba(0, 238, 252, 0.15), inset 0 0 8px rgba(0, 238, 252, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: perspective(600px) rotateX(15deg);
  transition: all 0.3s ease;
}

.hologram-viewer:hover {
  border-color: rgba(0, 238, 252, 0.5);
  box-shadow: 0 0 25px rgba(0, 238, 252, 0.3), inset 0 0 12px rgba(0, 238, 252, 0.2);
}

.hologram-stage {
  perspective: 400px;
  transform-style: preserve-3d;
}

.hologram-spin-img {
  animation: hologramSpin 8s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 8px rgba(0, 238, 252, 0.8)) brightness(1.3);
}

@keyframes hologramSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.car-diagram svg {
  max-width: 100%;
  height: auto;
}

.car-panel {
  cursor: pointer;
  transition: all 0.2s var(--ease);
  fill: rgba(0, 238, 252, 0.02);
  stroke: rgba(0, 238, 252, 0.25);
  stroke-width: 1.5;
}

.car-panel:hover {
  fill: rgba(0, 238, 252, 0.08);
  stroke: rgba(0, 238, 252, 0.6);
}

.car-panel.selected {
  fill: rgba(255, 83, 87, 0.35);
  stroke: #ff5357;
  stroke-width: 2;
  animation: panelPulse 2s ease-in-out infinite;
}

@keyframes panelPulse {
  0%, 100% { fill: rgba(255, 83, 87, 0.3); }
  50% { fill: rgba(255, 83, 87, 0.45); }
}

.car-panel-label {
  font-size: 8px;
  fill: rgba(0, 238, 252, 0.7);
  pointer-events: none;
  text-anchor: middle;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.car-panel.selected + .car-panel-label,
.car-panel.selected ~ .car-panel-label {
  fill: #ff5357;
  font-weight: 700;
}

/* Selected panels summary */
.selected-panels-summary {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  min-height: 48px;
}

.no-panels {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(237, 28, 36, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.panel-tag:hover {
  background: rgba(237, 28, 36, 0.15);
}

.panel-tag .remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

/* ─── Panel Details (Step 4) ─── */
.panel-detail-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-card);
}

.panel-detail-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.panel-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.panel-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.panel-detail-name {
  font-weight: 600;
  font-size: 1rem;
}

.panel-detail-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Size selector */
.size-selector {
  margin-bottom: var(--space-md);
}

.size-selector label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.size-option {
  padding: 10px 8px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.size-option:hover {
  border-color: rgba(255,255,255,0.15);
}

.size-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.size-option .size-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.size-option .size-range {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.quantity-selector label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-bottom: 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}

.qty-btn:hover {
  background: rgba(255,255,255,0.05);
}

.qty-btn:active {
  background: rgba(255,255,255,0.1);
}

.qty-value {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 8px 0;
}

/* ─── Extras (Step 5) ─── */
.extra-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-card);
}

.extra-option:hover {
  border-color: rgba(255,255,255,0.1);
}

.extra-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.extra-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.extra-info strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.extra-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-secondary);
  top: 2.5px;
  left: 3px;
  transition: all var(--duration) var(--ease);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(23px);
  background: #fff;
}

/* ─── Results (Step 6) ─── */
.results-container {
  margin-bottom: var(--space-xl);
}

.result-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.result-total {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(237,28,36,0.08), rgba(5,110,185,0.05));
  border-bottom: 1px solid var(--border);
}

.result-total .price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.result-total .price-value {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-total .price-vat {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.result-total .estimate-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--warning);
}

.result-breakdown {
  padding: var(--space-lg);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.88rem;
}

.breakdown-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.breakdown-row .label {
  color: var(--text-secondary);
}

.breakdown-row .value {
  font-weight: 600;
}

.breakdown-row.total {
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--border);
  font-size: 1rem;
}

.breakdown-row.total .label {
  color: var(--text-primary);
  font-weight: 700;
}

.breakdown-row.total .value {
  color: var(--accent);
  font-weight: 800;
}

/* Estimated days */
.result-info-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.info-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.info-chip .chip-icon {
  font-size: 1.3rem;
}

.info-chip .chip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-chip .chip-value {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ─── Contact Form ─── */
.contact-form-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.contact-form-container h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.contact-form-container > p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn-next {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

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

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-back:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ─── Navigation ─── */
.step-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, var(--bg-primary), rgba(10,14,23,0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  max-width: 680px;
  margin: 0 auto;
}

.step-nav.hide-back .btn-back {
  visibility: hidden;
}

.step-nav.hide-next .btn-next {
  visibility: hidden;
}

/* ─── CTA Bar ─── */
.cta-bar {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(5, 110, 185, 0.15);
  border: 1px solid rgba(5, 110, 185, 0.3);
  border-radius: var(--radius-full);
  color: #64B5F6;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(8px);
}

.cta-phone:hover {
  background: rgba(5, 110, 185, 0.25);
  transform: translateY(-2px);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  #app {
    padding: var(--space-sm);
    padding-bottom: 140px;
  }
  
  .vehicle-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .vehicle-type-card {
    padding: var(--space-md);
  }
  
  .size-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-total .price-value {
    font-size: 2.2rem;
  }
  
  .progress-step span:not(.progress-dot) {
    display: none;
  }
  
  .progress-step.active span:not(.progress-dot) {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: 4px;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .step-header h2 {
    font-size: 1.3rem;
  }

  .result-info-row {
    flex-direction: column;
  }
}

/* ─── Animations ─── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* Success checkmark */
.success-message {
  text-align: center;
  padding: var(--space-2xl);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: pop 0.4s var(--ease);
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-message h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.success-message p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Per-Panel Options (Step 4 Card) ─── */
.panel-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-options-row > div {
  flex: 1;
}

.panel-aluminum-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.panel-aluminum-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.panel-aluminum-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.panel-aluminum-text {
  font-size: 0.9rem;
  font-weight: 500;
.panel-aluminum-label input:checked ~ .panel-aluminum-text {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .panel-options-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ─── Header Main Row & Language Selector ─── */
.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-md);
}

.logo-svg {
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.lang-switcher {
  display: flex;
  gap: var(--space-xs);
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.lang-btn:hover, .lang-btn.active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 10px rgba(237, 28, 36, 0.2);
}

/* ─── Form Rows ─── */
.form-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.form-row .col {
  flex: 1;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ─── Custom price & dismount inputs ─── */
.custom-price-section {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(237, 28, 36, 0.03);
  border: 1px solid rgba(237, 28, 36, 0.15);
  border-radius: var(--radius-md);
}

.custom-price-section label {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.custom-dismount-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dismount-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.dismount-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.dismount-fields {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.dismount-fields input[type="text"] {
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.dismount-cost-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.dismount-cost-group label {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dismount-cost-group input[type="number"] {
  width: 100px;
  padding: 8px 12px;
  font-size: 0.85rem;
  text-align: center;
}

/* ─── Vehicle SVG Icon ─── */
.vt-svg-icon {
  width: 54px;
  height: 28px;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.vehicle-type-card:hover .vt-svg-icon,
.vehicle-type-card.selected .vt-svg-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transform: scale(1.05);
}

/* ─── Photo Uploader ─── */
.photo-upload-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.photo-upload-header {
  margin-bottom: var(--space-md);
}

.photo-upload-header strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.photo-upload-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.photo-dropzone {
  background: var(--bg-input);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone-prompt {
  text-align: center;
}

.dropzone-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

.dropzone-prompt p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: var(--space-md);
}

.photo-thumbnail {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
}

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

@media (max-width: 480px) {
  .photo-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Print Button & Print Layout ─── */
.btn-print {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  width: 100%;
  margin-top: 15px;
  margin-bottom: 25px;
  padding: 14px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-print:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}

.print-only {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  #app, header, nav, dialog, #scannerModal, #aiScannerModal, .fixed.top-0, .step-nav, #stepNav {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  
  .print-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .print-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
  }
  
  .print-company-details {
    font-size: 11px;
    color: #475569;
    margin: 4px 0 0 0;
    font-weight: 500;
  }
  
  .print-date-section {
    font-size: 12px;
    color: #334155;
    text-align: right;
  }
  
  .print-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
  }
  
  .print-info-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
    background: #f8fafc;
  }
  
  .print-info-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 6px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: 0.05em;
  }
  
  .print-info-card p {
    font-size: 11px;
    margin: 6px 0;
    color: #334155;
  }
  
  .print-info-card strong {
    color: #0f172a;
  }
  
  .print-table-section {
    margin-bottom: 30px;
  }
  
  .print-table-section h3,
  .print-photos-section h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
  }
  
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
  }
  
  .print-table th,
  .print-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
  }
  
  .print-table th {
    background: #f1f5f9 !important;
    font-weight: 700;
    color: #0f172a;
  }
  
  .print-table td {
    color: #334155;
  }
  
  .print-breakdown-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 35px;
  }
  
  .print-breakdown {
    width: 300px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 18px;
    background: #f8fafc;
    font-size: 11px;
  }
  
  .print-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #475569;
  }
  
  .print-total-row {
    border-top: 2px solid #0f172a;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #0f172a;
  }
  
  .print-photos-section {
    page-break-inside: avoid;
  }
  
  .print-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .print-photo-item {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
  }
}

/* ─── Navigation Price Indicator ─── */
.nav-price-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.nav-price-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(237, 28, 36, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   Obsidian Kinetic Theme Styles
   ═══════════════════════════════════════════════════════════════ */

/* 1. Background Grid */
.obsidian-grid {
  background-color: #0A0A0A !important;
  background-image: 
    linear-gradient(rgba(0, 238, 252, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 238, 252, 0.02) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  position: relative;
}

/* 2. Glass Panel */
.glass-panel {
  background: rgba(26, 26, 26, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 238, 252, 0.15) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-radius: 0px !important;
}

/* 3. Laser Scanner Line */
.scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00eefc, transparent);
  box-shadow: 0 0 10px #00eefc;
  animation: scan 4s linear infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 4. HUD Corner Marks */
.hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #00eefc;
  border-style: solid;
  pointer-events: none;
}

.hud-corner-tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hud-corner-tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.hud-corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.hud-corner-br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* 5. Damage Pulse */
.damage-pulse {
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 83, 87, 0.5);
    border-color: rgba(255, 83, 87, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 83, 87, 0.9);
    border-color: #ff5357;
  }
}

/* 6. HUD Underline Input Focus */
.hud-underline:focus-within {
  border-bottom: 1.5px solid #00eefc !important;
  box-shadow: 0 4px 12px -4px rgba(0, 238, 252, 0.25) !important;
}

/* ════════════════════════════════════
   Vehicle Type Card Styles (Reference Design)
   ════════════════════════════════════ */

/* Scan line animation inside cards */
.scan-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00dbe9, transparent);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 3s linear infinite;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Active type selection state */
.active-type {
  border-color: #00dbe9 !important;
  background: rgba(0, 219, 233, 0.1) !important;
}

.vehicle-type-img {
  mix-blend-mode: screen;
}

/* HUD underline input style */
.hud-underline {
  border-bottom: 1.5px solid #353534;
  transition: all 0.3s ease;
}

.hud-underline:focus-within {
  border-bottom-color: #00dbe9;
  box-shadow: 0 4px 10px -4px rgba(0, 219, 233, 0.4);
}

/* ════════════════════════════════════
   AI Camera Scanner Overlay & HUD Styles
   ════════════════════════════════════ */
#aiScannerModal {
  z-index: 100;
}

.scanning-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 238, 252, 0.8), transparent);
  box-shadow: 0 0 10px #00eefc;
  animation: scanning-sweep-anim 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 15;
}

@keyframes scanning-sweep-anim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scanner-spinner {
  border-top-color: #00eefc !important;
  box-shadow: 0 0 10px rgba(0, 238, 252, 0.3);
}

/* Glowing text label blocks overlaying model/badge during simulation */
.scanner-bounding-box {
  position: absolute;
  border: 1.5px solid #00eefc;
  background: rgba(0, 238, 252, 0.15);
  box-shadow: 0 0 8px #00eefc;
  border-radius: 4px;
  animation: glow-pulse-scanner 1.5s ease-in-out infinite alternate;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 25;
}

@keyframes glow-pulse-scanner {
  from {
    box-shadow: 0 0 4px #00eefc, inset 0 0 2px rgba(0, 238, 252, 0.2);
    border-color: rgba(0, 238, 252, 0.7);
  }
  to {
    box-shadow: 0 0 12px #00eefc, inset 0 0 6px rgba(0, 238, 252, 0.4);
    border-color: #00eefc;
  }
}

.scanner-label {
  position: absolute;
  top: -18px;
  left: 0;
  background: #00eefc;
  color: #050811;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 5px rgba(0, 238, 252, 0.5);
}


/* AI Autofill highlight glows */
.ai-autofill-highlight {
  animation: ai-glow-pulse-field 2.5s ease-in-out;
  border-color: #00eefc !important;
}

@keyframes ai-glow-pulse-field {
  0% {
    box-shadow: 0 0 0px transparent;
    border-color: rgba(0, 238, 252, 0.3);
  }
  20% {
    box-shadow: 0 0 20px rgba(0, 238, 252, 0.45);
    border-color: #00eefc;
  }
  60% {
    box-shadow: 0 0 15px rgba(0, 238, 252, 0.3);
    border-color: #00eefc;
  }
  100% {
    box-shadow: 0 0 0px transparent;
  }
}

.pulse-cyan-glow {
  animation: ai-glow-pulse-container 2.5s ease-in-out;
}

@keyframes ai-glow-pulse-container {
  0% {
    border-color: rgba(95, 62, 61, 0.2);
    box-shadow: 0 0 0px transparent;
  }
  20% {
    border-color: rgba(0, 238, 252, 0.5);
    box-shadow: 0 0 25px rgba(0, 238, 252, 0.12);
  }
  100% {
    border-color: rgba(95, 62, 61, 0.2);
    box-shadow: 0 0 0px transparent;
  }
}

/* --- Step 1 Layout Scroll Lock & Desktop Camera Box styles --- */
body.step1-lock {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  width: 100% !important;
}

/* Global scroll prevention for the entire application layout */
html, body {
  overflow: hidden !important;
  height: 100% !important;
}

#app {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

/* Let the main container fill remaining space and scroll internally if content overflows */
main.steps-container {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding-bottom: 120px !important; /* Space so it's not hidden behind navigation */
  max-width: 36rem !important; /* Keep aligned and clean */
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

/* Completely disable scrolling of content area on Step 1 (camera step) */
body.step1-lock main.steps-container {
  overflow-y: hidden !important;
}


/* Custom scrollbar to look sleek and futuristic */
main.steps-container::-webkit-scrollbar {
  width: 4px;
}
main.steps-container::-webkit-scrollbar-track {
  background: transparent;
}
main.steps-container::-webkit-scrollbar-thumb {
  background: rgba(0, 238, 252, 0.2);
  border-radius: 4px;
}
main.steps-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 238, 252, 0.4);
}

#aiScannerModal {
  /* Prevent scrolling of background elements when modal is open */
  overscroll-behavior: contain;
}

#aiScannerModal > div {
  /* Scale styling for scanner layout inside constrained desktop wrapper */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-primary);
}


