/* ==========================================================================
   EVO FLASH — Espace Atelier V4 (Cyber-Luxury Automotive Terminal)
   Design System: Deep Obsidian, Electric Cyan, Cyber Emerald & Platinum Slate
   ========================================================================== */

:root {
  --bg-deep: #05070b;
  --bg-card: rgba(12, 16, 24, 0.85);
  --bg-card-hover: rgba(18, 24, 38, 0.95);
  --bg-input: rgba(3, 7, 14, 0.88);
  --edge-subtle: rgba(255, 255, 255, 0.08);
  --edge-hover: rgba(212, 175, 55, 0.55);
  
  /* Luxury Champagne Gold System */
  --gold-champagne: #cca462;
  --gold-metallic: #d4af37;
  --gold-light: #e6c88b;
  --gold-glow: rgba(204, 164, 98, 0.22);
  --gold-border: rgba(204, 164, 98, 0.28);
  
  /* Electric Tech Accents */
  --cyan-neon: #00f0ff;
  --cyan-electric: #38bdf8;
  --cyan-glow: rgba(0, 240, 255, 0.22);
  --emerald-neon: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.22);
  --amber-neon: #f59e0b;
  --red-neon: #ef4444;
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.workshop-landing {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% -5%, rgba(204, 164, 98, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 88% 25%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 12% 65%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #05070b 0%, #070a10 50%, #040609 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   Header Navigation Bar
   ========================================================================== */

header.workshop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(6, 10, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--edge-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 2px 10px rgba(0, 240, 255, 0.4));
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.06);
}

.evo-brand-badge {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.evo-badge-primary {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 80%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.evo-badge-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #7dd3fc;
  margin-top: 3px;
  text-transform: uppercase;
}

.header-server-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #34d399;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge-pill {
  padding: 7px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lang-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--edge-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.logout-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   Active Intervention Guard Banner
   ========================================================================== */

#activeInterventionBanner {
  max-width: 1380px;
  margin: 20px auto 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.22) 100%);
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
  animation: banner-pulse 3s infinite alternate;
}

@keyframes banner-pulse {
  0% { border-color: rgba(239, 68, 68, 0.5); }
  100% { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 8px 35px rgba(239, 68, 68, 0.35); }
}

#btnResumeActiveIntervention {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.2s;
}

#btnResumeActiveIntervention:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   Workshop Cockpit Hero Header
   ========================================================================== */

.workshop-hero {
  max-width: 1380px;
  margin: 32px auto 24px;
  padding: 0 36px;
  width: 100%;
}

.hero-header-box {
  background: linear-gradient(145deg, rgba(12, 16, 26, 0.92) 0%, rgba(5, 7, 12, 0.97) 100%);
  border: 1px solid rgba(204, 164, 98, 0.32);
  border-radius: 20px;
  padding: 30px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 35px rgba(204, 164, 98, 0.08), inset 0 1px 0 rgba(204, 164, 98, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.hero-header-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(204, 164, 98, 0.12), transparent 70%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.2em;
  color: #cca462;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 14.5px;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.65;
}

.hero-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 22px 0 16px;
}

.hero-card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

[dir="rtl"] .hero-card-bottom {
  justify-content: flex-start;
}

.hero-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  transition: all 0.25s ease;
}

.hero-chip-badge:hover {
  transform: translateY(-1px);
}

.chip-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.25;
}

[dir="rtl"] .chip-badge-text {
  align-items: flex-start;
  text-align: left;
}

.chip-badge-text strong {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.chip-badge-text span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-top: 3px;
}

.chip-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #cca462;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(204, 164, 98, 0.35);
  flex-shrink: 0;
}

.chip-badge-icon svg {
  display: block;
}

/* ==========================================================================
   Luxury Brand Emblems Showcase (Hero Area)
   ========================================================================== */

.hero-brands-showcase {
  background: linear-gradient(145deg, rgba(6, 9, 15, 0.92) 0%, rgba(12, 16, 24, 0.88) 100%);
  border: 1px solid rgba(204, 164, 98, 0.28);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: inset 0 1px 0 rgba(204, 164, 98, 0.15), 0 12px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  min-width: 420px;
  max-width: 460px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brands-showcase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: #cca462;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.showcase-glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 10px #d4af37;
  animation: pulse-dot-gold 1.8s infinite;
}

