/* ==========================================================================
   Interstellar Fleet - shared design system (dark, premium)
   Every page extends base.html and should use these classes rather than
   page-level <style> overrides. Printable pages (invoices, certificates,
   reports) set `printable = true` and get the light "doc" theme below.
   ========================================================================== */

:root {
    /* Motorlane brand: navy #0a1c35, green #0a8f62, mint #5fe0b0, gold #ffc24d */
    --bg: #060f1d;
    --bg-glow: rgba(10, 143, 98, 0.10);
    --surface: #0b1829;
    --surface-2: #0f1f34;
    --surface-3: #152841;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #eef2f8;
    --text-muted: #9fadc2;
    --text-faint: #6d7c94;

    --accent: #5fe0b0;          /* mint: links, highlights on navy */
    --accent-hover: #86ecc6;
    --accent-ink: #ffffff;      /* text on buttons */
    --accent-soft: rgba(95, 224, 176, 0.12);
    --btn: #0a8f62;             /* Motorlane green: primary buttons */
    --btn-hover: #0ba572;

    --ok: #5fe0b0;
    --ok-soft: rgba(95, 224, 176, 0.12);
    --warn: #ffc24d;
    --warn-soft: rgba(255, 194, 77, 0.13);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.13);
    --info: #7cb4ff;
    --info-soft: rgba(124, 180, 255, 0.13);
    --muted-soft: rgba(159, 173, 194, 0.14);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    /* legacy names still referenced by some older templates */
    --navy: var(--surface-3);
    --navy-light: var(--surface-2);
    --green: var(--ok);
    --amber: var(--warn);
    --red: var(--danger);
    --card: var(--surface);
    --text-muted-legacy: var(--text-muted);

    color-scheme: dark;
}

/* Light theme for printable documents (invoices, certificates, reports).
   Anything without body.app gets it - including invoices generated before
   the redesign, which were saved as HTML with a plain <body>. */
body:not(.app) {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f6f7f9;
    --surface-3: #eceef2;
    --border: #e3e6eb;
    --border-strong: #cfd4dc;
    --text: #16191f;
    --text-muted: #5d6573;
    --text-faint: #8a92a0;
    --accent: #0a8f62;
    --accent-hover: #087a54;
    --accent-ink: #ffffff;
    --btn: #0a1c35;
    --btn-hover: #14304f;
    --ok: #1f8a4c;
    --warn: #b7791f;
    --danger: #c53030;
    --info: #2b6cb0;
    --shadow: none;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(1100px 500px at 85% -10%, var(--bg-glow), transparent 60%);
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body:not(.app) { background-image: none; display: block; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 650; }
h1 { font-size: 28px; letter-spacing: -0.02em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 15, 29, 0.8);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #0a8f62;
    color: #fff;
    box-shadow: 0 6px 18px rgba(10, 143, 98, 0.35);
    flex-shrink: 0;
}
.brand-sub { color: var(--accent); font-weight: 700; }

.topbar-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.topbar-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 550;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.topbar-links a:hover { color: var(--text); background: var(--surface-2); }
.topbar-links a.active { color: var(--text); background: var(--surface-3); }
.topbar-links .nav-logout { color: var(--text-faint); }

