/* Car Valuation AI - Styles */

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

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  color: #1a202c;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}

/* Header */
.header {
  text-align: center;
  padding: 24px 20px 20px 20px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  color: #ffffff;
  border-radius: 0 0 24px 24px;
  margin-bottom: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8),
              0 4px 16px rgba(0, 0, 0, 0.6),
              inset 0 2px 0 rgba(255, 255, 255, 0.2),
              inset 0 -2px 8px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  border-bottom: 1px solid #444;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.25),
    transparent);
  animation: shine 4s infinite;
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 50% 50%;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes radiateLight {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 20px rgba(255, 255, 255, 0.9),
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 200, 0.7),
      0 0 60px rgba(255, 255, 150, 0.6),
      0 0 80px rgba(255, 255, 100, 0.5),
      0 0 100px rgba(255, 255, 50, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow:
      0 0 15px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 1),
      0 0 45px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 255, 200, 0.8),
      0 0 80px rgba(255, 255, 150, 0.7),
      0 0 100px rgba(255, 255, 100, 0.6),
      0 0 120px rgba(255, 255, 50, 0.5),
      0 0 140px rgba(255, 255, 0, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

.header h1 {
  font-size: 1.875rem;
  margin-bottom: 4px;
  font-weight: 900;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 200, 0.7),
    0 0 60px rgba(255, 255, 150, 0.6),
    0 0 80px rgba(255, 255, 100, 0.5),
    0 0 100px rgba(255, 255, 50, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  animation: radiateLight 3s ease-in-out infinite;
}

.tagline {
  font-size: 0.9375rem;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
  background: white;
  padding: 24px 20px 80px 20px;
  border-radius: 0;
  box-shadow: none;
}

.hero-section {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 8px;
}

.hero-section h2 {
  font-size: 1.625rem;
  margin-bottom: 12px;
  color: #1a202c;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-section p {
  font-size: 1rem;
  color: #4a5568;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 500;
  padding: 0 8px;
}

/* Upload Section */
.upload-section {
  margin-bottom: 40px;
}

.upload-section h3 {
  margin-bottom: 24px;
  color: #2d2d2d;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: 0em;
}

.upload-box {
  border: 3px dashed #999;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 50%, #f8f8f8 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
              inset 0 2px 4px rgba(255, 255, 255, 0.8),
              inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.upload-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent);
  animation: uploadShine 3s infinite;
}

@keyframes uploadShine {
  0%, 80% { left: -100%; }
  100% { left: 100%; }
}

.upload-box:hover, .upload-box.dragover {
  border-color: #000;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
              inset 0 2px 4px rgba(255, 255, 255, 0.9),
              inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.upload-placeholder svg {
  color: #667eea;
  margin-bottom: 15px;
}

.upload-placeholder p {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}

.upload-placeholder span {
  font-size: 0.9rem;
  color: #999;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.btn-remove {
  margin-top: 15px;
  padding: 8px 20px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-remove:hover {
  background: #d32f2f;
}

/* Camera Buttons */
.camera-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-camera,
.btn-upload {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  color: #f0f0f0;
  border: 1px solid #444;
  border-top: 1px solid #555;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', 'Inter', sans-serif;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              0 2px 8px rgba(0, 0, 0, 0.5),
              inset 0 2px 1px rgba(255, 255, 255, 0.2),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn-camera::before,
.btn-upload::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.25),
    transparent);
  pointer-events: none;
  z-index: 1;
}

.btn-camera::after,
.btn-upload::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 12px 12px 50% 50%;
}

