@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0a0a0a;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 152, 219, 0.14), transparent 30%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #e8e8e8;
  padding: 32px 18px;
}

body::before {
  content: 'OBK Lookup';
  display: block;
  max-width: 1100px;
  margin: 0 auto 14px;
  color: #3498db;
  font-family: 'Orbitron', 'Bank Gothic', Impact, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.45);
}

.widget {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.94);
  border: 1px solid rgba(52, 152, 219, 0.22);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: #3498db;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.topbar a:hover {
  color: #7cc6f4;
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid rgba(52, 152, 219, 0.2);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 10px;
  color: #3498db;
  font-family: 'Orbitron', 'Bank Gothic', Impact, sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.28);
}

.hero p,
.section p,
.hint,
.footer-note,
.service-card p,
.equipment-count {
  color: #9aa7b2;
}

.hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.dev-panel,
.search-box,
.footer-note,
.card,
.service-card {
  background: rgba(15, 18, 24, 0.82);
  border: 1px solid rgba(52, 152, 219, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.dev-panel {
  color: #f8c471;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}

.dev-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #f9d58a;
}

.search-box {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

label {
  display: block;
  color: #d7e7f5;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

input,
select {
  min-height: 44px;
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(10, 10, 10, 0.78);
  color: #e8e8e8;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
  color: #64717d;
}

input:focus,
select:focus {
  border-color: #3498db;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.16);
}

#vin {
  width: min(100%, 460px);
  text-transform: uppercase;
}

button {
  min-height: 44px;
  border: 1px solid rgba(52, 152, 219, 0.35);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #3498db, #217dbb);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #7cc6f4;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.28);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

button.secondary {
  background: rgba(52, 152, 219, 0.08);
  color: #3498db;
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
}

code,
pre {
  font-family: Consolas, Monaco, 'Courier New', monospace;
}

code {
  color: #7cc6f4;
}

.result {
  margin-top: 24px;
}

.message {
  padding: 13px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.message.success {
  background: rgba(39, 174, 96, 0.12);
  color: #7bed9f;
  border-color: rgba(39, 174, 96, 0.32);
}

.message.error {
  background: rgba(231, 76, 60, 0.12);
  color: #ff8a80;
  border-color: rgba(231, 76, 60, 0.32);
}

.message.select,
.message.warning {
  background: rgba(243, 156, 18, 0.12);
  color: #f8c471;
  border-color: rgba(243, 156, 18, 0.32);
}

.section {
  margin-top: 26px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section h2 {
  margin: 0;
  color: #3498db;
  font-family: 'Orbitron', 'Bank Gothic', Impact, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section p {
  margin: 6px 0 0;
  font-size: 14px;
}

.grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card,
.service-card {
  border-radius: 12px;
  padding: 14px;
  color: inherit;
}

.card strong,
.service-card h3 {
  display: block;
  margin: 0 0 6px;
  color: #d7e7f5;
  font-size: 13px;
}

.card span,
.service-card p {
  color: #b6c4ce;
  font-size: 14px;
  line-height: 1.4;
}

.service-card {
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 152, 219, 0.48);
  box-shadow: 0 10px 26px rgba(52, 152, 219, 0.16);
}

.service-card h3 {
  color: #3498db;
  font-size: 18px;
}

.service-card .open {
  margin-top: 6px;
  color: #3498db;
  font-weight: 800;
  font-size: 14px;
}

.equipment-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

#equipmentSearch {
  width: min(100%, 460px);
}

.equipment-count {
  font-size: 14px;
  font-weight: 700;
}

.equipment-card {
  border-left: 4px solid #3498db;
}

.code-chip {
  display: inline-block;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: #7cc6f4;
  border-radius: 8px;
  padding: 5px 9px;
  margin: 4px;
  font-size: 13px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: rgba(39, 174, 96, 0.14);
  color: #7bed9f;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge.no {
  background: rgba(231, 76, 60, 0.14);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.vehicle-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-note {
  margin-top: 28px;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

pre {
  white-space: pre-wrap;
  background: rgba(10, 10, 10, 0.88);
  color: #e8e8e8;
  padding: 16px;
  border: 1px solid rgba(52, 152, 219, 0.16);
  border-radius: 12px;
  overflow: auto;
  font-size: 12px;
}

@media (max-width: 640px) {
  body {
    padding: 18px 12px;
  }

  body::before {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .widget {
    padding: 20px;
    border-radius: 16px;
  }

  .search-row,
  .equipment-tools {
    flex-direction: column;
  }

  button,
  #vin,
  #equipmentSearch,
  input,
  select {
    width: 100%;
  }
}
