/* ============================================================
   MOTChecker - Soft Light Theme
   Dark header, white pages, light grey & light blue cards
   Font Awesome icons, Inter font
   ============================================================ */

/* --- Number Plate Font --- */
@font-face {
    font-family: 'Charles Bold';
    src: url('../fonts/charles_bold.woff2') format('woff2'),
         url('../fonts/charles_bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-grey: #f0f2f5;
    --bg-card-blue: #eef4fb;
    --bg-card-hover: #e8edf4;
    --bg-surface: #f8f9fb;
    --border-color: #e2e6ed;
    --border-light: #eaecf0;

    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    --text-heading: #0f1a2b;

    --accent-blue: #2563eb;
    --accent-blue-light: #3b82f6;
    --accent-blue-soft: #dbeafe;
    --accent-blue-softer: #eff6ff;
    --accent-blue-dark: #1d4ed8;
    --accent-cyan: #0891b2;
    --accent-green: #16a34a;
    --accent-green-soft: #dcfce7;
    --accent-red: #dc2626;
    --accent-red-soft: #fee2e2;
    --accent-orange: #d97706;
    --accent-orange-soft: #fef3c7;
    --accent-purple: #7c3aed;
    --accent-purple-soft: #ede9fe;

    --gradient-blue: linear-gradient(135deg, #2563eb, #0891b2);

    --header-bg: #0f1724;
    --header-text: #e2e8f0;
    --header-muted: #94a3b8;
    --footer-bg: #0f1724;

    --plate-yellow: #f5c518;
    --plate-text: #262626;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-card: 0 1px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-blue-dark);
}

/* ============================================================
   Shared Utility Components
   Reusable patterns based on the Vehicle page (master design).
   Use these across all pages for consistency.
   ============================================================ */

/* --- Responsive Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Info Note (icon + text alert box) ---
   Variants: .info-note-blue (default), .info-note-warning, .info-note-red
   Usage: <div class="info-note"><i class="fa-solid fa-..."></i><p>Text</p></div>
*/
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--accent-blue-soft);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 16px;
}
.info-note i {
    color: var(--accent-blue);
    margin-top: 2px;
    flex-shrink: 0;
}
.info-note p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.info-note-warning {
    background: rgba(245,158,11,0.10);
    border-color: rgba(245,158,11,0.35);
}
.info-note-warning i { color: #f59e0b; }
.info-note-warning p { color: #92400e; }
.info-note-red {
    background: var(--accent-red-soft);
    border-color: rgba(220,38,38,0.25);
}
.info-note-red i { color: var(--accent-red); }
.info-note-red p { color: #991b1b; }

/* --- Stat Box (icon + label + value) ---
   Usage: <div class="u-stat-box"><div class="u-stat-icon"><i ...></i></div>
          <div class="u-stat-info"><div class="u-stat-label">Label</div>
          <div class="u-stat-value">Value</div></div></div>
*/
.u-stat-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: box-shadow 0.2s;
}
.u-stat-box:hover {
    box-shadow: var(--shadow-md);
}
.u-stat-icon {
    color: var(--accent-blue);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.u-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.u-stat-label + .u-stat-value {
    margin-top: -2px;
}
.u-stat-label {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.u-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}
.u-stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat box background variants */
.u-stat-box-grey { background: var(--bg-card-grey); border-color: transparent; }
.u-stat-box-blue { background: var(--bg-card-blue); border-color: rgba(37, 99, 235, 0.15); }
.u-stat-box-blue .u-stat-value { color: var(--accent-blue); }
.u-stat-box-blue:hover { box-shadow: none; }

/* Stat box size variants */
.u-stat-box-lg .u-stat-icon { font-size: 1.6rem; }
.u-stat-box-lg .u-stat-value { font-size: 1.4rem; }

/* --- Badge Colour System ---
   Base: .u-badge
   Colours: .u-badge-green, .u-badge-red, .u-badge-orange, .u-badge-blue, .u-badge-purple
*/
.u-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.u-badge-green { background: var(--accent-green-soft); color: var(--accent-green); }
.u-badge-red { background: var(--accent-red-soft); color: var(--accent-red); }
.u-badge-orange { background: var(--accent-orange-soft); color: var(--accent-orange); }
.u-badge-blue { background: var(--accent-blue-soft); color: var(--accent-blue); }
.u-badge-purple { background: var(--accent-purple-soft); color: var(--accent-purple); }

/* --- Status Pill --- */
.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
}
.status-pill-green { background: var(--accent-green); color: #fff; }
.status-pill-amber { background: #f59e0b; color: #fff; }
.status-pill-red   { background: var(--accent-red); color: #fff; }
.status-pill-grey  { background: #6b7280; color: #fff; }

/* --- Price Display ---
   Usage: <span class="u-price">£12,450</span>
*/
.u-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.u-price-lg {
    font-size: 1.7rem;
    font-weight: 800;
}
.u-price-accent {
    color: var(--accent-blue);
}

/* --- Meta Row (footer info + link) ---
   Usage: <div class="u-meta-row"><span>Info</span><a href="#">Link</a></div>
*/
.u-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.u-meta-row i { margin-right: 0.3rem; }
.u-meta-row a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}
.u-meta-row a:hover { text-decoration: underline; }

/* --- Results Vehicle Header (centred plate + make/model) --- */
.results-header {
    text-align: center;
    margin-bottom: 36px;
}
.results-header .plate-display {
    display: inline-block;
    margin-bottom: 12px;
}
.results-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.results-header h2 .vh-trim {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    display: block;
    margin-top: 4px;
}

.results-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.results-meta .vh-meta-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-card-grey);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.results-header p i {
    color: var(--accent-blue);
    margin-right: 4px;
}

/* ============================================================ */

/* --- Header (Dark) --- */
.site-header {
    background: var(--header-bg);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--header-text);
}

.logo-img {
    height: 48px;
    width: auto;
}
.logo-img-footer {
    height: 40px;
    width: auto;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-blue);
    color: white;
    font-size: 1rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--header-text);
}

.logo-highlight {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--header-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover {
    color: white;
}

/* --- Blog Listing --- */
.blog-section {
    padding: 50px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--bg-card-grey);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.blog-card-img {
    width: 100%;
    height: auto;
    background: var(--bg-secondary);
}
.blog-card-noimg {
    width: 100%;
    aspect-ratio: 400 / 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}
.blog-card-noimg i {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.3;
}
.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-primary);
}

/* --- Blog Article --- */
.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    padding: 40px 0 60px;
    max-width: 100%;
    overflow: hidden;
}
.blog-article-main {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.blog-article-header {
    margin-bottom: 28px;
}
.blog-article-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    margin-bottom: 10px;
    display: inline-block;
}
.blog-article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 14px;
}
.blog-article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 16px;
}
.blog-article-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.blog-article-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.8;
}
.blog-article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text-primary);
}
.blog-article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-primary);
}
.blog-article-content p {
    margin-bottom: 16px;
}
.blog-article-content ul, .blog-article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.blog-article-content li {
    margin-bottom: 6px;
}
.blog-article-content a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
.blog-article-content a:hover {
    text-decoration: underline;
}
.blog-article-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* --- Blog Sidebar --- */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.blog-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.blog-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-sidebar-card h3 i {
    color: var(--accent-blue);
}
.blog-sidebar-card-check {
    background: var(--bg-card-blue);
    border-color: rgba(37, 99, 235, 0.15);
}
.blog-sidebar-card .plate-search {
    max-width: 100%;
}
.blog-sidebar-card .btn-search {
    width: 56px;
}
.blog-sidebar-card .btn-search.is-loading {
    min-width: 56px;
    width: 56px;
}
.blog-sidebar-card .btn-spinner-overlay {
    width: 56px;
}
.blog-search-icon {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    font-size: 1.2rem;
}
.blog-sidebar-card .plate-input {
    padding: 0 56px 0 44px;
}
.blog-sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.blog-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.blog-sidebar-post:first-child {
    padding-top: 0;
}
.blog-sidebar-post:hover {
    opacity: 0.8;
}
.blog-sidebar-post-img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.blog-sidebar-post-info {
    flex: 1;
    min-width: 0;
}
.blog-sidebar-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-sidebar-post-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 0 40px;
        overflow: visible;
    }
    .blog-sidebar-card {
        padding: 16px;
    }
    .blog-article-title {
        font-size: 1.4rem;
    }
    .blog-article-content {
        overflow-x: hidden;
    }
    .blog-article-content img {
        max-width: 100%;
        height: auto;
    }
    .blog-article-content table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
    .blog-article-content pre, .blog-article-content code {
        overflow-x: auto;
        max-width: 100%;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ --- */
.faq-section {
    padding: 40px 0 60px;
}
.faq-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-category i {
    color: var(--accent-blue);
    font-size: 1rem;
}
.faq-category:first-child {
    margin-top: 0;
}
.faq-item {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
    border-color: var(--accent-blue-muted);
    box-shadow: var(--shadow-card);
}
.faq-item-open {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(37, 99, 235, 0.08);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 14px;
    font-family: inherit;
    line-height: 1.4;
}
.faq-question:hover {
    color: var(--accent-blue);
}
.faq-icon {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
}
.faq-item-open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-blue);
    background: var(--bg-card-blue);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}
