.vin-decoder-page {
  width: 100%;
  padding: 20px 16px 48px;
}

.vin-decoder-box {
  width: min(1180px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.vin-input-label {
  margin-bottom: 10px !important;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.vin-decoder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.vin-decoder-input {
  width: 100%;
  height: 50px;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 18px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #edf4ff;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vin-decoder-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
  outline: none;
}

.vin-decoder-button {
  height: 50px;
  padding-left: 34px;
  padding-right: 34px;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d3df2 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(109, 61, 242, 0.25);
  transition: 0.2s ease;
}

.vin-decoder-button:hover,
.vin-decoder-button:focus {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21d6 100%);
  color: #ffffff;
}

.vin-decoder-box .vin-result-title {
  display: none;
  margin-top: 28px !important;
  margin-bottom: 18px !important;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.vin-decoder-box #vinResult {
  margin-top: 0 !important;
}

.vin-loading,
.vin-error {
  color: #687083;
  font-size: 16px;
}

.vin-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 64px;
  padding-bottom: 26px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9dee8;
}

.vin-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  color: #687083;
  font-size: 17px;
}

.vin-detail-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f5f82;
}

.vin-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vin-detail-item strong {
  color: #687083;
  font-weight: 900;
}

.vin-detail-value {
  color: #687083;
}

.vehicle-mods-section {
  margin-top: 10px;
}

.mods-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
  color: #111827;
  font-weight: 900;
}

.mods-info-panel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8faff 0%, #f4f1ff 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.06);
}

.mods-info-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #4f46e5;
  font-weight: 900;
  flex: 0 0 auto;
}

.mods-info-content p {
  margin: 2px 0 14px;
  color: #111827;
  font-size: 14px;
}

.mods-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mods-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.mods-badge.success {
  color: #166534;
  background: #e8f9ed;
  border: 1px solid #b7ebc2;
}

.mods-badge.warning {
  color: #9a5a00;
  background: #fff7df;
  border: 1px solid #f5d37a;
}

.mods-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px;
}

.mods-filter {
  height: 34px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid #a78bfa;
  background: #ffffff;
  color: #6d3df2;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.mods-filter:hover,
.mods-filter.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d3df2 100%);
  color: #ffffff;
  border-color: transparent;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mod-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mod-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 18px 40px rgba(124, 77, 255, 0.14);
}

.mod-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-right: 110px;
}

.mod-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.mod-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mod-icon.green {
  background: #e8f9ed;
  color: #278343;
}

.mod-icon.amber {
  background: #fff3cf;
  color: #9a6700;
}

.mod-icon.purple {
  background: #ede9fe;
  color: #4f46e5;
}

.mod-card-text {
  min-width: 0;
  flex: 1 1 0;
}

.mod-card h3 {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.25;
  color: #111827;
  font-weight: 900;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.mod-card p,
.mod-card-desc {
  margin: 8px 0 0;
  color: #5f677a;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* popis přes celou šířku karty pod headerem */
  grid-column: 1 / -1;
}

.mod-card-desc {
  margin-top: 10px;
}

.mod-status {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mod-status.available {
  background: #e8f9ed;
  color: #16803a;
  border: 1px solid #b9ebc5;
}

.mod-status.verify {
  background: #fff7df;
  color: #b26a00;
  border: 1px solid #f3d27a;
}

.mod-status.retrofit {
  background: #ede9fe;
  color: #5b21d6;
  border: 1px solid #c4b5fd;
}

.mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  color: #5f677a;
  font-size: 12px;
  font-weight: 700;
}

.mod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.mod-detail-btn,
.mod-add-btn {
  height: 36px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s ease;
}

.mod-detail-btn {
  border: 1px solid #cbd5e1;
  color: #6d3df2;
  background: #ffffff;
}

.mod-detail-btn:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
}

.mod-add-btn {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d3df2 100%);
}

.mod-add-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21d6 100%);
}

/* === Souhrn vybraných úprav === */

.mods-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  margin-top: 26px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.summary-item:first-child {
  padding-left: 0;
}

.summary-item:last-child {
  padding-right: 0;
}

.summary-item:not(:first-child) {
  border-left: 1px solid #e5e7eb;
}

.summary-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ede9fe;
  color: #6d3df2;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.summary-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-icon.amber {
  background: #fff3cf;
  color: #9a6700;
}

.summary-item strong {
  display: block;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.summary-item span {
  display: block;
  margin-top: 4px;
  color: #687083;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.mods-request-btn {
  height: 58px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d3df2 100%);
  box-shadow: 0 12px 24px rgba(109, 61, 242, 0.25);
  font-size: 16px;
  font-weight: 900;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mods-request-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mods-request-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21d6 100%);
}

.customer-form-section {
  margin-top: 34px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.customer-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-field-full {
  grid-column: 1 / -1;
}

.customer-field label {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.customer-field input,
.customer-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  padding: 12px 14px;
}

.customer-field input:focus,
.customer-field textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
  outline: none;
}

.vfix-submit-btn {
  margin-top: 20px;
  width: 100%;
}

.vfix-form-message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
}

.vfix-form-message.success {
  color: #166534;
}

.vfix-form-message.error {
  color: #b91c1c;
}

.mod-card.selected {
  border-color: #8b5cf6;
  box-shadow: 0 18px 40px rgba(124, 77, 255, 0.18);
}

.mod-card.selected .mod-add-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

@media (max-width: 1100px) {
  .mods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mods-summary-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .summary-item {
    padding: 0;
  }

  .summary-item:not(:first-child) {
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
  }
}

@media (max-width: 768px) {
  .vin-decoder-page {
    padding-left: 0;
    padding-right: 0;
  }

  .vin-decoder-box,
  .vin-decoder-form {
    width: 100%;
  }

  .vin-decoder-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vin-decoder-input,
  .vin-decoder-button {
    width: 100%;
    max-width: 100%;
  }

  .vin-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mods-info-panel {
    flex-direction: column;
  }

  .mods-grid {
    grid-template-columns: 1fr;
  }

  .mod-card-header {
    padding-right: 0;
  }

  .mod-status {
    position: static;
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .customer-form-grid {
    grid-template-columns: 1fr;
  }
}