/* Header Styles */
/* Search Bar */
.search-bar {
  position: fixed;
  top: 60px; /* Right below the header */
  left: 0;
  right: 0;
  background: #444;
  padding: 10px;
  z-index: 999;
  display: none; /* Hidden by default */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-bar.visible {
  display: block;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  color: #000;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 0 2px #4CAF50;
}

.search-input::placeholder {
  color: #999;
  font-weight: 500;
}

/* Loading Spinner Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.loading-overlay.visible {
  display: flex;
}

.loading-spinner {
  border: 4px solid #333;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.loading-hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.loading-hint p {
  margin: 8px 0;
  line-height: 1.4;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Build value page loading states */
#build-value {
  position: relative;
}

.build-value-content {
  visibility: hidden;
  pointer-events: none;
}

.build-value-content.ready {
  visibility: visible;
  pointer-events: auto;
}

.build-value-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  flex-direction: column;
}

.build-value-loading-overlay.visible {
  display: flex;
}

.build-value-loading-text {
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

/* Dropdown menu */
.menu-container {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.dropdown-menu {
  display: none; /* Changed from block to none */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #484848;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  z-index: 1001;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: #34495e;
}

.dropdown-menu.show {
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.header-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  text-align: center;
  flex: 1;
  letter-spacing: 1px;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header-logo:hover {
  transform: translateX(-50%) translateY(-1px);
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
  transition: all 0.3s ease;
}

/* TIRE Test Button */
.test-deduct-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.test-deduct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

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

.logo-img:hover {
  transform: scale(1.08);
  filter: brightness(1.3) drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.header-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.header-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  max-width: 32px;
  max-height: 32px;
}

/* Ensure content doesn't hide behind fixed header */
body {
  padding-top: 60px;
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Adjust screen content to account for fixed header */
.screen {
  padding-top: 70px; /* Space for the fixed header */
  box-sizing: border-box;
  position: relative; /* For absolute positioning of back button */
  display: none; /* Will be overridden by JS with flex */
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 1rem;
  min-height: 100vh;
  width: 100%;
  padding-top: 70px; /* Space for header - override the padding from above */
}

/* Ensure buttons are clickable and visible */
button {
  z-index: 5;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

/* Back button styling */
.back-btn {
  position: absolute;
  top: 10px; /* Position right below header */
  left: 25px;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

/* Style buttons container */
.style-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--style-button-gap);
  width: 100%;
  margin: 1rem 0;
}

/* Style button general styling */
.style-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--style-button-width);
  max-width: var(--style-button-max-width);
  padding: 0;
  background: none;
  border: none;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.style-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--style-button-border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.style-button:hover img {
  transform: translateY(var(--button-hover-lift));
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.button-label {
  font-size: var(--button-label-size);
  margin-top: var(--button-label-margin);
  letter-spacing: var(--button-label-spacing);
  color: white;
  text-shadow: var(--button-label-shadow);
  pointer-events: none;
  font-weight: 700;
}

/* Coming Soon Styles */
.style-button.coming-soon {
  position: relative;
  opacity: 0.7;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.style-button.coming-soon img {
  filter: grayscale(40%) brightness(0.8);
  position: relative;
  z-index: 1;
}

.style-button.coming-soon .button-label {
  position: relative;
  z-index: 2;
  margin-top: var(--button-label-margin);
  color: white;
  font-size: var(--button-label-size);
  font-weight: 700;
  text-shadow: var(--button-label-shadow);
}

.style-button.coming-soon:hover {
  opacity: 0.85;
}

.style-button.coming-soon:hover img {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  pointer-events: none;
  z-index: 5;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* Basic mobile-first styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: #fff;
}

body, html {
  height: 100%;
  background: #000;
  font-weight: 700; /* Ensure base text is bold */
}


.screen.active {
  display: flex;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.subheading {
  font-size: 0.9rem; /* half of 1.8rem */
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  color: #fff !important;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

p {
  margin-bottom: 1rem;
}

button {
  background: #d8d8d8;
  color: #000;
  border: none;
  padding: 0.4rem 1.5rem;
  font-weight: 700; /* Ensure buttons are bold */
  margin: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  opacity: 0.9;
}

ul {
  list-style: none;
}

li + li {
  margin-top: 0.5rem;
}

.hero-title {
  font-family: "Adobe Gurmukhi", sans-serif;
  font-size: 17pt; /* Reduced to 17pt */
  white-space: nowrap; /* Keep text on one line */
  font-weight: 700;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0;
  line-height: 1;
}

/* Hero background for first page */
#front-page-1 {
  background: url('assets/front-page-hero.jpg?v=1') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 2rem;
}

.spec-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 3rem 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
  color: white;
  font-size: 0.8rem;
  text-align: center;
  margin: 0 2rem 0.2rem 2rem;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Roadmap Styles */
.roadmap-container {
  padding: 1rem;
  max-width: 420px; /* Increased from 400px */
  margin: 0 auto;
}

.roadmap-overview-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap-overview-header h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.roadmap-overview-header p {
  color: #ccc;
  font-size: 0.9rem;
}

.phases-overview {
  margin-bottom: 2rem;
}

.phase-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phase-card:hover {
  background: #2a2a2a;
  border-color: #007AFF;
}

.phase-card.current-phase {
  border-color: #00ff00;
  background: #0a2a0a;
}

.phase-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.phase-info {
  flex: 1;
}

.phase-title {
  color: white;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.phase-subtitle {
  color: #ccc;
  font-size: 0.85rem;
}

.phase-arrow {
  color: #666;
  font-size: 1.2rem;
}

.roadmap-summary {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem 1rem; /* Reduced horizontal padding */
  text-align: center;
  overflow: hidden; /* Prevent text overflow */
}

.summary-title {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
}

.summary-stat {
  flex: 1;
  min-width: 0; /* Allow flex items to shrink */
  text-align: center;
}

.stat-value {
  color: #00ff00;
  font-size: 1.2rem; /* Reduced from 1.5rem */
  font-weight: bold;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stat-label {
  color: #ccc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Continue button */
.continue-button {
  background: linear-gradient(135deg, #007AFF, #0056CC);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin: 2rem auto;
  display: block;
  min-width: 120px;
}

.continue-button:hover {
  background: linear-gradient(135deg, #0056CC, #003D99);
}

/* Responsive adjustments for roadmap */
@media (max-width: 400px) {
  .roadmap-container {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .stat-value {
    font-size: 1rem; /* Even smaller on mobile */
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .summary-stats {
    gap: 0.25rem;
  }
}

.subtitle {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem 0;
  margin: 0.2rem 0 0.2rem 0; /* Adjust these values as needed */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

#front-page-1 button {
  margin-top: 4rem; /* Space between title and button */
}

#front-page-1 h1,
#front-page-1 .hero-title,
#front-page-1 p,
#front-page-1 button {
  position: relative; /* above overlay */
}

/* Questionnaire Styles */
.questionnaire-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

/* Dropdown Question Styling */
.dropdown-question {
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-question label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown-question select {
  width: 100%;
  padding: 12px 15px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  appearance: none; /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.dropdown-question select:hover {
  background-color: #333;
}

.dropdown-question select:focus {
  outline: none;
  border-color: #1a7efa;
  box-shadow: 0 0 0 2px rgba(26, 126, 250, 0.3);
}

/* Option Buttons (Yes/No) */
.option-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.option-btn {
  flex: 1;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  padding: 12px 15px;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.option-btn:hover {
  background-color: #333;
}

.option-btn.selected {
  background-color: #1a7efa;
  border-color: #1a7efa;
  box-shadow: 0 0 0 2px rgba(26, 126, 250, 0.3);
}

/* Additional Input Field */
.additional-input {
  margin-top: 15px;
  transition: all 0.3s ease;
}

.additional-input input {
  width: 100%;
  padding: 12px 15px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
}

.additional-input input:focus {
  outline: none;
  border-color: #1a7efa;
  box-shadow: 0 0 0 2px rgba(26, 126, 250, 0.3);
}

.next-btn {
  background: #1a7efa;
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1.5rem;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.1s ease;
}

.next-btn:hover {
  background: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Budget Page Styles */
.budget-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

.budget-button {
  width: 100%;
  padding: 15px 20px;
  background-color: #1a7efa;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.budget-button:hover {
  background-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.custom-budget-container {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Dollar input styling */
.dollar-input-wrapper {
  width: 100%;
}

#custom-budget-value {
  width: 100%;
  padding: 15px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 1.2rem;
  outline: none;
}

#custom-budget-value::placeholder {
  color: #aaa;
}

#custom-budget-value:focus {
  border-color: #1a7efa;
  box-shadow: 0 0 0 2px rgba(26, 126, 250, 0.3);
}

#custom-budget-submit {
  width: 100%;
  padding: 15px;
  background-color: #1a7efa;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

#custom-budget-submit:hover {
  background-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Build Value Page Styles */
#build-value {
  display: flex;
  flex-direction: column;
  background-color: #121212;
  color: white;
  padding: 20px;
  min-height: 100vh;
}

.car-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.build-car-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-height: 200px;
}

.build-stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  padding: 10px 0;
}

.build-stats-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.build-stat {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  text-align: left;
}

.stat-label {
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 10px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.build-graph {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-left: 20px;
}

.pentagon-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.pentagon-chart {
  width: 100%;
  height: 100%;
}

.pentagon-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.pentagon-grid-1,
.pentagon-grid-2,
.pentagon-grid-3,
.pentagon-grid-4 {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.5;
}

.performance-data {
  fill: rgba(0, 255, 255, 0.4);
  stroke: #00ffff;
  stroke-width: 2;
  opacity: 0.8;
}

.pentagon-label {
  fill: #fff;
  font-size: 8px;
  font-weight: bold;
  text-anchor: middle;
}

.radar-chart {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.build-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.build-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #333;
}

.category-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.category-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(0%) invert(67%) sepia(61%) saturate(0%) hue-rotate(155deg) brightness(100%) contrast(101%);
}

.category-name {
  flex-grow: 1;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.category-value {
  color: #6dbdff;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Build buttons container */
.build-buttons-container {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.continue-button {
  background-color: #0d6efd;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.continue-button:hover {
  background-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.detail-list-button {
  background-color: #333;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px;
  border: 1px solid #0d6efd;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.detail-list-button:hover {
  background-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Detail List Page Styles */
#detail-list {
  display: flex;
  flex-direction: column;
  background-color: #121212;
  color: white;
  padding: 20px;
  min-height: 100vh;
}

#detail-list h1 {
  text-align: center;
  margin-bottom: 20px;
}

.detail-list-container.ai-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.detail-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
  /* Removed max-height and overflow-y for full page scroll */
  padding: 0 20px;
}

.detail-category {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #333;
}

.detail-category h2 {
  color: #0d6efd;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
}

.detail-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px;
  border-bottom: 1px solid #333;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-name {
  font-weight: 500;
}

.detail-price {
  color: #0d6efd;
  font-weight: 700;
}

/* Garage Page Styles */
#garage {
  background-color: #000;
  color: white;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* User Profile Section */
.user-profile-section {
  position: relative;
  margin-bottom: 30px;
  padding: 20px 0;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.profile-image {
  margin-right: 15px;
  position: relative;
  cursor: pointer;
}

.profile-image:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.avatar-upload-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.avatar-upload-text {
  font-size: 9px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
  transition: transform 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-info {
  flex: 1;
}

.username {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  text-align: left;
}

.user-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.car-count {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.garage-value {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.build-wallet {
  color: #ffd700;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 4px;
  display: inline-block;
}

.location {
  color: #999;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 0 0;
  justify-content: flex-start;
}

.follow-btn, .message-btn {
  background-color: #1a7efa;
  color: white;
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  white-space: nowrap;
}

.message-btn {
  background-color: #d8d8d8;
  color: #000;
  border: none;
}

.follow-btn:hover {
  opacity: 0.9;
}

.message-btn:hover {
  opacity: 0.9;
}

/* Add Car Button */
.add-car-btn {
  position: absolute;
  top: 170px;
  right: 10px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  background-color: #d8d8d8;
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}

.add-car-btn:hover {
  opacity: 0.9;
}

.plus-icon {
  line-height: 1;
  color: #000 !important;
}

/* Car Display Section */
.car-display-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.car-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
}

.nav-arrow {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
  position: absolute;
  z-index: 10;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.nav-arrow:hover {
  color: #1a7efa;
  transform: scale(1.2);
}

.car-showcase {
  width: 100%;
  max-width: 300px;
  margin: 0 60px;
  position: relative;
}

.showcase-car-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.car-info-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.car-info-overlay h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.car-info-overlay p {
  margin: 0;
  font-size: 12px;
  color: #ccc;
}

/* Car Actions - DISABLED to avoid conflict with garage-redesign.css */
/* .car-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
} */

.check-car-btn, .fact-check-btn {
  background: #d8d8d8;
  color: #000;
  border: none;
  padding: 0.4rem 1.5rem;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin: 0.5rem;
}

.check-car-btn {
  background: #d8d8d8;
  color: #000;
}

.check-car-btn:hover {
  opacity: 0.9;
}

.fact-check-btn:hover {
  opacity: 0.9;
}

/* Fact Check Page Styles */
#fact-check {
  background-color: #000;
  color: white;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fact-check-content {
  max-width: 400px;
  margin: 0 auto;
}

.fact-check-placeholder {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  border: 1px solid #333;
}

.fact-check-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.7;
}

/* Part Details Popup Styles */
.part-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.part-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.part-popup-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #333;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.part-popup-overlay.active .part-popup-content {
  transform: scale(1);
}

.part-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.part-popup-close:hover {
  color: #fff;
}

.part-popup-title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding-right: 30px;
}

.part-popup-brand,
.part-popup-price,
.part-popup-misc {
  margin-bottom: 16px;
  color: #e0e0e0;
  line-height: 1.4;
}

.part-popup-label {
  color: #999;
  font-weight: 500;
  display: inline-block;
  min-width: 60px;
  margin-right: 8px;
}

.part-popup-brand-value,
.part-popup-price-value {
  color: #fff;
  font-weight: 600;
}

.part-popup-misc-value {
  color: #ccc;
  font-size: 14px;
  word-break: break-word;
}

.part-popup-actions {
  margin-top: 24px;
  text-align: center;
}

.part-popup-shop-link {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.part-popup-shop-link:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-1px);
}

/* Enhanced detail item hover effect */
.detail-item:hover {
  background-color: #2a2a2a;
  border-radius: 8px;
  transform: translateY(-1px);
}

/* Upgrade Roadmap Page Base Styles */
#upgrade-roadmap {
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 100vh;
}

/* Upgrade Roadmap Detail Styles */
#upgrade-roadmap-detail {
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 100vh;
}

.roadmap-detail-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}

.stage-detail {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.stage-detail.current-stage {
  border: 2px solid #00ff88;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stage-icon-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  background-color: #00ff88;
  color: #000;
}

.stage-detail:nth-child(2) .stage-icon-large {
  background-color: #ffa500;
}

.stage-detail:nth-child(3) .stage-icon-large {
  background-color: #ff4444;
}

.roadmap-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.page-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-dot.active {
  background-color: #00ff88;
}

/* Shop Tips Styles */
#shop-tips {
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 100vh;
}

.shop-tips-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 0;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.tip-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.tip-icon {
  color: #00ff88;
  font-size: 12px;
  margin-top: 5px;
  min-width: 8px;
}

.tip-content {
  flex: 1;
}

.tip-text {
  font-size: 16px;
  line-height: 1.4;
  color: #e0e0e0;
}

/* Responsive Design for new pages */
@media (max-width: 768px) {
  .roadmap-progress-container {
    gap: 30px;
  }
  
  .progress-circle svg {
    width: 160px;
    height: 160px;
  }
  
  .progress-circle circle {
    r: 68;
  }
  
  .progress-amount {
    font-size: 36px;
  }
  
  .progress-total {
    font-size: 24px;
  }
  
  .stage-icon-large {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Roadmap Parts List Styles */
.stage-parts-list {
  margin-top: 15px;
  padding: 0 10px;
}

.part-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.part-item:last-child {
  border-bottom: none;
}

.part-info {
  flex: 1;
}

.part-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.part-details {
  font-size: 12px;
  color: #888;
}

.part-difficulty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.difficulty-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.part-difficulty.diy .difficulty-badge {
  background: #4CAF50;
  color: white;
}

.part-difficulty.shop .difficulty-badge {
  background: #FF9800;
  color: white;
}

.part-difficulty.unknown .difficulty-badge {
  background: #666;
  color: white;
}

.difficulty-reason {
  font-size: 10px;
  color: #888;
  max-width: 120px;
  line-height: 1.2;
}

/* Roadmap Overview Styles - Enhanced UI */
.roadmap-overview-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 15px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.roadmap-overview-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4CAF50, #00ff88, #4CAF50);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.roadmap-overview-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.roadmap-overview-header p {
  color: #b0b0b0;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 500;
  margin: 0;
}

.phases-overview {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
}

.phase-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phase-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phase-card.current-phase {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(0, 255, 136, 0.08) 100%);
  box-shadow: 
    0 4px 20px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phase-icon {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-right: 16px;
  min-width: 50px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.phase-card:hover .phase-icon {
  transform: scale(1.1) rotate(5deg);
}

.phase-info {
  flex: 1;
  min-width: 0;
}

.phase-title {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.3px;
  word-wrap: break-word;
}

.phase-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.phase-cost {
  color: #4CAF50;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  white-space: nowrap;
}

.phase-hours {
  color: #FF9800;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 3px 6px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 152, 0, 0.2);
  white-space: nowrap;
}

.phase-parts {
  color: #03A9F4;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 3px 6px;
  background: rgba(3, 169, 244, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(3, 169, 244, 0.2);
  white-space: nowrap;
}

.phase-arrow {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #4CAF50;
  margin-left: 12px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.phase-card:hover .phase-arrow {
  transform: translateX(4px);
  color: #00ff88;
}

.roadmap-summary {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.roadmap-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #00ff88, #4CAF50);
  animation: shimmer 3s ease-in-out infinite;
}

.summary-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.3px;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #4CAF50;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.stat-label {
  color: #b0b0b0;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Enhanced Mobile responsiveness */
@media (max-width: 768px) {
  .roadmap-overview-header {
    padding: 16px 12px;
    margin-bottom: 20px;
  }
  
  .phase-card {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .phase-icon {
    margin-right: 0;
    margin-bottom: 8px;
    align-self: center;
  }
  
  .phase-info {
    width: 100%;
    text-align: center;
  }
  
  .phase-stats {
    justify-content: center;
    gap: 8px;
  }
  
  .phase-arrow {
    margin-left: 0;
    align-self: center;
  }
  
  .summary-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .summary-stat {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  #upgrade-roadmap {
    padding: 15px;
  }
  
  #roadmap-container {
    padding: 0 5px;
  }
  
  .phase-stats {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
}

/* AI Loading Page Styles */
.ai-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.ai-loading-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.ai-car-icon {
  margin-bottom: 30px;
}

.car-animation {
  display: inline-block;
  animation: carAnalyze 3s ease-in-out infinite;
}

.analyzing-car-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
  border: 3px solid rgba(0, 123, 255, 0.3);
}

@keyframes carAnalyze {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
  33% {
    transform: scale(1.05);
    filter: brightness(1.2) saturate(1.3);
  }
  66% {
    transform: scale(0.98);
    filter: brightness(0.9) saturate(1.1);
  }
}

.ai-loading-title {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
  letter-spacing: 2px;
}

.ai-loading-subtitle {
  color: #ccc;
  font-size: 16px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.ai-loading-motivation {
  text-align: center;
  margin: 0 0 40px 0;
  padding: 15px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.ai-motivation-text {
  color: #00d4ff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.ai-motivation-subtext {
  color: #ccc;
  font-size: 13px;
}

.progress-container {
  margin-bottom: 25px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border-radius: 6px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.progress-text {
  color: #00d4ff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.ai-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  max-width: 500px;
}

.ai-step.active {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.ai-step.completed {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(40, 167, 69, 0.3);
}

.step-icon {
  font-size: 28px;
  min-width: 32px;
  transition: opacity 0.2s ease;
}

.step-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.ai-step.active .step-icon {
  animation: stepPulse 1.5s ease-in-out infinite;
}

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

/* Enhanced AI Loading Styles */
.ai-car-analysis {
  margin-bottom: 30px;
  position: relative;
}

.car-container {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 120px;
}

.analyzing-car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(1.1) contrast(1.1);
}

.analysis-scanner {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  animation: scannerMove 2s ease-in-out infinite;
}

.analysis-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00d4ff;
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 1s;
}

.particle:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation-delay: 1.5s;
}

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

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

.ai-loading-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-icon {
  font-size: 32px;
  animation: iconPulse 2s ease-in-out infinite;
}

.loading-dots span {
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

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

@keyframes dotBounce {
  0%, 80%, 100% { 
    transform: scale(0);
    opacity: 0.5;
  } 
  40% { 
    transform: scale(1);
    opacity: 1;
  }
}

.current-analysis {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.analysis-status {
  color: #00d4ff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.analysis-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.detail-item {
  text-align: center;
}

.detail-label {
  color: #ccc;
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}

.detail-value {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ai-processing-info {
  margin: 25px 0;
}

.processing-text {
  color: #00d4ff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-icon {
  font-size: 20px;
  animation: brainPulse 2s ease-in-out infinite;
}

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

.processing-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-number {
  display: block;
  color: #00d4ff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  color: #ccc;
  font-size: 12px;
}

.analysis-pipeline {
  margin: 30px 0;
}

.pipeline-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.step-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.step-status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #666;
  border: 2px solid #333;
}

.ai-step.active .step-status {
  background: #ffc107;
  animation: statusPulse 1s ease-in-out infinite;
}

.ai-step.completed .step-status {
  background: #28a745;
}

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

.step-content {
  flex: 1;
  text-align: left;
}

.step-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.step-description {
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
}

.time-estimate {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin: 25px 0;
  text-align: center;
}

.estimate-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.estimate-text {
  color: #ffc107;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.estimate-note {
  color: #ffecb3;
  font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .analysis-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .processing-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .ai-loading-title {
    font-size: 24px;
    flex-direction: column;
    gap: 5px;
  }
}

/* AI Style Build Loading - Exact AI Loading Page Style */
.ai-style-loading-container {
  text-align: center;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.build-car-showcase {
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

/* Loading Spinner Overlay */
.build-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 4px solid rgba(0, 212, 255, 0.2);
  border-top: 4px solid #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-text {
  color: #00d4ff;
  font-size: 18px;
  font-weight: bold;
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.build-car-image-large {
  width: 400px;
  height: 240px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: carAnalyze 3s ease-in-out infinite;
}

@keyframes carAnalyze {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
  }
}

.build-loading-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Loading Dots Animation */
.loading-dots {
  display: inline-flex;
  gap: 2px;
}

.loading-dots span {
  animation: dotBounce 1.4s ease-in-out infinite both;
  color: #00d4ff;
  font-size: 28px;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.build-loading-subtitle {
  color: #ccc;
  font-size: 16px;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* AI Drift Assistant - NPC Style */
.drift-assistant-npc {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Kai Avatar Container */
.kai-avatar-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-left: 20px;
}

.kai-npc-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  object-position: center 30%; /* Show face, not flag */
}

.kai-name-tag {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 5px;
}

.kai-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 8px;
}

.kai-status {
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: messageSlideIn 0.3s ease;
}

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

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  font-size: 24px;
  min-width: 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message.assistant .message-content {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #fff;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 183, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff;
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.chat-message.assistant .message-time {
  text-align: left;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00D4FF;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.send-chat-btn {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.send-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* NPC Speech Bubble */
.kai-speech-bubble {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  margin: 0 20px;
  margin-left: 60px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: bubbleAppear 0.4s ease;
}

.kai-speech-bubble::-webkit-scrollbar {
  width: 6px;
}

.kai-speech-bubble::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.kai-speech-bubble::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.kai-speech-bubble::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.kai-speech-bubble::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 30px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 15px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.8) transparent transparent;
}

.kai-speech-bubble::after {
  content: '';
  position: absolute;
  left: -11px;
  top: 32px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 13px 8px 0;
  border-color: transparent rgba(0, 0, 0, 0.85) transparent transparent;
}

@keyframes bubbleAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bubble-content {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  animation: textFadeIn 0.5s ease 0.2s both;
  transition: opacity 0.2s ease;
}

.kai-message {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  animation: messageSlideIn 0.3s ease;
}

.kai-message:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.kai-message-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.kai-message-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

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

.typing-indicator-npc {
  display: flex;
  gap: 6px;
  padding: 10px 0;
}

/* User Question Input */
.user-question-input {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  align-items: center;
}

.npc-chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 14px 24px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.npc-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.npc-chat-input:focus {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.npc-send-btn {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 14px 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.npc-send-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.npc-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.send-chat-btn:active {
  transform: scale(0.95);
}

.send-chat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #00D4FF;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Featured Builds Showcase */
.featured-builds-showcase {
  width: 100%;
  max-width: 500px;
  margin: 40px auto 0;
  text-align: center;
}

.showcase-header {
  color: #ffd700;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-build-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 183, 0, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.featured-build-card:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.featured-build-loading {
  color: #999;
  font-size: 14px;
  padding: 60px 20px;
}

.featured-driver {
  color: #ffd700;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.featured-team {
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
}

.featured-car {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.featured-stats {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.featured-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.featured-stat-label {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-stat-value {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
}

.featured-description {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}

.featured-view-btn {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.featured-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffb700, #ffd700);
}

.featured-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.featured-nav-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-nav-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
  transform: scale(1.05);
}

.featured-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured-indicator {
  color: #999;
  font-size: 13px;
  min-width: 60px;
}

/* Featured Build Modal */
.featured-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.featured-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.featured-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  animation: slideDown 0.3s ease;
}

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

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

.featured-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.featured-modal-header h2 {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-modal-close {
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-size: 28px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.featured-modal-close:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: rotate(90deg);
}

.featured-modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.featured-modal-loading {
  text-align: center;
  color: #999;
  padding: 60px 20px;
  font-size: 16px;
}

.modal-driver-info {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.modal-driver-name {
  color: #ffd700;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.modal-team-name {
  color: #999;
  font-size: 16px;
  margin-bottom: 15px;
}

.modal-car-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 25px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-stat-item {
  text-align: center;
}

.modal-stat-label {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-stat-value {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
}

.modal-description {
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.modal-parts-section {
  margin-top: 30px;
}

.modal-section-title {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-category {
  margin-bottom: 25px;
}

.modal-category-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #ffd700;
}

.modal-parts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-part-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

.modal-part-item:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.4);
}

.modal-part-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-part-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.modal-part-brand {
  color: #ffd700;
  font-size: 13px;
}

.modal-part-price {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .featured-modal-content {
    margin: 20px auto;
    max-width: 95%;
  }
  
  .featured-modal-header {
    padding: 15px 20px;
  }
  
  .featured-modal-header h2 {
    font-size: 20px;
  }
  
  .featured-modal-body {
    padding: 20px;
  }
  
  .modal-driver-name {
    font-size: 24px;
  }
  
  .modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-part-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Use existing AI loading motivation styles */
.ai-loading-motivation {
  text-align: center;
  margin: 0 0 40px 0;
  padding: 15px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.ai-motivation-text {
  color: #00d4ff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.ai-motivation-subtext {
  color: #ccc;
  font-size: 13px;
}

/* Use existing progress container styles */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #0099cc);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

/* Use existing AI steps styles */
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 40px 0;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.ai-step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(10px);
}

.ai-step.completed {
  opacity: 0.7;
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
}

.step-icon {
  font-size: 28px;
  min-width: 32px;
  transition: opacity 0.2s ease;
}

.step-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.ai-step.active .step-icon {
  animation: stepPulse 1.5s ease-in-out infinite;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
  .build-car-image-large {
    width: 300px;
    height: 180px;
  }
  
  .build-loading-title {
    font-size: 24px;
  }
  
  .ai-steps {
    gap: 10px;
  }
  
  .ai-step {
    padding: 12px 15px;
  }
}

/* Preview Background Styles */
.preview-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.preview-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: previewPulse 4s ease-in-out infinite;
}

@keyframes previewPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

.preview-content .car-image-container {
  text-align: center;
  margin-bottom: 20px;
}

.preview-content .build-car-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.7;
}

.preview-content .build-stats-container {
  margin-bottom: 20px;
}

.preview-content .build-stat {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-content .stat-label {
  color: #ccc;
  font-size: 12px;
  font-weight: bold;
}

.preview-content .stat-value {
  color: #007bff;
  font-size: 16px;
  font-weight: bold;
}

.preview-parts-list {
  margin-top: 15px;
}

.preview-parts-list .parts-category {
  margin-bottom: 15px;
}

.preview-parts-list h4 {
  color: #fff;
  font-size: 12px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-parts-list .part-item {
  color: #ccc;
  font-size: 11px;
  margin: 5px 0;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-overlay-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.unlock-text {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  animation: unlockPulse 2s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes unlockPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
  }
}

/* Ensure login/pricing content is above background */
#login > *:not(.preview-background),
#pricing > *:not(.preview-background) {
  position: relative;
  z-index: 10;
}

/* Motivation Text Styles */
.login-motivation,
.pricing-motivation,
.payment-motivation {
  text-align: center;
  margin: 20px auto 30px auto;
  max-width: 500px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 15px;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.motivation-text {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.motivation-subtext {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}

.urgency-text {
  color: #ffd700;
  font-size: 13px;
  font-weight: bold;
  animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.feature-highlight {
  color: #00d4ff !important;
  font-weight: bold !important;
  font-size: 15px !important;
}

.feature-value {
  color: #ffd700 !important;
  font-weight: bold !important;
  font-size: 15px !important;
  animation: valuePulse 3s ease-in-out infinite;
}

@keyframes valuePulse {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

/* Login Page Styles */
.login-container {
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.input-group input {
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #007bff;
  background: rgba(255, 255, 255, 0.1);
}

.login-button {
  padding: 15px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
}

.login-divider {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  margin: 10px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #333;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.google-login-btn:hover {
  background: #f8f9fa;
  border-color: #007bff;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer p {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0;
}

.login-footer a {
  color: #007bff;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Pricing Page Styles */
.pricing-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.pricing-card.premium {
  border-color: #ffd700;
  background: linear-gradient(135deg, #2a2a1a, #3a3a2a);
}

.pricing-card.premium:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.plan-header h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 15px 0;
}

.price {
  color: #007bff;
  font-size: 36px;
  font-weight: bold;
  margin: 10px 0;
}

.pricing-card.premium .price {
  color: #ffd700;
}

.price-detail {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}

.plan-features {
  text-align: left;
  margin: 20px 0;
}

.feature {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0;
  padding-left: 5px;
}

.plan-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
}

.premium-btn {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
}

.premium-btn:hover {
  background: linear-gradient(135deg, #ffb700, #ff9500);
}

/* Payment Page Styles */
.payment-container {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.payment-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-summary h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 15px 0;
}

#selected-plan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-name {
  color: #ccc;
  font-size: 16px;
}

.plan-price {
  color: #007bff;
  font-size: 20px;
  font-weight: bold;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.payment-method {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method.active {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  color: #fff;
}

.payment-icon {
  width: 20px;
  height: 20px;
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-row .input-group {
  flex: 1;
}

.payment-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.payment-button:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
}

.paypal-info {
  text-align: center;
  padding: 40px 20px;
  color: #ccc;
}

.paypal-info p {
  font-size: 16px;
  margin: 0;
}

/* Header Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-btn {
  padding: 8px 16px;
  border: 1px solid #007bff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-btn-header {
  background: transparent;
  color: #007bff;
}

.login-btn-header:hover {
  background: #007bff;
  color: white;
}

.signup-btn-header {
  background: #000;
  border: 1px solid white;
  color: white;
  font-weight: bold;
}

.signup-btn-header:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Homepage Styles */
.homepage {
  padding: 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  overflow-y: auto;
  height: 100vh;
  position: relative;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
  border-bottom: 1px solid #333;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.2) saturate(0.2);
}

/* Mobile video optimizations */
@media (max-width: 768px) {
  .hero-video {
    transform: translate(-50%, -50%) scale(1);
    min-width: 120%;
    min-height: 120%;
    filter: brightness(0.3) contrast(1.1) saturate(0.1);
  }
  
  /* Ensure video container is properly sized on mobile */
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
  }
  
  /* Fallback background for mobile if video fails */
  .hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
  }
}

.drift-car-bg {
  position: absolute;
  top: 0;
  right: -15%;
  width: 70%;
  height: 100%;
  background: url('assets/ae86_testimonial.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.08;
  transform: rotate(-8deg) scale(1.1);
  filter: blur(3px) brightness(0.3) contrast(0.8);
  z-index: 1;
}

/* Enhanced fallback background for mobile */
@media (max-width: 768px) {
  .drift-car-bg {
    right: -10%;
    width: 100%;
    transform: rotate(-5deg) scale(1.05);
    opacity: 0.15;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: urgentPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

@keyframes driftFloat {
  0%, 100% { 
    transform: rotate(-2deg) translateX(0px) translateY(0px); 
  }
  25% { 
    transform: rotate(-1deg) translateX(3px) translateY(-2px); 
  }
  50% { 
    transform: rotate(-3deg) translateX(-2px) translateY(1px); 
  }
  75% { 
    transform: rotate(-1.5deg) translateX(1px) translateY(-1px); 
  }
}

@keyframes urgentPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  }
}

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

.hero-logo-container {
  position: relative;
  margin: 0 0 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 25px 0;
  text-align: center;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-logo-img {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)) 
          drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
  animation: logoGlow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) 
          drop-shadow(0 0 60px rgba(255, 215, 0, 0.5));
}

@keyframes logoGlow {
  from { 
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)) 
            drop-shadow(0 0 40px rgba(255, 215, 0, 0.3));
  }
  to { 
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) 
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.4));
  }
}

.hero-subtitle {
  font-size: 2rem;
  color: #fff;
  margin: 0 0 30px 0;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 1.2rem;
  color: #ddd;
  margin: 0 0 30px 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.hero-description .highlight {
  color: #ffd700;
  font-weight: bold;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-button.primary {
  background: #000;
  color: #fff;
  padding: 18px 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.cta-button.primary:hover::before {
  left: 100%;
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-icon {
  font-size: 1.2rem;
  animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.cta-stats {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile Optimized Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px 20px;
    min-height: 80vh;
  }
  
  .hero-main-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 18px;
    margin-bottom: 20px;
  }
  
  .cta-button.primary {
    padding: 18px 40px;
    font-size: 1.2rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .cta-stats {
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 0 15px;
  }
  
  .cta-button.primary {
    padding: 18px 40px;
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .drift-car-bg {
    right: -20%;
    width: 80%;
    opacity: 0.1;
  }
  
  /* Features Section Mobile */
  .features-section {
    padding: 50px 20px;
  }
  
  .section-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .section-header p {
    font-size: 1rem;
    margin-bottom: 35px;
  }
  
  .features-grid {
    gap: 30px;
  }
  
  .feature-item {
    flex-direction: column;
  }
  
  .feature-content {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .feature-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .feature-subtitle {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .feature-description {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 50px 15px 35px 15px;
    min-height: 85vh;
  }
  
  .hero-main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1rem;
    padding: 0 5px;
    margin-bottom: 25px;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 16px;
  }
  
  .cta-button.primary {
    padding: 16px 35px;
    font-size: 1.1rem;
    max-width: 280px;
  }
  
  .features-section {
    padding: 40px 15px;
  }
  
  .section-header h3 {
    font-size: 1.8rem;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
  
  .feature-description {
    font-size: 0.95rem;
  }
  
  .cta-button.primary {
    padding: 16px 35px;
    font-size: 1.1rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
}

.cta-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Features Section */
.features-section {
  padding: 60px 20px;
  background: #1a1a1a;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h3 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.section-header p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 30px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .feature-item,
  .feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
}

.feature-content {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .feature-content {
    text-align: center;
  }
}

.feature-title {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-subtitle {
  color: #007bff;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-description {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.feature-description strong {
  color: #fff;
  font-weight: 600;
}

.feature-reference {
  flex: 0 0 350px;
  text-align: center;
}

@media (max-width: 768px) {
  .feature-reference {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

.reference-label {
  color: #ffd700;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reference-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.9;
  transition: all 0.3s ease;
  border: 2px solid #444;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.reference-img:hover {
  opacity: 1;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

/* Social Proof Section */
.social-proof-section {
  padding: 60px 20px;
  background: #0f0f0f;
  text-align: center;
}

.social-proof-section h3 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 40px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.testimonial-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: #007bff;
  transform: translateY(-3px);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  overflow: hidden;
  border: 3px solid #007bff;
  transition: border-color 0.3s ease;
}

.testimonial-avatar:hover {
  border-color: #ffd700;
}

.car-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.car-avatar:hover {
  transform: scale(1.1);
}

.testimonial-text {
  color: #fff;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.testimonial-author {
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
}

/* Pricing Section */
.pricing-section {
  padding: 60px 20px;
  background: #1a1a1a;
  text-align: center;
}

.pricing-section h3 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-subtitle {
  color: #ccc;
  font-size: 16px;
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border: 2px solid #444;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.pricing-card.popular {
  border-color: #ffd700;
  background: linear-gradient(135deg, #3a3a1a, #4a4a2a);
}

.pricing-card.popular:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.plan-badge {
  background: #007bff;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: inline-block;
}

.popular-badge {
  background: #ffd700;
  color: #000;
}

.plan-price {
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  margin: 10px 0;
}

.pricing-card.popular .plan-price {
  color: #ffd700;
}

.plan-duration {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  text-align: left;
}

.plan-features li {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0;
  padding-left: 5px;
}

.plan-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.starter-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.starter-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
}

.popular-btn {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
}

.popular-btn:hover {
  background: linear-gradient(135deg, #ffb700, #ff9500);
}

.pro-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.pro-btn:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
}

.enterprise-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

.enterprise-btn:hover {
  background: linear-gradient(135deg, #495057, #343a40);
}

/* Homepage Footer */
.homepage-footer {
  background: #0a0a0a;
  border-top: 1px solid #333;
  padding: 40px 20px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h4 {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 8px 0;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #007bff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #666;
  font-size: 12px;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .features-section,
  .social-proof-section,
  .pricing-section {
    padding: 40px 15px;
  }
  
  .section-header h3,
  .social-proof-section h3,
  .pricing-section h3 {
    font-size: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .pricing-card {
    padding: 25px 15px;
  }
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #333;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  font-weight: 500;
  border-left: 4px solid #333;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(400px);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* Toast type variations */
.toast-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.toast-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.toast-warning {
  background: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.toast-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .toast-container {
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #333;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  font-weight: 500;
  border-left: 4px solid #333;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(400px);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* Toast type variations */
.toast-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.toast-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.toast-warning {
  background: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.toast-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .toast-container {
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}
/* ===================================
   GARAGE REDESIGN - Based on Reference Images
   =================================== */

.garage-redesign {
  background: #000;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ===================================
   USER PROFILE HEADER (Image 2 Style)
   =================================== */

.garage-header {
  position: relative;
  padding: 60px 20px 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-profile-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.profile-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-avatar-container:hover .avatar-edit-overlay {
  display: flex;
}

.edit-icon {
  font-size: 24px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.stat-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.2);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.free-builds-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(76, 175, 80, 0.4);
  width: fit-content;
}

.free-builds-badge .badge-icon {
  font-size: 16px;
}

.free-builds-badge .badge-text {
  font-size: 12px;
  color: #4CAF50;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.fact-check-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.4);
  width: fit-content;
}

.fact-check-badge .badge-icon {
  font-size: 16px;
}

.fact-check-badge .badge-text {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.elite-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,215,0,0.15);
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
  width: fit-content;
}

.badge-icon {
  font-size: 16px;
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-location {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.badge-title {
  font-size: 10px;
  color: #FFD700;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.settings-btn:hover {
  color: #fff;
}

/* ===================================
   CAR LIST SECTION (Vertical Scroll)
   =================================== */

.car-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 90px; /* Space for bottom nav only */
}

.car-card {
  position: relative;
  background: rgba(45, 45, 45, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.car-card:hover {
  background: rgba(55, 55, 55, 0.7);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

.car-title-section {
  flex: 1;
}

.car-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.build-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.build-type-badge.street {
  background: rgba(255, 165, 0, 0.2);
  color: #FFA500;
  border: 1px solid rgba(255, 165, 0, 0.4);
}

.build-type-badge.pro {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.build-type-badge.grassroot {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.car-value {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.car-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.3);
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.car-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.drift-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0 20px;
}

.drift-score-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drift-score-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.radar-chart-btn {
  background: rgba(139,115,85,0.2);
  border: 1px solid rgba(139,115,85,0.4);
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radar-chart-btn:hover {
  background: rgba(139,115,85,0.3);
  transform: scale(1.05);
}

.fact-check-card-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: rgba(100,100,100,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fact-check-card-btn:hover {
  background: rgba(120,120,120,0.8);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.fact-check-card-btn:active {
  transform: translateY(0);
}

.delete-build-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(220,53,69,0.9);
  border: 1px solid rgba(220,53,69,1);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  opacity: 0;
  z-index: 10;
}

.car-card:hover .delete-build-btn {
  opacity: 1;
}

.delete-build-btn:hover {
  background: rgba(220,53,69,1);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(220,53,69,0.5);
}

/* Prevent card click when clicking delete button */
.delete-build-btn:active {
  transform: scale(0.95);
}

/* Empty State */
.empty-garage {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.5);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-garage h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.empty-garage p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* ===================================
   BOTTOM NAVIGATION BAR (Instagram Style)
   =================================== */

.garage-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
  z-index: 101;
}

.nav-item {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover {
  color: rgba(255,255,255,0.7);
  transform: scale(1.1);
}

.nav-item.active {
  color: #FFD700;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

/* Center Add Button (Instagram style) */
.nav-item-add {
  background: #000;
  border: 3px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  margin-top: -18px; /* Lift it above the nav bar */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0;
  overflow: hidden;
}

.nav-item-add:hover {
  background: #1a1a1a;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-item-add:active {
  transform: scale(1.05) translateY(-1px);
}

.nav-item-add svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

.nav-item-add img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .car-image-wrapper {
    height: 180px;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .stat-number {
    font-size: 18px;
  }
}

@media (min-height: 800px) {
  .car-image-wrapper {
    height: 240px;
  }
}

/* ===================================
   FACT CHECK SECTION (BUILD VALUE PAGE)
   =================================== */

.fact-check-section {
  margin: 30px 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(0,122,255,0.1) 0%, rgba(0,212,255,0.05) 100%);
  border: 2px solid rgba(0,212,255,0.3);
  border-radius: 15px;
  animation: factCheckGlow 2s ease-in-out infinite;
}

@keyframes factCheckGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0,212,255,0.4);
  }
}

.fact-check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fact-check-header h2 {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.fact-check-status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.status-pending {
  background: rgba(255,193,7,0.2);
  color: #FFC107;
  border: 1px solid rgba(255,193,7,0.5);
}

.status-in-review {
  background: rgba(33,150,243,0.2);
  color: #2196F3;
  border: 1px solid rgba(33,150,243,0.5);
}

.status-certified {
  background: rgba(76,175,80,0.2);
  color: #4CAF50;
  border: 1px solid rgba(76,175,80,0.5);
}

.status-rejected {
  background: rgba(244,67,54,0.2);
  color: #F44336;
  border: 1px solid rgba(244,67,54,0.5);
}

.fact-check-content {
  color: #fff;
}

.ai-overall-assessment {
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-left: 4px solid #00d4ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ai-overall-assessment h3 {
  color: #00d4ff;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.ai-overall-assessment p {
  color: #fff;
  margin: 0;
  line-height: 1.6;
}

.ai-confidence {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(76,175,80,0.2);
  color: #4CAF50;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.ai-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-suggestion-card {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ai-suggestion-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,212,255,0.2);
}

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

.suggestion-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0,212,255,0.2);
  color: #00d4ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.suggestion-severity {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.severity-critical {
  background: rgba(244,67,54,0.2);
  color: #F44336;
}

.severity-important {
  background: rgba(255,193,7,0.2);
  color: #FFC107;
}

.severity-optional {
  background: rgba(158,158,158,0.2);
  color: #9E9E9E;
}

.suggestion-issue {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.suggestion-recommendation {
  color: #4CAF50;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 3px solid #4CAF50;
}

.suggestion-rationale {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.suggestion-impact {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.impact-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 11px;
}

.impact-label {
  color: rgba(255,255,255,0.5);
}

.impact-value {
  font-weight: 600;
}

.impact-high {
  color: #F44336;
}

.impact-medium {
  color: #FFC107;
}

.impact-low {
  color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
  .fact-check-section {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .fact-check-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .suggestion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .suggestion-impact {
    flex-wrap: wrap;
  }
}

/* ========================================
   STRIPE ELEMENTS STYLING
   ======================================== */

.stripe-card-element {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.3s ease;
}

.stripe-card-element:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.stripe-card-element:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.card-errors {
  color: #ff5252;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.card-errors:empty {
  display: none;
}

/* Update input group for Stripe element */
.payment-form-content .input-group label[for="card-element"] {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* ========================================
   ACTION BOTTOM BAR (Rerun & Fact Check)
   ======================================== */

/* Fixed bottom bar - hidden by default, shown only when viewing existing build */
.action-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

/* Show bottom bar when active */
.action-bottom-bar.show {
  display: flex;
}

/* Base action button styles */
.action-bottom-bar .action-btn {
  flex: 1;
  max-width: 250px;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Rerun button - Black with white border */
.action-bottom-bar .rerun-btn {
  background: #000;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-bottom-bar .rerun-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.action-bottom-bar .rerun-btn:active {
  transform: translateY(0);
}

/* Fact Check button - Black with white border */
.action-bottom-bar .fact-check-btn {
  background: #000;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-bottom-bar .fact-check-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.action-bottom-bar .fact-check-btn:active {
  transform: translateY(0);
}

/* Button icon and text */
.action-bottom-bar .btn-icon {
  display: none; /* Hide emoji icons */
}

.action-bottom-bar .btn-text {
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Add padding to pages with bottom bar to prevent button overlap */
#build-value,
#detail-list,
#upgrade-roadmap,
#upgrade-roadmap-detail {
  padding-bottom: 100px; /* Space for bottom bar + safe area */
}

/* Mobile responsive */
@media (max-width: 480px) {
  .action-bottom-bar {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  
  .action-bottom-bar .action-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .action-bottom-bar .btn-icon {
    font-size: 18px;
  }
  
  .action-bottom-bar .btn-text {
    font-size: 14px;
  }
  
  /* Adjust page padding for mobile */
  #build-value,
  #detail-list,
  #upgrade-roadmap,
  #upgrade-roadmap-detail {
    padding-bottom: 120px; /* More space on mobile */
  }
}