.faq-item-open .faq-answer {
    max-height: 500px;
    padding: 0 22px 22px;
}
.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
    border-top: 1px solid var(--border-primary);
}
.faq-answer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
.faq-answer a:hover {
    text-decoration: underline;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 50px 0;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.station-hero {
    overflow: visible;
}

.station-hero-image::before,
.station-hero-image::after {
    clip: rect(0, auto, auto, 0);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(8,145,178,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 36, 0.72);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-title i {
    color: var(--accent-blue);
    margin-right: 8px;
    font-size: 0.85em;
}

.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.hero-hint {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.credit-hint {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    margin-top: 16px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.credit-hint i {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.credit-hint-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.credit-hint-link:hover {
    color: var(--accent-blue);
}

/* --- Number Plate Search --- */
.plate-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plate-search {
    position: relative;
    display: block;
    background: var(--plate-yellow);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(245,197,24,0.12);
    max-width: 460px;
    width: 100%;
    height: 64px;
}

.plate-search-sm {
    max-width: 400px;
    height: 56px;
}

.plate-badge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    background: #003399;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.05em;
    z-index: 1;
}

.plate-badge .uk-flag {
    width: 24px;
    height: 14px;
    display: block;
    border-radius: 1px;
}

.plate-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--plate-text);
    padding: 0 120px 0 44px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    box-sizing: border-box;
}

.plate-search-sm .plate-input {
    font-size: 1.4rem;
}

.plate-input::placeholder {
    color: rgba(38, 38, 38, 0.3);
}

.btn-search {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    z-index: 1;
}

.btn-search:hover {
    background: var(--accent-blue-dark);
}

@media (max-width: 560px) {
    .plate-search,
    .plate-search-sm {
        max-width: 100%;
    }
}

.btn-search.is-loading {
    pointer-events: none;
    opacity: 0.85;
    min-width: 80px;
    color: transparent !important;
}
.btn-spinner-overlay {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.search-error {
    display: block;
    margin-top: 12px;
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Recent Searches --- */
.recent-searches {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.recent-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.recent-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-card-grey);
}

.recent-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-card-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.recent-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.recent-card-plate {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--plate-yellow);
    color: var(--plate-text);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--gradient-blue);
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 10px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(186, 220, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.section-title i {
    color: var(--accent-blue);
    margin-right: 8px;
    font-size: 0.85em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 550px;
    margin: 0 auto 50px;
}

/* --- Features --- */
.features {
    padding: 50px 0;
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-card-grey);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.feature-icon-blue { background: var(--accent-blue-soft); color: var(--accent-blue); }
.feature-icon-green { background: var(--accent-green-soft); color: var(--accent-green); }
.feature-icon-purple { background: var(--accent-purple-soft); color: var(--accent-purple); }
.feature-icon-orange { background: var(--accent-orange-soft); color: var(--accent-orange); }
.feature-icon-red { background: var(--accent-red-soft); color: var(--accent-red); }
.feature-icon-cyan { background: #e0f7fa; color: var(--accent-cyan); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.feature-card h3 i {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* --- Page Features (pre-search content) --- */
.page-features {
    padding-top: 20px;
    padding-bottom: 40px;
    background: transparent;
}

.page-features .feature-card {
    background: #fff;
}

/* --- About Section --- */
.about-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.data-source-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.ds-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-blue);
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.ds-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-heading);
}

.ds-text p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
}

/* Why MOTChecker */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.why-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.why-bottom {
    margin-top: 28px;
    text-align: center;
}
.why-bottom p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 24px;
}
.why-bottom i {
    color: var(--accent-blue);
    font-size: 1rem;
}
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footer (Dark) --- */
/* Social bar */
.social-bar {
    background: #1a2538;
    padding: 12px 0;
    text-align: center;
}
.social-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.social-bar-label {
    color: #7a8a9e;
    font-size: 1.3rem;
    font-weight: 300;
}
.social-bar-label strong {
    color: #e2e8f0;
    font-weight: 700;
}
.social-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    color: var(--accent-blue);
    transition: transform 0.2s, opacity 0.2s;
}
.social-bar-icon:hover {
    transform: scale(1.15);
    opacity: 0.85;
    color: var(--accent-blue);
}

.site-footer {
    background: var(--footer-bg);
    padding: 48px 0 24px;
    color: #c8d1dc;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo-text {
    color: #e2e8f0;
}

.footer-brand p {
    color: #7a8a9e;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.6;
    max-width: 380px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: rgba(59,130,246,0.1);
}

.footer-mid {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}

.footer-data-badges {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-badge i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.footer-bottom p {
    color: #5a6a7e;
    font-size: 0.78rem;
}

.footer-company {
    color: #4a5568;
    font-size: 0.72rem;
    line-height: 1.6;
}

.footer-smallprint {
    flex: 1;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #5a6a7e;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #94a3b8;
}

/* ============================================================
   Vehicle Results Page
   ============================================================ */

/* --- Compact Search --- */
.search-compact {
    background: var(--header-bg);
    padding: 14px 0;
    text-align: center;
}

.search-compact .plate-search {
    margin: 0 auto;
}

/* --- Error Card --- */
.error-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 60px auto;
    max-width: 500px;
    box-shadow: var(--shadow-card);
}

.error-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.error-card h2 i {
    color: var(--accent-red);
    margin-right: 8px;
}

.error-card p {
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Rate-limit card */
.rate-limit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 60px auto;
    max-width: 520px;
    box-shadow: var(--shadow-card);
}

.rate-limit-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.rate-limit-card h2 i {
    color: var(--accent-orange);
    margin-right: 8px;
}

.rate-limit-card p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.rate-limit-upsell {
    font-weight: 600;
    color: var(--text-heading);
}

.rate-limit-home {
    margin-top: 24px;
}

.rate-limit-home a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-blue-dark);
    color: white;
}

.btn-primary i {
    margin-right: 6px;
}

/* --- Vehicle Header --- */
.report-toolbar {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.report-toolbar .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.report-toolbar .toolbar-history {
    display: flex;
    align-items: center;
    gap: 10px;
}
.report-toolbar .toolbar-history i {
    color: var(--accent-blue);
}
.report-toolbar .toolbar-actions {
    margin-left: auto;
}
@media (max-width: 768px) {
    .report-toolbar .container {
        flex-direction: column;
        align-items: stretch;
    }
    .report-toolbar .toolbar-history {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .report-toolbar .toolbar-history span {
        width: 100%;
        text-align: left;
        font-size: 0.82rem;
    }
    .report-toolbar .toolbar-history .historical-banner-link {
        width: 100%;
        text-align: right;
    }
    .report-toolbar .toolbar-history .toolbar-divider {
        display: none;
    }
    .report-toolbar .toolbar-history > i {
        display: none;
    }
    .report-toolbar .toolbar-actions {
        margin-left: 0;
        justify-content: center;
        margin-top: 8px;
    }
}
.toolbar-divider {
    color: var(--border-color, #e2e5ea);
    margin: 0 2px;
}
.historical-banner-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 6px;
}
.historical-banner-link:hover {
    text-decoration: underline;
}

.vehicle-header {
    background: var(--bg-primary);
    padding: 36px 0;
    border-bottom: 1px solid var(--border-color);
}

.vh-grid {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.vh-image {
    flex: 0 0 auto;
    order: -1; /* pin to the left of the header grid */
}

.vh-info .vh-plate {
    margin-bottom: 10px;
    display: inline-block;
    width: auto;
}

.vh-info .plate-display {
    display: inline-block;
    width: 160px;
    font-size: 1.3rem;
    padding: 6px 14px;
    text-align: center;
}

.vehicle-image-box {
    width: 260px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

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

.plate-display {
    background: var(--plate-yellow);
    color: var(--plate-text);
    font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.vh-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.vh-trim {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
}

.make-logo {
    height: 40px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.vh-meta {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.vh-meta-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-card-grey);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Colour dot */
.colour-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.12);
    vertical-align: middle;
    flex-shrink: 0;
}

.detail-value .colour-dot {
    margin-right: 6px;
}

.vh-badges {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.status-badge {
    text-align: center;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    min-width: 95px;
}

.badge-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 3px;
}

.badge-pass {
    background: var(--accent-green-soft);
    border: 1px solid rgba(22,163,74,0.25);
    color: var(--accent-green);
    font-weight: 800;
    font-size: 0.9rem;
}

.badge-fail {
    background: var(--accent-red-soft);
    border: 1px solid rgba(220,38,38,0.25);
    color: var(--accent-red);
    font-weight: 800;
    font-size: 0.9rem;
}

.badge-warning {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.35);
    color: #b45309;
    font-weight: 800;
    font-size: 0.9rem;
}

.mileage-chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.mileage-warning {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245,158,11,0.10);
    border: 1px solid rgba(245,158,11,0.35);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-md);
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mileage-warning i {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- Dashboard --- */
.dashboard {
    padding: 16px 0 70px;
    background: var(--bg-secondary);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.sc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--accent-blue);
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.sc-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.sc-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}

.sc-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* --- Dashboard Cards --- */
.dash-col-legacy {
    display: none; /* replaced by masonry */
}

/* Masonry-style dashboard layout using CSS columns */
.dashboard-masonry {
    position: relative;
    margin-bottom: 22px;
}
.dashboard-masonry > .dash-card,
.dashboard-masonry > [class*="dash-card"] {
    position: absolute;
    width: calc(50% - 11px);
}
.dashboard-masonry:not(.masonry-ready) > .dash-card,
.dashboard-masonry:not(.masonry-ready) > [class*="dash-card"] {
    position: static;
    width: auto;
    margin-bottom: 22px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dash-card-full {
    width: 100%;
}

.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card-grey);
}

.dc-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

.dc-header h3 i {
    color: var(--accent-blue);
    margin-right: 8px;
    font-size: 0.9em;
}

.dc-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .dc-header {
        flex-wrap: wrap;
    }
    .dc-count {
        width: 100%;
        margin-top: 2px;
    }
}

