:root {
  --brand: #8305f9;
  --brand-hover: #6d04d1;
  --brand-deep: #430576;
  --brand-soft: #f5ecff;
  --brand-border: #e4ceff;
  --ink: #111018;
  --ink-2: #3b3847;
  --muted: #6c677d;
  --surface: #ffffff;
  --bg: #f7f6fb;
  --border: #e8e5f1;
  --success: #0e9f6e;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(17, 16, 24, 0.05);
  --shadow-md: 0 12px 32px rgba(67, 5, 118, 0.09);
  --shadow-brand: 0 10px 26px rgba(131, 5, 249, 0.28);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==================== Topbar ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-pill-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid var(--brand-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.store-link-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.2s ease;
}

.store-link-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (min-width: 640px) {
  .store-link-btn {
    display: inline-flex;
  }
}

/* ==================== Compact Dark Hero ==================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 15%, rgba(131, 5, 249, 0.48), transparent 44%),
    radial-gradient(circle at 86% 8%, rgba(250, 204, 21, 0.16), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(113, 54, 255, 0.3), transparent 55%),
    linear-gradient(160deg, #0f0c18 0%, #1d1133 56%, #110f1a 100%);
  color: #ffffff;
  padding: 40px 0 88px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(131, 5, 249, 0.24);
  border: 1px solid rgba(196, 154, 255, 0.35);
  color: #f3e8ff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.3px;
  max-width: 780px;
}

.hero h1 span {
  background: linear-gradient(90deg, #d8b4fe 0%, #a855f7 50%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 640px;
  color: #d6d1e3;
  font-size: clamp(15px, 2vw, 17px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 600;
  color: #f3f0fa;
}

.hero-pill svg {
  width: 16px;
  height: 16px;
  color: #c084fc;
  flex-shrink: 0;
}

/* ==================== Configurator Shell ==================== */
.configurator-section {
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.config-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 960px) {
  .config-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.85fr);
    gap: 26px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.selector-card {
  padding: 22px;
}

@media (min-width: 640px) {
  .selector-card {
    padding: 28px;
  }
}

/* Quick Search */
.quick-search-wrap {
  position: relative;
  margin-bottom: 24px;
}

.quick-search-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 40px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #faf9fd;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.quick-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.quick-search-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(131, 5, 249, 0.12);
}

.quick-search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  pointer-events: none;
}

.quick-search-clear {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #ece9f6;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 14px;
}

.quick-search-clear.visible {
  display: inline-flex;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(17, 16, 24, 0.14);
  max-height: 340px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}

.search-results-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid #f2eff8;
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.search-result-item:hover {
  background: var(--brand-soft);
}

.search-result-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #f6f4fb;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.search-result-meta {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.search-result-sub {
  font-size: 12px;
  color: var(--muted);
}

.mini-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.mini-badge.instock {
  background: var(--success-bg);
  color: var(--success);
}

.mini-badge.preorder {
  background: var(--amber-bg);
  color: var(--amber);
}

/* Mount Type Badges (على الشاشة vs على الفليشر) */
.mount-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.mount-type-pill.screen {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.mount-type-pill.flasher {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.mount-type-pill.both {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.mount-type-pill.custom {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.mount-type-pill.sm {
  font-size: 10.5px;
  padding: 2px 8px;
  margin-top: 3px;
}

.summary-mount-type-row {
  margin: 6px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Steps */
.step-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--border);
  transition: opacity 0.25s ease;
}

.step-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.step-block.locked {
  opacity: 0.45;
  pointer-events: none;
}

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

.step-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-block.completed .step-num {
  background: var(--brand);
  color: #fff;
}

.step-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.step-selected-chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 11px;
  border-radius: 999px;
  display: none;
}

.step-selected-chip.visible {
  display: inline-block;
}

/* Choice Grids */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 9px;
}

.choice-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 11px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  color: var(--ink);
}

.choice-pill:hover {
  border-color: var(--brand);
  background: #fcfaff;
  transform: translateY(-1px);
}

.choice-pill.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.13);
}

.choice-pill .primary-label {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
}

.choice-pill .sub-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.choice-pill.active .sub-label {
  color: var(--brand);
}

.choice-pill.other-pill {
  border-style: dashed;
  background: #faf9fd;
}

.pill-tag {
  position: absolute;
  top: -7px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 9px;
}

.year-span-tag {
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 2px 9px;
  border-radius: 999px;
  direction: ltr;
}

.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 11px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.matched {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.16);
}

.legend-dot.preorder {
  background: #d97706;
  opacity: 0.45;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.year-pill {
  position: relative;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #faf9fd;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.16s ease;
  text-align: center;
}

.year-pill.matched-year {
  background: #ffffff;
  border-color: #c8b2f5;
  color: var(--ink);
}

.year-pill.matched-year::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.year-pill:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.year-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(131, 5, 249, 0.25);
}