.btn-upload {
  background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 25%, #c0c0c0 50%, #d0d0d0 75%, #e8e8e8 100%);
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
              0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 2px 1px rgba(255, 255, 255, 0.8),
              inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.btn-camera svg,
.btn-upload svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-camera:hover {
  background: linear-gradient(145deg, #0a0a0a 0%, #333333 25%, #222222 50%, #333333 75%, #0a0a0a 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8),
              0 4px 15px rgba(0, 0, 0, 0.6),
              inset 0 2px 1px rgba(255, 255, 255, 0.25),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.btn-camera:hover::before {
  animation: buttonShine 0.8s;
}

.btn-upload:hover {
  background: linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%, #f0f0f0 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4),
              0 4px 15px rgba(0, 0, 0, 0.3),
              inset 0 2px 1px rgba(255, 255, 255, 0.9),
              inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.btn-upload:hover::before {
  animation: buttonShine 0.8s;
}

.btn-camera svg,
.btn-upload svg {
  flex-shrink: 0;
}

/* Camera Container */
.camera-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camera-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.camera-controls {
  position: absolute;
  top: 70%; /* Position lower for easier thumb reach */
  transform: translateY(-50%); /* Perfect centering */
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  border-radius: 20px;
  margin: 0 20px;
}

.btn-capture {
  min-width: 130px;
  height: 100px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 5px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
              0 0 0 2px rgba(102, 126, 234, 0.5);
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  gap: 6px;
}

.btn-capture:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.8),
              0 0 0 3px rgba(102, 126, 234, 0.6);
}

.btn-capture svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.0625rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 700;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: 0em;
}

.btn-primary {
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              0 2px 8px rgba(0, 0, 0, 0.5),
              inset 0 2px 1px rgba(255, 255, 255, 0.25),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
  border-top: 1px solid #555;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.3),
    transparent);
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 10px 10px 50% 50%;
}

.btn-primary span {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8),
              0 4px 15px rgba(0, 0, 0, 0.6),
              inset 0 2px 1px rgba(255, 255, 255, 0.3),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  background: linear-gradient(145deg, #0a0a0a 0%, #333333 25%, #222222 50%, #333333 75%, #0a0a0a 100%);
}

.btn-primary:hover:not(:disabled)::before {
  animation: buttonShine 0.8s;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6),
              inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

@keyframes buttonShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-secondary {
  background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 25%, #c0c0c0 50%, #d0d0d0 75%, #e8e8e8 100%);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
              0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 2px 1px rgba(255, 255, 255, 0.8),
              inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  border-top: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.6),
    transparent);
  z-index: 1;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 10px 10px 50% 50%;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4),
              0 4px 15px rgba(0, 0, 0, 0.3),
              inset 0 2px 1px rgba(255, 255, 255, 0.9),
              inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%, #f0f0f0 100%);
}

.btn-secondary:hover::before {
  animation: buttonShine 0.8s;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Divider */
.divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.divider span {
  background: white;
  padding: 0 20px;
  position: relative;
  color: #999;
  font-weight: 500;
}

/* Manual Section */
.manual-section {
  text-align: center;
  margin-bottom: 40px;
}

.manual-section h3 {
  margin-bottom: 20px;
  color: #667eea;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.feature {
  padding: 20px 16px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  border-radius: 16px;
  text-align: center;
  border: 1px solid #444;
  border-top: 1px solid #555;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              0 2px 8px rgba(0, 0, 0, 0.5),
              inset 0 2px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2),
    transparent);
  pointer-events: none;
  z-index: 1;
}

.feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px 16px 50% 50%;
}

.feature:active {
  transform: scale(0.97);
}

.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8),
              0 6px 20px rgba(0, 0, 0, 0.6),
              inset 0 2px 1px rgba(255, 255, 255, 0.2),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  background: linear-gradient(145deg, #0a0a0a 0%, #333333 25%, #222222 50%, #333333 75%, #0a0a0a 100%);
}

.feature:hover::before {
  animation: featureShine 1.2s;
}

@keyframes featureShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.feature h4 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0em;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3),
               0 4px 15px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
}

.feature p {
  color: #c0c0c0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Identification Result */
.identification-result {
  margin-top: 30px;
  padding: 20px;
  background: #f0fdf4;
  border: 2px solid #48bb78;
  border-radius: 8px;
}

.identification-result h4 {
  margin-bottom: 15px;
  color: #22543d;
}

.id-result p {
  margin: 8px 0;
  font-size: 1rem;
}

.condition-preview, .matches-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #c6f6d5;
}

/* Form Styles */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 20px;
  color: #667eea;
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: #1a202c;
  font-size: 1rem;
  letter-spacing: 0em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #d0d0d0;
  border-top: 2px solid #c0c0c0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Outfit', 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  color: #1a202c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #000;
  border-top-color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              0 0 0 4px rgba(0, 0, 0, 0.1),
              inset 0 2px 4px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  transform: translateY(-1px);
}