.dc-body {
    padding: 22px;
}

/* --- Detail List --- */
.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-blue);
    font-weight: 700;
    padding: 12px 0 4px;
    border-bottom: 1px solid var(--border-light);
}

.detail-section-label i {
    margin-right: 5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    padding-right: 10px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: right;
}

/* --- MOT Timeline --- */
.mot-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

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

.timeline-marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.timeline-pass .timeline-marker {
    background: var(--accent-green-soft);
    color: var(--accent-green);
    border: 2px solid rgba(22,163,74,0.25);
}

.timeline-fail .timeline-marker {
    background: var(--accent-red-soft);
    color: var(--accent-red);
    border: 2px solid rgba(220,38,38,0.25);
}

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

.timeline-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.timeline-result {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
}

.timeline-result.timeline-pass {
    background: var(--accent-green-soft);
    color: var(--accent-green);
}

.timeline-result.timeline-fail {
    background: var(--accent-red-soft);
    color: var(--accent-red);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.timeline-mileage {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin-left: auto;
}

.defects-section {
    margin-top: 8px;
    margin-bottom: 10px;
}

.defects-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.defects-section-header i {
    margin-right: 5px;
}

.defects-failures .defects-section-header {
    color: var(--accent-red);
    background: var(--accent-red-soft);
}

.defects-advisories .defects-section-header {
    color: var(--accent-orange);
    background: var(--accent-orange-soft);
}

.timeline-defects {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.defect-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.defect-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.defect-text {
    color: var(--text-secondary);
    line-height: 1.45;
}

.defect-advisory {
    background: var(--accent-orange-soft);
}
.defect-advisory .defect-badge {
    background: rgba(217,119,6,0.15);
    color: var(--accent-orange);
}

.defect-fail {
    background: var(--accent-red-soft);
}
.defect-fail .defect-badge {
    background: rgba(220,38,38,0.15);
    color: var(--accent-red);
}

.defect-dangerous {
    background: #fde8e8;
}
.defect-dangerous .defect-badge {
    background: rgba(220,38,38,0.2);
    color: #b91c1c;
}

.defect-minor {
    background: var(--accent-purple-soft);
}
.defect-minor .defect-badge {
    background: rgba(124,58,237,0.15);
    color: var(--accent-purple);
}

.timeline-clean {
    margin-top: 4px;
}

.timeline-clean span,
.timeline-clean i {
    font-size: 0.84rem;
    color: var(--accent-green);
    font-weight: 500;
}

.timeline-clean i {
    margin-right: 4px;
}

/* --- Tax Rate Cards --- */
.tax-fuel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    margin-right: 8px;
}

.tax-fuel-badge i {
    font-size: 0.9em;
}

/* --- ULEZ & Euro Badges --- */
.ulez-badge-pass {
    background: var(--accent-green-soft) !important;
    border-color: rgba(22, 163, 74, 0.2) !important;
    color: var(--accent-green) !important;
}

.ulez-badge-fail {
    background: var(--accent-red-soft) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
    color: var(--accent-red) !important;
}

.tax-rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.tax-rate-card {
    background: var(--bg-card-grey);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.tax-rate-card.tax-rate-main {
    background: var(--bg-card-blue);
    border-color: rgba(37, 99, 235, 0.15);
}

.tax-rate-card.tax-rate-premium {
    background: #fef9ee;
    border-color: rgba(217, 119, 6, 0.15);
}

.tax-rate-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.tax-rate-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}

.tax-rate-band {
    font-size: 2.2rem;
}

.tax-rate-premium .tax-rate-amount {
    color: var(--accent-orange);
}

.tax-rate-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.band-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 2px solid rgba(0,0,0,0.08);
}

.tax-chart-wrapper {
    margin-top: 20px;
    height: 200px;
}

.tax-rate-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.tax-rate-source i {
    margin-right: 4px;
    color: var(--accent-blue);
}

/* Running costs — mileage slider */
.rc-slider-wrap {
    margin-bottom: 16px;
}
.rc-slider-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.rc-slider-label i {
    color: var(--accent-blue);
    opacity: 0.7;
    margin-right: 4px;
}
.rc-slider-label strong {
    color: var(--text-primary);
}
.rc-slider-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}
.rc-slider-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dde1e7;
    outline: none;
    cursor: pointer;
}
.rc-slider-wrap input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #dde1e7;
}
.rc-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}
.rc-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}
.rc-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    padding: 0 2px;
}