.year-pill.active::after {
  background: #facc15;
}

.year-pill.other-year {
  grid-column: span 2;
  border-style: dashed;
  color: var(--brand-deep);
  background: #faf9fd;
  font-size: 13px;
}

.year-pill.other-year.active {
  background: var(--brand);
  color: #fff;
  border-style: solid;
}

/* Custom Car Inputs (when "Other" chosen) */
.custom-fields-box {
  margin-top: 14px;
  padding: 16px;
  background: #faf8ff;
  border: 1.5px solid var(--brand-border);
  border-radius: 14px;
  display: none;
  gap: 12px;
  grid-template-columns: 1fr;
}

.custom-fields-box.visible {
  display: grid;
}

@media (min-width: 600px) {
  .custom-fields-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.text-input {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

.text-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.12);
}

/* Variant Visual Cards (when multiple mount shapes match same car/year) */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.variant-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
}

.variant-card:hover {
  border-color: var(--brand);
}

.variant-card.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.14);
}

.variant-card-img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #f9f8fc;
  border-radius: 10px;
  padding: 6px;
}

.variant-card-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.variant-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

/* ==================== Sticky Summary & Preview Panel ==================== */
.summary-card {
  padding: 22px;
  position: relative;
  border-top: 4px solid var(--brand);
}

@media (min-width: 960px) {
  .summary-card {
    position: sticky;
    top: 86px;
  }
}

.preview-stage {
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f1fb 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: zoom-in;
}

.preview-stage img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.preview-stage:hover img {
  transform: scale(1.04);
}

.preview-code-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 16, 24, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  direction: ltr;
}

.preview-zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
}

.summary-car-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.summary-car-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Status Banner */
.status-banner {
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
}

.status-banner.idle {
  background: #f5f3fa;
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.status-banner.instock {
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  color: #065f46;
}

.status-banner.preorder {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber-border);
  color: #78350f;
}

.status-banner-icon {
  font-size: 19px;
  line-height: 1.2;
  flex-shrink: 0;
}

.status-banner strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

/* Optional Extra Note */
.extra-note-wrap {
  margin-bottom: 16px;
}

.extra-note-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.extra-note-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  resize: vertical;
  background: #fff;
}

.extra-note-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.12);
}

/* Quantity & Price Row */
.qty-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #faf9fd;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--brand-soft);
}

.qty-value {
  width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}

.total-price-box {
  text-align: left;
}

.total-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.total-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.total-amount small {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

/* Primary Order CTA */
.order-cta-btn {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8305f9 0%, #6404c9 100%);
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-brand);
  transition: all 0.2s ease;
}

.order-cta-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(131, 5, 249, 0.36);
}

.order-cta-btn:disabled {
  background: #cfc8de;
  box-shadow: none;
  cursor: not-allowed;
}

/* Order Note Preview Pill */
.note-preview-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f6fc;
  border: 1px dashed #d7c7f5;
  font-size: 12px;
  color: var(--ink-2);
  display: none;
}

.note-preview-box.visible {
  display: block;
}

.note-preview-box span {
  display: block;
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 3px;
}

/* Payment Badges */
.payment-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.pay-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: #f5f3fa;
  border: 1px solid var(--border);
  color: var(--ink-2);
}

/* ==================== Features & Gallery Sections ==================== */
.section-block {
  padding: 54px 0 16px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ==================== YOUFO PDF-Style Official Catalog Section ==================== */
.pdf-catalog-section {
  margin-top: 42px;
  padding: 54px 0 60px;
  background:
    radial-gradient(circle at 10% 8%, rgba(131, 5, 249, 0.1), transparent 36%),
    radial-gradient(circle at 92% 92%, rgba(250, 204, 21, 0.14), transparent 38%),
    linear-gradient(180deg, #f3f0fa 0%, #eae5f6 100%);
  border-top: 1px solid #dfd7f3;
  border-bottom: 1px solid #dfd7f3;
}

.pdf-catalog-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .pdf-catalog-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.pdf-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #111018;
  font-weight: 900;
  font-size: 13px;
  padding: 5px 15px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.28);
}

.pdf-header-right h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 900;
  color: #151224;
}

.pdf-header-right h2 span {
  color: var(--brand);
  font-size: 0.78em;
}

.pdf-header-right p {
  margin: 0;
  color: #4a455e;
  font-size: 14.5px;
  max-width: 660px;
}

.pdf-type-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #ddd5f2;
  box-shadow: var(--shadow-sm);
}

