/* ===== VEHICLES / IMPORTAI ===== */
.vehicles-page { background: #0a0a0a; min-height: 100vh; }
.sidebar-simple .side-nav { display: none; }

.vehicles-banner {
  position: relative;
  margin-left: var(--sidebar-width);
  height: 300px;
  overflow: hidden;
}
.vehicles-banner-bg { position: absolute; inset: 0; }
.vehicles-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.vehicles-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.85) 100%);
}
.vehicles-banner-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 50px 24px;
}
.vehicles-title-box {
  display: inline-block;
  background: #fff;
  padding: 12px 28px;
  margin-bottom: 12px;
  width: fit-content;
}
.vehicles-title-box h1 {
  font-size: 36px;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.5px;
  line-height: 1;
}
.vehicles-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.55);
}
.vehicles-breadcrumb span { color: #fff; }

.vehicles-layout {
  margin-left: var(--sidebar-width);
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 500px;
  background: #0a0a0a;
}

.vehicles-filter {
  padding: 48px 0 40px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.vehicles-filter h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
}
.v-filter-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 180px;
}
.v-filter-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.v-filter-item:hover { background: rgba(255,255,255,0.04); }
.v-filter-item.active {
  background: #fff;
  color: #000;
}

.vehicles-main {
  padding: 40px 40px 80px;
}
.vehicles-intro-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.credits-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 10px 8px 14px;
  background: #111;
}
.credits-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
}
.credits-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  min-width: 40px;
}
.credits-plus {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.3);
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.credits-plus:hover { background: #ddd; }

.vehicles-main h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.vehicles-lead {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  max-width: 640px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  max-width: 420px;
  margin-bottom: 32px;
}
.search-icon { color: rgba(255,255,255,0.35); font-size: 16px; }
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: inherit;
}
.search-box input::placeholder { color: rgba(255,255,255,0.3); }

/* ===== PRODUCT CARDS (B&W shop style) ===== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.v-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.v-card:hover {
  transform: rotateY(-3deg) rotateX(2deg) translateY(-6px);
  border-color: rgba(255,255,255,0.45);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 36px rgba(255,255,255,0.07);
}

.v-card-media {
  position: relative;
  height: 160px;
  background: #0a0a0a;
  overflow: hidden;
}
.v-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
  filter: grayscale(0.15);
}
.v-card:hover .v-card-media img {
  transform: scale(1.06);
  filter: grayscale(0);
}
.v-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  pointer-events: none;
}
.v-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 8px;
}
.v-card-side-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.2);
  z-index: 2;
  pointer-events: none;
}
.v-card:hover .v-card-side-label {
  color: rgba(255,255,255,0.45);
}

.v-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #0e0e0e;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.v-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.v-card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}
.v-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.v-card-price-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 2px;
}
.v-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.v-card-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.v-card-btn:hover {
  background: #e8e8e8;
}
.v-card:hover .v-card-btn {
  background: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.v-card.hidden { display: none; }

@media (max-width: 1400px) {
  .vehicles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .vehicles-layout { grid-template-columns: 1fr; }
  .vehicles-filter {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 20px;
  }
  .v-filter-nav {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    gap: 6px;
  }
  .v-filter-item { border-bottom: none; }
  .vehicles-main { padding: 28px 20px 60px; }
  .vehicles-banner-content { padding: 0 20px 20px; }
  .vehicles-grid { grid-template-columns: 1fr; }
}

/* search-box radius patch */
.search-box { border-radius: 14px !important; }
.v-filter-item { border-radius: 10px !important; }
.vehicles-title-box { border-radius: 12px !important; }

/* ===== DASHBOARD LAYOUT ===== */
.dash-layout {
  margin-left: var(--sidebar-width);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 60vh;
  background: transparent;
}
.dash-side {
  padding: 36px 20px 40px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.char-card {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(16,16,16,0.9);
}
.char-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}
.char-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.char-id {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  font-weight: 600;
}
.char-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}
.char-stat {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(14,14,14,0.9);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.char-stat:hover {
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 20px rgba(255,255,255,0.04);
}
.char-stat-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.char-stat-value {
  font-size: 15px;
  font-weight: 800;
}
.dash-menu-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #fff;
}
.dash-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 200px;
}
.dash-menu-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.dash-menu-item:hover { background: rgba(255,255,255,0.04); }
.dash-menu-item.active {
  background: #fff;
  color: #000;
  border-bottom-color: transparent;
}

.dash-main { min-width: 0; }
.dash-panel { display: none; padding: 32px 36px 60px; }
.dash-panel.active { display: block; }
.dash-panel h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.vehicles-layout-embed {
  margin-left: 0 !important;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: auto;
}
.vehicles-layout-embed .vehicles-filter {
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.vehicles-layout-embed .vehicles-main {
  padding: 0 0 40px 24px;
}

@media (max-width: 1000px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .dash-menu { max-width: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dash-menu-item { border-bottom: none; }
  .vehicles-layout-embed { grid-template-columns: 1fr; }
}

/* Vehicle detail modal */
.vehicle-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vehicle-detail-modal[hidden] { display: none !important; }
.vdm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vdm-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(94vh, 780px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,0.7);
  animation: vdm-in 0.25s ease;
}
@keyframes vdm-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.vdm-gallery {
  position: relative;
  background: #111;
  min-height: 420px;
}
.vdm-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
  max-height: 94vh;
}
.vdm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vdm-gallery:hover .vdm-nav { opacity: 1; }
.vdm-nav:hover { background: rgba(255,255,255,0.15); }
.vdm-prev { left: 12px; }
.vdm-next { right: 12px; }
.vdm-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.vdm-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.vdm-dots span.active { background: #fff; }
.vdm-side {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: min(94vh, 780px);
}
.vdm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}
.vdm-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}
.vdm-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.vdm-desc {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.vdm-price-box {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vdm-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}
.vdm-price {
  font-size: 1.25rem;
  font-weight: 900;
}
.vdm-buy {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vdm-buy:hover { opacity: 0.9; }
.vdm-buy:disabled { opacity: 0.5; cursor: wait; }
.vdm-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* Custom options under buy */
.vdm-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.vdm-opt {
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.vdm-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vdm-opt-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vdm-opt-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.vdm-opt-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
}
.vdm-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.vdm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.vdm-switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, border-color 0.2s;
}
.vdm-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.vdm-switch input:checked + .vdm-switch-ui {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.9);
}
.vdm-switch input:checked + .vdm-switch-ui::after {
  transform: translateX(20px);
  background: #111;
}
.vdm-plate-field {
  margin-top: 12px;
}
.vdm-plate-field[hidden] { display: none !important; }
.vdm-plate-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  outline: none;
}
.vdm-plate-field input:focus {
  border-color: rgba(255,255,255,0.4);
}
.vdm-plate-field input.invalid {
  border-color: rgba(255, 80, 80, 0.7);
}
.vdm-plate-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}
.vdm-plate-hint.err { color: rgba(255, 120, 120, 0.9); }

@media (max-width: 720px) {
  .vdm-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .vdm-gallery img { min-height: 220px; max-height: 260px; }
}