/* Running costs breakdown */
.running-cost-breakdown {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}
.running-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.running-cost-row:last-child {
    border-bottom: none;
}
.running-cost-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.running-cost-label i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: var(--accent-blue);
    opacity: 0.7;
}
.running-cost-amount {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.running-cost-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0 0 6px 24px;
    margin-top: -4px;
}
.running-cost-total {
    border-top: 2px solid rgba(255,255,255,0.08);
    border-bottom: none;
    margin-top: 4px;
    padding-top: 10px;
}
.running-cost-total .running-cost-label {
    font-weight: 600;
    color: var(--text-primary);
}
.running-cost-total .running-cost-amount {
    font-size: 1.1rem;
    color: var(--accent-blue);
}
.running-cost-monthly {
    border-bottom: none;
}
.running-cost-monthly .running-cost-label,
.running-cost-monthly .running-cost-amount {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* --- Collapsible MOT History --- */
.dc-header-toggle {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.dc-header-toggle:hover {
    background: var(--bg-card-blue);
}

.dc-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card-blue);
    color: var(--accent-blue);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mot-history-body {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mot-history-body.collapsed {
    max-height: 350px;
}

.mot-history-body.expanded {
    max-height: none;
}

.mot-history-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.mot-history-body.expanded .mot-history-fade {
    opacity: 0;
}

.mot-history-expand {
    text-align: center;
    padding: 14px;
    border-top: 1px solid var(--border-light);
}

.mot-history-expand.hidden {
    display: none;
}

.btn-expand {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-expand:hover {
    background: var(--bg-card-blue);
    border-color: var(--accent-blue);
}

.btn-expand i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.mot-history-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.mot-history-card.expanded .btn-expand i {
    transform: rotate(180deg);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand .logo-img-footer {
        height: 48px;
        width: auto;
    }
    .footer-data-badges {
        justify-content: center;
    }
    .footer-brand p {
        max-width: none;
    }
    .footer-nav {
        justify-content: center;
    }
    .dashboard-masonry > .dash-card,
    .dashboard-masonry > [class*="dash-card"] {
        position: static !important;
        width: auto !important;
    }
    .dashboard-masonry {
        height: auto !important;
    }
    .dashboard-masonry > .dash-card,
    .dashboard-masonry > [class*="dash-card"] {
        position: static !important;
        width: auto !important;
    }
    .dashboard-masonry {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 12px;
    }
    .logo {
        overflow: hidden;
        flex-shrink: 1;
        min-width: 0;
    }
    .logo-img {
        height: 56px;
    }
    .recent-card-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .recent-card-plate {
        display: block !important;
        width: 100% !important;
        text-align: center;
        box-sizing: border-box;
        align-self: auto !important;
    }
    .recent-card-time {
        text-align: right;
    }
    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-content .section-title {
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .footer-smallprint {
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
        width: 100%;
    }
    .vh-grid {
        flex-direction: column;
        align-items: flex-start;
    }
    .vh-image {
        width: 100%;
    }
    .vehicle-image-box {
        width: 100%;
        height: auto;
    }
    .vh-badges {
        margin-left: 0;
    }
    .plate-input {
        font-size: 1.5rem;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .plate-display {
        font-size: 1.6rem;
    }
    .main-nav {
        gap: 20px;
    }
    .timeline-mileage {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-cards {
        grid-template-columns: 1fr;
    }
    .plate-search {
        flex-wrap: nowrap;
    }
    .btn-search {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--header-bg);
        padding: 20px 24px;
        gap: 0;
        overflow-y: auto;
        z-index: 99;
    }
    .main-nav.mobile-open {
        display: flex !important;
        align-items: stretch;
        height: calc(100vh - 64px);
    }
    .main-nav > .nav-link,
    .main-nav > .nav-btn-login,
    .main-nav > .nav-divider,
    .main-nav > .profile-menu {
        display: none !important;
    }
    .burger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--header-text);
        font-size: 1.4rem;
        cursor: pointer;
        padding: 8px;
        z-index: 101;
    }
}

/* Burger and mobile menu hidden on desktop */
.burger-btn {
    display: none;
}
.mobile-menu {
    display: none;
}
.nav-icon {
    display: none;
}
@media (max-width: 768px) {
    .nav-icon {
        display: inline;
        width: 20px;
        text-align: center;
        color: var(--accent-blue);
    }
    .main-nav.mobile-open .mobile-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .mobile-menu-auth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--accent-blue);
        color: #fff;
        border-radius: 8px;
        padding: 14px 0;
        font-weight: 700;
        text-decoration: none;
        width: 100%;
        margin-bottom: 12px;
    }
    .mobile-menu-auth-btn:hover {
        background: var(--accent-blue-dark);
        color: #fff;
    }
    .mobile-menu-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .mobile-tab {
        flex: 1;
        padding: 10px 0;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .mobile-tab.active {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
    .mobile-tab:hover {
        color: #fff;
    }
    .mobile-tab-content {
        display: flex;
        flex-direction: column;
    }
    .mobile-tab-content .nav-link {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 14px 8px;
        color: var(--header-text);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    }
    .mobile-tab-content .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.stat-card,
.dash-card,
.data-source-card {
    animation: fadeInUp 0.4s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.03s; }
.feature-card:nth-child(2) { animation-delay: 0.06s; }
.feature-card:nth-child(3) { animation-delay: 0.09s; }
.feature-card:nth-child(4) { animation-delay: 0.12s; }
.feature-card:nth-child(5) { animation-delay: 0.15s; }
.feature-card:nth-child(6) { animation-delay: 0.18s; }

/* spec-cards-grid removed - cards now in dashboard-masonry */

/* ── Valuation Teaser Card ── */
.valuation-teaser-card {
    position: relative;
    overflow: hidden;
}
.valuation-teaser-card .dc-body {
    position: relative;
    padding: 22px;
    overflow: hidden;
}
.val-teaser-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px 22px;
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}
.val-teaser-box {
    background: var(--bg-card-grey);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}
.val-teaser-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8896a6;
    margin-bottom: 0.25rem;
}
.val-teaser-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.val-teaser-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}
.val-teaser-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.val-teaser-text {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem;
    max-width: 380px;
}
.val-teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.val-teaser-btn:hover {
    background: var(--accent-blue-dark);
}

/* Valuation teaser mileage form */
.val-teaser-form {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.val-teaser-form .btn-primary {
    flex: 1;
    white-space: nowrap;
    justify-content: center;
    border-radius: 0 8px 8px 0;
}
.val-mileage-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
}
.val-mileage-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding-left: 12px;
    pointer-events: none;
}
.val-mileage-label i {
    margin-right: 3px;
}
.val-mileage-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 12px 16px 8px;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    width: 130px;
    letter-spacing: 0.02em;
}
.val-mileage-input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}
.val-mileage-input::-webkit-outer-spin-button,
.val-mileage-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.val-mileage-input[type=number] {
    -moz-appearance: textfield;
}
@media (max-width: 768px) {
    .val-teaser-form {
        flex-direction: column;
        overflow: visible;
    }
    #btnValuateAjax {
        border-radius: 0 0 8px 8px !important;
        white-space: normal !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .val-mileage-field {
        border-radius: 8px 8px 0 0;
    }
    .val-mileage-field {
        width: 100%;
    }
    .val-mileage-input {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}

/* Valuation inline results (uses shared .grid-2, .u-stat-box, .u-meta-row) */
.val-results-grid {
    padding-top: 8px;
}
@media (max-width: 480px) {
    .val-teaser-form {
        max-width: 100%;
    }
    .val-mileage-input {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}

/* Spec hero strip (big numbers at top of each card) */
.spec-hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.spec-hero-stat {
    text-align: center;
    min-width: 60px;
    flex: 1;
    background: var(--bg-card-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.spec-hero-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.1;
}
.spec-hero-value i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}
.spec-hero-unit {
    font-size: 0.55em;
    font-weight: 500;
    color: #8896a6;
}
.spec-hero-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8896a6;
    margin-top: 0.2rem;
}
.spec-hero-accent .spec-hero-value {
    color: #22c55e;
}
@media (max-width: 768px) {
    .spec-hero {
        flex-wrap: wrap;
    }
    .spec-hero-stat {
        flex: 0 0 calc(50% - 4px);
    }
}

/* ── Performance gauge bars ── */
.perf-gauges {
    padding: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.perf-gauge {
    padding: 0;
}
.perf-gauge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8896a6;
    margin-bottom: 0.3rem;
}
.perf-gauge-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-card-grey, #f0f2f5);
    border-radius: 4px;
    overflow: hidden;
}
.perf-gauge-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.perf-gauge-power {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.perf-gauge-torque {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.perf-gauge-detail {
    font-size: 0.75rem;
    color: #8896a6;
    margin-top: 0.25rem;
}

/* ── Top Speed feature card ── */
.top-speed-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
}
.top-speed-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    line-height: 1;
}
.top-speed-info {
    flex: 1;
}
.top-speed-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.1;
}
.top-speed-unit {
    font-size: 0.5em;
    font-weight: 600;
    color: var(--accent-blue-light);
}
.top-speed-kph {
    font-size: 0.45em;
    font-weight: 500;
    color: #8896a6;
}
.top-speed-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8896a6;
    margin-top: 0.25rem;
}

/* ── MPG comparison bars ── */
.mpg-bars {
    padding: 1rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mpg-bar-row {
    display: grid;
    grid-template-columns: 85px 1fr 70px;
    align-items: center;
    gap: 0.6rem;
}
.mpg-bar-label {
    font-size: 0.75rem;
    color: #8896a6;
    text-align: right;
}
.mpg-bar-track {
    width: 100%;
    height: 10px;
    background: var(--bg-card-grey, #f0f2f5);
    border-radius: 5px;
    overflow: hidden;
}
.mpg-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}
.mpg-bar-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.mpg-bar-value small {
    font-weight: 400;
    color: #8896a6;
}


/* ── Weight gauge ── */
.dims-note {
    font-size: 0.7rem;
    color: #8896a6;
    text-align: center;
    margin: 0.25rem 0 0;
}
.weight-gauge {
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}
.weight-gauge-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.weight-gauge-icon {
    color: var(--accent-blue);
    font-size: 0.85rem;
}
.weight-gauge-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
}
.weight-gauge-label {
    font-size: 0.75rem;
    color: #8896a6;
}
.weight-bar {
    background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
    background-size: calc(100% / var(--bar-pct, 1)) 100%;
}
.weight-gauge-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* ── Euro NCAP Safety ── */
.ncap-overview {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0.5rem 0;
}
.ncap-avg {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ncap-avg-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.ncap-avg-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-top: 0.15rem;
}
.ncap-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}
.ncap-row {
    display: grid;
    grid-template-columns: 100px 1fr 42px;
    align-items: center;
    gap: 0.5rem;
}
.ncap-label {
    font-size: 0.75rem;
    color: #8896a6;
    text-align: right;
}
.ncap-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-card-grey, #f0f2f5);
    border-radius: 4px;
    overflow: hidden;
}
.ncap-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.ncap-score {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1e293b;
}
@media (max-width: 768px) {
    .ncap-overview {
        flex-direction: column;
        align-items: center;
    }
    .ncap-categories {
        width: 100%;
    }
    .ncap-row {
        grid-template-columns: 80px 1fr 36px;
    }
    .ncap-bar-track {
        min-width: 0;
    }
}

/* ── Vehicle History Card ── */
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
.history-stat {
    text-align: center;
    background: var(--bg-card-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.history-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
}
.history-stat-value i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}
.history-stat-value .colour-dot {
    width: 1.1rem;
    height: 1.1rem;
}
.history-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8896a6;
    margin-top: auto;
    padding-top: 0.25rem;
}