.pdf-type-btn {
  padding: 9px 15px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #322d45;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pdf-type-btn:hover {
  background: #f5f0ff;
  color: var(--brand-deep);
}

.pdf-type-btn.active {
  background: linear-gradient(135deg, #1b172c 0%, #2c1654 100%);
  color: #facc15;
  box-shadow: 0 6px 16px rgba(27, 23, 44, 0.22);
}

.pdf-filters-wrap {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #dfd7f3;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(67, 5, 118, 0.05);
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  margin-bottom: 0;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ded7f0;
  background: #fff;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(131, 5, 249, 0.22);
}

.pdf-year-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed #e2dbf5;
  font-size: 13px;
  font-weight: 800;
  color: #2f2a42;
}

.pdf-year-select {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1.5px solid #d5c9f0;
  background: #faf8ff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  min-width: 240px;
}

.pdf-year-select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(131, 5, 249, 0.12);
}

.pdf-year-range-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 999px;
  direction: ltr;
}

/* PDF Card Grid — 4 columns on desktop just like the PDF pages! */
.pdf-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
  gap: 18px;
}

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

.pdf-card {
  border-radius: 20px;
  overflow: hidden;
  background: #171424;
  border: 1px solid rgba(131, 5, 249, 0.16);
  box-shadow: 0 10px 26px rgba(24, 16, 48, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.pdf-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 20px 38px rgba(131, 5, 249, 0.22);
}

/* Dedicated clean top stage — ZERO overlap between pills and product image */
.pdf-card-stage {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3fa 100%);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pdf-card-img-wrap {
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eeeaf7;
  padding: 6px;
}

.pdf-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease;
  border-radius: 8px;
}

.pdf-card:hover .pdf-card-img-wrap img {
  transform: scale(1.05);
}

.pdf-card-stock {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pdf-card-stock.instock {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pdf-card-stock.preorder {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.pdf-card-loc {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pdf-card-loc.screen {
  background: #facc15;
  color: #111018;
}

.pdf-card-loc.flasher {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

/* Refined Obsidian-Violet Plate matching Flash + YOUFO PDF Gold Code */
.pdf-card-plate {
  background: linear-gradient(175deg, #241e38 0%, #14111f 100%);
  color: #ffffff;
  padding: 14px 13px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-top: 2px solid rgba(131, 5, 249, 0.45);
}

.pdf-card-plate.flasher-plate {
  border-top-color: rgba(251, 146, 60, 0.55);
}

.pdf-code {
  font-size: 23px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.9px;
  line-height: 1.05;
  direction: ltr;
  text-shadow: 0 2px 10px rgba(250, 204, 21, 0.22);
}

.pdf-car-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.pdf-car-en {
  font-size: 11.5px;
  color: #b7b1cb;
  direction: ltr;
}

.pdf-mount-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  margin-top: 3px;
}

.pdf-mount-label.screen {
  background: rgba(131, 5, 249, 0.35);
  border: 1px solid rgba(196, 154, 255, 0.55);
  color: #f3e8ff;
}

.pdf-mount-label.flasher {
  background: rgba(251, 146, 60, 0.24);
  border: 1px solid rgba(253, 186, 116, 0.55);
  color: #ffedd5;
}

.pdf-period-line {
  font-size: 11.5px;
  color: #d8d3e8;
  font-weight: 700;
  margin-top: 3px;
}

.pdf-years-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

.pdf-year-chip {
  padding: 2px 7px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f3fa;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdf-year-chip:hover {
  background: #facc15;
  color: #111018;
  border-color: #facc15;
  transform: translateY(-1px);
}

.pdf-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 36px 20px;
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed #cfd3df;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--muted);
}

/* Footer */
.footer {
  margin-top: 56px;
  background: #111018;
  color: #e4e0ef;
  border-top: 3px solid var(--brand);
  padding: 36px 0 104px;
}

@media (min-width: 960px) {
  .footer {
    padding: 36px 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer img {
  height: 36px;
}

.footer p {
  margin: 0;
  font-size: 13.5px;
  color: #a7a0ba;
}

/* Sticky Mobile Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(17, 16, 24, 0.08);
}

@media (min-width: 960px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-info {
  min-width: 0;
}

.mobile-sticky-car {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-sticky-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--brand);
}

.mobile-sticky-cta {
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-sticky-cta:disabled {
  background: #cfc8de;
}

/* Modals (Lightbox & Preview Order Modal) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 24, 0.72);
  backdrop-filter: blur(6px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #fff;
  border-radius: 22px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #f7f5fc;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f9f8fc;
}

.preview-payload-code {
  background: #141220;
  color: #e9d5ff;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0;
}

.copy-note-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
}
