

@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb.woff2") format("woff2"),
    url("../fonts/IRANSansWeb.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb_Bold.woff2") format("woff2"),
    url("../fonts/IRANSansWeb_Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* فونتِ اصلیِ فارسیِ سایت: A Iranian Sans */
@font-face {
  font-family: "A Iranian Sans";
  src:
    url("../fonts/a-iranian-sans.woff2") format("woff2"),
    url("../fonts/a-iranian-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  
  --brand-black: #07090e;
  --brand-blue: #36b4e9;
  --brand-light: #f1f5f9;
  --brand-gray: #1e293b;

  --bg-base: var(--brand-black);
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(54, 180, 233, 0.3);

  --accent: var(--brand-blue);
  --accent-2: #38bdf8;
  --accent-glow: rgba(54, 180, 233, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--accent-glow);

  --font-fa: "A Iranian Sans", "IRANSans", Tahoma, sans-serif;
  --font-en: "Poppins", "Segoe UI", sans-serif;

  --header-h: 76px;
}

html[data-theme="light"],
body.light-mode,
body.light {
  --brand-black: #f8fafc;
  --brand-light: #0f172a;

  --bg-base: #f1f5f9 !important;
  --bg-surface: #ffffff !important;
  --bg-elevated: #e2e8f0 !important;

  --border-soft: rgba(0, 0, 0, 0.08) !important;
  --border-accent: rgba(2, 132, 199, 0.3) !important;

  --accent: #0284c7 !important;
  --accent-2: #0369a1 !important;
  --accent-glow: rgba(2, 132, 199, 0.2) !important;

  --text-primary: #0f172a !important;
  --text-secondary: #475569 !important;
  --text-muted: #64748b !important;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

html[dir="ltr"] {
  --font-main: var(--font-en);
}
html[dir="rtl"] {
  --font-main: var(--font-fa);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main, var(--font-fa));
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  background-image:
    radial-gradient(
      circle at 10% 0%,
      rgba(54, 180, 233, 0.07),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(54, 180, 233, 0.04),
      transparent 40%
    );
}

html[data-theme="light"] body,
body.light-mode body {
  background-image:
    radial-gradient(circle at 10% 0%, rgba(2, 132, 199, 0.08), transparent 50%),
    radial-gradient(
      circle at 90% 20%,
      rgba(56, 189, 248, 0.06),
      transparent 45%
    ) !important;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}

section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--header-h);

  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 0 40px;

  background: rgba(8, 10, 14, 0.68);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(8, 10, 14, 0.9);

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-header .brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.brand-logo {
  height: 42px; 
  width: auto; 
  display: block;
}

.site-nav {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 1;

  gap: 12px;
}

.site-nav > a {
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 500;

  white-space: nowrap;

  text-decoration: none;

  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.site-nav > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-nav > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
} 

.header-actions {
  display: flex;

  align-items: center;

  gap: 12px;

  flex-shrink: 0;
}

.notify-bell {
  width: 40px;
  height: 40px;

  min-width: 40px;
  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.03);

  color: var(--text-secondary);

  font-size: 15px;

  cursor: pointer;

  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
}

.notify-bell:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.06);

  border-color: rgba(255, 255, 255, 0.14);

  transform: translateY(-1px);
}

.header-actions .btn-primary {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  height: 42px;

  padding: 0 22px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(180deg, var(--accent), #2384ad);

  color: #fff;

  font-size: 14px;
  font-weight: 700;

  white-space: nowrap;

  transition:
    transform 0.25s,
    box-shadow 0.25s;

  box-shadow: 0 4px 14px rgba(54, 180, 233, 0.16);
}

.header-actions .btn-primary:hover {
  transform: translateY(-1px);

  box-shadow: 0 8px 18px rgba(54, 180, 233, 0.2);
}

.header-actions .btn-ghost {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  height: 42px;

  padding: 0 20px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.02);

  color: var(--text-primary);

  white-space: nowrap;

  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.header-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);

  border-color: rgba(255, 255, 255, 0.14);

  color: #fff;
} 

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 4px;

  padding: 4px;

  margin: 0 8px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 999px;

  flex-shrink: 0;

  direction: ltr;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switch a {
  display: flex;

  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 30px;

  padding: 0 12px;

  border-radius: 999px;

  color: var(--text-secondary);

  text-decoration: none;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  transition:
    background 0.25s,
    color 0.25s;
}

.lang-switch a:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.05);
}

.lang-switch a.active {
  color: #fff;

  /* حالتِ اکتیو در هر دو تمِ دارک و لایت یکسان — آبیِ برند */
  background: linear-gradient(180deg, #38bdf8, #1d8ed1);
}

.mobile-lang-switch {
  display: none;
}

.menu-toggle {
  display: none;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  min-width: 42px;
  min-height: 42px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.03);

  color: var(--text-primary);

  font-size: 17px;

  cursor: pointer;

  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);

  border-color: rgba(255, 255, 255, 0.14);

  color: #fff;
}

.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

@media (max-width: 960px) {
  .site-header {
    height: 70px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    flex-shrink: 0;
    margin-left: auto;
  }

  .brand-logo {
    height: 42px; 
    width: auto; 
    display: block;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    flex-shrink: 0;
  }

  .lang-switch {
    display: none !important;
  }

  .notify-bell {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 13px;
    order: 2;
  }

  .header-actions .btn-primary,
  .header-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    order: 1;
  }

  .desktop-text {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }

  .header-actions .btn-primary i,
  .header-actions .btn-ghost i {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
    font-size: 15px;
    order: 3;
  }

  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    padding: 14px;
    gap: 8px;

    background: var(--bg-drawer, rgba(255, 255, 255, 0.95));
    color: var(--text-primary, #111827);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    z-index: 1000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  }

  html.dark .site-nav.mobile-open,
  [data-theme="dark"] .site-nav.mobile-open {
    background: rgba(16, 20, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }

  .mobile-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  }

  html.dark .mobile-lang-switch,
  [data-theme="dark"] .mobile-lang-switch {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .mobile-lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    border-radius: 10px;
    background: var(--hover-bg, rgba(0, 0, 0, 0.03));
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  html.dark .mobile-lang-switch a,
  [data-theme="dark"] .mobile-lang-switch a {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
  }

  .mobile-lang-switch a.active {
    color: #fff;
    background: var(--accent, #36b4e9);
  }

  .site-nav.mobile-open > a {
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
  }

  .site-nav.mobile-open > a:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
    color: var(--accent, #36b4e9);
  }

  .site-nav.mobile-open > a.active {
    background: var(--hover-bg, rgba(0, 0, 0, 0.08));
    color: var(--accent, #36b4e9);
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 66px;
    padding: 0 10px;
    gap: 6px;
  }

  .brand-logo {
    height: 22px;
  }

  .header-actions {
    gap: 5px;
  }

  .notify-bell {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }

  .header-actions .btn-primary,
  .header-actions .btn-ghost {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 13px;
  }

  .site-nav.mobile-open {
    top: 66px;
    left: 8px;
    right: 8px;
    padding: 12px;
    gap: 6px;
    border-radius: 14px;
  }

  .mobile-lang-switch {
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 8px;
  }

  .mobile-lang-switch a {
    min-width: 48px;
    height: 32px;
    font-size: 11px;
  }

  .site-nav.mobile-open > a {
    padding: 12px;
    font-size: 13px;
  }
}

.hero-inner {
  gap: 20px;
}

.hero-content {
  padding: 0;
}

.hero-visual {
  max-width: 210px;
}

.speedo-wrap {
  max-width: 190px;
}

.site-header *,
.site-nav *,
.header-actions * {
  box-sizing: border-box;
}

.site-header a {
  text-decoration: none;
}

.header-actions > * {
  flex-shrink: 0;
}

.notify-bell,
.menu-toggle {
  flex-shrink: 0;
}

.notify-bell i,
.menu-toggle i {
  pointer-events: none;
}

.site-nav > a,
.lang-switch a,
.mobile-lang-switch a,
.header-actions .btn-primary,
.header-actions .btn-ghost {
  white-space: nowrap;
}

.site-header {
  overflow: visible;
}

.hero {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 30px) 20px 40px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, var(--bg-base) 92%),
    radial-gradient(
      circle at 30% 40%,
      rgba(54, 180, 233, 0.14),
      transparent 55%
    );
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  text-align: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  color: var(--accent-2);
  font-size: 13px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, var(--accent-2) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.22s;
}

.hero p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 30px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.34s;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.46s;
}