/* History tab buttons */
.history-tab {
    cursor: pointer;
    transition: all 0.2s ease;
}
.history-tab:hover {
    background: var(--accent-blue-soft, #dbeafe);
    border-color: rgba(37, 99, 235, 0.3);
}
.history-tab-active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.history-tab-active .history-stat-value,
.history-tab-active .history-stat-value i {
    color: #ffffff;
}
.history-tab-active .history-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* History list panels */
.history-list-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}
.history-list-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 50px);
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-top: 1px solid rgba(37, 99, 235, 0.15);
    border-left: 1px solid rgba(37, 99, 235, 0.15);
    transform: rotate(45deg);
}

.history-warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.history-warning-item {
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.5;
}
.history-warning-item i {
    color: #ef4444;
    margin-right: 0.35rem;
}
.history-warning-item strong {
    color: #fecaca;
}

/* History detail lists - stacked in side column */
.history-lists {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.history-list-col {
    min-width: 0;
}
.history-list-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    padding-bottom: 0.6rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.history-list-header i {
    font-size: 0.75rem;
    color: #64748b;
}

/* Mini timeline for history lists */
.history-timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ht-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    position: relative;
}
.ht-item:not(:last-child) {
    border-bottom: none;
}
.ht-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -4px;
    width: 1px;
    background: rgba(255,255,255,0.08);
}
.ht-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.ht-marker i {
    font-size: 0.6rem;
    color: #8896a6;
}
.ht-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}
.ht-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.ht-date {
    font-size: 0.75rem;
    color: #8896a6;
    margin-top: 0.1rem;
}

/* Mini plate badge */
.plate-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--plate-yellow, #f4d03f);
    color: var(--plate-text, #1a1a1a);
    font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    height: 28px;
    box-sizing: border-box;
}

/* ============================================================
   MOT Stations Finder
   ============================================================ */

/* --- Search Bar --- */
.station-hero .hero-subtitle { max-width: 600px; }

/* Location hero with landmark background image */
.station-hero-image {
    position: relative;
}

.station-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.station-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 36, 0.72);
    z-index: 1;
}

.station-hero-image .hero-bg-pattern,
.station-hero-image .hero-overlay {
    display: none;
}

.station-hero-image .container {
    position: relative;
    z-index: 2;
}

.station-hero-image .hero-title,
.station-hero-image .hero-subtitle {
    color: #fff;
}

.station-hero-image .hero-subtitle {
    opacity: 0.9;
}

.station-search-wrapper {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.station-search {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: none;
    transition: box-shadow 0.2s;
}

.station-search:focus-within {
    box-shadow: 0 0 0 2px var(--accent-blue), var(--shadow-md);
}

.station-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 62px;
    color: var(--accent-blue);
    font-size: 1.15rem;
}

.station-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 18px 0;
    background: transparent;
    min-width: 0;
}

.station-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.station-search .btn-search {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    height: 62px;
    padding: 0 28px;
    white-space: nowrap;
}

.station-search-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.btn-geolocate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.btn-geolocate:hover {
    background: var(--accent-blue-soft);
    color: var(--accent-blue-dark);
}

.btn-geolocate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Autocomplete Dropdown --- */
.station-search-box {
    position: relative;
    z-index: 100;
}

.suggest-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.suggest-item:hover,
.suggest-item.suggest-active {
    background: var(--bg-card-grey);
}

.suggest-icon {
    color: var(--accent-blue);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.suggest-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.suggest-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Popular Locations --- */
.popular-locations {
    padding: 22px 0 20px;
}

.popular-header {
    text-align: center;
    margin-bottom: 12px;
}

.popular-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-label i {
    color: var(--accent-orange);
    margin-right: 4px;
}

.popular-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.popular-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.popular-badge:hover {
    background: var(--accent-blue-soft);
    border-color: var(--accent-blue);
    color: var(--accent-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* --- Class Filter Bar --- */
.class-filter {
    display: flex;
    justify-content: center;
    margin: 14px 0 6px;
}

.filter-buttons {
    display: flex;
    gap: 6px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

/* Default (unselected): soft backgrounds matching the class-tag colours */
.filter-btn.filter-bike  { background: var(--accent-purple-soft); color: var(--accent-purple); border-color: var(--accent-purple-soft); }
.filter-btn.filter-trike { background: var(--accent-orange-soft); color: var(--accent-orange); border-color: var(--accent-orange-soft); }
.filter-btn.filter-car   { background: var(--accent-blue-soft);   color: var(--accent-blue);   border-color: var(--accent-blue-soft); }
.filter-btn.filter-bus   { background: var(--accent-green-soft);  color: var(--accent-green);  border-color: var(--accent-green-soft); }
.filter-btn.filter-truck { background: var(--accent-red-soft);    color: var(--accent-red);    border-color: var(--accent-red-soft); }

/* Selected: bold filled background, white icon */
.filter-btn.active {
    color: #fff;
}

.filter-btn.filter-bike.active  { background: var(--accent-purple); border-color: var(--accent-purple); }
.filter-btn.filter-trike.active { background: var(--accent-orange); border-color: var(--accent-orange); }
.filter-btn.filter-car.active   { background: var(--accent-blue);   border-color: var(--accent-blue); }
.filter-btn.filter-bus.active   { background: var(--accent-green);  border-color: var(--accent-green); }
.filter-btn.filter-truck.active { background: var(--accent-red);    border-color: var(--accent-red); }

/* --- Results --- */
.station-results {
    padding: 40px 0 50px;
}

.results-header {
    text-align: center;
    margin-bottom: 28px;
}

.results-header .section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 0;
}

.results-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Station Cards --- */
.station-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.station-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.station-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.station-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
}

.station-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 0.95rem;
}

.station-info {
    flex: 1;
    min-width: 0;
}

.station-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.3;
}

.station-address {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.station-distance {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    text-align: center;
}

.distance-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1.1;
}

.distance-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.station-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 22px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
}

/* --- Vehicle Class Tags --- */
.station-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.class-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}

.class-tag i { font-size: 0.7rem; }

.class-desc {
    font-weight: 400;
    opacity: 0.8;
}

.class-tag-car { background: var(--accent-blue-soft); color: var(--accent-blue-dark); }
.class-tag-bike { background: var(--accent-purple-soft); color: var(--accent-purple); }
.class-tag-trike { background: var(--accent-orange-soft); color: var(--accent-orange); }
.class-tag-bus { background: var(--accent-green-soft); color: var(--accent-green); }
.class-tag-truck { background: var(--accent-red-soft); color: var(--accent-red); }

/* --- Station Actions (phone + directions) --- */
.station-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.station-phone,
.station-directions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    white-space: nowrap;
}

.station-phone {
    color: var(--accent-green);
}

.station-phone:hover {
    background: var(--accent-green-soft);
}

.station-directions {
    color: var(--accent-blue);
}

.station-directions:hover {
    background: var(--accent-blue-soft);
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.no-results h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 0.92rem;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Stations Responsive --- */
@media (max-width: 640px) {
    .station-card-header {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .station-distance {
        flex-direction: row;
        gap: 4px;
        min-width: auto;
    }

    .distance-value { font-size: 1.1rem; }
    .distance-label { font-size: 0.68rem; }

    .station-card-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 14px;
    }

    .station-actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 6px;
        border-top: 1px solid var(--border-light);
    }

    .class-desc { display: none; }
}

/* =============================================================
   Tyre Size & Pressure page
   ============================================================= */


.tyre-results {
    padding: 40px 0 60px;
}

/* tyre-vehicle-header replaced by shared .results-header */

.tyre-axle-section {
    margin-bottom: 28px;
}

.tyre-axle-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.tyre-axle-title i {
    color: var(--accent-blue);
    margin-right: 6px;
}

/* Tyre grids use shared .grid-2 and .grid-4 with page-specific spacing */
.tyre-stat-top {
    margin-bottom: 12px;
}
.tyre-stat-grid {
    gap: 12px;
}

/* Tyre-specific value highlights */
.tyre-size-highlight {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
}
.tyre-pressure-highlight {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-green);
}

/* tyre-info-note replaced by shared .info-note */
.tyre-results .info-note {
    margin-bottom: 32px;
}

.tyre-cta {
    text-align: center;
}

/* Tyre option tabs */
.tyre-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--bg-card);
}

.tyre-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}

.tyre-tab i {
    margin-right: 6px;
}

.tyre-tab:hover {
    color: var(--text-heading);
}

.tyre-tab-active {
    color: var(--accent-blue);
}

.tyre-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
}

/* Tyre option panels */
.tyre-option {
    display: none;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--accent-blue-softer);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.tyre-option-active {
    display: block;
}