.form-group select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.info-box {
  background: #f9f9ff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  border-left: 4px solid #667eea;
}

.info-box h4 {
  margin-bottom: 15px;
  color: #667eea;
}

.info-box ul {
  list-style-position: inside;
  color: #666;
}

.info-box li {
  margin-bottom: 8px;
}

/* Results Page */
.results-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.results-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.vehicle-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  color: #666;
}

.confidence-score {
  margin-top: 15px;
}

.confidence-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 8px;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
  transition: width 0.5s;
}

/* Pricing Section */
.pricing-section {
  margin-bottom: 40px;
}

.pricing-section h3 {
  margin-bottom: 20px;
  color: #667eea;
  font-size: 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pricing-card.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.pricing-card h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.pricing-card.primary h4 {
  color: white;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #667eea;
}

.pricing-card.primary .price {
  color: white;
}

.pricing-card p {
  color: #666;
  font-size: 0.9rem;
}

.pricing-card.primary p {
  color: rgba(255,255,255,0.9);
}

/* Production Section */
.production-section {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff7ed;
  border-radius: 10px;
}

.production-section h3 {
  margin-bottom: 15px;
  color: #c2410c;
}

.production-info {
  display: grid;
  gap: 10px;
}

.production-stat {
  font-size: 1.1rem;
  color: #333;
}

/* Analysis Section */
.analysis-section {
  margin-bottom: 40px;
}

.analysis-section h3 {
  margin-bottom: 15px;
  color: #667eea;
}

.analysis-content {
  padding: 20px;
  background: #f9f9ff;
  border-radius: 8px;
  line-height: 1.8;
}

/* Factors Section */
.factors-section {
  margin-bottom: 40px;
}

.factors-section h3 {
  margin-bottom: 15px;
  color: #667eea;
}

.factors-list {
  list-style-position: inside;
  padding: 20px;
  background: #f0fdf4;
  border-radius: 8px;
}

.factors-list li {
  margin-bottom: 10px;
  color: #333;
}

/* Actions */
.actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Disclaimer */
.disclaimer {
  padding: 20px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #78350f;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #b0b0b0;
  margin-top: 40px;
  font-size: 0.75rem;
  background: linear-gradient(145deg, #000000 0%, #1a1a1a 45%, #000000 100%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .hero-section h2 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 20px;
  }

  .vehicle-details {
    flex-direction: column;
    gap: 10px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  /* Mobile camera optimizations */
  .camera-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-camera,
  .btn-upload {
    width: 100%;
    min-width: auto;
    padding: 14px 16px;
    font-size: 0.9375rem;
    gap: 8px;
  }

  .btn-camera svg,
  .btn-upload svg {
    width: 20px;
    height: 20px;
  }

  .camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }

  .camera-container video {
    width: 100vw;
    height: 100vh;
    max-height: none;
  }

  .btn-capture {
    width: 70px;
    height: 70px;
  }

  .camera-controls {
    padding: 20px 15px;
    top: 70%; /* Lower position for easier thumb reach on mobile */
    transform: translateY(-50%);
  }

  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
}

/* Landscape mode for mobile camera */
@media (max-width: 768px) and (orientation: landscape) {
  .camera-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
  }

  .camera-container video {
    width: 100vw;
    height: 100vh;
    max-height: none;
  }

  .camera-controls {
    padding: 15px;
    top: 70%; /* Lower position for easier thumb reach in landscape */
    transform: translateY(-50%);
  }
}

/* About Page Styles */
.about-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 20px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
              inset 0 2px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  animation: shine 4s infinite;
}