.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;

  background: linear-gradient(180deg, #38bdf8 0%, #1d8ed1 100%) !important;
  color: #ffffff !important;

  font-size: 15px;
  font-weight: 800;

  border-radius: 10px !important;
  border: none !important;
  outline: none !important;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hero .btn-primary:hover {
  background: linear-gradient(180deg, #42c5ff 0%, #2299e0 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 142, 209, 0.35);
  color: #ffffff !important;
}

.hero .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary i {
  font-size: 16px;
  color: #ffffff !important;
}

.hero-inline-features {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

.inline-feature {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary, #8e9aaf) !important;
  transition:
    color 0.3s,
    transform 0.3s;
}

.inline-feature:hover {
  color: var(--accent-2, #38bdf8) !important;
  transform: translateY(-2px);
}

.inline-feature:hover i,
.inline-feature:hover span {
  color: var(--accent-2, #38bdf8) !important;
}

.inline-feature i {
  font-size: 18px !important;
  color: inherit !important;
}

.inline-feature span {
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap;
  color: inherit !important;
}

.feature-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

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

@media (max-width: 768px) {
  .hero-inline-features {
    display: none !important;
  }
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
  position: relative;
  direction: ltr;
}

.speedo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.3s;
}

.speedo-shake-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.04s linear;
  will-change: transform;
}

.gas-pedal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1c6e8f);
  color: white;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(54, 180, 233, 0.3);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    letter-spacing 0.25s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: none;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.gas-pedal-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  letter-spacing: 0.3px;
}

.gas-pedal-btn:active {
  transform: translateY(0) scale(0.97);
}

.gas-pedal-btn.revving {
  background: linear-gradient(135deg, #1c6e8f, var(--accent));
  animation: gasPulse 0.6s ease-in-out infinite;
}

@keyframes gasPulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(54, 180, 233, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(54, 180, 233, 0.6);
  }
}

.speedo-wrap::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(
    circle,
    rgba(54, 180, 233, 0.25),
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
}

.speedo-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.speedo-needle {
  transform-origin: 200px 200px;
  transform: rotate(
    -120deg
  ); 
  transition: transform 0.05s linear;
}

.speedo-tick {
  stroke: var(--brand-gray);
}

.speedo-tick.major {
  stroke: var(--text-secondary);
}

.speedo-arc-fill {
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  animation: arcFill 1.6s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  animation-delay: 0.35s;
}

@keyframes arcFill {
  to {
    stroke-dashoffset: 90;
  }
}

@media (max-width: 768px) {
  
  .hero-inner {
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
  }

  .hero-content {
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-action-row {
    justify-content: center !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .hero-inline-features {
    display: none !important;
  }

  .hero-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .speedo-wrap {
    max-width: 260px !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 768px) {
  
  .hero-inner {
    gap: 45px !important;
  }

  .speedo-wrap {
    max-width: 320px !important; 
    margin: 0 auto !important;
  }
}
@media (max-width: 768px) {
  .gas-pedal-btn {
    font-size: 13px !important;
    padding: 10px 26px !important;
    border-radius: 10px !important;
  }
}

.dash-icon {
  color: #33363d;
  transition:
    color 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.dash-icon.active {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 6px #ef4444);
  transform: scale(1.15);
}

#dangerLight.active {
  color: #f59e0b !important;
  filter: drop-shadow(0 0 6px #f59e0b);
}

@keyframes warningBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1.15);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.95);
  }
}

.dash-icon.blink {
  animation: warningBlink 0.5s infinite ease-in-out;
}

#airbagModal.deployed {
  opacity: 0.95 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 16px) 16px 24px;
  }
  .hero-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .hero-content {
    flex: 1;
    max-width: 50%;
  }
  .hero-visual {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    padding: 9px 14px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .speedo-wrap {
    width: 100%;
    max-width: 250px;
  }
  .gas-pedal-btn {
    font-size: 10px;
    padding: 7px 13px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-h) + 8px) 10px 18px;
  }
  .hero-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .hero-content {
    flex: 1;
    max-width: 50%;
  }
  .hero-visual {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-badge {
    font-size: 7px;
    padding: 4px 8px;
    margin-bottom: 8px;
  }
  .hero h1 {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .hero p {
    font-size: 8px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .speedo-wrap {
    width: 100%;
    max-width: 165px;
  }
  .gas-pedal-btn {
    margin-top: 6px;
    font-size: 8px;
    padding: 6px 9px;
    border-radius: 10px;
  }
}

.container {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 30px 20px 0 !important;
}

.text-center {
  text-align: center !important;
}

.glass-panel {
  background: linear-gradient(
    160deg,
    var(--bg-surface),
    var(--bg-elevated)
  ) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

.section-title {
  text-align: center !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
}

.section-title span {
  color: var(--accent-2) !important;
}

.field {
  height: 52px !important;
  width: 100% !important;
  background: var(--bg-base) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 16px !important;
  color: var(--text-primary) !important;
  outline: none !important;
  transition: 0.25s !important;
  font-size: 14.5px !important;
}

.field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(54, 180, 233, 0.15) !important;
}

select.field {
  cursor: pointer !important;
}

textarea.field {
  height: auto !important;
  min-height: 140px !important;
  padding: 14px 16px !important;
  resize: vertical !important;
}

.quick-features-bar {
  background: transparent !important;
  border: none !important;
  padding: 20px 0 !important;
}

.quick-features-bar .features-wrapper {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.quick-features-bar .feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.quick-features-bar .feature-icon-box {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(54, 180, 233, 0.08) !important;
  color: var(--brand-blue, #36b4e9) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
}

.quick-features-bar .feature-text h3 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--text-primary, #f8fafc) !important;
}

html[data-theme="light"] .quick-features-bar .feature-item,
body.light-mode .quick-features-bar .feature-item {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .quick-features-bar .feature-text h3,
body.light-mode .quick-features-bar .feature-text h3 {
  color: #0f172a !important;
}

.banner-slider {
  padding: 25px 0 40px 0 !important;
}

.slider-viewport {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

.slider-track {
  display: flex !important;
  transition: transform 0.4s ease-in-out !important;
}

.slide {
  min-width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(17, 24, 39, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  padding: 30px 24px !important; 
  display: flex !important;
  flex-direction: column !important; 
  align-items: center !important;
  text-align: center !important;
  gap: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.slide-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  background: rgba(54, 180, 233, 0.1) !important;
  color: var(--brand-blue, #36b4e9) !important;
  border: 1px solid rgba(54, 180, 233, 0.2) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
}

.slide-text {
  flex: 1 !important;
}

.slide-text h3 {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #f8fafc) !important;
  margin: 0 0 6px 0 !important;
}

.slide-text p {
  font-size: 13.5px !important;
  color: var(--text-secondary, #9a9aa5) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

html[data-theme="light"] .slide,
body.light-mode .slide {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .slide-text h3,
body.light-mode .slide-text h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .slide-text p,
body.light-mode .slide-text p {
  color: #475569 !important;
}

.slider-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

.slider-dots span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
}

.slider-dots span.active {
  width: 20px !important;
  border-radius: 4px !important;
  background: var(--brand-blue, #36b4e9) !important;
}

.slide .slide-btn,
.slide a.btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 22px !important;
  background: rgba(54, 180, 233, 0.08) !important;
  border: 1px solid rgba(54, 180, 233, 0.3) !important;
  color: var(--brand-blue, #36b4e9) !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  margin-top: 4px !important;
}

.slide .slide-btn:hover,
.slide a.btn-ghost:hover {
  background: var(--brand-blue, #36b4e9) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue, #36b4e9) !important;
  box-shadow: 0 4px 12px rgba(54, 180, 233, 0.3) !important;
  transform: translateY(-2px);
}

html[data-theme="light"] .slide .slide-btn,
html[data-theme="light"] .slide a.btn-ghost,
body.light-mode .slide .slide-btn {
  background: rgba(54, 180, 233, 0.1) !important;
  border: 1px solid rgba(54, 180, 233, 0.4) !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .slide .slide-btn:hover,
html[data-theme="light"] .slide a.btn-ghost:hover,
body.light-mode .slide .slide-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

@media (max-width: 960px) {
  .container {
    padding: 20px 16px 0 !important;
  }

  .section-title {
    font-size: 20px !important;
    margin-bottom: 18px !important;
  }

  .field {
    height: 44px !important;
    font-size: 13px !important;
  }

  textarea.field {
    min-height: 80px !important;
    padding: 10px 14px !important;
  }

  .quick-features-bar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 14px 12px 0 !important;
  }

  .section-title {
    font-size: 17px !important;
    margin-bottom: 14px !important;
  }

  .slide {
    padding: 22px 16px !important; 
    gap: 12px !important;
  }

  .slide-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }

  .slide-text h3 {
    font-size: 15px !important;
  }

  .slide-text p {
    font-size: 12.5px !important;
  }

  .field {
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  textarea.field {
    min-height: 60px !important;
    padding: 8px 12px !important;
  }

  .quick-features-bar {
    display: none !important;
  }
}

#calculator {
  position: relative;
  padding: 64px 0 96px;
  background: transparent;
}

.calculator-box {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 24px;
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wizard-shell {
  overflow: hidden;
  border-radius: 28px;
  background: transparent;
}

.wizard-body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.wizard-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.wizard-side:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.wizard-back {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 30;
}

.wizard-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.wizard-side-name {
  width: 100%;
  margin-top: 48px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.power-highlight {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.power-highlight-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 96px;
  padding: 18px 14px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.power-highlight-item:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.power-highlight-item span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.power-highlight-item strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1.1;
  
  text-shadow: none;
}

.spec-table {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.2s ease;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.spec-row span:first-child {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-row span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.wizard-main {
  min-width: 0;
  width: 100%;
}

.wizard-panel {
  width: 100%;
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 960px) {
  #calculator {
    padding: 40px 0 64px;
  }

  .calculator-box {
    padding: 0 16px;
  }

  .wizard-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wizard-side {
    position: relative;
    top: auto;
    padding: 24px;
    border-radius: 20px;
  }

  .wizard-side-name {
    margin-top: 36px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  #calculator {
    padding: 24px 0 40px;
  }

  .calculator-box {
    padding: 0 12px;
  }

  .wizard-side {
    padding: 18px 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .wizard-back {
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .wizard-side-name {
    margin-top: 36px;
    font-size: 20px;
  }

  .power-highlight {
    gap: 10px;
  }

  .power-highlight-item {
    min-height: 84px;
    padding: 12px 8px;
    border-radius: 14px;
  }

  .power-highlight-item span {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .power-highlight-item strong {
    font-size: 20px;
  }

  .spec-table {
    border-radius: 14px;
  }

  .spec-row {
    padding: 12px 14px;
  }

  .spec-row span:first-child,
  .spec-row span:last-child {
    font-size: 12px;
  }
}

.wizard-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.wizard-side-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-back:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-elevated);
}

.car-top-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 10px;
  margin-bottom: 24px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.car-image {
  width: 100%;
  max-width: 600px; 
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.color-row {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  z-index: 5;
  width: auto;
  flex-shrink: 0;
}

.color-dot {
  width: 24px; 
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.15);
  border-color: #fff;
}

.color-dot.active {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(54, 180, 233, 0.8);
}

.car-top-banner .color-dot[data-color="white"] {
  background-color: #ffffff;
}
.car-top-banner .color-dot[data-color="black"] {
  background-color: #111111;
}
.car-top-banner .color-dot[data-color="silver"] {
  background-color: #c0c0c0;
}
.car-top-banner .color-dot[data-color="darkgray"] {
  background-color: #4a4a4a;
}
.car-top-banner .color-dot[data-color="beige"] {
  background-color: #e5d4b7;
}
.car-top-banner .color-dot[data-color="carbonblue"] {
  background-color: #002b5b;
}

@media (max-width: 576px) {
  .car-top-banner {
    gap: 12px;
    padding: 10px 5px;
  }

  .car-image {
    max-width: 100%; 
  }

  .color-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.brand-card,
.car-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-card:hover,
.car-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-elevated);
}

.brand-card.active,
.car-card.active {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.brand-card img,
.car-card img {
  max-width: 100%;
  height: 55px;
  object-fit: contain;
}

.wizard-next-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
}

.wizard-next-row .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 50px;
  padding: 0 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.wizard-next-row .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover, #2bb3e0);
}

@media (max-width: 480px) {
  .wizard-side-header {
    margin-bottom: 14px;
  }

  .car-top-banner {
    gap: 12px;
    padding: 10px;
  }

  .color-row {
    top: auto;
    left: auto;
    padding: 6px 6px;
    gap: 6px;
  }

  .color-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  .pick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .wizard-next-row {
    margin-top: 20px;
  }

  .wizard-next-row .btn-primary {
    width: 100%;
    height: 48px;
  }
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 16px;
  margin-bottom: 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.category-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.category-tabs button.active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#parts-list {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 20px;
  margin-bottom: 32px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-soft) transparent;
}

#parts-list::-webkit-scrollbar {
  height: 5px;
}

#parts-list::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 999px;
  transition: background 0.2s ease;
}

#parts-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

#parts-list::-webkit-scrollbar-track {
  background: transparent;
}

#parts-list > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (max-width: 960px) {
  .category-tabs {
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 12px;
  }

  .category-tabs button {
    min-width: 110px;
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 14px;
  }

  #parts-list {
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 18px;
  }

  .category-tabs button {
    min-width: 95px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
  }

  #parts-list {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    scroll-padding-inline: 12px;
  }
}

.part-box {
  position: relative;
  flex: 0 0 190px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  text-align: center;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.part-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-elevated);
}

.part-box input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.part-box img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.part-box:hover img {
  transform: scale(1.06);
}

.part-box strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
}

.part-box span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.part-box:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.part-box:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: checkPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.wizard-next-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.wizard-next-row .btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  height: 52px;
  padding: 0 32px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-next-row .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 960px) {
  .part-box {
    flex: 0 0 165px;
    min-height: 180px;
    padding: 16px 12px;
    border-radius: 18px;
  }

  .part-box img {
    width: 60px;
    height: 60px;
  }

  .part-box strong {
    font-size: 13px;
  }

  .part-box span {
    font-size: 11px;
  }

  .wizard-next-row {
    margin-top: 28px;
  }

  .wizard-next-row .btn-primary {
    min-width: 200px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .part-box {
    flex: 0 0 145px;
    min-height: 160px;
    padding: 14px 10px;
    border-radius: 16px;
  }

  .part-box img {
    width: 50px;
    height: 50px;
  }

  .part-box strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .part-box span {
    font-size: 10px;
    line-height: 1.4;
  }

  .part-box:has(input:checked)::after {
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .wizard-next-row {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    margin-top: 20px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
  }

  .wizard-next-row .btn-primary {
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 24px;
  align-items: start;
}

.result-col-chart,
.result-col-stats {
  min-width: 0;
}

.chart-box {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.chart-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.chart-box h4 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 360px;
}

.chart-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.final-result {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.final-result h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.final-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.final-result-grid .box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-result-grid .box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.final-result-grid .box p,
.final-result-grid .box label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.final-result-grid .box span {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

@media (max-width: 960px) {
  .result-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-col-chart {
    order: 1;
  }

  .result-col-stats {
    order: 2;
  }

  .chart-box {
    padding: 20px;
  }

  .chart-canvas-wrap {
    height: 300px;
    min-height: 300px;
  }

  .final-result {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .result-grid {
    gap: 16px;
  }

  .result-col-chart {
    order: 1;
  }

  .result-col-stats {
    order: 2;
  }

  .chart-box {
    padding: 16px;
    border-radius: 16px;
  }

  .chart-box h4 {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .chart-canvas-wrap {
    height: 240px;
    min-height: 240px;
  }

  .final-result {
    padding: 16px;
    border-radius: 16px;
  }

  .final-result h3 {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .final-result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .final-result-grid .box {
    min-height: 95px;
    padding: 12px 8px;
    border-radius: 14px;
  }

  .final-result-grid .box span {
    margin-top: 6px;
    font-size: 22px;
  }
}

.ai-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.ai-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.ai-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-box-header i {
  font-size: 20px;
  color: var(--accent);
}

.ai-box-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 90px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiPulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ai-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ai-loading-text {
  margin-inline-start: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ai-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}

.save-tuning-wrap {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center !important;
}

#saveTuningBtn {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  min-width: 260px;
  height: 52px;
  padding: 0 32px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#saveTuningBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#saveTuningMsg {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  align-items: center;
}

.empty-note {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.empty-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.empty-note a:hover {
  color: #ffffff;
  text-decoration: underline;
}

a.btn-primary {
  align-items: center;
}

@keyframes aiPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 960px) {
  .ai-box {
    margin-top: 24px;
    padding: 20px;
  }

  .save-tuning-wrap {
    margin-top: 28px;
  }

  #saveTuningBtn {
    width: 100%;
    max-width: 360px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .ai-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
  }

  .ai-box-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .ai-box-header i {
    font-size: 18px;
  }

  .ai-box-header h4 {
    font-size: 15px;
  }

  .ai-loading {
    min-height: 70px;
  }

  .ai-loading-text {
    font-size: 13px;
  }

  .ai-content {
    font-size: 13px;
    line-height: 1.7;
  }

  .save-tuning-wrap {
    margin-top: 22px;
  }

  #saveTuningBtn {
    width: 100%;
    max-width: none;
    height: 48px;
    border-radius: 14px;
    font-size: 14px;
  }

  #saveTuningMsg {
    font-size: 12px;
  }

  .empty-note {
    font-size: 13px;
  }
}

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

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

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

button,
input,
select {
  outline: none;
}

.wizard-main,
.wizard-panel {
  width: 100%;
  min-width: 0;
}

.wizard-panel {
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.category-tabs,
#parts-list {
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.category-tabs > *,
.part-box,
.brand-card,
.car-card {
  user-select: none;
  -webkit-user-select: none;
}

.car-image {
  will-change: transform;
  backface-visibility: hidden;
}

.color-dot {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.color-dot:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.btn-primary {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.power-highlight-item,
.part-box,
.chart-box,
.final-result,
.ai-box,
.brand-card,
.car-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

button:focus-visible,
.color-dot:focus-visible,
.part-box:focus-visible,
.brand-card:focus-visible,
.car-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 960px) {
  body {
    overflow-x: hidden;
  }

  .wizard-main {
    width: 100%;
  }

  .chart-box,
  .final-result,
  .ai-box {
    width: 100%;
  }

  .car-top-banner {
    padding-inline: 8px;
  }

  .power-highlight {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
  }

  #calculator {
    overflow: hidden;
  }

  .calculator-box {
    width: 100%;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .wizard-shell {
    border-radius: 20px;
  }

  .wizard-body {
    gap: 16px;
  }

  .wizard-side {
    border-radius: 18px;
  }

  .car-top-banner {
    margin-bottom: 20px;
  }

  .wizard-next-row {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .chart-box,
  .final-result,
  .ai-box {
    overflow: hidden;
  }

  .save-tuning-wrap {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  button,
  .part-box,
  .brand-card,
  .car-card,
  .color-dot {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (min-width: 1400px) {
  .calculator-box {
    max-width: 1380px;
  }

  .wizard-body {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
  }

  .car-image {
    max-width: 520px;
  }

  .chart-canvas-wrap {
    height: 400px;
  }
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.auth-box {
  width: 420px;
  max-width: 100%;
  padding: 35px;
}

.auth-box h2 {
  text-align: center;
  color: var(--accent-2);
  margin-bottom: 25px;
}
.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-box button {
  height: 50px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #1c6e8f);
  color: white;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s;
}

.auth-box button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.auth-switch a {
  color: var(--accent-2);
}

.auth-errors {
  background: rgba(54, 180, 233, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}

.auth-errors p {
  color: #ff8fa3;
  font-size: 13.5px;
  margin: 3px 0;
}

.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  color: #6ee7a0;
  font-size: 13.5px;
}

.page-header {
  padding: calc(var(--header-h) + 50px) 20px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.content-page p {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 15.5px;
  margin-bottom: 20px;
}

.contact-form-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
}
.contact-form-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.blog-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.filter-box {
  padding: 22px;
}

.filter-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-box-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-primary);
}

.filter-box-header h4 i {
  color: var(--accent-2);
  font-size: 13px;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-checkbox-scroll {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.filter-checkbox-scroll::-webkit-scrollbar {
  width: 5px;
}
.filter-checkbox-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}

.filter-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-checkbox-row:last-child {
  border-bottom: none;
}

.filter-checkbox-row:hover {
  color: var(--text-primary);
}

.filter-checkbox-row input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-clear-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  font-size: 12.5px;
  padding: 9px 14px;
}

.blog-main {
  flex: 1;
  min-width: 0;
}

.blog-search-box {
  position: relative;
  margin-bottom: 24px;
}

.blog-search-box i {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.blog-search-box input {
  padding-inline-start: 46px;
}

.blog-card-category {
  display: inline-block;
  background: rgba(54, 180, 233, 0.12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100%;
    position: static;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.blog-card {
  overflow: hidden;
  transition: 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.blog-card .blog-card-body {
  padding: 18px;
}
.blog-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.blog-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.blog-single img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}
.blog-single .blog-content {
  color: var(--text-secondary);
  line-height: 2.1;
  font-size: 16px;
}
.blog-single .blog-content p {
  margin-bottom: 20px;
}

.user-dashboard {
  padding: calc(var(--header-h) + 40px) 20px 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.dashboard-welcome h1 {
  color: var(--accent-2);
  margin-bottom: 5px;
  font-size: 28px;
}
.dashboard-welcome p {
  color: var(--text-secondary);
  margin-bottom: 35px;
}
.dashboard-section h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state .start-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--accent), #1c6e8f);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.tuning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tuning-card {
  padding: 18px;
  text-align: center;
}
.tuning-card img {
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.tuning-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}
.tuning-meta {
  color: var(--text-secondary);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.tuning-power {
  display: flex;
  justify-content: space-between;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-size: 12.5px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.tuning-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

#wizard {
  min-height: 100vh;
  box-sizing: border-box;
  padding: calc(var(--header-h) + 30px) 0 60px;
  scroll-snap-align: start;
}

.wizard-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(54, 180, 233, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(54, 180, 233, 0.06),
      transparent 45%
    ),
    linear-gradient(165deg, #161616, #0b0b0b 65%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(54, 180, 233, 0.3);
}

.wizard-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.wizard-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  position: relative;
  transition: 0.3s;
  cursor: default;
}

.wizard-tab:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 25px;
  inset-inline-start: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-soft);
  z-index: 0;
  transition: background 0.4s ease;
}

.wizard-tab.done + .wizard-tab::before {
  background: linear-gradient(90deg, #1c6e8f, var(--accent));
}

.wizard-tab .tab-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: var(--bg-elevated);
  font-size: 11px;
  transition: 0.3s;
}

.wizard-tab.done .tab-num {
  position: relative;
  background: var(--accent);
  border-color: var(--accent);
  color: transparent;
}
.wizard-tab.done .tab-num::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.wizard-tab.done {
  color: var(--text-secondary);
}

.wizard-tab.active {
  color: var(--text-primary);
}
.wizard-tab.active .tab-num {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.wizard-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: 0.3s;
}

.wizard-tab.active::after {
  background: var(--accent-2);
}

.wizard-panel {
  display: none;
  padding: 18px 18px;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(54, 180, 233, 0.05),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 100%,
      rgba(54, 180, 233, 0.04),
      transparent 45%
    );
}
.wizard-panel.active {
  display: block;
  animation: fadeUp 0.45s ease both;
}

.wizard-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.wizard-side {
  width: 280px;
  flex-shrink: 0;
  padding: 10px 18px 20px;
  border-inline-end: 1px solid var(--border-soft);
  background: transparent;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: flex-start;
}

.wizard-side-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.wizard-side-preview img {
  max-width: 100%;
  max-height: 130px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px #000);
}

.wizard-side-name {
  position: relative;
  text-align: center;
  font-size: 19px;
  letter-spacing: 0.2px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  color: var(--text-primary);
  font-weight: 800;
}

.wizard-side-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #1c6e8f, var(--accent));
}

.power-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.power-highlight-item {
  background: rgba(54, 180, 233, 0.07);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.power-highlight-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 10.5px;
  margin-bottom: 4px;
}
.power-highlight-item strong {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 800;
}

.car-top-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(54, 180, 233, 0.16),
      transparent 65%
    ),
    linear-gradient(160deg, var(--bg-surface), #0d0d0d 80%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 90px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    0 14px 34px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.car-top-banner::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: 0;
}

.car-top-banner img {
  position: relative;
  z-index: 1;
  max-height: 165px;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6));
  transition: opacity 0.28s ease;
}

.car-top-banner .color-row {
  position: absolute;
  inset-inline-start: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.wizard-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .wizard-body {
    flex-direction: column;
  }

  .wizard-side {
    width: 100%;
    border-inline-end: none;
    border-bottom: 1px solid var(--border-soft);
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }

  .wizard-side-preview {
    height: 64px;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 90px;
  }
  .wizard-side-preview img {
    max-height: 60px;
  }
  .wizard-side-name {
    display: none;
  }
  #sideSpecTable {
    display: none;
  }
  .wizard-side .color-row {
    margin: 0;
  }

  .car-top-banner {
    min-height: 150px;
    padding: 14px 68px 14px 14px;
  }
  .car-top-banner img {
    max-height: 120px;
  }
  .car-top-banner .color-row {
    inset-inline-end: 12px;
    gap: 8px;
  }
  .car-top-banner .color-dot {
    width: 18px;
    height: 18px;
  }
}

.result-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.result-col-chart,
.result-col-stats {
  display: flex;
  flex-direction: column;
}
.result-col-chart .chart-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.result-col-chart .chart-canvas-wrap {
  flex: 1;
}
.result-col-stats .final-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

#pickBrandView,
#pickCarView {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  margin-bottom: 16px;
}

.pick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pick-tile {
  width: 168px;
  background: linear-gradient(160deg, var(--bg-elevated), #262626);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  animation: tileFadeUp 0.5s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.pick-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(54, 180, 233, 0.12);
}

.pick-grid .pick-tile:nth-child(1) {
  animation-delay: 0.02s;
}
.pick-grid .pick-tile:nth-child(2) {
  animation-delay: 0.06s;
}
.pick-grid .pick-tile:nth-child(3) {
  animation-delay: 0.1s;
}
.pick-grid .pick-tile:nth-child(4) {
  animation-delay: 0.14s;
}
.pick-grid .pick-tile:nth-child(5) {
  animation-delay: 0.18s;
}
.pick-grid .pick-tile:nth-child(6) {
  animation-delay: 0.22s;
}
.pick-grid .pick-tile:nth-child(7) {
  animation-delay: 0.26s;
}
.pick-grid .pick-tile:nth-child(8) {
  animation-delay: 0.3s;
}
.pick-grid .pick-tile:nth-child(n + 9) {
  animation-delay: 0.34s;
}

@keyframes tileFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.car-image,
.spec-preview img,
#carImage2 {
  transition:
    opacity 0.28s ease,
    transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.pick-tile.selected {
  border-color: var(--accent-2);
  background: linear-gradient(
    160deg,
    rgba(54, 180, 233, 0.14),
    var(--bg-elevated)
  );
  box-shadow: 0 6px 22px rgba(54, 180, 233, 0.15);
}

.pick-tile .tile-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(54, 180, 233, 0.25),
    var(--bg-base) 75%
  );
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-2);
  box-shadow: inset 0 0 12px rgba(54, 180, 233, 0.15);
}

.pick-tile .tile-img {
  width: 100%;
  height: 62px;
  object-fit: contain;
}

.pick-tile span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
}
.pick-tile.selected span {
  color: var(--text-primary);
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: 0.25s;
}

.wizard-back i {
  font-size: 13px;
}

.wizard-back:hover {
  color: var(--accent-2);
}

.spec-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.spec-summary .spec-preview {
  text-align: center;
}
.spec-summary .spec-preview img {
  max-width: 100%;
  max-height: 140px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 20px #000);
}
.spec-summary .spec-preview h3 {
  margin-top: 8px;
  font-size: 15px;
}

.spec-table {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span:first-child {
  color: var(--text-muted);
}
.spec-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.wizard-next-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 10px;
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}

.color-dot:hover {
  transform: scale(1.12);
}
.color-dot.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(54, 180, 233, 0.18);
}
.color-dot[data-color="white"] {
  background: #e4e5e4;
}
.color-dot[data-color="black"] {
  background: #0a0a0a;
  border-color: #333;
}
.color-dot[data-color="red"] {
  background: #c41230;
}
.color-dot[data-color="blue"] {
  background: #36b4e9;
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.category-tabs::-webkit-scrollbar {
  height: 5px;
}
.category-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.category-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #1c6e8f, var(--accent));
  border-radius: 20px;
}