.tyre-hub-fixing {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.hub-spec {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hub-spec i {
    color: var(--text-muted);
    margin-right: 4px;
    font-size: 0.75rem;
}

.hub-spec strong {
    color: var(--text-heading);
}

@media (max-width: 600px) {
    .tyre-stat-top {
        grid-template-columns: 1fr;
    }
    .tyre-hub-fixing {
        flex-direction: column;
        gap: 8px;
    }
}

/* =============================================================
   Valuation page
   ============================================================= */

.plate-search-val {
    max-width: 560px;
    height: 64px;
}
.plate-search-val .plate-input {
    font-size: 1.6rem;
    padding: 0 250px 0 44px;
}
.plate-search-val .mileage-wrap {
    position: absolute;
    right: 120px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    border-left: 2px solid rgba(38, 38, 38, 0.3);
    z-index: 1;
}
.plate-search-val .btn-search {
    width: 120px;
}

.mileage-input {
    width: 110px;
    padding: 10px 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-heading);
    text-align: center;
}

.mileage-input::-webkit-inner-spin-button,
.mileage-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mileage-input {
    -moz-appearance: textfield;
}

.mileage-wrap {
    display: flex;
    align-items: center;
    border-left: 2px solid rgba(38, 38, 38, 0.3);
}

.mileage-btns {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-right: 10px;
}

.mileage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 14px;
    background: var(--accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.45rem;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.mileage-btn:hover {
    background: var(--accent-blue-dark);
    color: white;
}

.mileage-btn-up {
    border-radius: 3px 3px 0 0;
}

.mileage-btn-down {
    border-radius: 0 0 3px 3px;
}

.mileage-input::placeholder {
    font-weight: 500;
    color: rgba(38, 38, 38, 0.3);
    letter-spacing: 0.02em;
}

.val-results {
    padding: 40px 0 60px;
}

/* val-vehicle-header replaced by shared .results-header */

.val-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

/* Val cards reuse .dc-header, .dc-body, .detail-list, .detail-row, .detail-label, .detail-value */
.val-card {
    width: calc(33.333% - 14px);
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.val-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.val-card-featured {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue), 0 4px 16px rgba(37,99,235,0.1);
}
.val-card-featured .dc-header {
    background: var(--accent-blue-soft);
    border-bottom-color: var(--accent-blue);
}
.val-card .detail-value {
    font-size: 1.1rem;
    font-weight: 800;
}
.val-price-accent {
    color: var(--accent-blue) !important;
}

.val-otr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: fit-content;
    margin: 0 auto 32px;
}

.val-otr i {
    color: var(--accent-blue);
}

/* val-info-note replaced by shared .info-note */
.val-results .info-note {
    margin-bottom: 28px;
}

.val-cta {
    text-align: center;
}

@media (max-width: 600px) {
    .mileage-input {
        width: 80px;
        font-size: 0.9rem;
        padding: 8px 4px;
    }

    .mileage-btn {
        width: 22px;
        height: 16px;
        font-size: 0.5rem;
    }

    .val-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .plate-search-val {
        max-width: 100%;
        height: 100px;
    }
    .plate-search-val .plate-input {
        padding: 4px 120px 36px 44px;
        font-size: 1.4rem;
    }
    .plate-search-val .mileage-wrap {
        position: absolute;
        left: 44px;
        right: 120px;
        bottom: 0;
        top: auto;
        height: 36px;
        border-left: none;
        border-top: 1px solid rgba(38, 38, 38, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
    .plate-search-val .mileage-input {
        flex: 1;
        min-width: 0;
        width: auto;
        text-align: center;
        padding: 4px 4px 4px 8px;
        font-size: 0.85rem;
    }
    .plate-search-val .mileage-btns {
        flex-shrink: 0;
        margin-right: 4px;
    }
    .plate-search-val .btn-search {
        width: 120px;
    }
}

/* =============================================================
   Pricing / Subscriptions page
   ============================================================= */

.pricing-section {
    padding: 48px 0 60px;
}

.pricing-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.pricing-heading i {
    color: var(--accent-blue);
    margin-right: 6px;
}

.pricing-subheading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
}

.pricing-card {
    position: relative;
    width: calc(25% - 15px);
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pricing-card-current {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 1px var(--accent-green), 0 4px 20px rgba(34,197,94,0.12);
}

.pricing-card-featured {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue), 0 4px 20px rgba(37,99,235,0.12);
    overflow: visible;
}

.pricing-card-featured .pricing-card-header {
    border-radius: 15px 15px 0 0;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
    z-index: 1;
}

.pricing-card-header {
    padding: 28px 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card-grey);
}

.pricing-card-featured .pricing-card-header {
    background: var(--accent-blue-soft);
    border-bottom-color: var(--accent-blue);
}

.pricing-card-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.pricing-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.pricing-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.pricing-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pricing-card-body .pricing-btn {
    margin-top: auto;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pricing-features li {
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features i {
    color: var(--accent-blue);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
}

.pricing-features i.dim {
    color: var(--text-muted);
    opacity: 0.4;
}

.pricing-features .dim {
    color: var(--text-muted);
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg-card-grey);
    color: var(--text-heading);
    border: 1px solid var(--border-light);
    transition: background 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.pricing-btn:hover {
    background: var(--border-light);
}

.pricing-btn-featured {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.pricing-btn-featured:hover {
    background: var(--accent-blue-dark);
    color: #fff;
}

.pricing-btn-current {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
    cursor: default;
}

/* Credit costs breakdown */
.pricing-credit-costs {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-credit-costs h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.pricing-cost-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.pricing-cost-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-cost-item i {
    color: var(--accent-blue);
}

.pricing-cost-item strong {
    color: var(--text-heading);
}

/* Buy credits card */
.pricing-topup {
    max-width: 680px;
    margin: 0 auto 48px;
}

.pricing-topup-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.pricing-topup-info {
    flex: 1;
}

.pricing-topup-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.pricing-topup-info h3 i {
    color: var(--accent-blue);
    margin-right: 6px;
}

.pricing-topup-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pricing-topup-action {
    text-align: center;
    flex-shrink: 0;
}

.pricing-topup-action .pricing-amount {
    font-size: 2rem;
}

.pricing-topup-action .pricing-period {
    display: block;
    margin-bottom: 12px;
}

.pricing-topup-action .pricing-btn {
    white-space: nowrap;
}

.pricing-slider-wrap {
    width: 100%;
    margin-bottom: 12px;
}

.pricing-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-light);
    outline: none;
    cursor: pointer;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.pricing-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.pricing-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-topup-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.pricing-topup-eq {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 4px;
}

@media (max-width: 900px) {
    .pricing-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .pricing-card {
        width: 100%;
    }

    .pricing-topup-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================================
   Toast Notifications
   ============================================================= */

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark, #0f1a2b);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    z-index: 9998;
    animation: cookieSlideUp 0.3s ease;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-consent-inner p {
    flex: 1;
    color: #c8d1dc;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}
.cookie-consent-inner p i {
    color: var(--accent-blue);
    margin-right: 6px;
}
.cookie-consent-inner a {
    color: var(--accent-blue);
    text-decoration: underline;
}
.cookie-consent-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.cookie-consent-btn:hover {
    background: var(--accent-blue-dark, #1d4ed8);
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    border-left: 4px solid transparent;
}

.toast-leaving {
    animation: toastOut 0.3s ease-in forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    margin-top: -2px;
    transition: color 0.15s;
}

.toast-close:hover {
    color: var(--text-heading);
}

/* Toast severity colours */
.toast-error {
    border-left-color: #dc2626;
}

.toast-error .toast-icon {
    background: #dc2626;
}

.toast-error .toast-title {
    color: #dc2626;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    background: #f59e0b;
}

.toast-warning .toast-title {
    color: #b45309;
}

.toast-success {
    border-left-color: #16a34a;
}

.toast-success .toast-icon {
    background: #16a34a;
}

.toast-success .toast-title {
    color: #16a34a;
}
.toast-info {
    border-left-color: #2563eb;
}
.toast-info .toast-icon {
    color: #2563eb;
}
.toast-info .toast-title {
    color: #2563eb;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 3px;
    border-radius: 0 0 12px 0;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    border-radius: inherit;
}

.toast-error .toast-progress-bar {
    background: #dc2626;
}

.toast-warning .toast-progress-bar {
    background: #f59e0b;
}

.toast-success .toast-progress-bar {
    background: #16a34a;
}
.toast-info .toast-progress-bar {
    background: #2563eb;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@media (max-width: 600px) {
    .toast-container {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}

/* =============================================================
   Auth pages (Login / Register / Account)
   ============================================================= */

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--header-muted);
    opacity: 0.3;
    align-self: center;
}

.nav-btn-login {
    background: var(--accent-blue);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-btn-login:hover {
    background: var(--accent-blue-dark);
    color: white;
}

/* Profile dropdown */
.profile-menu {
    position: relative;
}

.profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, box-shadow 0.15s;
}

.profile-btn:hover {
    background: var(--accent-blue-dark);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 1000;
    padding: 6px 0;
}

.profile-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--text-heading);
    text-decoration: none;
    transition: background 0.1s;
}

.profile-dropdown a:hover {
    background: var(--bg-primary);
}

.profile-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 0;
}

/* =============================================================
   Account Area Layout
   ============================================================= */

.account-layout {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 60vh;
}

/* --- Sidebar --- */
.account-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.account-sidebar-user {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-light);
}

.account-sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.account-sidebar-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar-tier {
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 6px;
}

.account-sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.account-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-heading);
}