.about-hero h2 {
  font-size: 2.125rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.about-subtitle {
  font-size: 1.1875rem;
  color: #c0c0c0;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.cofounders-section,
.leadership-section,
.story-section,
.mission-section,
.values-section,
.tech-section,
.cta-section {
  margin-bottom: 48px;
}

.cofounders-section h3,
.leadership-section h3,
.story-section h3,
.mission-section h3,
.values-section h3,
.tech-section h3,
.cta-section h3 {
  font-size: 1.875rem;
  margin-bottom: 24px;
  color: #1a1a1a;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.cofounders-section {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
              inset 0 2px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.cofounders-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  animation: shine 4s infinite;
}

.cofounders-section h3 {
  color: #ffffff;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.cofounders-subtitle {
  font-size: 1.125rem;
  color: #c0c0c0;
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ceo-card {
  background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 50%, #f8f8f8 100%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              inset 0 2px 4px rgba(255, 255, 255, 0.8),
              inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.ceo-image-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.ceo-image {
  width: 300px;
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.ceo-info h4 {
  font-size: 1.625rem;
  margin-bottom: 8px;
  color: #000;
  font-weight: 900;
}

.ceo-title {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 700;
}

.ceo-bio {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #333;
  font-size: 1.0625rem;
  font-weight: 500;
}

.story-content,
.tech-content {
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.story-content p,
.tech-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #333;
}

.mission-card {
  padding: 32px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
              inset 0 2px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  animation: shine 4s infinite;
}

.mission-card p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  padding: 24px;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #000000 100%);
  border-radius: 16px;
  border: 1px solid #444;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              inset 0 2px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8),
              inset 0 2px 1px rgba(255, 255, 255, 0.2),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.value-card h4 {
  font-size: 1.3125rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.value-card p {
  color: #c0c0c0;
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 500;
}

.tech-features {
  list-style: none;
  padding: 0;
}

.tech-features li {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.tech-features li:last-child {
  border-bottom: none;
}

.tech-features strong {
  color: #000;
  font-weight: 700;
}

.cta-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 50%, #f8f8f8 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.cta-section h3 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: #666;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

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

  .ceo-card {
    padding: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Upgrade Modal Styles */
.upgrade-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.upgrade-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.upgrade-modal-content {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 8px 24px rgba(0, 0, 0, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.8);
  animation: slideUp 0.4s ease;
  border: 2px solid #e0e0e0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.upgrade-modal-header {
  padding: 24px 24px 16px 24px;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #000000 0%, #2a2a2a 50%, #000000 100%);
  border-radius: 22px 22px 0 0;
}

.upgrade-modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.upgrade-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.75rem;
  color: #ffffff;
  transition: all 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

.upgrade-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.upgrade-modal-body {
  padding: 32px 24px;
  text-align: center;
}

.upgrade-icon {
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.upgrade-modal-body h3 {
  font-size: 1.625rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.upgrade-description {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 24px;
  font-weight: 500;
}

.upgrade-description strong {
  color: #000;
  font-weight: 800;
  font-size: 1.25rem;
}

.upgrade-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.upgrade-benefits li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upgrade-modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-btn {
  background: linear-gradient(145deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  color: #000;
  font-weight: 800;
  font-size: 1.125rem;
  padding: 18px 32px;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5),
              0 4px 12px rgba(255, 165, 0, 0.3),
              inset 0 2px 1px rgba(255, 255, 255, 0.5);
}

.upgrade-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #FFE44D 0%, #FFB733 50%, #FFE44D 100%);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6),
              0 6px 16px rgba(255, 165, 0, 0.4),
              inset 0 2px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.upgrade-btn.success {
  background: linear-gradient(145deg, #48bb78 0%, #38a169 50%, #48bb78 100%);
  color: #fff;
}

.upgrade-dismiss-btn {
  background: transparent;
  color: #666;
  font-weight: 600;
  border: 2px solid #d0d0d0;
  box-shadow: none;
}

.upgrade-dismiss-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Thank You Overlay */
.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.5s ease;
}

.thank-you-content {
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
  padding: 48px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.thank-you-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: pulse 1s infinite;
}

.thank-you-content h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.thank-you-content p {
  font-size: 1.125rem;
  color: #4a5568;
  font-weight: 600;
}

@media (max-width: 768px) {
  .upgrade-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .upgrade-modal-header h2 {
    font-size: 1.5rem;
  }

  .upgrade-modal-body {
    padding: 24px 20px;
  }

  .upgrade-modal-body h3 {
    font-size: 1.375rem;
  }

  .upgrade-benefits {
    font-size: 0.9375rem;
  }

  .thank-you-content {
    padding: 36px 24px;
    width: 85%;
  }
}