.category-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--bg-elevated), #262626);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}

.category-tab i {
  font-size: 12px;
  opacity: 0.8;
}

.category-tab:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent), #1c6e8f);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(54, 180, 233, 0.3);
}

.category-tab.active i {
  opacity: 1;
}

@media (max-width: 720px) {
  .wizard-tab {
    font-size: 10.5px;
    padding: 10px 3px 9px;
    gap: 5px;
  }
  .wizard-tab .tab-num {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .wizard-tab:not(:first-child)::before {
    top: 18px;
  }

  .wizard-panel {
    padding: 14px 12px;
  }

  .pick-grid {
    gap: 6px;
  }
  .pick-tile {
    width: 130px;
    padding: 16px 8px;
  }
  .pick-tile .tile-badge {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .pick-tile .tile-img {
    height: 40px;
  }
  .pick-tile span {
    font-size: 10px;
  }

  .spec-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .spec-summary .spec-preview img {
    max-height: 110px;
  }

  .color-dot {
    width: 22px;
    height: 22px;
  }

  .chart-canvas-wrap {
    height: 200px;
  }

  .wizard-next-row {
    justify-content: center;
  }
  .wizard-next-row .btn-primary,
  .wizard-next-row .btn-ghost {
    flex: 1;
    justify-content: center;
  }

  .category-tabs {
    margin-top: 12px;
    margin-bottom: 14px;
    gap: 6px;
  }
  .category-tab {
    padding: 8px 14px;
    font-size: 11.5px;
  }

  .part-box {
    flex: 0 0 132px;
    padding: 12px 10px;
  }
  .part-box strong {
    font-size: 12px;
  }
  .part-box span {
    font-size: 11px;
  }
  .part-box input {
    width: 18px;
    height: 18px;
  }
}

.banner-slider {
  padding: 10px 0 40px;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.slide {
  flex: 0 0 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 44px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(54, 180, 233, 0.16),
      transparent 55%
    ),
    linear-gradient(120deg, #141414, #0a0a0a 70%);
}

.slide-icon {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(54, 180, 233, 0.3),
    var(--bg-base) 75%
  );
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-2);
  box-shadow: inset 0 0 16px rgba(54, 180, 233, 0.2);
}

.slide-text {
  flex: 1;
  min-width: 0;
}
.slide-text h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.slide-text p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

.slide-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(228, 229, 228, 0.25);
  cursor: pointer;
  transition: 0.25s;
}