.account-nav-link.active {
    color: var(--accent-blue);
    background: var(--accent-blue-softer);
    border-left-color: var(--accent-blue);
    font-weight: 600;
}

.account-nav-link i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.account-sidebar-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}

.account-nav-logout {
    color: var(--accent-red);
}

.account-nav-logout:hover {
    background: var(--accent-red-soft);
}

/* --- Content Area --- */
.account-content {
    flex: 1;
    min-width: 0;
}

.account-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.account-content h1 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.account-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.account-panel h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.account-panel h2 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

/* --- Stats Row --- */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.account-stat {
    background: var(--bg-card-blue);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.account-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
}

.account-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    display: block;
}

/* --- Vehicle Grid (account/vehicles) --- */
.acct-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.acct-vehicle-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.acct-vehicle-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.acct-vehicle-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-card-grey);
}

.acct-vehicle-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acct-vehicle-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--border-color);
}

.acct-vehicle-card-body {
    padding: 14px 16px;
}

.acct-vehicle-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    text-transform: capitalize;
    display: block;
    margin-bottom: 6px;
}

.acct-vehicle-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.acct-vehicle-card-plate {
    display: inline-block;
    font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--plate-yellow);
    color: var(--plate-text);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}
a.acct-vehicle-card-plate:hover {
    color: var(--plate-text);
    text-decoration: none;
}

.acct-vehicle-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.acct-vehicle-card-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* --- Garage List --- */
.garage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.garage-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    transition: border-color 0.2s;
}
.garage-item:hover {
    border-color: var(--accent-blue);
}
.garage-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}
.garage-item-img {
    width: 140px;
    height: 90px;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary, #f1f5f9);
}
.garage-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.garage-item-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
}
.garage-item-info {
    flex: 1;
    min-width: 0;
}
/* Garage add vehicle */
.garage-add-vehicle {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    background: #edf0f4;
}
.garage-add-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.garage-add-inner .plate-search {
    max-width: 340px;
}
.garage-add-inner .plate-input {
    font-size: 1.3rem;
    padding: 8px 120px 8px 44px;
}
.garage-add-inner .btn-search {
    padding: 10px 18px;
    font-size: 0.85rem;
}
.garage-add-inner .plate-badge {
    padding: 4px 8px;
    gap: 2px;
}
.garage-add-cost {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.garage-item-plate {
    margin-bottom: 8px;
}
.garage-item-plate .plate-display {
    font-size: 0.95rem;
    padding: 3px 10px;
}
.garage-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.garage-item-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.garage-item-meta span + span::before {
    content: "\00b7";
    margin-right: 8px;
}
.garage-item-status {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.garage-status-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 8px 12px;
    border-radius: var(--radius-md, 8px);
    text-align: center;
}
.garage-status-badge.status-good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.garage-status-badge.status-bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.garage-status-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.garage-status-value {
    font-size: 0.8rem;
    font-weight: 700;
}
.status-good .garage-status-value {
    color: #16a34a;
}
.status-bad .garage-status-value {
    color: #dc2626;
}
.garage-status-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.garage-item-reminders {
    display: flex;
    gap: 24px;
    padding: 10px 16px;
    background: var(--bg-secondary, #f8f9fb);
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
    align-items: center;
}
.garage-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm, 6px);
    transition: color 0.2s, background 0.2s;
    margin-left: 8px;
}
.garage-remove-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}
.garage-reminder-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.garage-reminder-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 85px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    width: 36px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-blue);
}
.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(16px);
}
.toggle-label {
    font-size: 1.1rem;
    color: var(--accent-blue);
    order: -1;
}

/* Responsive garage */
@media (max-width: 768px) {
    .garage-item-main {
        flex-wrap: wrap;
        gap: 12px;
    }
    .garage-item-status {
        width: 100%;
        justify-content: flex-start;
    }
    .garage-item-reminders {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }
    .garage-item-reminders .garage-remove-btn {
        margin-left: auto;
    }
}

/* --- Search History Table --- */
.search-history-table {
    width: 100%;
    border-collapse: collapse;
}

.search-history-table th,
.search-history-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.search-history-table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.search-history-table tr:last-child td {
    border-bottom: none;
}
.usage-view-btn {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}
.usage-view-btn:hover {
    background: var(--accent-blue-dark);
    color: #fff;
}

/* Usage mobile cards */
.usage-cards-wrap {
    display: none;
}
.usage-table-wrap {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .usage-table-wrap {
        display: none;
    }
    .usage-cards-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .usage-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md, 8px);
        padding: 14px;
    }
    .usage-card-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }
    .usage-card-plate {
        font-family: 'Charles Bold', 'JetBrains Mono', 'Courier New', monospace;
        font-size: 0.95rem;
        font-weight: 700;
        background: var(--plate-yellow);
        color: var(--plate-text);
        padding: 3px 10px;
        border-radius: 4px;
        letter-spacing: 0.05em;
    }
    .usage-card-type {
        color: var(--accent-blue);
        font-size: 1.1rem;
    }
    .usage-card-name {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-heading);
        margin-bottom: 8px;
    }
    .usage-card-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    .usage-card-date {
        font-size: 0.78rem;
        color: var(--text-muted);
    }
    .usage-card-date i {
        margin-right: 4px;
    }
    .usage-card-action {
        display: flex;
    }
    .usage-card-action .usage-view-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 10px;
        font-size: 0.85rem;
        box-sizing: border-box;
    }
    .usage-card-credit-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-left: 2px;
    }
}

/* --- History Filter --- */
.history-filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.history-filter-select {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Pagination --- */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.pagination-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* badge-cached replaced by shared .u-badge + colour variants */

/* --- Account Form (details page) --- */
.account-form-group {
    margin-bottom: 16px;
}

.account-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.account-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.15s;
}

.account-form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

.account-form-input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-form-actions {
    margin-top: 20px;
}

/* Mobile verification */
.mobile-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-input-row .account-form-input.mobile-number-input {
    flex: 0 1 180px;
}
.mobile-country-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 42px;
    background: var(--bg-secondary, #f1f5f9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.mobile-flag {
    font-size: 1.2rem;
    line-height: 1;
}
.mobile-code {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.mobile-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-green, #16a34a);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.mobile-verified-badge i {
    font-size: 1rem;
}
.mobile-unverified {
    flex-shrink: 0;
}
.btn-verify-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-verify-mobile:hover {
    background: var(--accent-blue-dark, #1d4ed8);
}
.btn-verify-mobile:disabled {
    opacity: 0.6;
    cursor: wait;
}
.mobile-verify-panel {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary, #f8f9fb);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
}
.mobile-verify-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.mobile-verify-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.mobile-verify-input {
    max-width: 140px;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}
.mobile-verify-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.mobile-verify-hint a {
    color: var(--accent-blue);
    text-decoration: none;
}
.mobile-verify-hint a:hover {
    text-decoration: underline;
}

/* --- Empty State --- */
.account-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.account-empty i {
    font-size: 2.5rem;
    color: var(--accent-blue-soft);
    margin-bottom: 16px;
    display: block;
}

.account-empty p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
        padding: 20px 16px;
        gap: 16px;
    }

    .account-sidebar {
        width: 100%;
        position: static;
        border-radius: var(--radius-md);
        padding: 0;
    }

    .account-sidebar-user {
        display: none;
    }

    .account-sidebar-nav {
        display: flex;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .account-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-blue);
    }

    .account-sidebar-footer {
        display: none;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .acct-vehicle-grid {
        grid-template-columns: 1fr;
    }

    .account-form-row {
        grid-template-columns: 1fr;
    }

    .search-history-table {
        font-size: 0.8rem;
    }
}

/* =============================================================
   Checkout Pages
   ============================================================= */

.checkout-section {
    padding: 60px 0;
    min-height: 60vh;
}

.checkout-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.checkout-card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 28px;
    text-align: center;
}

.checkout-card h1 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.checkout-error {
    background: var(--accent-red-soft);
    color: var(--accent-red);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.checkout-summary {
    margin-bottom: 28px;
}

.checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.checkout-item-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.checkout-item-details h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.checkout-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkout-line {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-row-total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-heading);
    border-top: 2px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
}

