:root {
  --cp-primary: #0d6efd;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6efd, #0aa2c0);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero {
  background: linear-gradient(160deg, #0b1b33 0%, #123a6b 60%, #0aa2c0 100%);
  color: #fff;
}

.hero .plate-input {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.card-product.highlight {
  border-color: var(--cp-primary);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.15);
}

.risk-banner {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.risk-banner.green { background: #198754; }
.risk-banner.yellow { background: #b8860b; }
.risk-banner.red { background: #dc3545; }

.risk-score {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.report-hero {
  border: 0;
  background: linear-gradient(135deg, #0b1b33 0%, #123a6b 70%, #0d6efd 100%);
  color: #fff;
  overflow: hidden;
}

.report-hero .plate-badge {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.report-hero .vehicle-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.report-hero .fipe-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: right;
}

.report-hero .fipe-box .value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.report-status-grid .status-tile {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  height: 100%;
  border: 1px solid #e9ecef;
  background: #fff;
}

.report-status-grid .status-tile .icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.report-status-grid .status-tile.ok .icon-wrap { background: #d1e7dd; color: #198754; }
.report-status-grid .status-tile.warn .icon-wrap { background: #fff3cd; color: #997404; }
.report-status-grid .status-tile.bad .icon-wrap { background: #f8d7da; color: #dc3545; }
.report-status-grid .status-tile.muted .icon-wrap { background: #e9ecef; color: #6c757d; }

.report-section h6 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #6c757d;
  margin-bottom: 0.85rem;
}

.report-section h6 i {
  margin-right: 0.35rem;
  opacity: 0.75;
}

.report-card {
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.report-alert-item {
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
}

.report-alert-item.level-red { border-left-color: #dc3545; }
.report-alert-item.level-yellow { border-left-color: #ffc107; }

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e9ecef;
}

.data-row span:first-child { color: #6c757d; }
.data-row span:last-child { font-weight: 600; text-align: right; }

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

.loading-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.legal-page h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal-page p, .legal-page li { color: #495057; }

.api-snippet {
  background: #0b1b33;
  color: #e9ecef;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
}

@media print {
  nav, footer, .toast-container, .no-print { display: none !important; }
  body { background: #fff; }
}