.slider-dots span.active {
  background: var(--accent);
  width: 22px;
  border-radius: 5px;
}

@media (max-width: 700px) {
  .slide {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px 40px;
    gap: 14px;
  }
  .slide-text p {
    max-width: 100%;
  }
}

#relatedPostsSection {
  padding-bottom: 120px !important;
}

@media (max-width: 960px) {
  #relatedPostsSection {
    padding-bottom: 90px !important;
  }
}

@media (max-width: 480px) {
  #relatedPostsSection {
    padding-bottom: 64px !important;
  }
}

.site-footer {
  position: relative;

  padding-top: 60px;

  color: var(--text-muted);

  background: var(--bg-surface);

  overflow: hidden;
}

.footer-break {
  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 60px;

  background: linear-gradient(100deg, #1c6e8f, var(--accent) 60%);

  clip-path: polygon(0 0, 100% 0, 100% 35%, 62% 100%, 0 55%);

  opacity: 0.9;
}

.footer-top {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns: 1.6fr 1fr 1fr 1fr;

  gap: 34px;

  padding: 20px 20px 40px;
}

.footer-logo {
  height: 30px;

  margin-bottom: 14px;
}

.footer-brand-col p {
  font-size: 13px;

  line-height: 1.9;

  color: var(--text-secondary);

  margin-bottom: 18px;

  max-width: 320px;
}

.footer-social {
  display: flex;

  gap: 10px;
}

.footer-social a {
  width: 36px;

  height: 36px;

  border-radius: 50%;

  background: var(--bg-elevated);

  border: 1px solid var(--border-soft);

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--text-secondary);

  font-size: 14px;

  transition: 0.25s;
}