/* ---------- Page ---------- */
.page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    flex: 1 0 auto;
}
body:not(.app) .page { max-width: none; padding: 0; }
body:not(.app) .page > button.no-print:first-child { float: none !important; display: flex; width: fit-content; margin: 16px 16px 16px auto !important; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--text-muted); margin: 6px 0 0; max-width: 640px; }
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 14px;
}
.back-link:hover { color: var(--text); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.footer {
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 8px 20px;
    flex-wrap: wrap;
}
.footer a { color: var(--text-muted); }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.card > :last-child { margin-bottom: 0; }
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head .hint { color: var(--text-faint); font-size: 13px; }
.card-danger { border-color: rgba(255, 107, 107, 0.35); background: linear-gradient(180deg, rgba(255, 107, 107, 0.06), transparent 60%), var(--surface); }
.card-accent { border-color: rgba(95, 224, 176, 0.3); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.card-info { border-color: rgba(110, 168, 255, 0.3); background: linear-gradient(180deg, var(--info-soft), transparent 70%), var(--surface); }
.card-warn { border-color: rgba(255, 194, 77, 0.35); background: linear-gradient(180deg, var(--warn-soft), transparent 70%), var(--surface); }
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.nudge > div { flex: 1 1 320px; min-width: 0; }
.nudge .chip { margin: 6px 4px 0 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }

/* ---------- Buttons ---------- */
button, .btn, input[type="submit"] {
    font-family: inherit;
    background-color: var(--btn);
    color: var(--accent-ink);
    border: 1px solid transparent;
    padding: 10px 16px;
    min-height: 42px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 650;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover { background-color: var(--btn-hover); color: var(--accent-ink); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled, button:disabled:hover { opacity: 0.45; cursor: not-allowed; transform: none; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-secondary { background-color: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background-color: #1c3352; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background-color: transparent; color: var(--danger); border-color: rgba(255, 107, 107, 0.4); }
.btn-danger:hover { background-color: var(--danger-soft); color: var(--danger); }
.btn-success { background-color: var(--ok); color: #04150d; }
.btn-success:hover { background-color: #5ee6ab; color: #04150d; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .icon, .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: 13px; color: var(--text-muted); display: block; margin-top: 12px; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 4px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 15px;
    min-height: 44px;
    font-family: inherit;
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { padding: 9px; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

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

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-error { background: var(--danger-soft); border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.alert-success { background: var(--ok-soft); border-color: rgba(61, 220, 151, 0.35); color: #9ff0cb; }
.error { /* older templates */
    background: var(--danger-soft); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffb3b3;
    padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}

/* ---------- Stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--border-strong);
}
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); font-weight: 550; }
.stat-card .stat-value { font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card .stat-foot { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.stat-card.stat-ok::before { background: var(--ok); }
.stat-card.stat-ok .stat-value { color: var(--ok); }
.stat-card.stat-warn::before { background: var(--warn); }
.stat-card.stat-warn .stat-value { color: var(--warn); }
.stat-card.stat-danger::before { background: var(--danger); }
.stat-card.stat-danger .stat-value { color: var(--danger); }
.stat-card.stat-accent::before { background: var(--accent); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
    white-space: nowrap;
    color: #fff;
    background: var(--surface-3);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge-plain::before { display: none; }
.badge-ok, .badge-pass { background: var(--ok-soft); color: var(--ok); }
.badge-warn, .badge-advisory { background: var(--warn-soft); color: var(--warn); }
.badge-danger, .badge-fail { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--muted-soft); color: var(--text-muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

.result-pass { color: var(--ok); font-weight: 650; }
.result-advisories { color: var(--warn); font-weight: 650; }
.result-fail { color: var(--danger); font-weight: 650; }

/* ---------- Tables ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: middle; }
th {
    color: var(--text-faint);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tr:last-child td { border-bottom: none; }
.table-card { padding: 6px 8px; }
.reg-plate {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-weight: 750;
    letter-spacing: 0.06em;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #f7c600;
    color: #111;
    white-space: nowrap;
}
.cell-sub { display: block; color: var(--text-faint); font-size: 12.5px; }
.cell-actions { text-align: right; white-space: nowrap; }
.empty { color: var(--text-faint); text-align: center; padding: 28px 12px; }

/* ---------- Pills / segmented filters ---------- */
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.pill-nav a {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}
.pill-nav a:hover { color: var(--text); border-color: var(--border-strong); }
.pill-nav a.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-label { font-size: 12px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.toolbar .pill-nav { margin-bottom: 0; }

/* ---------- List rows (attention list, documents, inspections) ---------- */
.list { display: flex; flex-direction: column; }
.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list-title { font-weight: 600; color: var(--text); }
.list-meta { color: var(--text-faint); font-size: 13px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--text-faint);
}
.timeline-item.is-spend::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-title { font-weight: 600; }
.timeline-amount { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline-date { color: var(--text-faint); font-size: 13px; }
.timeline-notes { color: var(--text-muted); margin: 4px 0 0; white-space: pre-line; }

/* ---------- Key facts (vehicle header) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.fact-missing { display: block; border-style: dashed; color: inherit; text-decoration: none; }
.fact-missing:hover { border-color: rgba(255, 194, 77, 0.45); color: inherit; }
.fact-label { font-size: 12px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.fact-value { font-size: 17px; font-weight: 650; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- Thumbnails ---------- */
.thumb-strip { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
    width: 60px; height: 60px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); flex-shrink: 0; color: var(--text-muted);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-more { font-size: 12px; font-weight: 700; }
.doc-thumb { width: 42px; height: 42px; }

/* ---------- Modal ---------- */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); overflow: auto; padding: 5vh 16px; }
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    margin: 0 auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    max-width: 720px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; }
.close-btn { background: var(--surface-3); color: var(--text-muted); width: 36px; min-height: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 20px; }
.close-btn:hover { background: #1c3352; color: var(--text); }
.mot-test-card { border: 1px solid var(--border); padding: 14px; border-radius: 12px; margin-bottom: 10px; background: var(--surface-2); font-size: 14px; color: var(--text-muted); }
.mot-test-card strong { color: var(--text); }
.pass { color: var(--ok); font-weight: 700; }
.fail { color: var(--danger); font-weight: 700; }

/* ---------- Auth pages (login / register) ---------- */
.auth-wrap {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.auth-brand-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.auth-brand-sub { font-size: 13px; color: var(--text-faint); }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 18px; }
.auth-card button { width: 100%; margin-top: 18px; min-height: 46px; font-size: 15px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-alt a { font-weight: 600; }
.auth-foot { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 18px; }

/* ---------- Misc ---------- */
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--border); margin: 18px 0; border: 0; }
.spend-highlight { font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Admin bits ---------- */
.search-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; flex-wrap: wrap; }
.search-row .search-icon { color: var(--text-faint); width: 18px; height: 18px; }
.search-row input { flex: 1 1 200px; min-width: 150px; margin: 0; border: none; background: transparent; box-shadow: none; padding-left: 0; }
.search-row input:focus { box-shadow: none; }
.code-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    letter-spacing: 0.04em;
}
.code-big { font-size: 18px; color: var(--accent); padding: 4px 10px; display: inline-block; margin: 6px 0; }
.activity-stream { max-height: 360px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.activity-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.activity-item:last-child { border-bottom: none; }
.activity-time { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.section-title { font-size: 12px; font-weight: 650; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 28px 0 12px; }
.inline-form { display: inline; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row > * { flex: 1 1 200px; min-width: 150px; }
.form-row > button, .form-row > .btn { flex: 0 0 auto; min-width: 0; }
.field { margin: 0; }
.field input, .field select, .field textarea { margin-bottom: 0; }
details.disclose { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
details.disclose summary { cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 14px; }

.defect-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.defect-list li { font-size: 13.5px; color: var(--text-muted); }

.logo-preview {
    width: 140px; height: 80px; border-radius: 12px; border: 1px dashed var(--border-strong);
    display: grid; place-items: center; background: #fff; padding: 10px; font-size: 13px; flex-shrink: 0;
}
.logo-preview.faint { background: var(--surface-2); }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.step-num {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-size: 13px; margin-right: 6px; vertical-align: 2px;
}
.check-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 0; margin: 0;
    border-bottom: 1px solid var(--border); cursor: pointer; color: var(--text); font-size: 14px; font-weight: 400;
}
.check-row:last-child { border-bottom: none; }
.check-row input { width: 18px; height: 18px; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choice {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2);
    color: var(--text); font-size: 14px; font-weight: 600;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.photo-card {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text);
}
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.photo-caption { display: block; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.photo-card:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Flash messages & account banner ---------- */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.flash-success { background: var(--ok-soft); border-color: rgba(95, 224, 176, 0.35); color: #b8f3dc; }
.flash-error { background: var(--danger-soft); border-color: rgba(255, 107, 107, 0.35); color: #ffc2c2; }
.flash-info { background: var(--info-soft); border-color: rgba(124, 180, 255, 0.35); color: #cfe2ff; }
.account-banner {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(10, 143, 98, 0.18), rgba(10, 143, 98, 0.04));
    font-size: 14px;
}
.account-banner.is-locked { background: linear-gradient(90deg, rgba(255, 194, 77, 0.18), rgba(255, 194, 77, 0.04)); }
.account-banner-inner {
    max-width: 1180px; margin: 0 auto; padding: 10px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap;
}
.account-banner .btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }

/* ---------- Brand wordmark ---------- */
.wordmark { font-weight: 800; letter-spacing: -0.03em; }
.brand-mark svg { display: block; }

/* ---------- Public pages ---------- */
.hero { padding: 40px 0 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.hero-note { color: var(--text-faint); font-size: 13px; margin-top: 12px; }
.hero-visual {
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.section { padding: 48px 0 8px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-head h2 { font-size: 30px; letter-spacing: -0.02em; font-weight: 800; }
.section-head p { color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-icon {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 14px; margin: 0; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.plan-card {
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.plan-card.is-featured { border-color: var(--btn); box-shadow: 0 0 0 1px var(--btn), 0 20px 50px rgba(10, 143, 98, 0.15); }
.plan-card.is-current { border-color: var(--accent); }
.plan-tag {
    position: absolute; top: -11px; left: 22px; background: #ffc24d; color: #2a1d00;
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 17px; }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan-blurb { color: var(--text-muted); font-size: 14px; }
.plan-list { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list li::before { content: "\2713"; color: var(--accent); font-weight: 800; }
.plan-card form, .plan-card .btn { width: 100%; }
.plan-card button { width: 100%; }

.cta-band {
    margin: 48px 0 8px; padding: 36px; border-radius: var(--radius-lg); text-align: center;
    background: linear-gradient(135deg, rgba(10, 143, 98, 0.25), rgba(10, 143, 98, 0.05)), var(--surface);
    border: 1px solid rgba(95, 224, 176, 0.25);
}
.cta-band h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: var(--text-muted); }
.prose li { margin-bottom: 6px; }

/* ---------- Usage meter ---------- */
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--btn); border-radius: 999px; }
.meter.is-full > span { background: var(--warn); }

/* ---------- Walkaround check toggles ---------- */
.check-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: none; }
.check-row-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.check-label { font-size: 15px; font-weight: 500; }
.toggle { position: relative; display: inline-flex; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 3px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label {
    margin: 0; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 650; color: var(--text-muted);
    cursor: pointer; min-width: 74px; text-align: center; transition: background-color .12s ease, color .12s ease;
}
.toggle input:checked + label.t-ok { background: var(--ok-soft); color: var(--ok); }
.toggle input:checked + label.t-defect { background: var(--danger-soft); color: var(--danger); }
.toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.defect-extra { display: none; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--danger-soft); border: 1px solid rgba(255, 107, 107, 0.25); }
.check-item.has-defect .defect-extra { display: block; }
.check-progress { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 8px; }

/* ---------- Driver home ---------- */
.vehicle-tile {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; color: var(--text); margin-bottom: 14px;
}
.vehicle-tile:hover { border-color: var(--border-strong); color: var(--text); }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile-actions .btn { min-height: 48px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Driver chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    background: var(--surface-3); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.check-grid label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.check-grid label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-grid input { margin: 0; }
dialog.sheet-dialog {
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 24px; width: min(560px, calc(100vw - 32px));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
dialog.sheet-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.copy-box { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-box input { flex: 1 1 260px; margin: 0; font-size: 13px; }

.error-page { text-align: center; padding: 60px 0; }
.error-code { font-size: 64px; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; line-height: 1; }

/* ---------- Light mode (user setting) ---------- */
body.app.theme-light {
    --bg: #f3f5f9;
    --bg-glow: rgba(10, 143, 98, 0.06);
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #e9eef5;
    --border: rgba(10, 28, 53, 0.09);
    --border-strong: rgba(10, 28, 53, 0.17);
    --text: #0a1c35;
    --text-muted: #4b5a70;
    --text-faint: #75839a;
    --accent: #0a8f62;
    --accent-hover: #087a54;
    --accent-soft: rgba(10, 143, 98, 0.10);
    --ok: #0a8f62;
    --ok-soft: rgba(10, 143, 98, 0.10);
    --warn: #a86a00;
    --warn-soft: rgba(255, 194, 77, 0.22);
    --danger: #c53030;
    --danger-soft: rgba(197, 48, 48, 0.10);
    --info: #2563c9;
    --info-soft: rgba(37, 99, 201, 0.10);
    --muted-soft: rgba(75, 90, 112, 0.10);
    --shadow: 0 1px 2px rgba(10, 28, 53, 0.06), 0 8px 24px rgba(10, 28, 53, 0.06);
    color-scheme: light;
}
.theme-light .topbar { background: rgba(255, 255, 255, 0.85); }
.theme-light .btn-secondary:hover, .theme-light .close-btn:hover { background-color: #dde4ee; }
.theme-light .flash-success { color: #065f42; }
.theme-light .flash-error, .theme-light .alert-error, .theme-light .error { color: #9b1c1c; }
.theme-light .flash-info { color: #1e4b94; }
.theme-light .alert-success { color: #065f42; }
.theme-light input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.theme-light .hero-visual, .theme-light .auth-card { box-shadow: 0 20px 50px rgba(10, 28, 53, 0.12); }
.theme-light .pill-nav a.active { background: var(--text); color: #fff; }

/* ---------- Header extras: search, bell, theme ---------- */
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; min-height: 38px;
    padding: 0; border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--text-muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; }
.bell-count {
    position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
}
.header-search { position: relative; }
.header-search input { width: 200px; margin: 0; min-height: 36px; padding: 6px 12px 6px 32px; font-size: 13.5px; border-radius: 999px; background: var(--surface-2); }
.header-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-faint); }

/* ---------- Bottom bar for owners on phones ---------- */
.bottom-nav { display: none; }

/* ---------- Health ring ---------- */
.health-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.health-ring { --pct: 0; --ring: var(--ok); width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--surface-3) 0); display: grid; place-items: center; }
.health-ring > div { width: 82px; height: 82px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.health-ring strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.health-ring span { font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Mini bar chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 6px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-fill { width: 100%; max-width: 42px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--btn)); min-height: 2px; }
.bar-label { font-size: 11px; color: var(--text-faint); }
.bar-value { font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 6px 0; }
.hbar-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--btn); border-radius: 999px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs .tab-count { font-size: 11px; background: var(--surface-3); color: var(--text-muted); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.tab-panel[hidden] { display: none; }

/* ---------- Vehicle photo ---------- */
.vehicle-hero { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.vehicle-photo {
    width: 168px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--surface-2);
    border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-faint); flex-shrink: 0;
}
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo > svg, .vehicle-photo a svg { width: 34px; height: 34px; }
.vehicle-thumb { width: 54px; height: 38px; border-radius: 7px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; border: 1px solid var(--border); }
.vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Checklist ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.step { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 550; }
.step:hover { color: var(--text); border-color: var(--border-strong); }
.step-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; font-size: 12px; }
.step.is-done { color: var(--text-faint); text-decoration: line-through; }
.step.is-done .step-dot { background: var(--btn); border-color: var(--btn); color: #fff; }
.progress-line { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 4px 0 14px; }
.progress-line span { display: block; height: 100%; background: var(--btn); }

/* ---------- Calendar ---------- */
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { text-align: center; padding: 4px; }
.cal td { vertical-align: top; height: 96px; padding: 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
.cal td.other-month { opacity: .4; }
.cal td.today { border-color: var(--accent); }
.cal .day-num { font-weight: 700; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; display: block; }
.cal .ev { display: block; padding: 2px 6px; border-radius: 5px; margin-bottom: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: var(--accent); }
.cal .ev-mot_expiry, .cal .ev-tax_due_date { background: var(--warn-soft); color: var(--warn); }
.cal .ev-insurance_expiry, .cal .ev-breakdown_expiry, .cal .ev-warranty_expiry, .cal .ev-lease_end { background: var(--info-soft); color: var(--info); }
.cal .ev-fine, .cal .ev-licence { background: var(--danger-soft); color: var(--danger); }
.cal .ev-booking { background: var(--muted-soft); color: var(--text-muted); }
.agenda-day { font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 6px; }

/* ---------- Signature pad ---------- */
.sig-pad { width: 100%; height: 160px; border-radius: 12px; background: #fff; border: 1px dashed var(--border-strong); touch-action: none; display: block; }

/* ---------- QR stickers (printable) ---------- */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qr-sticker { background: #fff; color: #0a1c35; border-radius: 16px; padding: 16px; text-align: center; border: 1px solid var(--border-strong); break-inside: avoid; }
.qr-code svg { width: 170px; height: 170px; display: block; margin: 10px auto; }
.qr-sticker .reg-plate { font-size: 18px; }
.qr-sticker .qr-hint { font-size: 12px; color: #4b5a70; margin-top: 4px; }
.qr-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 13px; }

/* ---------- Landing page ---------- */
.lp-hero { padding: 48px 0 32px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 18px; }
.lp-hero h1 .hl { background: linear-gradient(90deg, var(--accent), #b6f5dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { font-size: 19px; color: var(--text-muted); max-width: 540px; margin-bottom: 28px; line-height: 1.5; }
.lp-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.lp-ticks li::before { content: "\2713"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.lp-pill b { background: var(--btn); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }

.mock-stage { position: relative; padding: 0 0 40px 0; }
.mock-window { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02) inset; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.mock-bar span { margin-left: 10px; font-size: 11.5px; color: var(--text-faint); background: var(--surface); padding: 3px 12px; border-radius: 999px; }
.mock-body { padding: 16px; display: grid; gap: 12px; font-size: 13px; }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock-stat small { display: block; color: var(--text-faint); font-size: 11px; }
.mock-stat strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.mock-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.mock-panel h4 { margin: 0 0 8px; font-size: 13px; }
.mock-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mock-line:last-child { border-bottom: none; padding-bottom: 0; }
.mock-line .reg-plate { font-size: 11px; padding: 2px 6px; }
.mock-line .badge { font-size: 11px; padding: 1px 8px; }
.mock-phone {
    position: absolute; right: -18px; bottom: 0; width: 230px; border-radius: 30px; padding: 10px;
    background: #050b16; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.mock-phone .screen { background: var(--bg); border-radius: 22px; overflow: hidden; padding: 14px 12px; font-size: 12px; min-height: 360px; }
.mock-phone .notch { width: 70px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.16); margin: 0 auto 12px; }
.mock-phone .pbtn { display: block; text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; font-size: 12px; margin-top: 8px; }
.mock-phone .pbtn.green { background: var(--btn); color: #fff; }
.mock-phone .pbtn.ghost { background: var(--surface-3); color: var(--text); }
.mock-phone .pbtn.red { border: 1px solid rgba(255,107,107,.5); color: var(--danger); }
.mock-check { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mock-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 2px; font-size: 10.5px; font-weight: 700; }
.mock-toggle span { padding: 3px 7px; border-radius: 6px; color: var(--text-faint); }
.mock-toggle span.on { background: var(--ok-soft); color: var(--ok); }
.mock-toggle span.bad { background: var(--danger-soft); color: var(--danger); }

.lp-strip { display: flex; justify-content: center; align-items: center; gap: 12px 34px; flex-wrap: wrap; padding: 22px 0; margin: 12px 0 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: 14px; font-weight: 600; }
.lp-strip span { display: inline-flex; align-items: center; gap: 8px; }
.lp-strip svg { width: 18px; height: 18px; color: var(--accent); }

.lp-section { padding: 72px 0 8px; }
.lp-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.lp-h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.lp-sub { font-size: 17px; color: var(--text-muted); max-width: 620px; }
.lp-center { text-align: center; }
.lp-center .lp-sub { margin: 0 auto; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pain .before { color: var(--text-faint); font-size: 14px; text-decoration: line-through; text-decoration-color: rgba(255,107,107,.6); margin-bottom: 10px; }
.pain .after { font-weight: 650; font-size: 16px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0 0; }
.story.flip .story-text { order: 2; }
.story-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.story-text li { display: flex; gap: 10px; color: var(--text-muted); font-size: 15px; }
.story-text li::before { content: "\2713"; color: var(--accent); font-weight: 800; }
.story-visual { background: radial-gradient(400px 260px at 70% 20%, rgba(10,143,98,.18), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.who { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.who .size { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.who h3 { font-size: 19px; margin: 8px 0; }
.who p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.everything { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.everything div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.everything svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.faq { max-width: 780px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

.lp-final { margin: 80px 0 12px; padding: 56px 28px; border-radius: 24px; text-align: center;
    background: radial-gradient(600px 300px at 50% 0%, rgba(95,224,176,.22), transparent 70%), linear-gradient(135deg, rgba(10,143,98,.28), rgba(10,143,98,.04)), var(--surface);
    border: 1px solid rgba(95,224,176,.28); }
.lp-final h2 { font-size: 40px; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }

/* ---------- Marketing site: menus, page heroes, articles ---------- */
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .site-nav summary {
    color: var(--text-muted); font-size: 14px; font-weight: 550; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; list-style: none;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: " \25BE"; font-size: 11px; opacity: .7; }
.site-nav > a:hover, .site-nav summary:hover, .site-nav details[open] summary { color: var(--text); background: var(--surface-2); }
.site-nav details { position: relative; }
.site-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 340px; z-index: 80;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px;
    box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.site-menu a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); }
.site-menu a:hover { background: var(--surface-2); color: var(--text); }
.site-menu .feature-icon { width: 34px; height: 34px; margin: 0; flex-shrink: 0; }
.site-menu .feature-icon svg { width: 17px; height: 17px; }
.site-menu strong { display: block; font-size: 14px; }
.site-menu small { display: block; color: var(--text-faint); font-size: 12.5px; line-height: 1.35; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel {
    position: absolute; left: 12px; right: 12px; top: 62px; z-index: 90; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 16px; padding: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.6); max-height: calc(100vh - 80px); overflow-y: auto;
}
.mobile-panel .group { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 12px 10px 4px; }
.mobile-panel a { display: block; padding: 10px; border-radius: 10px; color: var(--text); font-weight: 550; }
.mobile-panel a:hover { background: var(--surface-2); }

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 24px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; }
.site-footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 0 0 12px; }
.site-footer a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { max-width: 1180px; margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-hero { padding: 40px 0 8px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.page-hero.text-only { grid-template-columns: 1fr; max-width: 820px; }
.page-hero h1 { font-size: 46px; line-height: 1.07; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 14px; }
.page-hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 12px; }
.breadcrumbs a { color: var(--text-muted); }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.benefit h3 { font-size: 17px; margin: 12px 0 6px; }
.benefit p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.link-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.link-card:hover { border-color: rgba(95,224,176,.4); color: var(--text); transform: translateY(-2px); }
.link-card h3 { margin: 12px 0 6px; font-size: 17px; }
.link-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }
.link-card .more { color: var(--accent); font-weight: 650; font-size: 14px; }

.article { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; padding-top: 24px; }
.article-toc { position: sticky; top: 90px; align-self: start; font-size: 13.5px; }
.article-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 10px; }
.article-toc a { display: block; padding: 5px 0; color: var(--text-muted); }
.article-body { font-size: 16.5px; line-height: 1.7; }
.article-body h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.article-body h3 { font-size: 19px; margin: 26px 0 8px; }
.article-body p, .article-body li { color: var(--text-muted); }
.article-body strong { color: var(--text); }
.article-body ol, .article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-meta { color: var(--text-faint); font-size: 13.5px; margin-bottom: 8px; }
.callout { border-radius: 14px; padding: 18px 20px; margin: 24px 0; background: var(--info-soft); border: 1px solid rgba(124,180,255,.3); }
.callout.warn { background: var(--warn-soft); border-color: rgba(255,194,77,.35); }
.callout p:last-child { margin-bottom: 0; }
.cta-inline { margin: 36px 0; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, rgba(10,143,98,.25), rgba(10,143,98,.04)), var(--surface); border: 1px solid rgba(95,224,176,.3); }
.cta-inline h3 { margin: 0 0 6px; font-size: 20px; }
.cta-inline p { color: var(--text-muted); margin: 0 0 14px; font-size: 15px; }
.table-simple { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.table-simple th, .table-simple td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; }
.table-simple th { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ---------- Home page: feature rows, steps, day timeline, comparison, demo ---------- */
.feature-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.feature-row { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.feature-row:hover { border-color: rgba(95,224,176,.4); color: var(--text); transform: translateY(-2px); }
.feature-row h3 { font-size: 21px; margin: 12px 0 6px; letter-spacing: -.01em; }
.feature-row p { color: var(--text-muted); margin: 0; font-size: 15px; }
.feature-row .more { color: var(--accent); font-weight: 650; font-size: 14px; }
.feature-row .visual { pointer-events: none; }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; position: relative; }
.step-card .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--btn); color: #fff; margin-bottom: 14px; }
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.day { max-width: 820px; margin: 32px auto 0; position: relative; }
.day::before { content: ""; position: absolute; left: 74px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--btn), rgba(10,143,98,.1)); }
.day-item { display: grid; grid-template-columns: 60px 1fr; gap: 34px; padding: 0 0 22px; position: relative; }
.day-item::before { content: ""; position: absolute; left: 68px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.day-time { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; padding-top: 2px; }
.day-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.day-card strong { display: block; margin-bottom: 2px; }
.day-card span { color: var(--text-muted); font-size: 14.5px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; text-align: left; vertical-align: top; }
.compare thead th { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text-muted); background: var(--surface-2); }
.compare thead th.us { color: var(--text); background: rgba(10,143,98,.18); }
.compare td.us { background: rgba(10,143,98,.07); color: var(--text); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare .no { color: var(--text-faint); }

.demo-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 72px; padding: 34px; border-radius: 24px;
    background: radial-gradient(500px 260px at 90% 10%, rgba(95,224,176,.18), transparent 70%), var(--surface); border: 1px solid var(--border-strong); }
.demo-band h2 { font-size: 32px; letter-spacing: -.03em; font-weight: 800; margin-bottom: 8px; }
.demo-band p { color: var(--text-muted); font-size: 16px; }
.demo-banner { background: linear-gradient(90deg, rgba(124,180,255,.2), rgba(124,180,255,.05)); border-bottom: 1px solid var(--border); font-size: 14px; }

/* ---------- Motorlane marketplace band ---------- */
.ml-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin-top: 72px; padding: 36px; border-radius: 24px;
    background: radial-gradient(520px 280px at 85% 20%, rgba(255,194,77,.12), transparent 70%), linear-gradient(135deg, #0a1c35, #0b2140); border: 1px solid rgba(255,255,255,.1); }
.ml-band h2 { font-size: 32px; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }
.ml-band p { color: var(--text-muted); font-size: 16px; margin: 0; }
.theme-light .ml-band { background: radial-gradient(520px 280px at 85% 20%, rgba(255,194,77,.18), transparent 70%), linear-gradient(135deg, #0a1c35, #0b2140); }
.theme-light .ml-band h2, .theme-light .ml-band .ml-title { color: #fff; }
.theme-light .ml-band p, .theme-light .ml-band .lp-ticks { color: #c9d4e4; }
.ml-word { color: #5fe0b0; }
.ml-listing { background: #fff; color: #0a1c35; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); max-width: 360px; justify-self: center; width: 100%; }
.ml-photo { position: relative; height: 170px; display: grid; place-items: center; color: #9fb3c8; background: linear-gradient(135deg, #e8eef6, #d5dfeb); }
.ml-badge { position: absolute; top: 12px; left: 12px; background: #0a8f62; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ml-body { padding: 16px 18px 18px; }
.ml-title { font-weight: 700; font-size: 16px; }
.ml-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; color: #0a1c35; }
.ml-meta { font-size: 13px; color: #4b5a70; margin-top: 2px; }
.ml-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    body { font-size: 15px; }
    .page { padding: 20px 16px 48px; }
    .topbar-inner { padding: 10px 16px; flex-wrap: nowrap; }
    .nav-hide-sm, .header-search { display: none; }
    body.has-bottom-nav { padding-bottom: 68px; }
    body.has-bottom-nav .topbar-links { display: none; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: rgba(6, 15, 29, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .theme-light .bottom-nav { background: rgba(255, 255, 255, 0.94); }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-faint); padding: 4px 0; position: relative; }
    .bottom-nav a.active { color: var(--accent); }
    .bottom-nav svg { width: 22px; height: 22px; }
    .bottom-nav .bell-count { top: -1px; right: calc(50% - 20px); }
    .vehicle-photo { width: 100%; height: 180px; }
    .vehicle-photo.is-empty { height: 76px; }
    .vehicle-photo.is-empty a { display: flex !important; gap: 8px; align-items: center; }
    .vehicle-photo.is-empty svg { width: 22px; height: 22px; }
    .vehicle-photo.is-empty br { display: none; }
    .cal td { height: 56px; padding: 3px; }
    .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
    .topbar-links { flex-wrap: nowrap; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .topbar-links::-webkit-scrollbar { display: none; }
    .topbar-links a { padding: 7px 10px; font-size: 13.5px; }
    h1 { font-size: 23px; }
    .card { padding: 18px; border-radius: 12px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card .stat-value { font-size: 24px; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn, .page-head .actions button { flex: 1 1 auto; }
    .auth-card { padding: 24px; }
    .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
    .lp-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
    .lp-hero h1 { font-size: 38px; }
    .lp-hero .lead { font-size: 17px; }
    .mock-window { display: none; }
    .mock-stage { padding: 0; display: flex; justify-content: center; }
    .mock-phone { position: static; width: 260px; }
    .lp-section { padding-top: 52px; }
    .lp-h2 { font-size: 28px; }
    .pain-grid, .who-grid { grid-template-columns: 1fr; }
    .everything { grid-template-columns: 1fr 1fr; }
    .story, .story.flip { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
    .story.flip .story-text { order: 0; }
    .lp-final { padding: 36px 18px; }
    .lp-final h2 { font-size: 28px; }
    .site-nav { display: none; }
    .feature-rows, .steps-3, .demo-band { grid-template-columns: 1fr; }
    .demo-band { padding: 24px; }
    .demo-band h2 { font-size: 26px; }
    .day::before { left: 54px; }
    .day-item { grid-template-columns: 44px 1fr; gap: 26px; }
    .day-item::before { left: 48px; }
    .compare th, .compare td { padding: 10px; font-size: 13px; }
    .compare th:nth-child(4), .compare td:nth-child(4) { display: none; }
    .compare td:first-child { min-width: 120px; color: var(--text); }
    .mobile-menu { display: block; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .ml-band { grid-template-columns: 1fr; padding: 24px; }
    .ml-band h2 { font-size: 26px; }
    .page-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
    .page-hero h1 { font-size: 34px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .article { grid-template-columns: 1fr; gap: 0; }
    .article-toc { display: none; }
    .article-body { font-size: 16px; }
    .hero h1 { font-size: 34px; }
    .hero-visual { display: none; }
    .section-head h2 { font-size: 24px; }
    .cta-band { padding: 26px 18px; }
    .account-banner-inner { padding: 10px 16px; }
    .check-label { font-size: 14px; }
    .toggle label { padding: 9px 12px; min-width: 64px; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Tables marked .table-stack turn into cards on phones */
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { padding: 14px 4px; border-bottom: 1px solid var(--border); }
    .table-stack tr:last-child { border-bottom: none; }
    .table-stack td { border: none; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .table-stack td > span { text-align: right; }
    .table-stack td::before { content: attr(data-label); color: var(--text-faint); font-size: 13px; font-weight: 550; }
    .table-stack td.cell-primary::before { content: none; }
    .table-stack td.cell-actions { justify-content: flex-start; padding-top: 10px; }
    .table-stack td.cell-actions::before { content: none; }
    .table-stack td.cell-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 721px) and (max-width: 1000px) {
    .lp-hero { grid-template-columns: 1fr; }
    .mock-phone { right: 8px; }
    .everything { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
    .brand-name { display: none; }
}

@media print {
    .topbar, .footer, .no-print { display: none !important; }
    .page { max-width: 100%; padding: 0; }
    body { background: white; color: #000; }
}

/* ================================================================
   Admin portal: left sidebar shell
   ================================================================ */
.admin-portal main.page { max-width: none; padding: 0; }
.ap-shell { display: flex; min-height: 100vh; }
.ap-side {
    position: sticky; top: 0; height: 100vh; width: 248px; flex: 0 0 248px;
    display: flex; flex-direction: column; gap: 6px; padding: 18px 12px;
    background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; z-index: 40;
}
.ap-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; color: var(--text); font-weight: 750; font-size: 15px; }
.ap-brand:hover { color: var(--text); }
.ap-brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }
.ap-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ap-group { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); padding: 14px 12px 6px; }
.ap-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
    color: var(--text-muted); font-size: 14px; font-weight: 550; text-decoration: none; transition: background .15s, color .15s;
}
.ap-link svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.ap-link:hover { background: var(--surface-2); color: var(--text); }
.ap-link.active { background: var(--accent-soft); color: var(--accent); }
.ap-link.active svg { opacity: 1; }
.ap-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--warn); color: #1a1300; font-size: 11.5px; font-weight: 750; text-align: center; }
.ap-side-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ap-me { display: flex; align-items: center; gap: 10px; padding: 4px 10px; min-width: 0; }
.ap-me svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--surface-3); flex: 0 0 30px; }
.ap-me span { min-width: 0; }
.ap-me strong { display: block; font-size: 13.5px; }
.ap-me small { display: block; font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ap-top {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.ap-search { position: relative; flex: 1 1 auto; max-width: 520px; margin: 0; }
.ap-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-faint); }
.ap-search input { margin: 0; padding-left: 36px; min-height: 40px; background: var(--surface); }
.ap-top .icon-btn { margin-left: auto; position: relative; }
.ap-burger { display: none; }
.ap-content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.ap-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.ap-head h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.02em; }
.ap-head .subtitle { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-head .subtitle svg { width: 15px; height: 15px; color: var(--accent); }
.ap-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-head-actions .btn svg, .ap-ticket .btn svg { width: 16px; height: 16px; }

.ap-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ap-kpi {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s;
}
a.ap-kpi:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.ap-kpi-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.ap-kpi strong { font-size: 30px; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; }
.ap-kpi small { font-size: 12.5px; color: var(--text-faint); }
.ap-kpi-accent { background: linear-gradient(135deg, rgba(10, 143, 98, .28), rgba(10, 143, 98, .06)); border-color: rgba(95, 224, 176, .25); }
.ap-delta { font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.ap-delta.up { color: var(--ok); background: var(--ok-soft); }
.ap-delta.down { color: var(--danger); background: var(--danger-soft); }

.ap-mini-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.ap-mini-kpis > div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ap-mini-kpis span { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.ap-mini-kpis strong { font-size: 20px; font-weight: 750; }
.text-warn { color: var(--warn); }

.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ap-grid > .card, .ap-grid > div > .card { margin: 0; height: 100%; }
.ap-span-2 { grid-column: span 2; }
.ap-row-link { color: inherit; text-decoration: none; border-radius: 8px; }
.ap-row-link:hover { background: var(--surface-2); color: inherit; }
.ap-empty { display: flex; align-items: center; gap: 8px; color: var(--text-faint); padding: 12px 4px; }
.ap-empty svg { width: 18px; height: 18px; color: var(--ok); }
.ap-tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-muted); margin-right: 4px; }
.ap-path { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ap-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: var(--text-faint); }
.tone-ok { background: var(--ok); } .tone-warn { background: var(--warn); } .tone-info { background: var(--info); }
.tone-muted { background: var(--text-faint); } .tone-accent { background: var(--btn); } .tone-danger { background: var(--danger); }

.ap-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 18px; }
.ap-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 20px; }
.ap-bar-fill { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--btn)); min-height: 2px; }
.ap-bar-n { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ap-bar-label { position: absolute; bottom: 0; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.ap-stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 6px 0 14px; }
.ap-stack span { display: block; height: 100%; }

.ap-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.ap-tabs a { padding: 9px 14px; color: var(--text-muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.ap-tabs a:hover { color: var(--text); }
.ap-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.ap-tabs a span { font-size: 12px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); margin-left: 4px; }
.ap-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.ap-seg a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.ap-seg a.active { background: var(--surface-3); color: var(--text); }

.ap-chart { position: relative; height: 230px; }
.ap-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ap-grid-line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ap-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ap-line-2 { stroke: var(--info); stroke-width: 2; stroke-dasharray: 4 4; }
.ap-area { fill: var(--accent-soft); }
.ap-chart-hover { position: absolute; inset: 0; display: flex; }
.ap-chart-hover span { flex: 1; }
.ap-chart-hover span:hover { background: linear-gradient(180deg, transparent, var(--accent-soft)); }
.ap-chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); margin-top: 8px; }

.ap-toplist { display: flex; flex-direction: column; gap: 4px; }
.ap-top-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; overflow: hidden; }
.ap-top-row > span { position: relative; }
.ap-top-fill { position: absolute !important; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 7px; }
.ap-top-n { font-weight: 700; white-space: nowrap; }
.ap-top-n .faint { font-weight: 500; margin-right: 10px; }
.ap-funnel { display: flex; flex-direction: column; gap: 10px; }
.ap-funnel-step { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 3fr) 60px 50px; align-items: center; gap: 12px; font-size: 14px; }
.ap-funnel-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ap-funnel-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--btn), var(--accent)); }
.ap-funnel-step strong { text-align: right; }
.ap-device { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.ap-device strong { text-align: right; }

.ap-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ap-ticket aside .card { margin-bottom: 16px; }
.ap-ticket aside .btn { display: inline-flex; justify-content: center; gap: 6px; }
.ap-ticket-row { align-items: center; }

/* Conversation threads (support desk, both sides) */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.msg-staff { align-self: flex-start; background: linear-gradient(135deg, rgba(10, 143, 98, .2), rgba(10, 143, 98, .05)); border-color: rgba(95, 224, 176, .22); border-bottom-left-radius: 4px; }
.msg-customer { align-self: flex-end; border-bottom-right-radius: 4px; }
.admin-portal .msg-customer { align-self: flex-start; }
.admin-portal .msg-staff { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; overflow-wrap: anywhere; }

/* Banners: view-as and announcements */
.view-as-banner { background: linear-gradient(90deg, rgba(255, 194, 77, .26), rgba(255, 194, 77, .08)); border-bottom: 1px solid rgba(255, 194, 77, .35); font-size: 14px; }
.view-as-banner svg, .notice-banner svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.notice-banner { border-bottom: 1px solid var(--border); font-size: 14px; }
.notice-info { background: linear-gradient(90deg, rgba(124, 180, 255, .18), rgba(124, 180, 255, .04)); }
.notice-success { background: linear-gradient(90deg, rgba(95, 224, 176, .18), rgba(95, 224, 176, .04)); }
.notice-warning { background: linear-gradient(90deg, rgba(255, 194, 77, .2), rgba(255, 194, 77, .05)); }
.notice-banner .icon-btn { font-size: 20px; line-height: 1; width: 32px; height: 32px; }

@media (max-width: 1100px) {
    .ap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-mini-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-ticket { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .ap-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
    .ap-toggle:checked ~ .ap-side { transform: none; }
    .ap-scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }
    .ap-toggle:checked ~ .ap-scrim { display: block; }
    .ap-burger { display: inline-flex; margin-left: 0 !important; }
    .ap-top { padding: 10px 16px; }
    .ap-content { padding: 18px 16px 48px; }
    .ap-grid { grid-template-columns: 1fr; }
    .ap-span-2 { grid-column: auto; }
}
@media (max-width: 560px) {
    .ap-kpi strong { font-size: 24px; }
    .ap-mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-head h1 { font-size: 23px; }
    .ap-funnel-step { grid-template-columns: 1fr 50px 44px; }
    .ap-funnel-step .ap-funnel-bar { display: none; }
    .ap-bars { gap: 4px; }
    .ap-bar-label { display: none; }
    .msg { max-width: 100%; }
}
@media (max-width: 720px) { .ap-hide-sm { display: none !important; } }

/* Empty rows in stacked tables stay one centred line on phones */
.table-stack td.empty { display: block !important; text-align: center; }
.table-stack td.empty::before { content: none !important; }

/* Driver app: safety warnings and the emergency strip */
.stop-banner { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px;
    background: var(--danger-soft); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffd0d0; font-size: 14px; line-height: 1.45; }
.stop-banner strong { color: #fff; }
.stop-banner svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--danger); margin-top: 1px; }
.theme-light .stop-banner { color: #8a1c1c; }
.theme-light .stop-banner strong { color: #5c0f0f; }
.sos-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 18px;
    border-radius: var(--radius); border: 1px solid rgba(255, 107, 107, 0.35); background: linear-gradient(90deg, rgba(255, 107, 107, 0.14), rgba(255, 107, 107, 0.03)); }
.sos-card strong { display: block; font-size: 16px; }
.sos-card small { color: var(--text-muted); font-size: 13px; }
.sos-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle, .auth-card .pw-toggle {
    width: auto; margin: 0; min-width: 0;
    position: absolute; right: 6px; top: calc(50% + 1px); transform: translateY(-50%); min-height: 0; height: 30px; padding: 0 10px;
    background: transparent; border: 0; color: var(--accent); font-size: 13px; font-weight: 650; box-shadow: none; min-height: 0 !important; height: 30px;
}
.pw-toggle:hover, .auth-card .pw-toggle:hover { background: var(--surface-3); color: var(--accent); }
.pw-toggle:active { transform: translateY(-50%); }
.lp-trust .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .lp-trust .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-trust .benefit-grid { grid-template-columns: 1fr; } }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.invite-actions .btn, .invite-actions button { flex: 1 1 160px; }

/* ================================================================
   Home page (2026 overhaul): light, clean, sells
   ================================================================ */
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.hp-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0 40px; }
.hp-hero h1 { font-size: 56px; line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; }
.hp-hero h1 .hl { background: linear-gradient(90deg, var(--accent), #5fe0b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-light .hp-hero h1 .hl, .theme-light .lp-hero h1 .hl { background: linear-gradient(90deg, #0a8f62, #13b57d); -webkit-background-clip: text; background-clip: text; }
.hp-hero .lead { font-size: 19px; line-height: 1.55; color: var(--text-muted); max-width: 560px; margin: 0 0 28px; }
.hp-intro { max-width: 720px; margin: 0 auto 8px; }
.hp-rows { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.hp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.hp-row.is-flipped .hp-row-copy { order: 2; }
.hp-row-copy h3 { font-size: 28px; letter-spacing: -0.02em; margin: 14px 0 10px; }
.hp-row-copy p { color: var(--text-muted); font-size: 16.5px; line-height: 1.6; margin: 0 0 6px; }
.hp-ticks { flex-direction: column; gap: 8px; margin: 14px 0 18px; font-size: 15px; color: var(--text); }
.hp-more { font-weight: 650; color: var(--accent); }
.hp-row-visual { pointer-events: none; }
.hp-row-visual .mock-panel { margin: 0; box-shadow: var(--shadow); }
.hp-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 22px auto 0; padding: 18px 22px;
    max-width: 920px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); text-align: left; }
.hp-demo strong { display: block; font-size: 16px; }
.hp-demo .muted { font-size: 14.5px; }
.hp-tag { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.theme-light .lp-strip { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); }
.theme-light .lp-final { background: radial-gradient(600px 300px at 50% 0%, rgba(10,143,98,.10), transparent 70%), linear-gradient(135deg, #eafaf3, #ffffff); border-color: rgba(10,143,98,.22); }
.theme-light .feature-row:hover, .theme-light .link-card:hover { border-color: rgba(10,143,98,.35); }
@media (max-width: 960px) {
    .hp-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
    .hp-hero h1 { font-size: 40px; }
    .hp-row { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .hp-row.is-flipped .hp-row-copy { order: 0; }
}
@media (max-width: 560px) {
    .hp-hero h1 { font-size: 34px; }
    .hp-hero .lead { font-size: 17px; }
    .hp-row-copy h3 { font-size: 23px; }
    .btn-lg { width: 100%; }
}
/* Dashboard headline numbers: four across, compact on phones */
.dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) {
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dash-stats .stat-card { padding: 12px 14px; }
    .dash-stats .stat-value { font-size: 24px; }
    .dash-stats .stat-foot { display: none; }
    .page-head .actions .btn-secondary { flex: 0 0 auto; }
}
/* Embedded checkout page */
.pay-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.pay-summary { position: sticky; top: 84px; margin: 0; }
.pay-form { margin: 0; min-height: 420px; padding: 8px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.45; }
.pay-note svg, .pay-secure svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
.pay-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 14px 0 0; }
#checkout-loading { padding: 24px; text-align: center; }
@media (max-width: 860px) { .pay-layout { grid-template-columns: 1fr; } .pay-summary { position: static; } }
.check-schedule { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.check-every { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-muted); }
.check-schedule .check-every[hidden] { display: none !important; }
/* Subscription page */
.sub-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px;
    background: var(--warn-soft); border: 1px solid rgba(255, 194, 77, 0.45); }
.sub-alert svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--warn); margin-top: 2px; }
.sub-alert strong { display: block; font-size: 16px; margin-bottom: 2px; }
.sub-alert span { color: var(--text-muted); font-size: 14.5px; }
.sub-card { padding: 22px; }
.sub-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sub-label { display: block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 4px; }
.sub-plan { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.sub-price { color: var(--text-muted); font-size: 15px; margin-top: 2px; }
.sub-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.sub-facts strong { display: block; font-size: 16px; }
.sub-facts small { display: block; color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); align-items: center; }
.sub-actions .inline-form { margin: 0; }
.sub-cancel { margin-left: auto !important; }
.sub-cancel button { color: var(--danger); }
@media (max-width: 720px) { .sub-facts { grid-template-columns: 1fr; } .sub-cancel { margin-left: 0 !important; } }
/* Motorlane example listing: a real photo, and the whole card links to Motorlane */
a.ml-listing { display: block; text-decoration: none; transition: transform .15s ease; }
a.ml-listing:hover { transform: translateY(-3px); color: #0a1c35; }
.ml-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-cta { margin-top: 10px; font-weight: 700; font-size: 14px; color: #0a8f62; }
.theme-light .ml-band .ml-listing .ml-title { color: #0a1c35; }
