@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --gold: #b8973e;
  --gold-dim: rgba(184, 151, 62, 0.1);
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --text: #0f172a;
  --muted: #94a3b8;
  --nav-h: 64px;
}

html {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-slot {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text);
}
.nav-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.nav-portal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

/* ── MAIN & LAYOUT ── */
main {
  flex: 1;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-pad {
  padding: 80px 0;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 480px;
}
.section-heading {
  font-size: 22px;
  font-weight: 600;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition:
    opacity 0.2s,
    transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold-dim);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.card-gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 1px 4px rgba(15, 23, 42, 0.05);
}

/* ── BADGES / PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.pill-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}
.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}
.pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}
.pill-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.pill-muted {
  background: rgba(100, 116, 139, 0.15);
  color: var(--muted);
}

/* ── INPUTS ── */
.input-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.input-field:focus {
  box-shadow: 0 0 0 3px rgba(184, 151, 62, 0.15);
}
.input-field:focus {
  border-color: var(--gold);
}
.input-field::placeholder {
  color: var(--muted);
}

/* ── HERO SECTION ── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .hero-sub {
  text-align: center;
}
.search-box {
  margin-top: 40px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row .input-field {
  flex: 1;
}
.no-report-link {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.no-report-link a {
  color: var(--gold);
  text-decoration: none;
}
.no-report-link a:hover {
  text-decoration: underline;
}

/* ── TRUST BADGES ── */
.trust-badges {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.trust-badge svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── VIN HEADER ── */
.vin-header {
  margin-bottom: 40px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--text);
}
.vin-display {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.vehicle-details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.vehicle-details span {
  color: var(--text);
}

/* ── REPORT CARDS ── */
.report-card {
  margin-bottom: 16px;
}
.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.report-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-date {
  font-weight: 600;
  font-size: 16px;
}
.report-assessor {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.report-action {
  display: flex;
  align-items: center;
  gap: 10px;
}
.amber-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── TEASER ── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.teaser-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.teaser-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.teaser-label {
  font-weight: 600;
  font-size: 15px;
}
.teaser-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ── QR SHARE ── */
.qr-box {
  display: flex;
  align-items: center;
  gap: 24px;
}
.qr-placeholder {
  width: 90px;
  height: 90px;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.qr-link {
  font-size: 14px;
  color: var(--gold);
  word-break: break-all;
}

/* ── NOT FOUND ── */
.not-found-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--red);
}

/* ── PROVIDER CARD ── */
.provider-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.provider-logo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  text-align: center;
}
.provider-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.provider-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── PACKAGE CARDS ── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.package-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.package-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.package-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}
.package-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.package-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.package-features li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.package-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.package-footer-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ── PORTAL LAYOUT ── */
.portal-body {
  display: flex;
  flex: 1;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.sidebar-link:hover {
  background: var(--border);
  color: var(--text);
}
.sidebar-link.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.sidebar-footer {
  padding: 16px 24px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.portal-content {
  flex: 1;
  padding: 40px 36px;
  overflow-x: hidden;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ── SVG DIAGRAM ── */
.diagram-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.diagram-wrap svg {
  width: 100%;
  height: auto;
}
.diagram-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ── TOOLTIP ── */
.tooltip {
  position: absolute;
  background: #1a2035;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
}
.zone:hover + .tooltip,
.zone:hover ~ .tooltip {
  opacity: 1;
}

/* ── CHECKLIST ── */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.checklist-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.checklist-table {
  width: 100%;
  border-collapse: collapse;
}
.checklist-table tr {
  border-bottom: 1px solid var(--border);
}
.checklist-table tr:last-child {
  border-bottom: none;
}
.checklist-table td {
  padding: 10px 0;
  font-size: 14px;
  vertical-align: middle;
}
.checklist-table td:last-child {
  text-align: right;
}
.check-pass {
  color: var(--green);
  font-size: 16px;
}
.check-fail {
  color: var(--red);
  font-size: 16px;
}
.check-fail-note {
  font-size: 11px;
  color: var(--red);
  display: block;
}

/* ── GALLERY ── */
.gallery-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.gallery-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  margin-bottom: -1px;
}
.gallery-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.gallery-tab:hover:not(.active) {
  color: var(--text);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  background: var(--border);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px 10px 8px;
  font-size: 12px;
  color: #c0cce0;
}
.gallery-panel {
  display: none;
}
.gallery-panel.active {
  display: block;
}

/* ── BOOKINGS TABLE ── */
.bookings-table {
  width: 100%;
  border-collapse: collapse;
}
.bookings-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.bookings-table td {
  padding: 14px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bookings-table tr:last-child td {
  border-bottom: none;
}
.bookings-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.action-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.action-link:hover {
  text-decoration: underline;
}
.vin-mono {
  font-family: "Courier New", monospace;
  font-size: 13px;
}

/* ── DIVIDERS ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ── UTILS ── */
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.text-muted {
  color: var(--muted);
}
.text-gold {
  color: var(--gold);
}
.text-sm {
  font-size: 13px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 32px;
  }
  .trust-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .portal-content {
    padding: 24px 16px;
  }
  .diagram-wrap {
    max-width: 320px;
  }
}