.footer-social a:hover {
  color: white;

  background: linear-gradient(135deg, var(--accent), #1c6e8f);

  border-color: transparent;

  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--text-primary);

  font-size: 15px;

  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;

  display: flex;

  flex-direction: column;

  gap: 12px;
}

.footer-col ul a,
.footer-col ul span {
  font-size: 13.5px;

  color: var(--text-secondary);

  transition: 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent-2);
}

.footer-col ul em {
  font-style: normal;

  font-size: 10.5px;

  color: var(--text-muted);

  border: 1px solid var(--border-soft);

  border-radius: var(--radius-pill);

  padding: 2px 8px;

  margin-inline-start: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);

  text-align: center;

  padding: 18px 20px;

  font-size: 12.5px;

  position: relative;

  z-index: 1;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-brand-col p {
    margin-left: auto;

    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(24px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;

  transform: translateY(36px);

  transition:
    opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
} 

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: 90%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(54, 180, 233, 0.1);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--accent);
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
}

.modal-close:hover {
  background: linear-gradient(135deg, var(--accent), #1c6e8f);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.8;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-question {
  padding: 15px 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 14px;
}

.faq-question i {
  font-size: 11px;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  padding: 0 18px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 180px;
  padding: 0 18px 16px 18px;
}

.rules-content h4 {
  color: var(--text-primary);
  font-size: 14.5px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.rules-content h4:first-child {
  margin-top: 0;
}

.rules-content p {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

html[data-theme="light"] {
  --bg-base: #f3f5f8;
  --bg-surface: #ffffff;
  --bg-elevated: #eef1f5;
  --border-soft: rgba(15, 23, 32, 0.08);
  --border-accent: rgba(54, 180, 233, 0.35);

  --accent-2: #1478a3;
  --accent-glow: rgba(31, 155, 214, 0.22);

  --text-primary: #14181c;
  --text-secondary: #565b61;
  --text-muted: #8a9096;

  --shadow-soft: 0 10px 30px rgba(20, 26, 33, 0.07);
  --shadow-glow: 0 0 24px var(--accent-glow);
}

html[data-theme="light"] header.site-header,
html[data-theme="light"] .site-header {
  background-color: transparent !important;
  background: rgba(255, 255, 255, 0.3) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

html[data-theme="light"] header.site-header.scrolled,
html[data-theme="light"] .site-header.scrolled {
  background-color: transparent !important;
  background: rgba(255, 255, 255, 0.6) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
} 

html[data-theme="light"] .site-header {
  background: rgba(
    238,
    241,
    245,
    0.85
  ) !important; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .site-header.scrolled {
  background: rgba(
    230,
    235,
    240,
    0.95
  ) !important; 
  box-shadow: 0 8px 25px rgba(20, 26, 33, 0.06);
}

html[data-theme="light"] .site-header a:hover,
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .main-menu a:hover,
html[data-theme="light"] .site-header .active a,
html[data-theme="light"] .nav-link.active {
  color: #14181c !important; 

} 

html[data-theme="light"] .site-header a:hover,
html[data-theme="light"] .site-header a:active,
html[data-theme="light"] .site-header a:focus,
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link:active,
html[data-theme="light"] .main-menu a:hover,
html[data-theme="light"] .main-menu a:active,
html[data-theme="light"] .site-header .active a,
html[data-theme="light"] .nav-link.active {
  color: #14181c !important; 
  outline: none; 
} 

html[data-theme="light"] .site-header .active,
html[data-theme="light"] .site-header .active > a,
html[data-theme="light"] .site-header li.active,
html[data-theme="light"] .site-header .current-menu-item,
html[data-theme="light"] .site-header .current-menu-item > a {
  background-color: rgba(
    0,
    0,
    0,
    0.06
  ) !important; 
  color: #14181c !important; 
  border-radius: 8px; 
}

html[data-theme="light"] .site-header .lang-switcher,
html[data-theme="light"] .site-header .lang-switcher *,
html[data-theme="light"] .site-header .icon-btn {
  color: #14181c !important;
}

html[data-theme="light"] .site-header .lang-switcher .active,
html[data-theme="light"] .site-header .lang-switcher span.active {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #14181c !important;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-base);
}

html {
  scroll-snap-type: y proximity;
}

.page-section-full {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--header-h);
  scroll-snap-align: start;
}

@media (max-width: 960px) {
  
  html {
    scroll-snap-type: none;
  }
  .page-section-full,
  .hero,
  #wizard {
    min-height: auto;
    scroll-snap-align: none;
  }
}

.quick-features-bar {
  padding: 25px 0;
  background: rgba(13, 18, 26, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.quick-features-bar .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #11161f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.feature-icon-box i {
  font-size: 26px;
  color: var(--brand-blue, #38bdf8);
}

.feature-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

@media (max-width: 768px) {
  .features-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 10px;
  }

  .feature-item {
    width: 100%;
  }
}

.contact-page-wrapper {
  max-width: 800px !important;
  margin: 20px auto 80px auto !important; 
  padding: 0 15px !important;
}

.contact-form-box {
  background: var(--brand-card, #0d121a) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 32px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.form-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.form-group label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--text-secondary, #94a3b8) !important;
}

.contact-form .field {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
  font-size: 13px !important;
  outline: none !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.contact-form .field::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.contact-form .field:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.contact-form .field:focus {
  border-color: var(--brand-blue, #38bdf8) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12) !important;
}

.contact-form .textarea-field {
  height: 130px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  resize: vertical !important;
}

.form-actions {
  margin-top: 8px !important;
}

.contact-submit-btn {
  width: 100% !important;
  height: 46px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(180deg, #38bdf8 0%, #1d8ed1 100%) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.contact-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(29, 142, 209, 0.35) !important;
}

.contact-submit-btn:active {
  transform: translateY(0) !important;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form-box {
    padding: 20px !important;
  }
}

.final-result-note {
  grid-column: 1/-1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #d8b34a;
}

.final-result-note i {
  margin-top: 2px;
  color: #ffc107;
  flex-shrink: 0;
}

.wizard-shell {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    var(--bg-surface),
    var(--bg-elevated) 75%
  );
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.wizard-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.wizard-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 8px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
}

.wizard-tab:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline-start: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-soft);
  z-index: 0;
  transition: background 0.4s ease;
}

.wizard-tab.done + .wizard-tab::before {
  background: linear-gradient(90deg, #1c6e8f, var(--accent));
}

.wizard-tab .tab-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: var(--bg-elevated);
  font-size: 11.5px;
  transition: all 0.25s ease;
}

.wizard-tab.done .tab-num {
  background: var(--accent);
  border-color: var(--accent);
  color: transparent;
  position: relative;
}

.wizard-tab.done .tab-num::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.wizard-tab.done {
  color: var(--text-secondary);
}

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

.wizard-tab.active .tab-num {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--bg-elevated);
}

.wizard-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.wizard-side {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px;
  border: none;
  border-inline-end: 1px solid var(--border-soft);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wizard-main {
  min-height: 540px;
  padding: 26px 26px 30px;
}

.wizard-side-top {
  width: 100%;
  min-height: 36px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.wizard-back {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: auto;
}

.wizard-back:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(54, 180, 233, 0.14);
  transform: none;
}

.wizard-side-name {
  width: 100%;
  margin-top: 0;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.power-highlight {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.power-highlight-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 84px;
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

.power-highlight-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.power-highlight-item strong {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1.1;
}

.spec-table {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span:first-child {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-row span:last-child {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.car-top-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 0;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.car-top-banner::before {
  display: none;
}

.car-top-banner .color-row,
.color-row {
  position: static;
  inset-inline-start: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  z-index: 1;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.12);
}

.color-dot.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(54, 180, 233, 0.18);
}

.color-dot[data-color="white"] {
  background: #e4e5e4;
}
.color-dot[data-color="black"] {
  background: #0a0a0a;
  border-color: #333;
}
.color-dot[data-color="red"] {
  background: #c41230;
}
.color-dot[data-color="blue"] {
  background: #36b4e9;
}

.car-top-banner img,
.car-image {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 380px;
  max-height: 180px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
  transition: opacity 0.25s ease;
}

#pickBrandView,
#pickCarView {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  margin-bottom: 18px;
}

.pick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pick-tile {
  width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pick-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.pick-tile.selected {
  border-color: var(--accent);
  background: rgba(54, 180, 233, 0.1);
}

.pick-tile .tile-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(54, 180, 233, 0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-2);
}

.pick-tile .tile-img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.pick-tile span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pick-tile.selected span {
  color: var(--text-primary);
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 6px;
}

.category-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.part-box {
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

.part-box:hover {
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.03);
}

.part-box:has(input:checked) {
  border-color: var(--accent);
  background: rgba(54, 180, 233, 0.08);
}

.wizard-next-row .btn-primary {
  border-radius: 12px;
  background: var(--accent);
}

.wizard-next-row .btn-primary:hover {
  background: #2bb3e0;
}

.save-tuning-wrap .btn-primary,
.save-tuning-wrap a.btn-primary {
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #2384ad);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(54, 180, 233, 0.16);
  text-decoration: none;
}

.save-tuning-wrap .btn-primary:hover,
.save-tuning-wrap a.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(54, 180, 233, 0.2);
}

.result-grid {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
}

.chart-box,
.final-result,
.ai-box {
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

.chart-box {
  padding: 20px;
}

.final-result {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.final-result h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.final-result-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.final-result-grid .box {
  min-height: 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.final-result-grid .box p,
.final-result-grid .box span:first-child {
  margin: 0;
  font-size: 12.5px;
}

.final-result-grid .box strong,
.final-result-grid .box span:last-child {
  margin-top: 0;
  font-size: 20px;
}

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

@media (max-width: 900px) {
  .wizard-body {
    grid-template-columns: 1fr;
  }

  .wizard-side {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-soft);
    position: static;
  }

  .wizard-main {
    min-height: 0;
  }

  .car-top-banner {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .wizard-side {
    padding: 18px 16px;
  }

  .wizard-main {
    padding: 18px 16px 24px;
  }

  .pick-tile {
    width: 130px;
    padding: 16px 10px;
  }

  .car-top-banner img,
  .car-image {
    max-height: 130px;
  }
}

html[data-theme="light"] {
  --border-soft: rgba(15, 23, 32, 0.14);
}

html[data-theme="light"] body {
  font-weight: 500;
  background-image:
    radial-gradient(
      circle at 15% 0%,
      rgba(20, 120, 163, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(20, 120, 163, 0.12),
      transparent 38%
    );
}

html[data-theme="light"] .hero h1 {
  background: linear-gradient(90deg, var(--text-primary), var(--accent-2) 65%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .quick-features-bar {
  background: rgba(20, 120, 163, 0.05);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

html[data-theme="light"] .feature-icon-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(20, 26, 33, 0.06);
}

html[data-theme="light"] .feature-text h3 {
  color: var(--text-primary);
}

html[data-theme="light"] .slide {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(20, 120, 163, 0.1),
      transparent 55%
    ),
    linear-gradient(120deg, #eef1f5, #ffffff 70%);
}

html[data-theme="light"] .slide-icon {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(54, 180, 233, 0.25),
    #ffffff 75%
  );
}

html[data-theme="light"] .wizard-tabs {
  background: rgba(20, 120, 163, 0.04);
}

html[data-theme="light"] .power-highlight-item strong {
  color: var(--accent-2);
}

html[data-theme="light"] .part-box:has(input:checked),
html[data-theme="light"] .pick-tile.selected {
  background: rgba(20, 120, 163, 0.08);
}

html[data-theme="light"] .glass-panel,
body.light-mode .glass-panel,
body.light .glass-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .glass-panel label,
html[data-theme="light"] .glass-panel span,
html[data-theme="light"] .glass-panel p,
body.light-mode .glass-panel label,
body.light-mode .glass-panel span,
body.light-mode .glass-panel p {
  color: #0f172a !important;
}

html[data-theme="light"] .glass-panel input,
html[data-theme="light"] .glass-panel textarea,
body.light-mode .glass-panel input,
body.light-mode .glass-panel textarea {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #94a3b8 !important;
}

html[data-theme="light"] .glass-panel input::placeholder,
html[data-theme="light"] .glass-panel textarea::placeholder,
body.light-mode .glass-panel input::placeholder,
body.light-mode .glass-panel textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

#customToastContainer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: "IRANSans", Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastSlideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  max-width: 400px;
  text-align: right;
}

.custom-toast {
  background: rgba(17, 24, 39, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(54, 180, 233, 0.3);
}

.custom-toast i {
  color: var(--brand-blue);
  font-size: 18px;
}

html[data-theme="light"] .custom-toast,
body.light-mode .custom-toast,
body.light .custom-toast {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  border: 1px solid rgba(54, 180, 233, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

.result-grid-balanced {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.result-card {
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.result-card .card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  text-align: center;
}

.result-card.stats-card .final-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wizard-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.wizard-back-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wizard-back-action:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(54, 180, 233, 0.08);
}

.wizard-next-row.has-back {
  justify-content: space-between !important;
  gap: 14px;
}

.wizard-next-row.has-back .btn-primary {
  min-width: 180px;
}

@media (max-width: 992px) {
  .result-grid-balanced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wizard-actions-row,
  .wizard-next-row.has-back {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .wizard-actions-row .save-tuning-wrap,
  .wizard-actions-row .save-tuning-wrap .btn-primary,
  .wizard-actions-row .save-tuning-wrap a.btn-primary,
  .wizard-back-action,
  .wizard-next-row.has-back .btn-primary {
    width: 100%;
  }
}

.wizard-actions-row .save-tuning-wrap {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
}

.wizard-actions-row .save-tuning-wrap .btn-primary,
.wizard-actions-row .save-tuning-wrap a.btn-primary,
.wizard-actions-row #saveTuningBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 50px;
  padding: 0 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.25s ease;
}

.wizard-actions-row .save-tuning-wrap .btn-primary:hover,
.wizard-actions-row .save-tuning-wrap a.btn-primary:hover,
.wizard-actions-row #saveTuningBtn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover, #2bb3e0);
  box-shadow: 0 8px 20px rgba(54, 180, 233, 0.25);
}

@media (max-width: 560px) {
  .wizard-next-row.has-back {
    position: static;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
    padding: 0;
    margin-top: 20px;
    gap: 10px;
  }
  .wizard-next-row.has-back .wizard-back-action {
    width: 100%;
  }
}

.wizard-shell {
  border-radius: 10px !important;
}

.pick-grid {
  justify-content: center !important;
  align-content: center !important;
  min-height: 360px !important;
}

.category-tabs {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-columns: none !important;
  grid-auto-columns: calc((100% - 32px) / 5) !important; 
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  padding-bottom: 8px !important;
}

.category-tabs > * {
  scroll-snap-align: start !important;
  min-width: 0 !important;
}

.category-tab {
  justify-content: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 680px) {
  .category-tabs {
    grid-auto-columns: calc((100% - 16px) / 3) !important; 
  }
}

#parts-list {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-columns: none !important;
  grid-auto-columns: calc((100% - 48px) / 4) !important; 
  gap: 16px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-inline-start: 0 !important;
  padding: 6px 2px 12px !important;
  margin-bottom: 24px !important;
  scrollbar-width: thin !important;
}

#parts-list > * {
  scroll-snap-align: start !important;
}

.part-box {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
}

@media (max-width: 992px) {
  #parts-list {
    grid-auto-columns: calc((100% - 32px) / 3) !important; 
  }
}

@media (max-width: 680px) {
  #parts-list {
    grid-auto-columns: calc((100% - 12px) / 2) !important; 
    gap: 12px !important;
  }
}

.category-tabs {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.category-tabs::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}
.category-tabs::-webkit-scrollbar-thumb,
.category-tabs::-webkit-scrollbar-button {
  display: none !important;
  background: transparent !important;
}

.footer-logo {
  height: 64px !important;
  margin-bottom: 20px !important;
}

.footer-top {
  padding-bottom: 40px !important;
}

.footer-bottom {
  margin-top: 6px !important;
  padding: 22px 20px !important;
}

@media (min-width: 993px) {
  .footer-top {
    gap: 48px !important;
  }
}

@media (max-width: 680px) {
  .footer-col-links,
  .footer-col-services {
    display: none !important;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 24px !important;
  }
  .footer-brand-col {
    align-items: center !important;
  }
  .footer-social {
    justify-content: center !important;
  }
  .footer-logo {
    height: 56px !important;
  }
}

#relatedPostsSection {
  padding-top: 34px !important;
  padding-bottom: 80px !important;
  margin-top: 18px !important;
}

.extra-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  padding: 26px 26px 30px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.extra-box h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.extra-box h4 i {
  color: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius-md) !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent) !important;
}

.related-thumb {
  height: 120px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.related-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.7;
}

.related-excerpt {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-more {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

@media (max-width: 880px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}

.btn-primary,
a.btn-primary,
button.btn-primary,
.wizard-next-row .btn-primary,
.wizard-actions-row .save-tuning-wrap .btn-primary,
.wizard-actions-row .save-tuning-wrap a.btn-primary,
.filter-buttons .btn-primary,
.header-actions .btn-primary,
.hero .btn-primary,
#saveTuningBtn,
#startTuningBtn {
  background: linear-gradient(180deg, #38bdf8 0%, #1d8ed1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(29, 142, 209, 0.20) !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.wizard-next-row .btn-primary:hover,
.wizard-actions-row .save-tuning-wrap .btn-primary:hover,
.wizard-actions-row .save-tuning-wrap a.btn-primary:hover,
.filter-buttons .btn-primary:hover,
.header-actions .btn-primary:hover,
.hero .btn-primary:hover,
#saveTuningBtn:hover,
#startTuningBtn:hover {
  background: linear-gradient(180deg, #2ba8e6 0%, #1780bd 100%) !important;
  box-shadow: 0 9px 22px rgba(29, 142, 209, 0.30) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.btn-ghost,
a.btn-ghost,
.btn-secondary {
  background: transparent !important;
  border: 1.5px solid var(--border-soft) !important;
  color: var(--text-secondary) !important;
  transition: all 0.25s ease !important;
}

.btn-ghost:hover,
a.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(54, 180, 233, 0.10) !important;
  border-color: var(--border-accent) !important;
  color: var(--text-primary) !important;
}

html[data-theme="light"] {
  --border-soft: rgba(15, 23, 32, 0.18) !important;
  --card-border: rgba(15, 23, 32, 0.18) !important;
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .field,
html[data-theme="light"] .wizard-shell,
html[data-theme="light"] .wizard-side,
html[data-theme="light"] .category-tab,
html[data-theme="light"] .part-box,
html[data-theme="light"] .pick-tile,
html[data-theme="light"] .result-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .spec-row,
html[data-theme="light"] .power-highlight-item,
html[data-theme="light"] .extra-box,
html[data-theme="light"] .related-card {
  border: 1.5px solid rgba(15, 23, 32, 0.16) !important;
}

html[data-theme="light"] .category-tab {
  background: #ffffff !important;
  color: #14181c !important;
}
html[data-theme="light"] .category-tab.active {
  background: linear-gradient(180deg, #38bdf8, #1d8ed1) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.brand-logo {
  height: 56px !important;
  width: auto !important;
}
@media (max-width: 680px) {
  .brand-logo {
    height: 44px !important;
  }
}

.wizard-tab.done .tab-num {
  color: transparent !important;
  font-size: 0 !important;
  background: linear-gradient(180deg, #38bdf8, #1d8ed1) !important;
  border-color: transparent !important;
}
.wizard-tab.done .tab-num::before {
  content: "✓" !important; 
  font-family: system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  color: #ffffff !important;
}

html[data-theme="light"] .notify-bell,
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .desktop-theme-toggle {
  border: 1.5px solid rgba(15, 23, 32, 0.20) !important;
  background: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="light"] .notify-bell {
  color: #14181c !important;
}
html[data-theme="light"] .notify-bell:hover {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border-color: #7cc6ea !important;
}

html[data-theme="light"] .desktop-theme-toggle {
  color: #14181c !important;
}
html[data-theme="light"] .desktop-theme-toggle:hover {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border-color: #7cc6ea !important;
}

html[data-theme="light"] .lang-switch a {
  color: #565b61 !important;
}
html[data-theme="light"] .lang-switch a:hover {
  color: #14181c !important;
  background: rgba(15, 23, 32, 0.07) !important;
}
html[data-theme="light"] .lang-switch a.active {
  color: #ffffff !important;
  background: linear-gradient(180deg, #38bdf8, #1d8ed1) !important;
}

html[data-theme="light"] .site-nav > a:hover {
  color: #14181c !important;
  background: rgba(15, 23, 32, 0.07) !important;
}
html[data-theme="light"] .site-nav > a.active {
  color: #14181c !important;
  background: rgba(15, 23, 32, 0.09) !important;
}

.banner-slider .slide.banner-slide {
  padding: 0 !important;
  display: block !important;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
  background: transparent !important;
  border: none !important;
}
.banner-slide-link { display: block; }
.banner-slide-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg, 20px);
}

@media (max-width: 640px) {
  .banner-slider {
    padding: 8px 0 26px !important;
  }
  
  .slider-viewport {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: var(--radius-md, 14px) !important;
  }
  .banner-slider .slide.banner-slide {
    min-height: 0 !important;          
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: var(--radius-md, 14px);
  }
  .banner-slide-img {
    aspect-ratio: auto !important;     
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;    
    border-radius: var(--radius-md, 14px);
  }
}

.logo-light { display: none !important; }
.logo-dark  { display: block !important; }

html[data-theme="light"] .logo-light,
html.light .logo-light {
  display: block !important;
}
html[data-theme="light"] .logo-dark,
html.light .logo-dark {
  display: none !important;
}

.brand-logo {
  height: 28px !important;
  width: auto !important;
}
@media (max-width: 992px) {
  .brand-logo { height: 26px !important; }
}
@media (max-width: 680px) {
  .brand-logo { height: 24px !important; }
}

.footer-logo {
  height: 38px !important;
  width: auto !important;
  margin-bottom: 18px !important;
}

@media (max-width: 680px) {
  .footer-logo {
    height: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.wizard-main .car-top-banner {
  position: relative !important;
  box-sizing: border-box !important;
  width: calc(100% + 52px) !important;         
  margin: -26px -26px 22px -26px !important;   
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border-soft) !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 0 !important;
}

.wizard-main .car-top-banner .car-image,
.wizard-main .car-top-banner img#carImage {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(210px, 24vw, 320px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  border-radius: 0 !important;
  filter: none !important;
  display: block !important;
}

.wizard-main .car-top-banner .color-row {
  position: absolute !important;
  left: 14px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  flex-direction: column !important;
  align-items: center !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 9px 8px !important;
  border-radius: 999px !important;
  background: rgba(10, 14, 20, 0.34) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  z-index: 3 !important;
}
.wizard-main .car-top-banner .color-dot {
  border-color: rgba(255, 255, 255, 0.8) !important;
}

#carGrid .pick-tile {
  width: 172px !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  align-self: flex-start !important;   
  justify-content: flex-start !important;
}
#carGrid .pick-tile .tile-img {
  width: 100% !important;
  height: 100px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  display: block;   
  background: var(--bg-elevated);
}

#carGrid .pick-tile .tile-badge {
  width: 100% !important;
  height: 100px !important;
  border-radius: 0 !important;
  background: var(--bg-elevated) !important;
  border: none !important;
  font-size: 26px !important;
}
#carGrid .pick-tile span {
  display: block !important;
  width: 100% !important;
  padding: 11px 8px 13px !important;
}

@media (max-width: 480px) {
  .wizard-main .car-top-banner {
    width: calc(100% + 32px) !important;   
    margin: -18px -16px 18px -16px !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }
  .wizard-main .car-top-banner .car-image,
  .wizard-main .car-top-banner img#carImage {
    height: clamp(170px, 46vw, 240px) !important;
  }
  
  .wizard-main .car-top-banner .color-row {
    position: absolute !important;
    left: 10px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .wizard-main .car-top-banner .color-dot {
    width: 17px !important;
    height: 17px !important;
  }
  #carGrid .pick-tile {
    width: calc(50% - 7px) !important;   
  }
  #carGrid .pick-tile .tile-img,
  #carGrid .pick-tile .tile-badge {
    height: 88px !important;
  }
}

.wizard-shell .wizard-tabs {
  border-bottom: none !important;
}

.wizard-body .wizard-side,
html[data-theme="light"] .wizard-body .wizard-side {
  border: none !important;
  box-shadow: none !important;
}

.wizard-body .wizard-main {
  border-inline-start: 1px solid var(--border-soft) !important;
}
html[data-theme="light"] .wizard-body .wizard-main {
  border-inline-start: 1.5px solid rgba(15, 23, 32, 0.16) !important;
}

.wizard-main .car-top-banner {
  border-bottom: none !important;
}

#carGrid .pick-tile span {
  padding: 12px 8px 14px !important;
  line-height: 1.3 !important;
}

@media (max-width: 900px) {
  .wizard-body .wizard-main {
    border-inline-start: none !important;
  }
  .wizard-body .wizard-side,
  html[data-theme="light"] .wizard-body .wizard-side {
    border-bottom: 1px solid var(--border-soft) !important;
  }
}

.site-header .header-actions {
  gap: 16px !important;
}

.site-header {
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
  height: 74px !important;
  padding: 0 26px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18),
              0 2px 6px rgba(0, 0, 0, 0.10) !important;   
  background: rgba(10, 13, 18, 0.72) !important;
}
.site-header.scrolled {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24),
              0 2px 8px rgba(0, 0, 0, 0.14) !important;
  background: rgba(10, 13, 18, 0.86) !important;
}

html[data-theme="light"] .site-header {
  border: 1px solid rgba(15, 23, 32, 0.10) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 32, 0.10),
              0 2px 6px rgba(15, 23, 32, 0.05) !important;
}
html[data-theme="light"] .site-header.scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 32, 0.14),
              0 2px 8px rgba(15, 23, 32, 0.07) !important;
}

@media (max-width: 680px) {
  .site-header {
    top: 8px !important;
    left: 10px !important;
    right: 10px !important;
    height: 56px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
  }
  .site-header .header-actions { gap: 12px !important; }
}

.header-actions .btn-primary {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}
@media (max-width: 680px) {
  .header-actions .btn-primary {
    height: 34px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
  }
}

html[data-theme="light"] .header-actions a.btn-primary,
html[data-theme="light"] .header-actions a.btn-primary:hover,
html[data-theme="light"] .header-actions a.btn-primary:active,
html[data-theme="light"] .header-actions a.btn-primary:focus {
  color: #ffffff !important;
  background: linear-gradient(180deg, var(--accent), #2384ad) !important;
  box-shadow: 0 6px 16px rgba(54, 180, 233, 0.28) !important;
}

.brand-logo,
.footer-logo {
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.30));
}
html[data-theme="light"] .brand-logo,
html[data-theme="light"] .footer-logo {
  filter: drop-shadow(0 3px 7px rgba(15, 23, 42, 0.16));
}

/* =====================================================================
   PREMIUM POLISH — حسِ بنز/پورشه، مینیمال، کم‌نیون، سراسری + ریسپانسیو
   ===================================================================== */
:root{
  --shadow-premium: 0 18px 44px rgba(0,0,0,.34), 0 4px 12px rgba(0,0,0,.20);
  --shadow-soft-premium: 0 10px 26px rgba(0,0,0,.22);
  --ring-premium: 1px solid rgba(255,255,255,.07);
  --ease-premium: cubic-bezier(.22,.7,.2,1);
}
html[data-theme="light"]{
  --shadow-premium: 0 18px 44px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.07);
  --shadow-soft-premium: 0 10px 26px rgba(15,23,42,.08);
  --ring-premium: 1px solid rgba(15,23,42,.08);
}