.checkout-actions {
    text-align: center;
}

.checkout-pay-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
}

.checkout-pay-btn:hover {
    background: var(--accent-blue-dark);
}

.checkout-agree {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.checkout-agree i {
    color: var(--accent-blue);
    margin-right: 4px;
}
.checkout-agree a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.checkout-secure {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkout-secure i {
    margin-right: 4px;
}

.checkout-methods {
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Success page */
.checkout-success-card {
    text-align: center;
}

.checkout-success-icon {
    font-size: 3.5rem;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.checkout-success-msg {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.checkout-success-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.checkout-success-details .checkout-row {
    padding: 6px 0;
}

@media (max-width: 768px) {
    .checkout-card {
        padding: 28px 20px;
        margin: 0 12px;
    }
}

.auth-section {
    padding: 60px 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.auth-card-header {
    background: var(--bg-card-grey);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 28px;
    text-align: left;
}

.auth-card-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.auth-card-header h1 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-card-body {
    padding: 28px;
}

.auth-error {
    background: var(--accent-red-soft);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--accent-red);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-error i {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-success {
    background: var(--accent-green-soft);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--accent-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

.form-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-check label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border: none;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 600;
}

.auth-agree {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}
.auth-agree a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.code-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.code-box {
    flex: 1;
    min-width: 0;
    height: 56px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-heading);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    outline: none;
    background: var(--bg-primary);
    transition: border-color 0.15s;
}

.code-box:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.code-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.form-forgot-link {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 400;
}

.link-resend {
    color: var(--accent-blue);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

/* Account page */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.account-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.account-card h1 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

/* account-info/detail/label/value replaced by shared .detail-list/.detail-row/.detail-label/.detail-value */
/* account-tier replaced by shared .u-badge.u-badge-blue */

/* Usage bar */
.usage-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, var(--radius-sm));
    padding: 24px;
    margin-bottom: 32px;
}

.usage-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.usage-card h2 i {
    color: var(--accent-blue);
    margin-right: 6px;
}

.usage-credit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .usage-credit-row {
        grid-template-columns: 1fr;
    }
}

.credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.credit-badge-zero {
    background: #dde1e7;
    color: #333;
}

.usage-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.usage-bar-warning {
    background: var(--accent-orange);
}

.usage-bar-danger {
    background: var(--accent-red);
}

.usage-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Plans grid */
.plans-section {
    margin-bottom: 32px;
}

.plans-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.plans-section h2 i {
    color: var(--accent-purple);
    margin-right: 6px;
}

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

.plan-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.plan-card-current {
    border-color: var(--accent-blue);
    background: var(--accent-blue-soft);
}

.plan-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
}

.plan-features li {
    margin-bottom: 4px;
}

.plan-features i {
    color: var(--accent-green);
    margin-right: 4px;
    font-size: 0.7rem;
}

.plan-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    vertical-align: middle;
}

/* Plan rows */
.plan-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.plan-row-current {
    border-color: var(--accent-blue);
    background: var(--accent-blue-soft);
}

.plan-row-info {
    flex: 1;
    min-width: 0;
}

.plan-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

.plan-row-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.plan-row-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-blue);
    white-space: nowrap;
}

.plan-row-action {
    white-space: nowrap;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 6px 16px;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 27px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
    background: var(--bg-hover);
    color: var(--text-heading);
}

/* Credit buy row */
.credit-buy-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.credit-slider-wrap {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.credit-slider {
    flex: 1;
    accent-color: var(--accent-blue);
}

.credit-slider-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

.credit-buy-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .plan-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .plan-row-price {
        width: 100%;
    }
    .credit-buy-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.account-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-main);
    color: var(--text-heading);
}

@media (max-width: 600px) {
    .auth-card-header {
        padding: 20px 16px;
    }
    .auth-card-body {
        padding: 20px 16px;
    }
    .account-card {
        padding: 32px 20px;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .account-actions {
        flex-direction: column;
    }
    .account-actions a {
        text-align: center;
    }
}

/* ── PDF Download Button ───────────────────────────────── */
.pdf-download-row {
    text-align: center;
    margin-bottom: 22px;
}
.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-pdf-download:hover {
    background: var(--accent-blue-dark, #1d4ed8);
    color: #fff;
}
.btn-pdf-download i {
    font-size: 1rem;
}
.btn-share-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-share-check:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.4);
}
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-save-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-save-vehicle:hover {
    background: var(--accent-blue-dark, #1d4ed8);
}
.btn-save-vehicle.saved {
    background: var(--accent-green, #16a34a);
}
.btn-save-vehicle.saved:hover {
    background: #15803d;
}
.btn-save-vehicle i {
    font-size: 1rem;
}

/* ── Policy Pages ─────────────────────────────────────── */
.policy-hero {
    background: var(--bg-dark, #0f1a2b);
    padding: 48px 0 40px;
}
.policy-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}
.policy-page {
    padding: 36px 0 60px;
}
.policy-content {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.policy-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue-soft, #dbeafe);
}
.policy-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 20px;
    margin-bottom: 8px;
}
.policy-content p {
    margin-bottom: 14px;
}
.policy-content ul {
    margin: 0 0 14px 8px;
    padding: 0;
    list-style: none;
}
.policy-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}
.policy-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.5;
}
.policy-content strong {
    color: var(--text-heading);
}
.policy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.policy-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.policy-updated i {
    color: var(--accent-blue);
}

/* ── Specs & Options ──────────────────────────────────── */
.spec-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.spec-teaser-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-secondary, #f8f9fb);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.spec-teaser-item i {
    color: var(--accent-blue);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}
.spec-teaser-cta {
    text-align: center;
    padding: 10px 0;
}
.spec-teaser-cta p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.spec-credit-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Spec results */
#specResults {
    display: block !important;
}
#specOptionsCard .dc-body {
    padding-bottom: 21px;
}
#specOptionsCard {
    margin-bottom: 20px;
}
#specResults .spec-category {
    margin-bottom: 24px;
}
#specResults .spec-category:last-child {
    margin-bottom: 0;
}
#specResults .spec-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue-soft, #dbeafe);
    margin-bottom: 8px;
    margin-top: 0;
}
#specResults .spec-cat-title i {
    color: var(--accent-blue);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
#specResults .spec-cat-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
#specResults .spec-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.82rem;
    line-height: 1.4;
}
#specResults .spec-item {
    background: var(--bg-card-blue, #eff6ff);
}
#specResults .spec-item-text {
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}
#specResults .spec-item-label {
    color: var(--text-muted);
    font-weight: 600;
}
#specResults .spec-item-price {
    color: var(--accent-blue);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .spec-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #specResults .spec-cat-items {
        grid-template-columns: 1fr;
    }
    #specResults .spec-item {
        flex-wrap: wrap;
    }
    #specResults .spec-item-name {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ── Partner Links ─────────────────────────────────────── */
.partner-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.partner-link:hover {
    background: #f8faff;
    border-color: var(--accent-blue-dark, #1d4ed8);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.partner-logo {
    width: 120px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.partner-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
}
.partner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.partner-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.partner-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    border: none;
    transition: filter 0.2s, color 0.2s;
}
.partner-arrow {
    font-size: 0.85rem;
    transition: transform 0.2s;
}
.partner-link:hover .partner-visit {
    opacity: 0.9;
}
.partner-link:hover .partner-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .partner-link {
        flex-direction: column;
        text-align: center;
    }
    .partner-logo {
        width: 80%;
        height: auto;
    }
    .partner-info {
        align-items: center;
    }
    .partner-title {
        white-space: normal;
    }
}

/* --- iOS Charles Wright font vertical fix (mobile only) --- */
@supports (-webkit-touch-callout: none) {
    .plate-input {
        padding: 4px 120px 0 44px;
        line-height: 1;
    }
    .plate-display {
        padding: 18px 22px 8px;
        line-height: 1;
    }
    .vh-info .plate-display {
        padding: 10px 14px 2px;
        line-height: 1;
    }
    .recent-card-plate {
        padding: 8px 10px 3px;
        line-height: 1;
    }
    .acct-vehicle-card-plate {
        padding: 7px 8px 2px;
        line-height: 1;
    }
    .plate-mini {
        padding: 0.6rem 0.6rem 0.25rem;
        line-height: 1;
    }
    .garage-item-plate .plate-display {
        padding: 5px 10px 1px;
        line-height: 1;
    }
    .usage-card-plate {
        padding: 8px 10px 3px;
        line-height: 1;
    }
    .plate-search-sm .plate-input {
        padding-top: 3px;
        padding-bottom: 0;
        line-height: 1;
    }
    .blog-sidebar-card .plate-input {
        padding: 3px 56px 0 44px;
        line-height: 1;
    }
    .garage-add-inner .plate-input {
        padding: 11px 120px 5px 44px;
    }
}