@keyframes pulse-dot-gold {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.brand-emblems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.brand-emblem-badge {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.brand-emblem-badge:hover {
  background: rgba(204, 164, 98, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(204, 164, 98, 0.28);
}

.brand-emblem-badge img {
  max-width: 88%;
  max-height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.brand-emblem-badge:hover img {
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

.filter-mini-logo {
  width: 16px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.85;
}

[dir="rtl"] .filter-mini-logo {
  margin-right: 0;
  margin-left: 6px;
}

/* ==========================================================================
   Filter & Search Navigation Bar
   ========================================================================== */

.filter-nav-section {
  max-width: 1380px;
  margin: 0 auto 24px;
  padding: 0 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-filter-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  border-radius: 9px;
  border: 1px solid var(--edge-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.brand-filter-btn:hover {
  background: rgba(204, 164, 98, 0.12);
  border-color: rgba(204, 164, 98, 0.45);
  color: #ffffff;
}

.brand-filter-btn.active {
  background: linear-gradient(135deg, rgba(204, 164, 98, 0.28) 0%, rgba(180, 138, 70, 0.38) 100%);
  border-color: #cca462;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(204, 164, 98, 0.3);
}

.search-input-wrapper {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 380px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background: rgba(3, 7, 14, 0.7);
  border: 1px solid var(--edge-subtle);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-input-wrapper input:focus {
  border-color: #cca462;
  background: rgba(3, 7, 14, 0.95);
  box-shadow: 0 0 16px rgba(204, 164, 98, 0.25);
}

.search-icon-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-sub);
  pointer-events: none;
}

/* ==========================================================================
   Catalog Body & Section Headings
   ========================================================================== */

.catalog-wrapper {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 36px 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.catalog-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge-subtle);
}

.catalog-group-heading h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-group-heading span {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--edge-subtle);
}

/* ==========================================================================
   Vehicle Cards Grid & Cards
   ========================================================================== */

.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.vehicle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 275px;
  background: var(--bg-card);
  border: 1px solid var(--edge-subtle);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease,
              background 0.28s ease;
  cursor: pointer;
}

.vehicle-card:hover:not(.is-disabled) {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(204, 164, 98, 0.22);
}

.vehicle-card.is-active {
  border-color: #d4af37;
  background: linear-gradient(155deg, rgba(204, 164, 98, 0.16) 0%, rgba(8, 12, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px #cca462, 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(204, 164, 98, 0.25);
}

.vehicle-card.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

/* Card Media (Image & Spotlight) */
.vehicle-card-media {
  position: relative;
  aspect-ratio: 16 / 9.8;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 65%, rgba(14, 165, 233, 0.14) 0%, rgba(3, 7, 14, 0.98) 75%);
  border-bottom: 1px solid var(--edge-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(13, 20, 32, 0.9));
  pointer-events: none;
}

.vehicle-card-media img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

.vehicle-card:hover:not(.is-disabled) .vehicle-card-media img {
  transform: scale(1.06);
}

/* Brand Badge Pills */
.brand-chip-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.brand-chip-pill.brand-jetour {
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.brand-chip-pill.brand-gac {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.brand-chip-pill.brand-changan {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #a5b4fc;
}

.brand-chip-pill.brand-kaiyi {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.brand-chip-pill.brand-geely {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.brand-chip-pill.brand-services {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #d8b4fe;
}

/* Availability Badge Pills */
.availability {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  background: rgba(204, 164, 98, 0.1);
  border: 1px solid rgba(204, 164, 98, 0.25);
  color: #cca462;
}

.availability.available {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.vehicle-card.is-active .availability {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Card Content / Details */
.vehicle-card-copy {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vehicle-card-copy small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.vehicle-card-copy h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 3px 0 12px;
}

.vehicle-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vehicle-card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

.vehicle-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transition: all 0.2s;
}

.vehicle-card:hover:not(.is-disabled) .vehicle-card-action-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.vehicle-card.is-disabled .vehicle-card-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: transparent;
  color: var(--text-sub);
}

/* Service Card Special Graphics */
.service-art .vehicle-card-media img {
  opacity: 0.35;
  filter: grayscale(0.5);
}

.art-badge-overlay {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(6, 12, 22, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #bae6fd;
}

/* ==========================================================================
   Token Login Modal Dialog
   ========================================================================== */

.token-login-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.98) 0%, rgba(6, 10, 18, 0.99) 100%);
  color: var(--text-main);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: auto;
  margin: auto;
}

.token-login-modal::backdrop {
  background: rgba(3, 7, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.token-login-modal form {
  padding: 32px;
}

.token-login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--edge-subtle);
}

.modal-security-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  color: #38bdf8;
  text-transform: uppercase;
}

.token-login-head h2 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 4px 0 6px;
}

.token-login-category-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 750;
}

.token-modal-close {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge-subtle);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.token-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.modal-field-group {
  margin-bottom: 18px;
}

.modal-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.modal-field-group select,
.modal-field-group input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.modal-field-group input {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal-field-group select:focus,
.modal-field-group input:focus {
  border-color: #38bdf8;
  background: rgba(2, 6, 13, 0.98);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.token-login-status {
  min-height: 24px;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 16px;
}

.token-login-status.error {
  color: #fca5a5;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border: none;
  border-radius: 11px;
  color: #030712;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
  transition: all 0.2s;
}

.modal-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

.modal-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-info-detail {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: 14px;
  text-align: center;
}

.token-login-modal details {
  margin-top: 18px;
  border: 1px solid var(--edge-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.token-login-modal summary {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.token-login-modal details p {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 8px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.workshop-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  background: rgba(4, 7, 12, 0.95);
  border-top: 1px solid var(--edge-subtle);
  font-size: 12px;
  color: var(--text-sub);
}

footer .footer-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

/* ==========================================================================
   RTL Support (Arabic Layout)
   ========================================================================== */

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .brand-chip-pill {
  left: auto;
  right: 12px;
}

[dir="rtl"] .availability {
  right: auto;
  left: 12px;
}

[dir="rtl"] .search-input-wrapper input {
  padding: 9px 38px 9px 14px;
}

[dir="rtl"] .search-icon-placeholder {
  left: auto;
  right: 12px;
}

[dir="rtl"] .hero-header-box::after {
  right: 0;
  left: auto;
  background: radial-gradient(circle at 90% 20%, rgba(204, 164, 98, 0.12), transparent 70%);
}

[dir="rtl"] .art-badge-overlay {
  left: auto;
  right: 16px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  header.workshop-header {
    padding: 12px 20px;
  }
  .header-server-status {
    display: none;
  }
  .workshop-hero {
    padding: 0 20px;
    margin-top: 20px;
  }
  .hero-header-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    gap: 20px;
  }
  .hero-brands-showcase {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .brand-emblems-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .brand-emblem-badge {
    height: 42px;
  }
  .filter-nav-section {
    padding: 0 20px;
  }
  .catalog-wrapper {
    padding: 0 20px 40px;
  }
  .vehicle-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
  }
  footer.workshop-footer {
    padding: 18px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .vehicle-card-grid {
    grid-template-columns: 1fr;
  }
  .search-input-wrapper {
    max-width: 100%;
  }
}

/* ========================================================
   Navigation Button: Mes Tokens / طوكناتي
   ======================================================== */
.tokens-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(204, 164, 98, 0.12) 0%, rgba(204, 164, 98, 0.05) 100%);
  border: 1px solid rgba(204, 164, 98, 0.45);
  color: #fae4be;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tokens-nav-btn:hover {
  background: linear-gradient(135deg, rgba(204, 164, 98, 0.28) 0%, rgba(204, 164, 98, 0.14) 100%);
  border-color: #cca462;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 164, 98, 0.25);
}

.tokens-nav-btn .tokens-nav-icon {
  font-size: 14px;
}

.tokens-nav-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.tokens-nav-counter.has-tokens {
  background: linear-gradient(135deg, #cca462 0%, #dfb775 100%);
  color: #080c14;
  box-shadow: 0 0 10px rgba(204, 164, 98, 0.6);
}