/* میکرو-اینتراکشن‌های نرم و یکدست */
a, button,
.btn-primary, .btn-ghost, .btn-secondary,
.card, .blog-card, .pick-tile, .brand-card, .part-box,
.stat-card, .result-card, .related-card, .category-tab{
  transition: transform .3s var(--ease-premium),
              box-shadow .3s ease, background .3s ease,
              border-color .3s ease, color .2s ease !important;
}

/* تایپوگرافیِ تمیزتر و شیک‌تر */
h1, h2, h3, .section-title, .hero-content h1, .wizard-side-name{
  letter-spacing:-.4px;
}
.hero-content h1{ line-height:1.18; }

/* کارت‌ها و پنل‌های اصلی: سایهٔ پریمیومِ لایه‌ای به‌جای نیون */
.wizard-shell,
.blog-card,
.result-card,
.stat-card,
.related-card,
.custom-modal,
.banner-slider .slider-viewport{
  box-shadow: var(--shadow-premium) !important;
}

/* هاورِ لیفتِ ملایم روی کارت‌ها */
.blog-card:hover,
.pick-tile:hover,
.related-card:hover,
.brand-card:hover{
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-premium) !important;
}

/* دکمه‌ها: پریمیوم و بدونِ گلوی نیونیِ تند */
.btn-primary{
  box-shadow: 0 8px 20px rgba(54,180,233,.18) !important;
  letter-spacing:.2px;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(54,180,233,.24) !important;
}

