/**
 * Vehicle History Report - Premium Styles
 * Full mobile & desktop responsive
 */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    margin: auto;
}

/* Vehicle Preview in Loading */
.loading-vehicle {
    margin-bottom: 20px;
}

.vehicle-image-wrapper {
    position: relative;
    width: 220px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.vehicle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scanning Line Animation */
.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
    animation: scan 2s ease-in-out infinite;
    box-shadow: 0 0 20px #3b82f6, 0 0 40px #3b82f6;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: calc(100% - 4px); }
    100% { top: 0; }
}

.vehicle-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vehicle-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Progress Bar */
.loading-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-percentage {
    color: #60a5fa;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Loading Steps */
.loading-steps {
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.loading-step.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.loading-step.complete {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-icon i {
    color: #64748b;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.loading-step.active .step-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    animation: pulse 1.5s infinite;
}

.loading-step.active .step-icon i {
    color: #fff;
}

.loading-step.complete .step-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.loading-step.complete .step-icon i {
    color: #fff;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    display: block;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.step-status {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    margin-top: 1px;
    transition: color 0.3s ease;
}

.loading-step.active .step-status {
    color: #60a5fa;
}

.loading-step.complete .step-status {
    color: #4ade80;
}

.step-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.loading-step.complete .step-check {
    background: #22c55e;
    opacity: 1;
    transform: scale(1);
}

.step-check i {
    color: #fff;
    font-size: 0.65rem;
}

.loading-note {
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.loading-note i {
    color: #3b82f6;
}

.loading-note strong {
    color: #e2e8f0;
}

/* ============================================
   CARFAX LOGO STYLES - Using Real Images
   ============================================ */

/* CARFAX Logo at top of loading screen */
.carfax-logo-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.carfax-logo-box {
    background: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.carfax-img-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
}

.carfax-text-fallback {
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
}

.carfax-logo-top .partner-label {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CARFAX Logo Small - For Loading Provider */
.carfax-logo-box-small {
    background: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.carfax-img-small {
    height: 20px;
    width: auto;
    max-width: 80px;
}

.carfax-text-small {
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 1px;
}

/* Loading Provider Section */
.loading-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.provider-separator {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
}

.provider-dealer {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Report Header Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-carfax-logo {
    height: 26px;
    width: auto;
    background: #fff;
    padding: 4px 8px;
    border-radius: 3px;
}

.header-dealer-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-dealer-info .dealer-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.header-dealer-info .partner-tag {
    color: #4ade80;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CARFAX Report Header with Full Logo */
.carfax-report-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.carfax-logo-section {
    flex-shrink: 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.carfax-full-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.report-info-section {
    flex: 1;
}

.report-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.report-meta {
    display: flex;
    gap: 15px;
    color: #64748b;
    font-size: 0.85rem;
}

.report-meta .report-id {
    font-weight: 600;
    color: #3b82f6;
}

.report-meta .report-date {
    color: #64748b;
}

/* CARFAX Guarantee Banner */
.carfax-guarantee-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.carfax-guarantee-banner i {
    font-size: 1.3rem;
}

/* Service History Section with CARFAX Verified */
.service-history-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carfax-verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.carfax-badge-img {
    height: 20px;
    width: auto;
}

.carfax-verified-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
}

/* ============================================
   REPORT SCREEN
   ============================================ */
.report-screen {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.report-screen.show {
    opacity: 1;
    visibility: visible;
}

/* Header */
.report-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-logo i {
    color: #3b82f6;
    font-size: 1.3rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-print, .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-print {
    background: #3b82f6;
    color: #fff;
}

.btn-print:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Report */
.report-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Title Section */
.report-title-section {
    text-align: center;
    margin-bottom: 30px;
}

.report-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dealer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dealer-badge i {
    font-size: 0.9rem;
}

.report-date {
    color: #64748b;
    font-size: 0.85rem;
}

.report-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.report-main-title i {
    color: #3b82f6;
}

.report-id {
    color: #64748b;
    font-size: 0.9rem;
    font-family: monospace;
    margin-top: 5px;
}

/* Vehicle Info Card */
.vehicle-info-card {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.vehicle-image-large {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.vehicle-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vehicle-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 0.9rem;
}

.spec-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.spec-value.vin {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Summary Section */
.summary-section {
    margin-bottom: 25px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-card.green {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.summary-card.green .summary-icon { background: #22c55e; }

.summary-card.yellow {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.summary-card.yellow .summary-icon { background: #f59e0b; }

.summary-card.red {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.summary-card.red .summary-icon { background: #ef4444; }

.summary-card.orange {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.summary-card.orange .summary-icon { background: #f97316; }

.summary-card.blue {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.summary-card.blue .summary-icon { background: #3b82f6; }

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.summary-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.summary-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Score Section */
.score-section {
    margin-bottom: 25px;
}

.overall-score-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #22c55e;
}

.overall-score-card.green { border-color: #22c55e; }
.overall-score-card.yellow { border-color: #f59e0b; }
.overall-score-card.red { border-color: #ef4444; }

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.overall-score-card.yellow .score-circle {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.overall-score-card.red .score-circle {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.overall-score-card.green .score-number { color: #22c55e; }
.overall-score-card.yellow .score-number { color: #f59e0b; }
.overall-score-card.red .score-number { color: #ef4444; }

.score-max {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.score-info {
    flex: 1;
}

.score-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.score-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-name {
    width: 80px;
    font-size: 0.8rem;
    color: #64748b;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-item .score-value {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

/* Report Sections */
.report-section {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.section-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.section-header h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.section-badge {
    padding: 5px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Damage Section Styles */
.damage-section.clean .section-header i {
    color: #22c55e;
}

.damage-section.minor .section-header i,
.damage-section.warning .section-header i {
    color: #f59e0b;
}

/* Damage Status Banner */
.damage-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.damage-status-banner.clean {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.damage-status-banner.clean i {
    color: #22c55e;
    font-size: 1.2rem;
}

.damage-status-banner.minor {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.damage-status-banner.minor i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.damage-status-banner.warning {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.damage-status-banner.warning i {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Damage Details Section */
.damage-details {
    padding: 20px 25px;
    background: #fafafa;
    border-bottom: 1px solid #e2e8f0;
}

.damage-details h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.damage-details h4 i {
    color: #64748b;
}

.damage-detail-item {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
    background: #fff;
}

.damage-detail-item:last-child {
    margin-bottom: 0;
}

.damage-detail-item.severity-minor {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #fff 30%);
}

.damage-detail-item.severity-moderate {
    border-left-color: #f97316;
    background: linear-gradient(90deg, #fff7ed 0%, #fff 30%);
}

.damage-detail-item.severity-major {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, #fff 30%);
}

.damage-detail-item.severity-notice {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #eff6ff 0%, #fff 30%);
}

.damage-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.damage-type {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.damage-severity {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.damage-severity.minor {
    background: #fef3c7;
    color: #92400e;
}

.damage-severity.moderate {
    background: #ffedd5;
    color: #9a3412;
}

.damage-severity.major {
    background: #fee2e2;
    color: #991b1b;
}

.damage-severity.notice {
    background: #dbeafe;
    color: #1e40af;
}

.damage-description {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.damage-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.75rem;
}

.damage-date i {
    font-size: 0.7rem;
}

/* Checks Grid */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 25px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.check-item.pass {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
}

.check-item.fail {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.check-item i {
    font-size: 1rem;
}

.check-item.pass i { color: #22c55e; }
.check-item.fail i { color: #ef4444; }

/* Service History */
.service-summary-row {
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.service-stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a5f;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vintage Notice */
.vintage-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 25px 15px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 0.85rem;
}

.vintage-notice i {
    color: #d97706;
    font-size: 1.1rem;
}

/* No Service History */
.no-service-history {
    text-align: center;
    padding: 40px 25px;
    color: #64748b;
}

.no-service-history i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-service-history h4 {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.no-service-history p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Timeline */
.service-timeline {
    padding: 20px 25px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.timeline-item.reconstructed {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.3) 0%, transparent 100%);
    border-radius: 8px;
    padding-left: 10px;
    margin-left: -10px;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 15px);
    background: #e2e8f0;
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    min-width: 100px;
}

.timeline-mileage {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.timeline-service {
    flex: 1;
    min-width: 200px;
}

.timeline-service strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 3px;
}

.service-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.service-location i {
    font-size: 0.7rem;
}

.timeline-cost {
    font-size: 0.9rem;
    font-weight: 700;
    color: #22c55e;
    min-width: 70px;
    text-align: right;
}

.timeline-more {
    text-align: center;
    padding: 15px 0 5px;
}

.timeline-more button {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.timeline-more button:hover {
    background: #e2e8f0;
}

/* Ownership History */
.ownership-timeline {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.owner-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.owner-number {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.owner-details {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.owner-details > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #475569;
}

.owner-details i {
    color: #64748b;
    font-size: 0.8rem;
}

/* Disclaimer */
.disclaimer-section {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 16px;
    border: 1px solid #fcd34d;
    margin-bottom: 25px;
}

.disclaimer-icon {
    width: 45px;
    height: 45px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.disclaimer-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 5px;
}

.disclaimer-content p {
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 16px;
    margin-bottom: 30px;
}

.cta-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 12px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-cta.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.report-footer {
    background: #1e293b;
    padding: 20px;
    text-align: center;
}

.footer-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-contact {
    color: #64748b;
    font-size: 0.8rem;
}

/* ============================================
   CARFAX BADGES
   ============================================ */
.carfax-badges-section {
    padding: 15px 25px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-bottom: 1px solid #e2e8f0;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.carfax-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carfax-badge.badge-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.carfax-badge.badge-gold i { color: #d97706; }

.carfax-badge.badge-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.carfax-badge.badge-green i { color: #22c55e; }

.carfax-badge.badge-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.carfax-badge.badge-blue i { color: #3b82f6; }

/* ============================================
   MILEAGE ANALYSIS
   ============================================ */
.mileage-content {
    padding: 20px 25px;
}

.mileage-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mileage-status.green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
}

.mileage-status.green i { color: #22c55e; }

.mileage-status.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
}

.mileage-status.blue i { color: #3b82f6; }

.mileage-status.orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
}

.mileage-status.orange i { color: #f97316; }

.mileage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.mileage-stat {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.mileage-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.mileage-stat .stat-unit {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 5px;
}

.mileage-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.mileage-projections {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px 20px;
}

.mileage-projections h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #475569;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.projection-item {
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.projection-period {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.projection-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

/* ============================================
   ODOMETER TIMELINE
   ============================================ */
.odometer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: 600;
}

.odometer-status.clean {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
}

.odometer-status.clean i { color: #22c55e; }

.odometer-status.warning {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.odometer-status.warning i { color: #ef4444; }

.odometer-table-wrapper {
    padding: 20px 25px;
    overflow-x: auto;
}

.odometer-table {
    width: 100%;
    border-collapse: collapse;
}

.odometer-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.odometer-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.odometer-table .reading-value {
    font-weight: 600;
    color: #1e293b;
}

.source-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #475569;
}

/* ============================================
   INSPECTION HISTORY
   ============================================ */
.inspection-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f8fafc;
    color: #64748b;
}

.inspection-table-wrapper {
    padding: 20px 25px;
    overflow-x: auto;
}

.inspection-table {
    width: 100%;
    border-collapse: collapse;
}

.inspection-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.inspection-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.inspection-table tr.passed { background: rgba(34, 197, 94, 0.05); }
.inspection-table tr.failed { background: rgba(239, 68, 68, 0.05); }

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.result-badge.passed {
    background: #dcfce7;
    color: #166534;
}

.result-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   RECALL INFORMATION
   ============================================ */
.recall-summary {
    padding: 15px 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recall-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.recall-alert.open {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.recall-alert.open i { color: #ef4444; }

.recall-alert.completed {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.recall-alert.completed i { color: #22c55e; }

.recall-list {
    padding: 0 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recall-item {
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.recall-item.open {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.recall-item.completed {
    border-left: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.03);
}

.recall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.recall-number {
    font-family: monospace;
    font-size: 0.85rem;
    color: #64748b;
}

.recall-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.recall-status-badge.open { color: #ef4444; }
.recall-status-badge.completed { color: #22c55e; }

.recall-component {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.recall-component strong {
    color: #1e293b;
}

.severity-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.severity-badge.high { background: #fee2e2; color: #991b1b; }
.severity-badge.medium { background: #fef3c7; color: #92400e; }
.severity-badge.low { background: #dbeafe; color: #1e40af; }

.recall-remedy {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.recall-remedy i {
    color: #94a3b8;
    margin-right: 5px;
}

.recall-dates {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.recall-dates i {
    margin-right: 5px;
}

/* ============================================
   TITLE HISTORY
   ============================================ */
.title-status-bar {
    display: flex;
    gap: 30px;
    padding: 15px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.title-current, .title-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-label {
    color: #64748b;
    font-size: 0.85rem;
}

.title-value {
    font-weight: 600;
}

.title-value.clean { color: #22c55e; }
.title-value.branded { color: #ef4444; }

.title-brands-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    font-weight: 600;
}

.title-brands-alert i { color: #ef4444; }

.title-timeline {
    padding: 20px 25px;
}

.title-event {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.title-event:last-child { border-bottom: none; }

.title-event-date {
    min-width: 100px;
    color: #64748b;
    font-size: 0.85rem;
}

.title-event-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.title-event-type {
    font-weight: 600;
    color: #1e293b;
}

.title-event-details {
    color: #64748b;
    font-size: 0.9rem;
}

.title-event-status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.title-event-status.clean {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   VEHICLE USE HISTORY
   ============================================ */
.vehicle-use-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 25px;
}

.use-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.use-item.yes {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
}

.use-item.yes > i:first-child { color: #3b82f6; }

.use-item.no {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
}

.use-item.no > i:first-child { color: #22c55e; }

.use-item .use-icon {
    color: #94a3b8;
    font-size: 1rem;
}

/* ============================================
   COMPLETE TIMELINE
   ============================================ */
.complete-timeline {
    padding: 20px 25px;
}

.timeline-year-group {
    margin-bottom: 25px;
}

.timeline-year-marker {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-year-events {
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
    padding-left: 20px;
}

.timeline-event {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.timeline-event.event-title::before { background: #3b82f6; }
.timeline-event.event-service::before { background: #22c55e; }
.timeline-event.event-inspection::before { background: #f59e0b; }
.timeline-event.event-recall::before { background: #ef4444; }
.timeline-event.event-current::before { background: #8b5cf6; }

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-title .event-icon { background: #dbeafe; color: #3b82f6; }
.event-service .event-icon { background: #dcfce7; color: #22c55e; }
.event-inspection .event-icon { background: #fef3c7; color: #f59e0b; }
.event-recall .event-icon { background: #fee2e2; color: #ef4444; }
.event-current .event-icon { background: #ede9fe; color: #8b5cf6; }

.event-content {
    flex: 1;
}

.event-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.event-content .event-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.event-description {
    font-size: 0.8rem;
    color: #64748b;
}

.event-mileage {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .vehicle-info-card {
        flex-direction: column;
    }
    
    .vehicle-image-large {
        width: 100%;
        height: 220px;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overall-score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* Loading screen mobile optimizations */
    .loading-container {
        padding: 15px;
    }
    
    .vehicle-image-wrapper {
        width: 180px;
        height: 110px;
        margin: 0 auto 10px;
    }
    
    .vehicle-title {
        font-size: 1.1rem;
    }
    
    .vehicle-subtitle {
        font-size: 0.8rem;
    }
    
    .loading-progress {
        margin-bottom: 15px;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .loading-step {
        padding: 8px 10px;
        margin-bottom: 4px;
        gap: 10px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
    }
    
    .step-icon i {
        font-size: 0.8rem;
    }
    
    .step-title {
        font-size: 0.75rem;
    }
    
    .step-status {
        font-size: 0.65rem;
    }
    
    .step-check {
        width: 20px;
        height: 20px;
    }
    
    .step-check i {
        font-size: 0.6rem;
    }
    
    /* CARFAX Logo responsive */
    .carfax-logo-top {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .carfax-logo-box {
        padding: 5px 10px;
        min-height: 32px;
    }
    
    .carfax-img-logo {
        height: 22px;
    }
    
    .carfax-text-fallback {
        font-size: 0.9rem;
    }
    
    .carfax-logo-top .partner-label {
        padding: 4px 10px;
        font-size: 0.6rem;
    }
    
    .loading-note {
        margin-top: 15px;
        font-size: 0.75rem;
    }
    
    .carfax-logo-box-small {
        padding: 4px 8px;
        min-height: 26px;
    }
    
    .carfax-img-small {
        height: 16px;
    }
    
    .carfax-text-small {
        font-size: 0.7rem;
    }
    
    .loading-provider {
        padding: 8px 10px;
        gap: 8px;
        margin-top: 10px;
    }
    
    .provider-separator {
        font-size: 0.85rem;
    }
    
    .provider-dealer {
        font-size: 0.85rem;
    }
    
    /* Header responsive */
    .header-brand {
        gap: 10px;
    }
    
    .header-carfax-logo {
        height: 22px;
        padding: 3px 6px;
    }
    
    .header-dealer-info .dealer-name {
        font-size: 0.85rem;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-print, .btn-back {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    /* CARFAX Report Header responsive */
    .carfax-report-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .carfax-full-logo {
        height: 80px;
    }
    
    .report-main-title {
        font-size: 1.4rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .carfax-guarantee-banner {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    /* Service History responsive */
    .service-history-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carfax-verified-badge {
        width: 100%;
        justify-content: center;
    }
    
    .vehicle-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
    }
    
    .summary-value {
        font-size: 0.9rem;
    }
    
    .checks-grid {
        grid-template-columns: 1fr;
    }
    
    .check-item {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .service-summary-row {
        flex-wrap: wrap;
    }
    
    .service-stat {
        min-width: calc(50% - 10px);
    }
    
    .timeline-content {
        flex-direction: column;
    }
    
    .timeline-cost {
        text-align: left;
    }
    
    .owner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .owner-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .disclaimer-section {
        flex-direction: column;
        text-align: center;
    }
    
    /* New sections responsive */
    .badges-container {
        gap: 8px;
    }
    
    .carfax-badge {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .mileage-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mileage-stat .stat-number {
        font-size: 1.2rem;
    }
    
    .projection-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .odometer-table th,
    .odometer-table td,
    .inspection-table th,
    .inspection-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .recall-summary {
        flex-direction: column;
    }
    
    .title-status-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .vehicle-use-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-item {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .timeline-year-events {
        margin-left: 5px;
        padding-left: 15px;
    }
    
    .event-icon {
        width: 28px;
        height: 28px;
    }
    
    .event-content .event-title {
        font-size: 0.85rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .loading-screen { display: none !important; }
    .report-header { position: relative; }
    .header-actions { display: none; }
    .btn-cta { display: none; }
    .cta-section { display: none; }
    
    .report-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   VEHICLE HISTORY BUTTON (For list/single pages)
   ============================================ */
.vehicle-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.vehicle-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
    background: linear-gradient(135deg, #2d4a6f, #1e3a5f);
}

.vehicle-history-btn i {
    color: #60a5fa;
}

.vehicle-history-btn .btn-badge {
    background: #22c55e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Small version for cards */
.vehicle-history-btn-sm {
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 6px;
    border-radius: 8px;
}

.vehicle-history-btn-sm .btn-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
}
