:root {
  color-scheme: light dark;
  --bg: #05060c;
  --fg: #f5f7fa;
  --accent: #00c9ff;
  --accent-2: #92fe9d;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --danger: #ff5f6d;
  --success: #5efc82;
  font-family: 'Vazirmatn', 'Vazir', sans-serif;
}
:root.light-mode {
  --bg: #f5f7fa;
  --fg: #1a1d2e;
  --accent: #0066cc;
  --accent-2: #00a86b;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
  --danger: #d32f2f;
  --success: #2e7d32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(146, 254, 157, 0.3),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(0, 201, 255, 0.25),
      transparent 55%
    ),
    #05060c;
  color: var(--fg);
  font-family: 'Vazirmatn', 'Vazir', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background 0.3s ease, color 0.3s ease;
}
body.light-mode {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 168, 107, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(0, 102, 204, 0.15),
      transparent 55%
    ),
    #f5f7fa;
}
.glow-sphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glow-sphere::before,
.glow-sphere::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite alternate;
}
.glow-sphere::before {
  top: -100px;
  left: -120px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.glow-sphere::after {
  bottom: -60px;
  right: -80px;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  animation-duration: 16s;
}
@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(40px, -30px, 0) scale(1.05);
  }
}
.app {
  position: relative;
  width: 100%;
  padding: 32px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.light-mode .app {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #051018;
  box-shadow: 0 10px 30px rgba(0, 201, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(146, 254, 157, 0.35);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.theme-toggle {
  padding: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
}
.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}
.help-btn {
  padding: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
}
.light-mode .help-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.help-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.light-mode .help-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}
.timestamp {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}
.header-content {
  flex: 1;
  min-width: 0;
}
.input-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: flex-end;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
}
.input-group label {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
  color: var(--fg);
}
.input-group input {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}
.input-group input::placeholder {
  opacity: 0.5;
  color: var(--fg);
}
.light-mode .input-group input {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
}
.light-mode .input-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.search-btn {
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  white-space: nowrap;
  height: fit-content;
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.search-btn:active {
  transform: translateY(0);
}
.status-board {
  --progress: 0;
  --track-offset: 60px;
  position: relative;
  margin-bottom: 40px;
  padding: 40px 48px 32px;
  border-radius: 30px;
  background: radial-gradient(
      circle at 15% 0%,
      rgba(255, 235, 59, 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 100%,
      rgba(244, 67, 54, 0.12),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .status-board {
  background: radial-gradient(
      circle at 15% 0%,
      rgba(255, 193, 7, 0.15),
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 100%,
      rgba(244, 67, 54, 0.08),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.status-track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
}
.status-board::before {
  content: '';
  position: absolute;
  height: 6px;
  right: var(--track-offset);
  left: var(--track-offset);
  bottom: -18px;
  border-radius: 999px;
  pointer-events: none;
}
.status-car {
  position: absolute;
  bottom: -70px;
  right: var(--track-offset);
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(calc(var(--car-translate, 0px) - 50%));
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  opacity: 0;
}
.status-car.animate {
  opacity: 1;
  animation: carFadeIn 0.5s ease forwards;
}
@keyframes carFadeIn {
  from {
    opacity: 0;
    transform: translateX(calc(var(--car-translate, 0px) - 50%)) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(calc(var(--car-translate, 0px) - 50%)) scale(1);
  }
}
.status-car__icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 201, 255, 0.25), rgba(146, 254, 157, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.status-car__label {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .status-car__label {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--fg);
}
.status-board::before {
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}
.light-mode .status-board::before {
  background: rgba(0, 0, 0, 0.15);
}
.status-board::after {
  content: '';
  position: absolute;
  height: 6px;
  bottom: -18px;
  background: linear-gradient(
    90deg,
    rgba(255, 235, 59, 0.95),
    rgba(255, 152, 0, 0.95)
  );
  border-radius: 999px;
  right: var(--track-offset);
  width: calc((100% - var(--track-offset) * 2) * var(--progress) / 100);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.status-step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding: 24px 18px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: stepFadeIn 0.5s ease forwards;
}
@keyframes stepFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.light-mode .status-step {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.status-step .bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  top: -9px;
  right: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: #0b1220;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
.status-step.completed .bullet,
.status-step.active .bullet {
  border-color: transparent;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(0, 201, 255, 0.35);
}
.status-step.completed {
  border-color: rgba(94, 252, 130, 0.65);
  background: rgba(94, 252, 130, 0.15);
}
.status-step.active {
  border-color: rgba(255, 235, 59, 0.8);
  background: rgba(255, 235, 59, 0.15);
  box-shadow: 0 20px 35px rgba(255, 193, 7, 0.35);
  transform: translateY(-6px);
}
.status-step.upcoming {
  border-color: rgba(244, 67, 54, 0.6);
  background: rgba(244, 67, 54, 0.12);
}
.status-step .title {
  font-weight: 900;
  font-size: 1rem;
}
.status-step .subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  min-height: 36px;
}
.status-step .arrow {
  position: absolute;
  top: -32px;
  left: 50%;
  width: 40px;
  height: 28px;
  background: linear-gradient(150deg, rgba(255, 235, 59, 0.95), rgba(255, 152, 0, 0.95));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 14px 25px rgba(255, 193, 7, 0.45));
  transform: translate(-50%, 0);
  opacity: 0;
  animation: arrowMove 0.6s ease forwards, arrowPulse 1.8s ease-in-out infinite 0.6s;
}
@keyframes arrowMove {
  from {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
@keyframes arrowPulse {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -4px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.car-showcase {
  margin-bottom: 40px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr);
  gap: 32px;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .car-showcase {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.car-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  gap: 18px;
}
.car-visual img {
  width: min(100%, 420px);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25));
  padding: 18px;
}
.car-info h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}
.car-info p {
  margin: 0 0 16px;
  opacity: 0.8;
  line-height: 1.8;
}
.color-palette {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.color-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.color-chip span {
  color:white;
  position: absolute;
  bottom: -22px;
  width: max-content;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  opacity: 0.8;
  transition: color 0.3s ease;
}
.light-mode .color-chip span {
  color: var(--fg);
}
.color-chip.active {
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}
.light-mode .color-chip.active {
  border-color: rgba(0, 0, 0, 0.5);
}
.car-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.car-spec {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .car-spec {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.car-spec .label {
  font-size: 0.85rem;
  opacity: 0.7;
}
.car-spec .value {
  font-size: 1.05rem;
  font-weight: 700;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 18px;
}
.feature-list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.feature-list li::before {
  content: '▹';
  position: absolute;
  right: 0;
  color: var(--accent);
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .value {
  font-weight: 700;
  font-size: 1.1rem;
  padding-right: 50px;
}
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  padding: 14px;
  text-align: center;
  font-size: 0.95rem;
}
th {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}
.light-mode tbody tr {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
.light-mode tbody tr:hover {
  background: rgba(0, 0, 0, 0.05);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge.success {
  background: rgba(94, 252, 130, 0.15);
  color: var(--success);
}
.badge.warning {
  background: rgba(255, 206, 86, 0.15);
  color: #ffce56;
}
.badge.danger {
  background: rgba(255, 95, 109, 0.18);
  color: var(--danger);
}
.empty-state {
  text-align: center;
  padding: 24px;
  opacity: 0.75;
}
.summary-row td {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .summary-row td {
  background: rgba(0, 0, 0, 0.05);
  border-top: 2px solid rgba(0, 0, 0, 0.2);
}
.loading-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 12px;
  transition: background 0.3s ease;
}
.light-mode .loading-bar {
  background: rgba(0, 0, 0, 0.12);
}
.loading-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  animation: loading 1.4s ease-in-out infinite;
}
@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}
.tabs-container {
  margin-top: 40px;
}
.tabs-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  transition: border-color 0.3s ease;
}
.light-mode .tabs-header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
.tab-button {
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}
.light-mode .tab-button {
  color: rgba(0, 0, 0, 0.6);
}
.tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}
.light-mode .tab-button:hover {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.05);
}
.tab-button.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
  background: rgba(0, 201, 255, 0.08);
}
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.plate-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.plate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 600px;
}
.plate-display {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 2.5 / 1;
  background-image: url('../images/plak.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.light-mode .plate-display {
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.plate-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #000;
  text-align: center;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 1;
  font-family: 'Vazirmatn', 'Vazir', sans-serif;
}
.plate-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}
.plate-info-item {
  padding: 24px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: center;
}
.plate-label {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 12px;
}
.plate-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.light-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
  z-index: 1;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--card-border);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--fg);
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.light-mode .modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}
.light-mode .modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.modal-body {
  padding: 24px;
}
.help-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.light-mode .help-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.help-item:last-child {
  margin-bottom: 0;
}
.help-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.help-color-green {
  background: #5efc82;
  border-color: #5efc82;
}
.help-color-yellow {
  background: #ffeb3b;
  border-color: #ffeb3b;
}
.help-color-red {
  background: #f44336;
  border-color: #f44336;
}
.help-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
}
@media (max-width: 768px) {
  .app {
    padding: 24px 18px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .header-content {
    width: 100%;
  }
  header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .input-fields {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  .input-group {
    min-width: 100%;
    width: 100%;
  }
  .input-group input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  .search-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0;
  }
  .actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .actions button:first-child {
    flex: 1;
    min-width: 0;
  }
  .status-board {
    padding: 24px 18px;
    overflow: hidden;
  }
  .status-track {
    flex-direction: column;
  }
  .status-board {
    --track-offset: 18px;
  }
  .status-board::before,
  .status-board::after {
    right: var(--track-offset);
    left: var(--track-offset);
  }
  .status-step {
    flex: 1 1 auto;
    min-width: unset;
  }
  .status-step .bullet {
    right: 16px;
  }
  th,
  td {
    font-size: 0.8rem;
    padding: 10px;
  }
  .car-showcase {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .car-visual img {
    width: 100%;
  }
  .tabs-header {
    gap: 4px;
  }
  .tab-button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .modal {
    padding: 16px;
  }
  .modal-content {
    max-width: 100%;
  }
  .modal-header,
  .modal-body {
    padding: 20px;
  }
}