/* باکسِ محاسبه‌گر/ویزارد: بزرگ‌تر، تمیزتر، لبهٔ نرم‌تر */
.wizard-shell{
  max-width: 1240px !important;
  border-radius: 26px !important;
  border: var(--ring-premium) !important;
}

/* بنر: لبهٔ نرم‌تر و سایهٔ پریمیوم */
.banner-slider .slider-viewport{ border-radius: 22px !important; }

/* اسکرول نرم برای کلِ سایت */
html{ scroll-behavior: smooth; }

/* فوکوسِ تمیز و برندی (به‌جای کادر مشکیِ مرورگر) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid rgba(54,180,233,.55); outline-offset: 2px; border-radius: 8px;
}

/* ورودِ نرمِ صفحه (بدون افت پرفورمنس، فقط transform/opacity) */
@keyframes premIn{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none;} }
@media (prefers-reduced-motion: no-preference){
  .hero-content, .hero-visual, .section-title{ animation: premIn .7s var(--ease-premium) both; }
  .hero-visual{ animation-delay:.08s; }
}

/* واترمارکِ محوِ لوگو در بک‌گراند (نشانِ بال) — خیلی محو و شیک */
.hero{ position:relative; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: url('assets/images/favicon.svg') no-repeat;
  background-position: 90% 46%;
  background-size: clamp(220px, 34vw, 460px);
  opacity:.08;
}
.hero-inner, .hero-content, .hero-visual{ position:relative; z-index:1; }

.site-footer{ position:relative; overflow:hidden; }
.site-footer::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: url('assets/images/favicon.svg') no-repeat;
  background-position: 8% 120%;
  background-size: clamp(200px, 26vw, 380px);
  opacity:.05;
}
.site-footer .container, .site-footer .footer-bottom{ position:relative; z-index:1; }

/* =====================================================================
   PREMIUM v2 — بک‌گراندِ زنده (اورا) + ورودِ اسکرولیِ کارت‌ها + واترمارکِ متحرک
   ===================================================================== */
:root{
  --aura1:rgba(54,180,233,.11); --aura2:rgba(29,142,209,.10); --aura3:rgba(54,180,233,.07);
}
html[data-theme="light"]{
  --aura1:rgba(37,99,235,.08); --aura2:rgba(8,145,178,.07); --aura3:rgba(37,99,235,.05);
}

/* اورا: گرادیانِ رادیالِ آرام و متحرک پشتِ کلِ سایت (GPU، فقط background-position) */
body::before{
  content:""; position:fixed; inset:-20%; z-index:-2; pointer-events:none;
  background:
    radial-gradient(38% 38% at 18% 22%, var(--aura1), transparent 70%),
    radial-gradient(40% 40% at 82% 28%, var(--aura2), transparent 70%),
    radial-gradient(46% 46% at 62% 88%, var(--aura3), transparent 72%);
  background-size:180% 180%;
  animation: auraShift 22s ease-in-out infinite alternate;
}
@keyframes auraShift{
  0%{ background-position:0% 0%; }
  50%{ background-position:100% 40%; }
  100%{ background-position:40% 100%; }
}

/* واترمارکِ لوگو حالا آرام شناور می‌شود */
.hero::before{ animation: floatMark 12s ease-in-out infinite; }
@keyframes floatMark{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-14px) } }

/* شاینِ ملایمِ گرادیانی روی کارت‌ها (حسِ شیشه‌ایِ پریمیوم) */
.blog-card, .result-card, .stat-card, .related-card, .pick-tile, .brand-card{
  background-image: linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%);
  background-repeat:no-repeat;
}
html[data-theme="light"] .blog-card, html[data-theme="light"] .result-card,
html[data-theme="light"] .stat-card, html[data-theme="light"] .related-card,
html[data-theme="light"] .pick-tile, html[data-theme="light"] .brand-card{
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), transparent 42%);
}

/* ---------- ورودِ اسکرولیِ کارت‌ها/سکشن‌ها (فقط وقتی JS فعال است) ---------- */
.has-reveal .reveal{
  opacity:0; transform: translateY(26px) scale(.985);
  transition: opacity .7s var(--ease-premium), transform .8s var(--ease-premium);
  will-change: opacity, transform;
}
.has-reveal .reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  body::before, .hero::before{ animation:none !important; }
  .has-reveal .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}
