/* ==========================================
   ECUMAP CLONE - Custom Styles
   Modern, clean design with dark theme accents
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #d41920;
  --primary-dark: #b01018;
  --primary-light: #e8302a;
  --dark: #1e1e1e;
  --dark-light: #2a2a2a;
  --dark-card: #333333;
  --text: #4a5568;
  --text-light: #718096;
  --text-dark: #1a202c;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-gray: #edf2f7;
  --border: #e2e8f0;
  --success: #38a169;
  --info: #3182ce;
  --warning: #d69e2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --transition: all 0.3s ease;
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* List with dash markers */
ul.list-dash li::before {
  content: '\2014';
  margin-right: 10px;
  color: var(--primary);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 50px 0;
}

.section-sm {
  padding: 50px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.25rem; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

p, li, td, th, label, span, a {
  font-weight: 400;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title .badge {
  display: inline-block;
  background: rgba(212, 25, 32, 0.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--dark);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--dark-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: var(--dark);
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--dark);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0 24px;
}

.navbar .nav-links {
  margin: 0 auto;
}

.navbar .nav-actions {
  margin-left: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-brand img,
.brand-logo {
  height: 108px;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.brand-logo-icon {
  font-size: 1.8rem;
}

.brand-logo-text .euro {
  color: var(--primary);
}

.brand-logo-text .files {
  color: #fff;
}

.navbar-brand span {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.navbar-brand .brand-accent {
  color: var(--primary);
}

.brand-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  font-style: italic;
  line-height: 1;
}

.brand-euro {
  color: var(--primary);
}

.brand-files {
  color: #fff;
}

.footer .brand-files,
.footer .files {
  color: rgba(255,255,255,0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---------- Mega Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a .dropdown-arrow {
  font-size: 0.6rem;
  transition: var(--transition);
  margin-top: 1px;
}

.nav-dropdown:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 24px;
  width: 680px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1001;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 600;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mega-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.mega-brand:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.mega-brand .mega-brand-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.mega-brand .mega-brand-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mega-brand .mega-brand-icon img.invert-dark {
  filter: brightness(0) invert(1) opacity(0.8);
}

.mega-brand:hover .mega-brand-icon img {
  transform: scale(1.1);
}

.mega-brand:hover .mega-brand-icon img.invert-dark {
  filter: brightness(0) invert(1) opacity(1);
}

.mega-menu-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.mega-menu-footer a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.mega-menu-footer a:hover {
  color: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Scroll-Driven Video Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 180px 0 100px;
  background: var(--dark);
  overflow: hidden;
  min-height: 550px;
}

/* Static background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-bg.png') center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.6) 0%, rgba(30,30,30,0.3) 50%, var(--dark) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  color: #fff;
  font-size: 2rem;
}

.hero-stat p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Vehicle Selector Section */
.vehicle-selector-section {
  background: var(--dark);
  padding: 0 0 60px;
}

.vehicle-selector-box {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.vehicle-selector-box h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.vehicle-selector-box .selector-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.vehicle-selector-box .form-group label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.vehicle-selector-box .form-control {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  color: #1e1e1e;
  font-weight: 500;
}

/* Decorative elements */
.hero-decoration {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,25,32,0.15) 0%, transparent 70%);
  z-index: 1;
}

/* ---------- How It Works - Carousel ---------- */
.steps-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.step-tab {
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.step-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.step-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.steps-carousel {
  position: relative;
  min-height: 400px;
}

.step-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  animation: fadeInStep 0.5s ease;
}

.step-panel.active {
  display: grid;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-panel-img {
  position: relative;
}

.step-panel-img img {
  width: 100%;
  max-width: 550px;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}

.step-panel-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.step-panel-info p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .step-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-panel-info h3 {
    font-size: 1.4rem;
  }
}

.step-card h4 {
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border-radius: 0;
  box-shadow: none;
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: rgba(212, 25, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* ---------- Tuning Services Grid (home) ---------- */
.tuning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tuning-item {
  background: rgba(30, 30, 30, 0.06);
  border: 1px solid rgba(30, 30, 30, 0.1);
  border-radius: 0;
  padding: 16px 20px 16px 36px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
}

.tuning-item::before {
  content: '\00BB';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.tuning-item:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  transform: translateX(4px);
}

.tuning-item:hover::before {
  color: var(--primary-light);
}

/* ---------- Vehicle List ---------- */
.brands-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.brands-filter .filter-btn {
  padding: 8px 20px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: var(--font);
  color: var(--text);
}

.brands-filter .filter-btn:hover,
.brands-filter .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.brand-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.brand-card .brand-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-card .brand-logo-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-card:hover .brand-logo-icon {
  color: var(--primary);
}

.brand-card .brand-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border-radius: 0;
  box-shadow: none;
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 20px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-card .price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-features {
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: rgba(212, 25, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 25, 32, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-brands a {
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer-brands a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-hours td {
  padding: 4px 0;
  font-size: 0.85rem;
}

.footer-hours td:first-child {
  padding-right: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 180px 0 40px;
  text-align: center;
}

.page-header + .section,
.page-header + .section.bg-light {
  padding-top: 40px;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--primary);
}

/* ---------- Vehicle Selector (responsive) ---------- */
@media (max-width: 768px) {
  .vehicle-selector-box .selector-row {
    grid-template-columns: 1fr;
  }
  .vehicle-selector-box {
    padding: 24px;
  }
}

/* ---------- Features bar ---------- */
.features-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.features-list {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 0;
}

.features-list .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.features-list .feature-item .icon {
  font-size: 1.3rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ---------- Dashboard Layout ---------- */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark);
  padding: 24px;
  color: rgba(255,255,255,0.7);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.sidebar-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-nav a.active {
  background: var(--primary);
}

.dash-main {
  padding: 32px;
  background: var(--bg-light);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  background: var(--bg);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.dash-card h3 {
  font-size: 2rem;
  margin-top: 8px;
}

.dash-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #fff;
}

.auth-left h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.auth-left p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form {
  width: 100%;
  max-width: 420px;
}

.auth-form h2 {
  margin-bottom: 8px;
}

.auth-form .subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-align: left;
  padding: 14px 16px;
}

table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

table tr:hover td {
  background: var(--bg-light);
}

/* ---------- Badges ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(56, 161, 105, 0.1);
  color: var(--success);
}

.status-badge.warning {
  background: rgba(214, 158, 46, 0.1);
  color: var(--warning);
}

.status-badge.info {
  background: rgba(49, 130, 206, 0.1);
  color: var(--info);
}

/* ---------- Search ---------- */
.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto 30px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 25, 32, 0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Base state for animated elements */
[data-animate] {
  opacity: 0;
}

.animate-in {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

/* Direction variants */
.animate-in,
[data-animate="up"].animate-in {
  animation-name: fadeInUp;
}

[data-animate="left"].animate-in {
  animation-name: fadeInLeft;
}

[data-animate="right"].animate-in {
  animation-name: fadeInRight;
}

[data-animate="scale"].animate-in {
  animation-name: fadeInScale;
}

[data-animate="fade"].animate-in {
  animation-name: fadeIn;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .navbar .container { padding: 0 16px; }
  .navbar-brand img,
  .brand-logo { height: 60px; }
  .navbar { padding: 8px 0; }
  .navbar.scrolled { padding: 6px 0; }

  /* Hero */
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* Vehicle Selector */
  .vehicle-selector-section { padding: 0 0 40px; }

  /* Page Header */
  .page-header { padding: 120px 0 30px; }
  .page-header h1 { font-size: 1.75rem; }

  /* Steps */
  .steps-carousel { min-height: auto; }
  .step-panel-img img { max-height: 250px; object-fit: contain; }

  /* Tuning Grid */
  .tuning-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }

  /* Pricing */
  .features-list { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  /* Auth */
  .auth-page { flex-direction: column; }
  .auth-left { min-height: 30vh; padding: 32px; }
  .form-row { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 50px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 0.95rem; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer .brand-logo { height: 50px; }
  .footer-brands { font-size: 0.8rem; }

  /* Brands / Grids */
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(30,30,30,0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Vehicle Details Page ---------- */

/* Top grid: Power chart + Details side by side */
.detail-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Chart cards (Power / Torque) */
.detail-chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.detail-chart-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.detail-chart {
  margin-bottom: 20px;
}

.detail-chart-row {
  display: grid;
  grid-template-columns: 65px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-chart-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.detail-chart-bar-wrap {
  height: 22px;
  background: var(--bg-gray);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.detail-chart-bar {
  height: 100%;
  border-radius: 0;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}

.detail-chart-bar-orig {
  background: #d41920;
}

.detail-chart-bar-stage1 {
  background: #2aac01;
}

/* Scale ticks under bars */
.detail-chart-scale {
  display: flex;
  justify-content: space-between;
  padding-left: 75px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Values section under chart */
.detail-chart-values {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.detail-chart-val-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-chart-val-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
}

.detail-chart-val-hp {
  background: var(--bg-gray);
  padding: 4px 12px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.detail-chart-val-kw {
  background: var(--bg-gray);
  padding: 4px 12px;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.detail-chart-val-or {
  font-size: 0.82rem;
  color: var(--text-light);
}

.detail-chart-val-gain {
  background: #2aac01;
  color: #fff;
  padding: 4px 14px;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Details / Specs card */
.detail-specs-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 32px;
}

.detail-specs-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.detail-specs-table {
  display: flex;
  flex-direction: column;
}

.detail-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detail-spec-row:last-child {
  border-bottom: none;
}

.detail-spec-key {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.detail-spec-val {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-align: right;
}

/* Description */
.detail-description {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.detail-description h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.detail-description p {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* CTA */
.detail-cta {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  border-radius: 0;
  margin-bottom: 20px;
}

.detail-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.detail-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .detail-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Noise/Grain Overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-light { color: var(--text-light); }
.text-white { color: #fff; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }
