/* ============================================================================
   Drivio - Visual System v2
   A refined, production-SaaS-grade light UI.
   Bright · vibrant · soothing. Pure CSS. No frameworks, no CDN (fonts aside).

   CONTENTS
     01  Design tokens (:root)
     02  Reset & base
     03  Ambient aurora background
     04  App shell
     05  Sidebar & brand
     06  Topbar, search, bell menu, user chip
     07  Content, page head, breadcrumb
     08  Cards, buttons
     09  Chips, status pills, badges
     10  Dashboard (hero, gauge, KPIs, radar, donut, category)
     11  Vehicles grid & number plate
     12  Vehicle detail - RC smart-card, score, owner, challans, vault
     13  Documents matrix
     14  Alerts, settings, phone/SMS mockup
     15  Owners
     16  Add-vehicle wizard
     17  Empty states, toasts, modals
     18  Motion
     19  Responsive, mobile nav, drawer
   ========================================================================== */

/* ==========================================================================
   01 · DESIGN TOKENS
   ========================================================================== */
:root {
  /* Type families ------------------------------------------------------- */
  --ff: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", "Roboto Mono", monospace;
  --ff-num: var(--ff-mono); /* alias - data/numeric text */

  /* Type scale (fluid-ish, rem base 16) --------------------------------- */
  --fs-11: 11px;  --fs-12: 12px;  --fs-13: 13px;  --fs-14: 14px;
  --fs-16: 16px;  --fs-18: 18px;  --fs-22: 22px;  --fs-26: 26px;
  --fs-32: 32px;  --fs-40: 40px;

  /* Spacing scale - 4px base ------------------------------------------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 28px;  --s-8: 32px;
  --s-10: 40px; --s-12: 48px;

  /* Canvas & surfaces --------------------------------------------------- */
  --canvas: #FAFBFD;
  --canvas-2: #F3F6FC;
  --surface: #FFFFFF;
  --surface-2: #FCFDFF;
  --surface-veil: rgba(255, 255, 255, 0.78);
  --line: #EAEEF6;                    /* default hairline */
  --line-strong: rgba(15, 23, 42, 0.10);
  --hairline: rgba(15, 23, 42, 0.06); /* card borders */
  --line-soft: #F1F4FB;

  /* Ink scale ----------------------------------------------------------- */
  --ink: #0B1526;      /* headings */
  --ink-2: #3B475C;    /* body */
  --ink-3: #64748B;    /* tertiary / muted */
  --ink-4: #94A3B8;    /* faint */
  --ink-inv: #FFFFFF;

  /* Brand --------------------------------------------------------------- */
  --indigo: #4F6BFF;
  --indigo-600: #3F55E6;
  --indigo-700: #3345C4;
  --teal: #17C4C4;
  --teal-600: #0FA8A8;
  --grad: #4F5DE8;          /* solid brand indigo */
  --grad-bright: #5A6BFF;   /* solid bright indigo */
  --grad-soft: #EEF2FF;     /* solid ultra-light indigo tint */
  --grad-warm: #FFF0F4;     /* solid warm blush tint */

  /* Category ------------------------------------------------------------ */
  --gcv: #E58A00;    --gcv-bg: #FEF2DE;   --gcv-ink: #8A5307;
  --pcv: #2E97E6;    --pcv-bg: #E2F2FE;   --pcv-ink: #145E93;
  --misc: #8B5CF6;   --misc-bg: #F0EAFF;  --misc-ink: #5B32B5;
  --pvt: #10B489;    --pvt-bg: #DBF6EC;   --pvt-ink: #067050;

  /* Fuel ---------------------------------------------------------------- */
  --diesel: #D98324;  --diesel-bg: #FBEEDC;  --diesel-ink: #874E0E;
  --petrol: #3F7DFF;  --petrol-bg: #E5ECFF;  --petrol-ink: #2749A8;
  --cng: #0FA8A3;     --cng-bg: #DAF4F2;     --cng-ink: #076864;
  --ev: #0FA968;      --ev-bg: #DBF5E9;      --ev-ink: #067045;

  /* Status -------------------------------------------------------------- */
  --valid: #10B981;   --valid-bg: #DFF6EC;   --valid-ink: #0A7551;
  --due: #2E97E6;     --due-bg: #E2F1FE;     --due-ink: #145A93;
  --expiring: #F59E0B; --expiring-bg: #FEF0D6; --expiring-ink: #915800;
  --expired: #F43F6B; --expired-bg: #FEE3E9;  --expired-ink: #AC1638;
  --paid: #10B981;    --paid-bg: #DFF6EC;
  --open: #F43F6B;    --open-bg: #FEE3E9;
  --missing: #B6C0D6; --missing-bg: #EEF1F7; --missing-ink: #6B7590;

  /* Radii --------------------------------------------------------------- */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Shadow system - ambient + key + border-highlight -------------------- */
  --sh-1:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 1px 3px rgba(16, 24, 40, 0.05);
  --sh-2:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 8px 24px -8px rgba(16, 24, 40, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  --sh-3:
    0 2px 4px rgba(16, 24, 40, 0.05),
    0 18px 44px -12px rgba(28, 40, 90, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  --sh-hero:
    0 24px 60px -18px rgba(51, 74, 175, 0.55),
    0 8px 20px -8px rgba(23, 116, 175, 0.30);
  --sh-glow-indigo: 0 10px 26px -8px rgba(79, 107, 255, 0.55);

  /* Motion -------------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px rgba(79, 107, 255, 0.55);

  /* Layout -------------------------------------------------------------- */
  --sidebar-w: 268px;
  --topbar-h: 74px;
}

/* ==========================================================================
   02 · RESET & BASE
   ========================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-14);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
  line-height: 1.5;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* Numeric / data text uses JetBrains Mono, aligned digits */
.plate-num, .rc-field.mono .rf-v, .doc-num, .doc-count, .challan-amt,
.radar-plate, .radar-count .rc-n, .kpi-n, .hero-stat .n, .gauge-center .g-pct,
.ring-mini .rm-pct, .legend-row .l-val, .legend-row .l-pct, .owner-stat .os-n,
.matrix-cell, .step-dot, .nav-badge, .bell-badge, .mnav-badge, .sms-time,
.phone-statusbar, .lead-chip, .catbar-row .cb-top span:last-child {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Focus - visible, offset indigo ring */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}
a:focus-visible, button:focus-visible { border-radius: 12px; }

::selection { background: rgba(79, 107, 255, 0.18); }

/* ==========================================================================
   03 · PAGE CANVAS
   Aurora blobs removed - clean warm off-white canvas (body background).
   ========================================================================== */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* ==========================================================================
   04 · APP SHELL
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ==========================================================================
   05 · SIDEBAR & BRAND
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--hairline);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 20px;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: var(--sh-glow-indigo), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex: none;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255, 255, 255, 0.16);
}
.brand-mark svg { width: 23px; height: 23px; position: relative; z-index: 1; }
.brand-name {
  font-weight: 800; font-size: var(--fs-18); letter-spacing: -0.03em; color: var(--ink);
  line-height: 1.1;
}
.brand-name span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub {
  font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em;
  font-weight: 700; text-transform: uppercase;
}

.nav-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-4); padding: 16px 12px 8px;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  border: none; background: transparent; width: 100%; text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.nav-item svg { width: 20px; height: 20px; flex: none; opacity: 0.7; transition: opacity .18s; }
.nav-item:hover { background: var(--line-soft); color: var(--ink); }
.nav-item:hover svg { opacity: 0.95; }
.nav-item.active {
  background: rgba(79, 107, 255, 0.12);
  color: var(--indigo-700);
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--grad);
}
.nav-item.active svg { opacity: 1; color: var(--indigo-600); }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 800;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--expired-bg); color: var(--expired-ink);
}
.nav-item.active .nav-badge { background: var(--expired); color: #fff; }

.sidebar-foot { margin-top: auto; padding: 14px 8px 2px; }
.sim-card {
  background: var(--grad-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 15px; font-size: 12px; color: var(--ink-2); line-height: 1.55;
  box-shadow: var(--sh-1);
}
.sim-card b { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   06 · TOPBAR, SEARCH, BELL, USER CHIP
   ========================================================================== */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: var(--surface-veil);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
}
.hamburger { display: none; }

.topbar-search { flex: 1; max-width: 480px; position: relative; }
.topbar-search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-4);
}
.topbar-search input {
  width: 100%; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 16px 0 44px; font-size: 14px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.topbar-search input::placeholder { color: var(--ink-4); }
.topbar-search input:focus {
  outline: none; border-color: var(--indigo); background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12);
}
.topbar-spacer { flex: 1; }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .16s, color .16s, transform .12s, box-shadow .16s, border-color .16s;
}
.icon-btn:hover { background: var(--line-soft); color: var(--ink); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }

.bell-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--expired); color: #fff; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(244, 63, 107, 0.4);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .16s, box-shadow .16s;
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.user-chip .u-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.user-chip .u-role { font-size: 11px; color: var(--ink-3); }

/* Bell dropdown */
.bell-wrap { position: relative; }
.bell-menu {
  position: absolute; right: 0; top: 54px; width: 370px; max-width: 86vw;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; z-index: 60;
  animation: pop .2s var(--ease);
}
.bell-menu-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.bell-menu-head b { font-size: 14px; letter-spacing: -0.01em; }
.bell-menu-list { max-height: 60vh; overflow-y: auto; }
.bell-row {
  display: flex; gap: 12px; padding: 13px 18px; width: 100%; text-align: left;
  border: none; background: transparent; border-bottom: 1px solid var(--line-soft);
  transition: background .14s;
}
.bell-row:hover { background: var(--line-soft); }
.bell-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.03); }
.bell-row .b-title { font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.bell-row .b-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bell-menu-foot { padding: 12px 18px; text-align: center; }
.bell-menu-foot button { background: none; border: none; color: var(--indigo-600); font-weight: 700; font-size: 13px; }
.bell-menu-foot button:hover { color: var(--indigo-700); }

/* ==========================================================================
   07 · CONTENT, PAGE HEAD, BREADCRUMB
   ========================================================================== */
.content { padding: 32px 34px 88px; max-width: 1380px; width: 100%; margin: 0 auto; }
.view { animation: rise .28s var(--ease-out) both; }

.page-head { margin-bottom: 26px; }
.page-title {
  font-size: var(--fs-26); font-weight: 820; letter-spacing: -0.03em; margin: 0;
  color: var(--ink);
}
.page-sub { color: var(--ink-3); font-size: 14px; margin-top: 5px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.breadcrumb a { color: var(--indigo-600); font-weight: 650; }
.breadcrumb a:hover { color: var(--indigo-700); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--ink-4); }

/* ==========================================================================
   08 · CARDS, BUTTONS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.card-pad { padding: 22px 24px; }
.card-title { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 13px;
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  letter-spacing: -0.01em; color: var(--ink);
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, filter .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-glow-indigo), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { background: var(--indigo-700); transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(79, 107, 255, 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); border-color: var(--line-strong); }
.btn-soft { background: rgba(79, 107, 255, 0.10); color: var(--indigo-600); }
.btn-soft:hover { background: rgba(79, 107, 255, 0.16); color: var(--indigo-700); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

/* ==========================================================================
   09 · CHIPS, STATUS PILLS, BADGES
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; letter-spacing: -0.005em;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-cat-GCV { background: var(--gcv-bg); color: var(--gcv-ink); }
.chip-cat-PCV { background: var(--pcv-bg); color: var(--pcv-ink); }
.chip-cat-MISC { background: var(--misc-bg); color: var(--misc-ink); }
.chip-cat-PVT4W, .chip-cat-PVT2W { background: var(--pvt-bg); color: var(--pvt-ink); }
.chip-fuel-Diesel { background: var(--diesel-bg); color: var(--diesel-ink); }
.chip-fuel-Petrol { background: var(--petrol-bg); color: var(--petrol-ink); }
.chip-fuel-CNG { background: var(--cng-bg); color: var(--cng-ink); }
.chip-fuel-EV { background: var(--ev-bg); color: var(--ev-ink); }
.chip-fuel-EV .dot { background: var(--ev); box-shadow: 0 0 0 3px rgba(15, 169, 104, 0.18); }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 10px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.005em; text-transform: capitalize;
}
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.st-valid { background: var(--valid-bg); color: var(--valid-ink); } .st-valid .dot { background: var(--valid); }
.st-due { background: var(--due-bg); color: var(--due-ink); } .st-due .dot { background: var(--due); }
.st-expiring { background: var(--expiring-bg); color: var(--expiring-ink); } .st-expiring .dot { background: var(--expiring); }
.st-expired { background: var(--expired-bg); color: var(--expired-ink); } .st-expired .dot { background: var(--expired); }
.st-paid { background: var(--paid-bg); color: var(--valid-ink); } .st-paid .dot { background: var(--paid); }
.st-open { background: var(--open-bg); color: var(--expired-ink); } .st-open .dot { background: var(--open); }
.st-missing { background: var(--missing-bg); color: var(--missing-ink); } .st-missing .dot { background: var(--missing); }

.badge-type {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 750; text-transform: capitalize;
}
.badge-company { background: #E5ECFF; color: #2B41C7; }
.badge-individual { background: var(--pvt-bg); color: var(--pvt-ink); }

/* ==========================================================================
   10 · DASHBOARD
   ========================================================================== */
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }

/* Hero - solid vivid indigo, jewel gauge */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 30px 32px;
  color: #fff;
  background: #4F5DE8;
  box-shadow: var(--sh-hero);
  isolation: isolate;
}
/* soft corner accent - solid translucent white circle */
.hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; z-index: 0;
  background: rgba(255, 255, 255, 0.08); border-radius: 50%;
}
.hero-greet { position: relative; z-index: 2; font-size: 13px; opacity: 0.92; font-weight: 600; letter-spacing: 0.01em; }
.hero-title {
  position: relative; z-index: 2;
  font-size: var(--fs-26); font-weight: 820; letter-spacing: -0.03em; margin: 6px 0 18px; max-width: 58%;
  line-height: 1.15; text-shadow: 0 1px 12px rgba(16, 22, 60, 0.20);
}
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; position: relative; z-index: 2; padding-right: 195px; }
.hero-stat .n { font-size: var(--fs-26); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero-stat .l { font-size: 12px; opacity: 0.86; font-weight: 600; margin-top: 4px; }
.hero-gauge { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); text-align: center; z-index: 2; }
.hero-gauge .g-label { font-size: 11px; opacity: 0.92; font-weight: 700; letter-spacing: 0.03em; margin-top: 4px; }
.hero-gauge svg { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22)); }

/* Gauge - jewel */
.gauge-wrap { position: relative; display: inline-grid; place-items: center; }
.gauge-center { position: absolute; text-align: center; }
.gauge-center .g-pct { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.gauge-center .g-cap { font-size: 10.5px; font-weight: 700; opacity: 0.82; letter-spacing: 0.02em; margin-top: 3px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.kpi-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.kpi-ico svg { width: 22px; height: 22px; }
.kpi-n { font-size: var(--fs-32); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.kpi-l { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ico-blue { background: #E5ECFF; color: #3448CE; }
.ico-amber { background: var(--expiring-bg); color: var(--expiring-ink); }
.ico-rose { background: var(--expired-bg); color: var(--expired-ink); }
.ico-teal { background: var(--cng-bg); color: var(--cng-ink); }

/* Lower dashboard */
.dash-lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 22px; }
.radar-list { display: flex; flex-direction: column; }
.radar-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft); width: 100%; text-align: left;
  background: none; border-left: none; border-right: none; border-top: none;
  transition: background .14s; border-radius: 12px;
}
.radar-row:last-child { border-bottom: none; }
.radar-row:hover { background: var(--line-soft); }
.radar-bar { width: 4px; align-self: stretch; min-height: 34px; border-radius: 4px; flex: none; }
.radar-plate { font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em; color: var(--ink); }
.radar-meta { font-size: 12.5px; color: var(--ink-3); }
.radar-count { margin-left: auto; text-align: right; }
.radar-count .rc-n { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; }
.radar-count .rc-l { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* Donut + legend */
.donut-flex { display: flex; align-items: center; gap: 24px; }
.donut-legend { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-sw { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.legend-row .l-name { font-weight: 650; color: var(--ink-2); }
.legend-row .l-val { margin-left: auto; font-weight: 700; color: var(--ink); }
.legend-row .l-pct { color: var(--ink-3); font-size: 12px; width: 44px; text-align: right; }

/* Category bars */
.catbar { display: flex; flex-direction: column; gap: 16px; }
.catbar-row .cb-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; margin-bottom: 7px; color: var(--ink-2); }
.catbar-row .cb-top span:last-child { color: var(--ink); font-weight: 700; }
.catbar-track { height: 12px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05); }
.catbar-fill { height: 100%; border-radius: var(--r-full); transition: width .7s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); animation: growBar .8s var(--ease-out) both; }

/* ==========================================================================
   11 · VEHICLES GRID & NUMBER PLATE
   ========================================================================== */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.search-inline { position: relative; flex: 1; min-width: 220px; max-width: 400px; }
.search-inline svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-4); }
.search-inline input {
  width: 100%; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface-2); padding: 0 14px 0 44px; font-size: 14px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.search-inline input::placeholder { color: var(--ink-4); }
.search-inline input:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12); }

.chips-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-chip {
  height: 36px; padding: 0 15px; border-radius: var(--r-full); font-size: 13px; font-weight: 650;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: all .16s var(--ease); display: inline-flex; align-items: center; gap: 7px;
}
.filter-chip:hover { border-color: var(--indigo); color: var(--ink); background: var(--surface-2); }
.filter-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(11, 21, 38, 0.5);
}
.filter-chip .fc-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,0,0,0.03); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0; align-items: center; }
.filter-legend { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); align-self: center; margin-right: 4px; }

.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.veh-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-2); text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 15px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.veh-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.veh-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.veh-name { font-size: 16px; font-weight: 780; letter-spacing: -0.02em; margin-top: 4px; color: var(--ink); }
.veh-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.veh-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.veh-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.veh-foot-label { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Indian HSRP-style number plate */
.plate {
  display: inline-flex; align-items: stretch; border-radius: 7px; overflow: hidden;
  border: 1.5px solid #16181D; background: #F5F6F9;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.plate-ind {
  position: relative;
  background: #164FB0; color: #fff; width: 16px;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 14px;
  font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em;
}
.plate-ind::after {
  content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 5px; border-radius: 1px;
  background: #ECB22E;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15);
}
.plate-ind::before {
  content: "IND"; font-family: var(--ff-mono); writing-mode: vertical-rl; transform: rotate(180deg);
}
.plate-num {
  padding: 5px 12px; font-family: var(--ff-mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.06em; color: #16181D;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -0.5px 0 rgba(0, 0, 0, 0.12);
}
.plate-lg .plate-num { font-size: 21px; padding: 8px 15px; }
.plate-lg .plate-ind { width: 19px; font-size: 8.5px; }
.plate-sm .plate-num { font-size: 13.5px; padding: 4px 9px; letter-spacing: 0.04em; }
.plate-sm .plate-ind { width: 13px; font-size: 6.5px; padding-top: 11px; }
.plate-sm .plate-ind::after { width: 6px; height: 4px; }

/* Mini compliance ring */
.ring-mini { display: inline-grid; place-items: center; position: relative; flex: none; }
.ring-mini .rm-pct { position: absolute; font-size: 12px; font-weight: 700; letter-spacing: -0.03em; }

/* ==========================================================================
   12 · VEHICLE DETAIL - RC SMART-CARD, SCORE, OWNER, CHALLANS, VAULT
   ========================================================================== */
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }

/* RC smart-card - the showpiece (credit-card aesthetics) */
.rc-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 0;
  background: #FFFDF8;
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-3);
  isolation: isolate;
}
.rc-card > * { position: relative; z-index: 1; }

.rc-stripe { height: 6px; display: flex; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.rc-stripe span { flex: 1; }
.rc-stripe .s1 { background: #FF9933; }
.rc-stripe .s2 { background: #ffffff; }
.rc-stripe .s3 { background: #138808; }

.rc-body { padding: 24px 26px 26px; }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rc-emblem { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.rc-title { font-size: 17px; font-weight: 820; letter-spacing: -0.02em; margin-top: 3px; color: var(--ink); }
.rc-authority { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* Gold EMV-style chip */
.rc-chip-graphic {
  width: 48px; height: 37px; border-radius: 8px; flex: none;
  background: #E9BE54;
  position: relative; box-shadow: inset 0 0 0 1px rgba(120, 88, 20, 0.35), 0 1px 3px rgba(120, 88, 20, 0.25);
}
.rc-chip-graphic::before {
  content: ""; position: absolute; inset: 5px 7px 5px 50%; width: 1px;
  background: #A9821F; opacity: 0.5;
}
.rc-chip-graphic::after {
  content: ""; position: absolute; inset: 5px 7px; border: 1px solid rgba(169, 130, 31, 0.5); border-radius: 3px;
}

.rc-plate-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.rc-qr {
  width: 66px; height: 66px; border-radius: 10px; flex: none; margin-left: auto;
  background: #E4E9F3;
  border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1);
  position: relative;
}
.rc-qr::after { content: "QR"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 800; font-family: var(--ff-mono); color: #0B1526; border-radius: 6px; }

.rc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 22px; }
.rc-field .rf-l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); }
.rc-field .rf-v { font-size: 14px; font-weight: 650; color: var(--ink); margin-top: 3px; word-break: break-word; }
.rc-field.mono .rf-v { font-family: var(--ff-mono); letter-spacing: 0.01em; font-size: 13px; font-weight: 600; }
.rc-field.wide { grid-column: 1 / -1; }
.rc-foot { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-valid { font-size: 12px; color: var(--ink-3); }
.rc-valid b { color: var(--ink); font-family: var(--ff-mono); font-weight: 600; }

/* Score panel */
.score-panel { display: flex; align-items: center; gap: 22px; }
.score-verdict { font-size: 13px; font-weight: 750; letter-spacing: -0.01em; }
.score-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }

/* Doc checklist table */
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 13.5px; }
.doc-table tbody tr { transition: background .14s; }
.doc-table tbody tr:hover { background: var(--line-soft); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-type-cell { display: flex; align-items: center; gap: 12px; }
.doc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--indigo-600); flex: none; box-shadow: inset 0 0 0 1px rgba(79, 107, 255, 0.08); }
.doc-ico svg { width: 18px; height: 18px; }
.doc-name { font-weight: 720; color: var(--ink); }
.doc-num { font-size: 12px; color: var(--ink-3); }
.doc-count { font-size: 12.5px; font-weight: 650; }
.doc-count.neg { color: var(--expired-ink); }
.doc-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mand-star { color: var(--expired); font-weight: 800; margin-left: 3px; }

.owner-card-mini { display: flex; align-items: center; gap: 14px; }
.owner-avatar {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--sh-1);
}
.owner-avatar.company { background: #5A6BFF; }
.owner-avatar.individual { background: #12B48A; }

.challan-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.challan-row:last-child { border-bottom: none; }
.challan-amt { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }

/* ==========================================================================
   13 · DOCUMENTS MATRIX
   ========================================================================== */
.matrix-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.matrix th { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.matrix th, .matrix td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.matrix th.veh-col, .matrix td.veh-col { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 214px; box-shadow: 1px 0 0 var(--line-soft); }
.matrix thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 750; }
.matrix-cell {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 76px; height: 30px; padding: 0 9px; border-radius: 9px;
  font-size: 11.5px; font-weight: 650; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .12s;
}
.matrix-cell:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.matrix-cell .dot { width: 6px; height: 6px; border-radius: 50%; }
.veh-col-inner { display: flex; align-items: center; gap: 10px; }
.veh-col-inner .v-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.veh-col-inner .v-cat { font-size: 11px; color: var(--ink-3); }
.legend-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.legend-bar .status-chip { cursor: default; }

/* ==========================================================================
   14 · ALERTS, SETTINGS, PHONE / SMS MOCKUP
   ========================================================================== */
.alerts-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.alert-row {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--hairline); background: var(--surface);
  box-shadow: var(--sh-2); margin-bottom: 12px;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.alert-row:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.alert-sev { width: 5px; align-self: stretch; min-height: 44px; border-radius: 5px; flex: none; }
.alert-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.alert-icon svg { width: 20px; height: 20px; }
.alert-main { flex: 1; min-width: 0; }
.alert-title { display: block; font-size: 14px; font-weight: 720; letter-spacing: -0.01em; color: var(--ink); }
.alert-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.alert-channels { display: flex; gap: 6px; margin-top: 9px; }
.ch-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line-soft); color: var(--ink-4); }
.ch-ico.on { background: #E5ECFF; color: var(--indigo-600); }
.ch-ico svg { width: 15px; height: 15px; }

.settings-block { display: flex; flex-direction: column; gap: 20px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-label { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.set-desc { font-size: 12px; color: var(--ink-3); }
.toggle { position: relative; width: 46px; height: 27px; border-radius: var(--r-full); background: #D3DBEC; border: none; transition: background .2s var(--ease); flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25); transition: transform .2s var(--ease); }
.toggle.on { background: var(--indigo); }
.toggle.on::after { transform: translateX(19px); }
.lead-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-chip { height: 34px; min-width: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.lead-chip svg { width: 13px; height: 13px; }
.lead-chip.on { background: var(--grad-soft); border-color: var(--indigo); color: var(--indigo-700); }
.field-inline { display: flex; flex-direction: column; gap: 7px; }
.field-inline label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field-inline input { transition: border-color .18s, box-shadow .18s; }
.field-inline input:focus { outline: none; border-color: var(--indigo) !important; box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12); }

/* Phone mockup */
.phone {
  width: 306px; border-radius: 42px; background: #0F1424; padding: 12px;
  box-shadow: 0 40px 80px -20px rgba(10, 16, 40, 0.65), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; inset: 5px; border-radius: 38px; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(120, 140, 200, 0.18);
}
.phone-notch { width: 128px; height: 26px; background: #0B0F1E; border-radius: 0 0 16px 16px; margin: 0 auto 8px; position: relative; }
.phone-notch::after { content: ""; position: absolute; right: 26px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #232a44; box-shadow: 0 0 0 1px rgba(120,140,200,0.25); }
.phone-screen { background: #EDF1F8; border-radius: 30px; overflow: hidden; min-height: 420px; }
.phone-statusbar { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 12px; font-weight: 700; color: #0B1526; }
.sms-head { background: #fff; padding: 12px 18px; border-bottom: 1px solid #E2E7F1; display: flex; align-items: center; gap: 12px; }
.sms-head .sh-av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.sms-head .sh-name { font-size: 14px; font-weight: 750; color: var(--ink); }
.sms-head .sh-sub { font-size: 11px; color: var(--ink-3); }
.sms-thread { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.sms-daysep { text-align: center; font-size: 11px; color: #97A1BD; font-weight: 700; }
.sms-bubble {
  align-self: flex-start; max-width: 84%;
  background: #fff; border-radius: 18px 18px 18px 6px;
  padding: 12px 15px; font-size: 13.5px; line-height: 1.5; color: var(--ink);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08); position: relative;
}
.sms-bubble.brand {
  background: var(--grad); color: #fff; align-self: flex-end; border-radius: 18px 18px 6px 18px;
  box-shadow: 0 6px 16px -6px rgba(79, 107, 255, 0.55);
}
.sms-bubble.brand::after {
  content: ""; position: absolute; right: -5px; bottom: 0; width: 12px; height: 14px;
  background: #17C7C0; clip-path: path("M0,0 Q12,2 12,14 Q4,10 0,0"); opacity: 0.9;
}
.sms-time { font-size: 10px; opacity: 0.72; margin-top: 5px; display: block; }

/* ==========================================================================
   15 · OWNERS
   ========================================================================== */
.owner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.owner-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.owner-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.owner-head { padding: 20px 22px; display: flex; align-items: center; gap: 15px; background: var(--grad-soft); border-bottom: 1px solid var(--hairline); }
.owner-head .oh-info { min-width: 0; }
.owner-head .oh-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.owner-head .oh-meta { font-size: 12.5px; color: var(--ink-3); }
.owner-body { padding: 12px 14px; }
.owner-veh-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; width: 100%; text-align: left; background: none; border: none; transition: background .14s; }
.owner-veh-row:hover { background: var(--line-soft); }
.owner-stat-strip { display: flex; gap: 20px; padding: 15px 22px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.owner-stat .os-n { font-weight: 700; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); }
.owner-stat .os-l { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* ==========================================================================
   15b · EMI & LOANS
   ========================================================================== */
.emi-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.emi-stat {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 6px;
}
.emi-stat .es-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.emi-stat .es-ico svg { width: 20px; height: 20px; }
.emi-stat .es-n { font-size: var(--fs-26); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.emi-stat .es-l { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.emi-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }

.emi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.emi-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 20px 22px; display: flex; flex-direction: column; gap: 15px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.emi-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.emi-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.emi-veh-name { font-size: 15px; font-weight: 780; letter-spacing: -0.02em; margin-top: 6px; color: var(--ink); }
.emi-financer { display: flex; flex-direction: column; gap: 2px; }
.emi-financer .ef-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.emi-financer .ef-acc { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.01em; }
.emi-amount-block { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.emi-amount { font-family: var(--ff-mono); font-size: var(--fs-32); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.emi-amount-l { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.emi-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.emi-progress-top .ep-paid { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.emi-progress-top .ep-rem { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.emi-track { height: 10px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05); }
.emi-fill { height: 100%; border-radius: var(--r-full); background: var(--indigo); transition: width .7s var(--ease); animation: growBar .8s var(--ease-out) both; }
.emi-fill.closed { background: var(--valid); }
.emi-fill.overdue { background: var(--expired); }
.emi-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.emi-fact { display: flex; flex-direction: column; gap: 1px; }
.emi-fact .fct-l { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-4); font-weight: 700; }
.emi-fact .fct-v { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.emi-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Dashboard EMI outgo card */
.emi-dash-card {
  display: flex; align-items: center; gap: 18px; margin-top: 22px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: var(--sh-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.emi-dash-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.emi-dash-card .edc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #E5ECFF; color: #3448CE; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.emi-dash-card .edc-ico svg { width: 24px; height: 24px; }
.emi-dash-card .edc-l { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.emi-dash-card .edc-n { font-family: var(--ff-mono); font-size: var(--fs-26); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.emi-dash-card .edc-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.emi-dash-card .edc-arrow { margin-left: auto; color: var(--ink-4); display: grid; place-items: center; }
.emi-dash-card .edc-arrow svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .emi-summary { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   16 · ADD-VEHICLE WIZARD
   ========================================================================== */
.wizard { max-width: 880px; margin: 0 auto; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 11px; flex: 1; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; background: var(--surface); border: 2px solid var(--line); color: var(--ink-3);
  flex: none; transition: all .22s var(--ease);
}
.step.active .step-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-glow-indigo); }
.step.done .step-dot { background: var(--valid); border-color: transparent; color: #fff; }
.step-label { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: -0.01em; }
.step.active .step-label, .step.done .step-label { color: var(--ink); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 8px; border-radius: 2px; }
.step.done + .step .step-line, .step.done .step-line { background: var(--valid); }

.cascade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
.cascade-card {
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 16px;
  text-align: left; transition: all .18s var(--ease);
}
.cascade-card:hover { border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--sh-2); }
.cascade-card.selected { border-color: var(--indigo); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.10); }
.cascade-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 13px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cascade-ico svg { width: 24px; height: 24px; }
.cascade-title { display: block; font-size: 15px; font-weight: 780; letter-spacing: -0.01em; color: var(--ink); }
.cascade-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.cascade-section-title { font-size: 13px; font-weight: 750; margin: 24px 0 13px; color: var(--ink-2); letter-spacing: -0.01em; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 13px; font-size: 14px; color: var(--ink);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12); }

.fuel-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fuel-opt { border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 8px; text-align: center; background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink); transition: all .16s; position: relative; }
.fuel-opt:hover { border-color: var(--indigo); transform: translateY(-1px); }
.fuel-opt.selected { border-color: currentColor; box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.08); }
.fuel-opt .fo-ico { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 7px; display: grid; place-items: center; }
.fuel-opt.ev-opt.selected { background: var(--ev-bg); color: var(--ev-ink); }
.ev-flag { position: absolute; top: -9px; right: -6px; font-size: 9px; font-weight: 800; background: var(--ev); color: #fff; padding: 2px 7px; border-radius: var(--r-full); box-shadow: 0 3px 8px -2px rgba(15, 169, 104, 0.6); }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.review-item .ri-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 700; }
.review-item .ri-v { font-size: 14px; font-weight: 650; color: var(--ink); margin-top: 2px; }

/* ==========================================================================
   17 · EMPTY STATES, TOASTS, MODALS
   ========================================================================== */
.empty { text-align: center; padding: 56px 24px; color: var(--ink-3); }
.empty-ico { width: 76px; height: 76px; border-radius: 22px; background: var(--grad-soft); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: inset 0 0 0 1px rgba(79, 107, 255, 0.08); }
.empty-ico svg { width: 36px; height: 36px; color: var(--indigo); }
.empty h3 { color: var(--ink); font-size: 17px; margin: 0 0 6px; letter-spacing: -0.02em; }

.seed-missing { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.seed-missing .sm-box { max-width: 460px; }

.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 400px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--sh-3); animation: toastIn .34s var(--ease-out);
}
.toast.out { animation: toastOut .28s var(--ease) forwards; }
.toast-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast-ico svg { width: 18px; height: 18px; }
.toast.ok .toast-ico { background: var(--valid-bg); color: var(--valid-ink); }
.toast.info .toast-ico { background: #E5ECFF; color: var(--indigo-600); }
.toast.warn .toast-ico { background: var(--expired-bg); color: var(--expired-ink); }
.toast-msg { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.toast-sub { font-size: 12px; color: var(--ink-3); }

/* ---- Settings: AI provider card ---- */
.ai-card { max-width: 760px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 6px; }
.ai-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ai-field-wide { grid-column: 1 / -1; }
.ai-field label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.ai-input {
  height: 42px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--surface); width: 100%;
}
.ai-input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.14); }
.ai-input-req { border-color: var(--expired); box-shadow: 0 0 0 3px var(--expired-bg); }
select.ai-input { appearance: none; cursor: pointer; }
.ai-key-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-full); font-size: 12.5px; font-weight: 700;
  background: var(--valid-bg); color: var(--valid-ink);
}
.ai-test-result {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
}
.ai-test-result.ok { background: var(--valid-bg); color: var(--valid-ink); }
.ai-test-result.bad { background: var(--expired-bg); color: var(--expired-ink); }
.ai-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 640px) { .ai-grid { grid-template-columns: 1fr; } }

.modal-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(11, 21, 38, 0.5);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px;
  animation: fade .2s var(--ease);
}
.modal {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  max-width: 92vw; max-height: 90vh; overflow: auto; animation: pop .26s var(--ease-out);
}
.modal-phone-wrap { background: none; box-shadow: none; display: grid; place-items: center; gap: 18px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head b { font-size: 15px; letter-spacing: -0.01em; }
.modal-body { padding: 22px 24px; }
.modal-note { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* ==========================================================================
   18 · MOTION
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes growBar { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
@keyframes ringDraw { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 0; } }

/* Staggered card entrance */
.stagger > * { opacity: 0; animation: rise .45s var(--ease-out) forwards; }
.stagger > *:nth-child(1) { animation-delay: .04s }
.stagger > *:nth-child(2) { animation-delay: .08s }
.stagger > *:nth-child(3) { animation-delay: .12s }
.stagger > *:nth-child(4) { animation-delay: .16s }
.stagger > *:nth-child(5) { animation-delay: .20s }
.stagger > *:nth-child(6) { animation-delay: .24s }
.stagger > *:nth-child(7) { animation-delay: .28s }
.stagger > *:nth-child(8) { animation-delay: .32s }

/* Gauge / ring arc draw-in (colored arc is the 2nd circle in each ring svg) */
.gauge-wrap svg circle:nth-child(2),
.ring-mini svg circle:nth-child(2) {
  animation: ringDraw 1s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .stagger > * { opacity: 1; }
}

/* ==========================================================================
   18b · MULTI-TENANT - login, role badges, user menu, banner, hints,
         platform / admin / owner drill views, vault history
   ========================================================================== */

/* --- Role badges (super=violet, admin=sky, owner=mint) --- */
.role-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 9px;
  border-radius: var(--r-full); font-size: 10.5px; font-weight: 750;
  letter-spacing: 0.02em; text-transform: uppercase; vertical-align: middle;
}
.role-super { background: var(--misc-bg); color: var(--misc-ink); }
.role-admin { background: var(--pcv-bg); color: var(--pcv-ink); }
.role-owner { background: var(--pvt-bg); color: var(--pvt-ink); }
.role-suspended { background: var(--expired-bg); color: var(--expired-ink); }

/* --- User chip + menu --- */
.user-wrap { position: relative; }
.user-chip { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.user-chip-txt { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.u-role-line { display: flex; align-items: center; gap: 6px; }
.u-org { font-size: 11px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.user-chip-caret { color: var(--ink-4); display: grid; place-items: center; transform: rotate(90deg); }
.user-chip-caret svg { width: 15px; height: 15px; }
.user-menu {
  position: absolute; right: 0; top: 54px; width: 250px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; z-index: 60; padding: 8px; animation: pop .2s var(--ease);
}
.user-menu-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.user-menu-head .um-name { font-size: 13.5px; font-weight: 750; color: var(--ink); }
.user-menu-head .um-sub { font-size: 11px; color: var(--ink-3); }
.user-menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 11px; border: none; background: transparent;
  font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: background .14s, color .14s;
}
.user-menu-item svg { width: 17px; height: 17px; opacity: 0.75; }
.user-menu-item:hover { background: var(--line-soft); color: var(--ink); }
.user-menu-item.danger { color: var(--expired-ink); }
.user-menu-item.danger:hover { background: var(--expired-bg); }

/* --- "Viewing as" context banner --- */
#context-banner:empty { display: none; }
.viewing-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 28px; background: var(--misc-bg); color: var(--misc-ink);
  border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 600;
}
.viewing-banner .vb-eye { display: grid; place-items: center; }
.viewing-banner .vb-eye svg { width: 16px; height: 16px; }
.viewing-banner .vb-txt b { font-weight: 800; }
.viewing-banner .vb-return {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--surface); color: var(--misc-ink); font-weight: 700; font-size: 12.5px;
  box-shadow: var(--sh-1);
}
.viewing-banner .vb-return:hover { background: #fff; }
.viewing-banner .vb-return svg { width: 15px; height: 15px; }

/* --- Sub-account (impersonation) banner - solid indigo, deliberately distinct
   from the pastel read-only "Viewing as" banner --- */
.subacct-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 28px; background: var(--indigo-600); color: #fff;
  border-bottom: 1px solid var(--indigo-700); font-size: 13px; font-weight: 650;
  box-shadow: 0 6px 18px -10px rgba(51, 74, 175, 0.75);
}
.subacct-banner .sab-ico { display: grid; place-items: center; color: #fff; flex: none; }
.subacct-banner .sab-ico svg { width: 17px; height: 17px; }
.subacct-banner .sab-txt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.subacct-banner .sab-txt b { font-weight: 800; }
.subacct-banner .sab-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 9px;
  border-radius: var(--r-full); background: rgba(255, 255, 255, 0.20);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.subacct-banner .sab-exit {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; border: none; border-radius: var(--r-full);
  background: #fff; color: var(--indigo-700); font-weight: 750; font-size: 12.5px;
  box-shadow: var(--sh-1);
}
.subacct-banner .sab-exit:hover { background: #F3F5FF; }
.subacct-banner .sab-exit svg { width: 15px; height: 15px; }

/* Sub-account tag on the user chip */
.subacct-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px;
  border-radius: var(--r-full); background: var(--indigo-600); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.subacct-tag svg { width: 11px; height: 11px; }
.user-chip.impersonating { border-color: var(--indigo); box-shadow: var(--sh-glow-indigo); }
.client-menu-item.accent { color: var(--indigo-700); }
.client-menu-item.accent:hover { background: var(--grad-soft); }

/* --- Hint strip --- */
.hint-strip {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding: 13px 16px; border-radius: var(--r); background: var(--grad-soft);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1);
}
.hint-strip .hint-ico { display: grid; place-items: center; color: var(--indigo-600); flex: none; }
.hint-strip .hint-txt { font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.hint-strip .hint-x { margin-left: auto; flex: none; border: none; background: transparent; color: var(--ink-4); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; transition: background .14s, color .14s; }
.hint-strip .hint-x:hover { background: rgba(79,107,255,0.12); color: var(--indigo-700); }

/* --- Section titles for drill pages --- */
.section-title { font-size: var(--fs-18); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }

/* --- Nav owner-count badge --- */
.nav-count {
  margin-left: auto; font-size: 11px; font-weight: 800; min-width: 21px; height: 21px;
  padding: 0 6px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--line-soft); color: var(--ink-3);
}
.nav-item.active .nav-count { background: rgba(79,107,255,0.18); color: var(--indigo-700); }

/* --- Platform KPI extras --- */
.kpi-grid-5 { grid-template-columns: repeat(5, 1fr); }
.kpi-static { cursor: default; }
.kpi-static:hover { transform: none; box-shadow: var(--sh-2); border-color: var(--hairline); }
.ico-violet { background: var(--misc-bg); color: var(--misc-ink); }

/* --- Admin summary cards (platform) --- */
.admin-sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.admin-sum-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-2); text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.admin-sum-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.admin-sum-card.suspended { opacity: 0.72; background: var(--surface-2); }
.asc-head { display: flex; align-items: center; gap: 13px; }
.asc-head .owner-avatar { width: 42px; height: 42px; border-radius: 13px; }
.asc-info { flex: 1; min-width: 0; }
.asc-name { font-size: 15px; font-weight: 780; letter-spacing: -0.01em; color: var(--ink); }
.asc-org { font-size: 12.5px; color: var(--ink-3); }
.asc-stats { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.asc-stat { display: flex; flex-direction: column; gap: 2px; }
.asc-stat .ass-n { font-family: var(--ff-mono); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.asc-stat .ass-l { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* --- Admin management list --- */
.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-row-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: var(--sh-2);
}
.admin-row-card.suspended { opacity: 0.72; background: var(--surface-2); }
.arc-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.arc-main .owner-avatar { width: 44px; height: 44px; }
.arc-info { min-width: 0; }
.arc-name { font-size: 15.5px; font-weight: 780; letter-spacing: -0.01em; color: var(--ink); }
.arc-meta { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.arc-mono { font-family: var(--ff-mono); font-size: 11.5px; }
.arc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-btn { color: var(--expired-ink); }
.danger-btn:hover { background: var(--expired-bg); border-color: var(--expired-bg); color: var(--expired-ink); }
.danger-solid { background: var(--expired); box-shadow: 0 8px 20px -8px rgba(244,63,107,0.55); }
.danger-solid:hover { background: #E02454; }

/* --- Owner drill extras --- */
.owner-head .owner-open { margin-left: auto; flex: none; align-self: center; }
.oh-joined { font-family: var(--ff-mono); font-size: 11px; }
.owner-more { font-size: 12px; padding: 6px 8px 2px; font-weight: 650; }
.review-item .ri-mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.od-emi { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.od-emi .edc-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #E5ECFF; color: #3448CE; flex: none; }
.od-emi .edc-l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.od-emi .edc-n { font-family: var(--ff-mono); font-size: var(--fs-22); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Wizard locked owner --- */
.owner-locked { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.owner-locked .lock-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--pvt-bg); color: var(--pvt-ink); font-weight: 700; font-size: 12px;
}
.owner-locked .lock-chip svg { width: 14px; height: 14px; }

/* --- Vault history rows --- */
.hist-toggle-row td { padding: 0 12px 6px !important; border-bottom: 1px solid var(--line-soft); }
.hist-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; font-weight: 650; color: var(--ink-3); transition: all .14s;
}
.hist-toggle svg { width: 14px; height: 14px; }
.hist-toggle:hover { border-color: var(--indigo); color: var(--indigo-700); background: var(--grad-soft); }
.hist-row { background: var(--surface-2); }
.hist-row .doc-name { font-weight: 650; color: var(--ink-2); }
.hist-cell .hist-ico { background: var(--line-soft); color: var(--ink-4); box-shadow: none; }

/* --- Login / persona picker --- */
.login-screen {
  grid-column: 1 / -1; min-height: 100vh; width: 100%;
  background: var(--canvas-2); display: flex; justify-content: center;
  padding: 48px 24px 64px; overflow-y: auto;
}
.login-inner { width: 100%; max-width: 1080px; }
.login-head { text-align: center; margin-bottom: 34px; }
.login-brand { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.login-brand .brand-mark { width: 48px; height: 48px; border-radius: 15px; }
.login-brand .brand-mark svg { width: 26px; height: 26px; }
.login-logotype { font-weight: 900; font-size: 30px; letter-spacing: -0.04em; color: var(--ink); }
.login-logotype span { color: var(--indigo-600); }
.login-title { font-size: var(--fs-26); font-weight: 820; letter-spacing: -0.03em; margin: 0 0 8px; color: var(--ink); }
.login-note { color: var(--ink-3); font-size: 14px; max-width: 560px; margin: 0 auto; line-height: 1.55; }
.login-group { margin-bottom: 26px; }
.login-group-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-4); margin-bottom: 13px; padding-left: 2px;
}
.login-grid { display: grid; gap: 16px; }
.login-grid-1 { grid-template-columns: 1fr; max-width: 520px; }
.login-grid-2 { grid-template-columns: repeat(2, 1fr); }
.login-grid-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.login-card {
  position: relative; text-align: left; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 7px;
  border-top: 3px solid var(--indigo); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.login-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.login-card.lc-super { border-top-color: var(--misc); }
.login-card.lc-admin { border-top-color: var(--pcv); }
.login-card.lc-owner { border-top-color: var(--pvt); }
.lc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lc-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--indigo-700); font-weight: 800; font-size: 13px; font-family: var(--ff-mono); }
.lc-super .lc-avatar { background: var(--misc-bg); color: var(--misc-ink); }
.lc-admin .lc-avatar { background: var(--pcv-bg); color: var(--pcv-ink); }
.lc-owner .lc-avatar { background: var(--pvt-bg); color: var(--pvt-ink); }
.lc-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lc-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.lc-stat {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 650; color: var(--ink-2);
  background: var(--line-soft); border-radius: var(--r-full); padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.lc-go {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 750; color: var(--indigo-600);
}
.lc-go svg { width: 15px; height: 15px; }
.login-card:hover .lc-go { color: var(--indigo-700); }
.login-foot { text-align: center; font-size: 12px; color: var(--ink-4); margin-top: 22px; }

@media (max-width: 720px) {
  .kpi-grid-5 { grid-template-columns: 1fr 1fr; }
  .login-grid-2 { grid-template-columns: 1fr; }
  .viewing-banner { padding: 10px 16px; }
}
@media (max-width: 1140px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   19 · RESPONSIVE, MOBILE NAV, DRAWER
   ========================================================================== */
.mobile-nav { display: none; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

@media (max-width: 1140px) {
  .dash-grid, .dash-lower, .detail-grid, .alerts-layout { grid-template-columns: 1fr; }
  .hero-title { max-width: 100%; }
}

@media (max-width: 980px) {
  :root { --sidebar-w: 0px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hamburger { display: grid; }
  .content { padding: 22px 18px 100px; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--surface-veil); backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid var(--hairline); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mnav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; color: var(--ink-4); font-size: 10px; font-weight: 650;
    padding: 5px 10px; border-radius: 12px; position: relative; transition: color .16s;
  }
  .mnav-item svg { width: 22px; height: 22px; }
  .mnav-item.active { color: var(--indigo-600); }
  .mnav-badge { position: absolute; top: 0; right: 6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: var(--r-full); background: var(--expired); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; border: 1.5px solid var(--surface); }
  .drawer-backdrop { position: fixed; inset: 0; background: rgba(11, 21, 38, 0.45); backdrop-filter: blur(3px); z-index: 100; animation: fade .2s; }
  .drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 284px; z-index: 101; background: var(--surface); box-shadow: var(--sh-3); animation: slideIn .26s var(--ease-out); overflow-y: auto; display: flex; flex-direction: column; padding: 22px 16px; }
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
@media (min-width: 981px) { .drawer, .drawer-backdrop { display: none; } }

@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; gap: 10px; }
  .user-chip .user-chip-txt, .user-chip .user-chip-caret { display: none; }
  .rc-fields, .form-grid, .review-grid { grid-template-columns: 1fr; }
  .fuel-picker { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: var(--fs-22); }
  .hero-gauge { position: static; transform: none; margin-top: 20px; }
  .hero-title { max-width: 100%; }
  .hero { padding: 24px; }
  .hero-stats { padding-right: 0; }
}

@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .veh-grid { grid-template-columns: 1fr; }
  .content { padding: 16px 12px 100px; }
}

/* ==========================================================================
   20 · ACCOUNT MANAGEMENT - validity, plan, quota, verify, audit
   ========================================================================== */
.validity-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 10px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 700;
}
.validity-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.validity-chip .vc-date { font-family: var(--ff-mono); font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; }
.validity-chip .vc-days { font-size: 10.5px; opacity: 0.82; margin-left: 2px; }

.plan-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 750; letter-spacing: 0.01em;
}
.plan-basic { background: #EEF1F7; color: #3F4A60; }
.plan-pro { background: #E5ECFF; color: #2B41C7; }
.plan-max { background: #F0EAFF; color: #5B32B5; }

.quota-wrap { display: flex; flex-direction: column; gap: 6px; }
.quota-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.quota-used { font-family: var(--ff-mono); font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quota-rem { font-size: 11px; font-weight: 650; color: var(--ink-3); }
.quota-rem.over { color: var(--expired-ink); }
.quota-track { height: 8px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05); }
.quota-fill { height: 100%; border-radius: var(--r-full); background: var(--indigo); transition: width .6s var(--ease); }
.quota-fill.over { background: var(--expired); }

.verify-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.verify-badge svg { width: 12px; height: 12px; }
.vb-ok { background: var(--valid-bg); color: var(--valid-ink); }
.vb-no { background: var(--missing-bg); color: var(--missing-ink); }

.pw-pending-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; background: var(--expiring-bg); color: var(--expiring-ink); }
.pw-pending-chip svg { width: 12px; height: 12px; }
.pw-set-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; background: var(--valid-bg); color: var(--valid-ink); }
.pw-set-chip svg { width: 12px; height: 12px; }

/* Set / reset password field row + simulation note */
.pw-set-row { display: flex; gap: 8px; align-items: stretch; }
.pw-set-row input {
  flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 12px; font-size: 14px; font-family: var(--ff-mono); color: var(--ink); background: var(--surface-2);
}
.pw-set-row input:focus { outline: none; border-color: var(--indigo); background: #fff; }
.pw-set-row .btn { flex: none; height: 42px; }
.pw-sim-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pw-sim-note svg { width: 12px; height: 12px; flex: none; color: var(--ink-4); }

/* Owner card account row + quota */
.owner-acct-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 13px 22px 0; }
.owner-quota { padding: 11px 22px 15px; }

/* Owner-detail account & audit cards */
.acct-panel { display: flex; flex-direction: column; gap: 12px; }
.acct-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.acct-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-quota { margin-top: 18px; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.acct-facts { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.acct-fact { display: flex; flex-direction: column; gap: 2px; }
.acct-fact .af-l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 700; }
.acct-fact .af-v { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.audit-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.audit-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.audit-row:last-child { border-bottom: none; }
.audit-at { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; flex: none; width: 108px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.audit-action { font-size: 13px; font-weight: 650; color: var(--ink); }
.audit-actor { font-size: 11.5px; color: var(--ink-3); }

/* Temp-password share block */
.temp-pw { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--grad-soft); border: 1px dashed var(--indigo); border-radius: var(--r-sm); padding: 14px 16px; }
.temp-pw code { font-family: var(--ff-mono); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; color: var(--indigo-700); word-break: break-all; }

/* Checkbox row (add-client form) */
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--indigo); }

/* Wizard remaining-slots note */
.wiz-quota-note { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.wiz-quota-note svg { width: 14px; height: 14px; color: var(--indigo); flex: none; }
.wiz-quota-note.over { color: var(--expired-ink); }
.wiz-quota-note.over svg { color: var(--expired); }

/* Login - expired persona card + back-to-site + blocked screen */
.login-card.lc-disabled { opacity: 0.74; cursor: not-allowed; box-shadow: var(--sh-1); border-top-color: var(--expired); }
.login-card.lc-disabled:hover { transform: none; box-shadow: var(--sh-1); }
.lc-expired-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--expired-ink); }
.lc-expired-note svg { width: 13px; height: 13px; flex: none; }
.login-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--indigo-600); margin-bottom: 16px; }
.login-back svg { width: 15px; height: 15px; }
.login-back:hover { color: var(--indigo-700); }
.blocked-card { text-align: center; padding: 40px 32px 36px; }
.blocked-ico { width: 76px; height: 76px; border-radius: 22px; background: var(--expired-bg); color: var(--expired); display: grid; place-items: center; margin: 0 auto 20px; }
.blocked-ico svg { width: 34px; height: 34px; }
.blocked-card .login-title { margin-bottom: 10px; }
.blocked-card .btn { margin-top: 20px; }

/* ==========================================================================
   21 · PUBLIC LANDING PAGE
   ========================================================================== */
.landing { grid-column: 1 / -1; width: 100%; min-width: 0; color: var(--ink); background: var(--canvas); }

/* Top nav */
.ln-nav { position: sticky; top: 0; z-index: 50; background: var(--surface-veil); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--hairline); }
.ln-nav-inner { max-width: 1200px; margin: 0 auto; padding: 15px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ln-logo { display: inline-flex; align-items: center; gap: 11px; }
.ln-logo .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.ln-logo .brand-mark svg { width: 21px; height: 21px; }
.ln-logo-word { font-weight: 900; font-size: 22px; letter-spacing: -0.04em; color: var(--ink); }
.ln-logo-word span { color: var(--indigo-600); }
.ln-nav-links { display: flex; align-items: center; gap: 6px; }
.ln-nav-link { background: none; border: none; font-size: 14px; font-weight: 650; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: background .14s, color .14s; }
.ln-nav-link:hover { background: var(--line-soft); color: var(--ink); }
.ln-nav-signin { font-size: 14px; font-weight: 700; color: var(--indigo-600); padding: 8px 14px; border-radius: 10px; }
.ln-nav-signin:hover { color: var(--indigo-700); }

/* Hero */
.ln-hero { padding: 64px 28px 76px; }
.ln-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.ln-hero-copy { max-width: 620px; }
.ln-eyebrow { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border-radius: var(--r-full); background: var(--grad-soft); color: var(--indigo-700); font-size: 12.5px; font-weight: 750; margin-bottom: 22px; }
.ln-eyebrow svg { width: 14px; height: 14px; }
.ln-hero-h { font-size: clamp(32px, 4.6vw, 52px); font-weight: 850; letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 20px; color: var(--ink); }
.ln-hero-sub { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 30px; max-width: 540px; }
.ln-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ln-cta-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 15px; }
.ln-hero-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.ln-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }

/* Hero visual - solid indigo mock */
.ln-hero-visual { display: flex; justify-content: center; }
.ln-mock { width: 100%; max-width: 380px; background: #4F5DE8; border-radius: var(--r-xl); padding: 26px; color: #fff; box-shadow: var(--sh-hero); position: relative; overflow: hidden; isolation: isolate; }
.ln-mock::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: rgba(255, 255, 255, 0.08); border-radius: 50%; z-index: 0; }
.ln-mock > * { position: relative; z-index: 1; }
.ln-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ln-mock-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 12px; font-weight: 700; }
.ln-mock-badge svg { width: 14px; height: 14px; }
.ln-mock-gauge { display: flex; justify-content: center; padding: 6px 0 18px; }
.ln-mock-stats { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 18px; }
.ln-mock-stat { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.ln-mock-stat .lm-n { font-family: var(--ff-mono); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ln-mock-stat .lm-l { font-size: 11px; opacity: 0.85; font-weight: 600; }

/* Sections */
.ln-section { padding: 72px 28px; }
.ln-section-alt { background: var(--canvas-2); }
.ln-sec-inner { max-width: 1200px; margin: 0 auto; }
.ln-sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.ln-kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--indigo-600); margin-bottom: 12px; }
.ln-sec-h { font-size: clamp(26px, 3.4vw, 38px); font-weight: 820; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--ink); }
.ln-sec-sub { font-size: 16px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* Features */
.ln-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ln-feat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--sh-2); transition: transform .2s var(--ease), box-shadow .2s; }
.ln-feat:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.ln-feat-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); color: var(--indigo-600); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(79, 107, 255, 0.08); }
.ln-feat-ico svg { width: 24px; height: 24px; }
.ln-feat-h { font-size: 17px; font-weight: 780; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.ln-feat-p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* How it works */
.ln-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ln-step { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-2); }
.ln-step-n { position: absolute; top: 20px; right: 24px; font-family: var(--ff-mono); font-size: 40px; font-weight: 800; color: var(--line); letter-spacing: -0.04em; line-height: 1; }
.ln-step-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo); color: #fff; margin-bottom: 18px; box-shadow: var(--sh-glow-indigo); }
.ln-step-ico svg { width: 22px; height: 22px; }
.ln-step-h { font-size: 17px; font-weight: 780; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.ln-step-p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* Vehicle classes */
.ln-class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ln-class { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--sh-2); }
.ln-class .chip { margin-bottom: 14px; }
.ln-class-h { font-size: 15.5px; font-weight: 780; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.ln-class-p { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin: 0; }

/* Stats band - solid indigo */
.ln-stats-band { background: #4F5DE8; padding: 52px 28px; color: #fff; }
.ln-stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ln-stat { text-align: center; }
.ln-stat-n { display: block; font-family: var(--ff-mono); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ln-stat-l { display: block; font-size: 13px; font-weight: 600; opacity: 0.9; margin-top: 8px; }

/* Pricing */
.ln-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.ln-price { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-2); display: flex; flex-direction: column; }
.ln-price.popular { border-color: var(--indigo); border-width: 2px; box-shadow: var(--sh-3); }
.ln-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); height: 26px; padding: 0 14px; border-radius: var(--r-full); background: var(--indigo); color: #fff; font-size: 11.5px; font-weight: 750; display: inline-flex; align-items: center; box-shadow: var(--sh-glow-indigo); }
.ln-price-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.ln-price-amt { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.ln-price-cur { font-family: var(--ff-mono); font-size: 20px; font-weight: 700; color: var(--ink); }
.ln-price-num { font-family: var(--ff-mono); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.ln-price-per { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ln-price-quota { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.ln-price-quota b { color: var(--ink); font-family: var(--ff-mono); }
.ln-price-feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ln-price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.ln-price-feats svg { width: 15px; height: 15px; color: var(--valid); flex: none; margin-top: 1px; }

/* FAQ */
.ln-faq-inner { max-width: 760px; }
.ln-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ln-faq-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); box-shadow: var(--sh-1); overflow: hidden; }
.ln-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink); list-style: none; }
.ln-faq-item summary::-webkit-details-marker { display: none; }
.ln-faq-plus { display: grid; place-items: center; color: var(--ink-4); transition: transform .2s var(--ease); flex: none; }
.ln-faq-plus svg { width: 18px; height: 18px; }
.ln-faq-item[open] .ln-faq-plus { transform: rotate(90deg); color: var(--indigo-600); }
.ln-faq-a { padding: 0 22px 20px; font-size: 14px; line-height: 1.65; color: var(--ink-3); }

/* Footer */
.ln-footer { background: var(--ink); color: #fff; padding: 56px 28px 30px; }
.ln-footer .ln-sec-inner { max-width: 1200px; }
.ln-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ln-footer-brand .ln-logo-word { color: #fff; }
.ln-footer-brand .ln-logo-word span { color: #8AA0FF; }
.ln-footer-brand .brand-mark { background: var(--indigo); }
.ln-footer-blurb { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); margin: 16px 0 0; max-width: 340px; }
.ln-footer-links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.ln-footer-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.ln-footer-link { background: none; border: none; text-align: left; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.8); padding: 0; transition: color .14s; }
.ln-footer-link:hover { color: #fff; }
.ln-footer-txt { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.ln-footer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 960px) {
  .ln-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ln-hero-visual { order: -1; }
  .ln-feat-grid, .ln-step-grid, .ln-class-grid { grid-template-columns: 1fr 1fr; }
  .ln-price-grid { grid-template-columns: 1fr; max-width: 440px; }
  .ln-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ln-nav-link { display: none; }
  .ln-feat-grid, .ln-step-grid, .ln-class-grid, .ln-stats-grid { grid-template-columns: 1fr; }
  .ln-stats-grid { gap: 28px; }
  .ln-footer-grid { grid-template-columns: 1fr; }
  .ln-hero { padding: 40px 20px 48px; }
  .ln-section { padding: 52px 20px; }
}

/* ==========================================================================
   22 · CLIENT MANAGEMENT MODULE (#/clients)
   ========================================================================== */

/* New account states - solid pastel status chips */
.st-suspended { background: #EDEAF7; color: #5A4B96; } .st-suspended .dot { background: #8A76C8; }
.st-terminated { background: #E4E7EE; color: #434B5E; } .st-terminated .dot { background: #6B7488; }

/* Header + summary count chips */
.clients-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.client-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--surface);
  box-shadow: var(--sh-1); cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  position: relative;
}
.cs-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.cs-chip:hover { transform: translateY(-1px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.cs-chip .cs-n { font-family: var(--ff-mono); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.cs-chip .cs-l { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.cs-chip.active { border-color: var(--ink); box-shadow: 0 6px 16px -8px rgba(11,21,38,0.4); }
.cs-chip.active .cs-l { color: var(--ink); }
.cs-active::before { background: var(--valid); }
.cs-expiring::before { background: var(--expiring); }
.cs-expired::before { background: var(--expired); }
.cs-suspended::before { background: #8A76C8; }
.cs-terminated::before { background: #6B7488; }

/* Toolbar: search + dropdowns + status tabs */
.client-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.client-toolbar .search-inline { flex: 1; min-width: 240px; max-width: none; }
.cl-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-select {
  height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface-2); padding: 0 34px 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color .18s, box-shadow .18s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
.cl-select:focus { outline: none; border-color: var(--indigo); background-color: #fff; box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12); }
.client-tabs { margin-top: 2px; }

/* Table */
.clients-table-wrap {
  overflow: auto; max-height: calc(100vh - 300px);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-2);
}
.clients-table { width: 100%; min-width: 900px; }
.clients-table thead th {
  position: sticky; top: 0; z-index: 3; background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--line); border-bottom: none;
  white-space: nowrap;
}
.clients-table td { vertical-align: middle; }
.client-row { cursor: pointer; }
.clients-table .cl-actions-th { text-align: right; }
.clients-table .cl-actions-cell { text-align: right; width: 52px; }

.cl-client { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cl-client .owner-avatar { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.cl-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-name { font-size: 13.5px; font-weight: 750; color: var(--ink); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cl-email { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.cl-admin { display: flex; flex-direction: column; gap: 2px; }
.cl-admin b { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cl-admin-org, .cl-region { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cl-plan { display: flex; flex-direction: column; gap: 7px; min-width: 130px; }
.cl-usebar { display: flex; flex-direction: column; gap: 4px; }
.cl-used { font-family: var(--ff-mono); font-size: 11px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cl-usetrack { height: 6px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05); }
.cl-usefill { display: block; height: 100%; border-radius: var(--r-full); background: var(--indigo); }
.cl-usefill.over { background: var(--expired); }
.cl-mono { font-family: var(--ff-mono); font-weight: 650; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-login { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

.val-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.val-date { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}

/* Access chips */
.access-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.acc-full { background: var(--valid-bg); color: var(--valid-ink); }
.acc-readonly { background: var(--expiring-bg); color: var(--expiring-ink); }
.acc-restricted { background: #E5ECFF; color: #2B41C7; }

/* Kebab button */
.cl-kebab {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--ink-3); display: inline-grid; place-items: center; cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.cl-kebab:hover { background: var(--line-soft); color: var(--ink); border-color: var(--line); }

/* Row action menu (rendered into #popover-root, fixed) */
.popover-backdrop { position: fixed; inset: 0; z-index: 190; }
.client-menu {
  position: fixed; z-index: 200; min-width: 210px; padding: 7px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); animation: pop .18s var(--ease);
}
.client-menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 11px; border-radius: 10px; border: none; background: transparent;
  font-size: 13px; font-weight: 650; color: var(--ink-2); transition: background .14s, color .14s; cursor: pointer;
}
.client-menu-item svg { width: 16px; height: 16px; opacity: 0.78; }
.client-menu-item:hover { background: var(--line-soft); color: var(--ink); }
.client-menu-item.ok { color: var(--valid-ink); }
.client-menu-item.ok:hover { background: var(--valid-bg); }
.client-menu-item.warn { color: var(--expiring-ink); }
.client-menu-item.warn:hover { background: var(--expiring-bg); }
.client-menu-item.danger { color: var(--expired-ink); }
.client-menu-item.danger:hover { background: var(--expired-bg); }
.client-menu-sep { height: 1px; background: var(--line-soft); margin: 6px 4px; }

/* Read-only inline note (owner session, limited access) */
.access-note {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px;
  border-radius: var(--r-sm); background: var(--expiring-bg); color: var(--expiring-ink);
  font-size: 12px; font-weight: 650; line-height: 1.3;
}
.access-note svg { width: 13px; height: 13px; flex: none; }

/* Limit-access modal */
.access-opts { display: flex; flex-direction: column; gap: 10px; }
.access-opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .14s, background .14s;
}
.access-opt:hover { border-color: var(--indigo); background: var(--surface-2); }
.access-opt input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--indigo); }
.access-opt .ao-body { display: flex; flex-direction: column; gap: 2px; }
.access-opt .ao-t { font-size: 13.5px; font-weight: 750; color: var(--ink); }
.access-opt .ao-d { font-size: 12px; color: var(--ink-3); font-weight: 500; line-height: 1.4; }
.cl-granular { margin-top: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--grad-soft); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
.cl-granular-lbl { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }

/* Terminate strong-confirm banner */
.terminate-warn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--expired-bg); color: var(--expired-ink); font-size: 13px; font-weight: 750; }
.terminate-warn svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 720px) {
  .clients-table-wrap { max-height: none; }
  .client-summary { gap: 8px; }
  .cs-chip { padding: 8px 12px 8px 10px; }
  .client-toolbar .cl-selects { width: 100%; }
  .cl-select { flex: 1; }
}

/* ==========================================================================
   21 · REPORTS CENTER - landing cards, filter bar, stat tiles, data table
   ========================================================================== */
.rpt-scope-band {
  display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px;
  padding: 13px 16px; border-radius: var(--r); background: var(--grad-soft);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1);
  font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.5;
}
.rpt-scope-band svg { color: var(--indigo-600); flex: none; margin-top: 1px; }

/* Landing card grid */
.rpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.rpt-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); text-align: left;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.rpt-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.rpt-card-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--indigo-600);
  box-shadow: inset 0 0 0 1px rgba(79, 107, 255, 0.10);
}
.rpt-card-ico svg { width: 23px; height: 23px; }
.rpt-card-body { flex: 1; min-width: 0; }
.rpt-card-title { display: block; font-size: 15px; font-weight: 780; letter-spacing: -0.01em; color: var(--ink); }
.rpt-card-desc { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.rpt-card-go {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--indigo-600); white-space: nowrap; align-self: flex-start;
}
.rpt-card-go svg { width: 15px; height: 15px; }
.rpt-card:hover .rpt-card-go { color: var(--indigo-700); }

/* Report view header + actions */
.rpt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rpt-generated { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-4); margin-top: 8px; font-variant-numeric: tabular-nums; }
.rpt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Shared grid/report filter+search bar - sits BELOW stat tiles, ABOVE table.
   Left: search + dropdown filters. Right: result count + export toolbar. */
.grid-bar { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gb-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex: 1 1 320px; min-width: 0; }
.gb-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.gb-count { font-size: 12.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.gb-count b { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.export-toolbar { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.export-toolbar .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .grid-bar { flex-direction: column; align-items: stretch; }
  .gb-right { margin-left: 0; justify-content: space-between; }
  .export-toolbar { flex: 1; }
  .export-toolbar .btn { flex: 1; justify-content: center; }
}

/* Filter bar */
.rpt-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.rpt-seg {
  display: inline-flex; padding: 4px; gap: 3px; border-radius: var(--r-sm);
  background: var(--line-soft); border: 1px solid var(--line);
}
.rpt-seg-btn {
  height: 34px; padding: 0 14px; border: none; background: transparent; border-radius: 10px;
  font-size: 13px; font-weight: 650; color: var(--ink-3);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.rpt-seg-btn:hover { color: var(--ink); }
.rpt-seg-btn.active { background: var(--surface); color: var(--indigo-700); box-shadow: var(--sh-1); }

/* Stat tiles */
.rpt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.rpt-stat {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 6px;
}
.rpt-stat .rs-n {
  font-family: var(--ff-mono); font-size: var(--fs-26); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.rpt-stat .rs-l { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Data table */
.rpt-table-wrap {
  overflow: auto; max-height: calc(100vh - 320px);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-2);
}
.rpt-table { width: 100%; min-width: 720px; }
.rpt-table thead th {
  position: sticky; top: 0; z-index: 3; background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--line); border-bottom: none; white-space: nowrap;
}
.rpt-table td { vertical-align: middle; white-space: nowrap; }
.rpt-table tbody tr:hover { background: var(--line-soft); }
.rpt-table .rpt-mono {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em;
}

/* Search box inside the report filter bar */
.rpt-search-box { min-width: 200px; max-width: 340px; }

/* Sortable column header - a full-width button that inherits the th type */
.rpt-sort {
  display: inline-flex; align-items: center; gap: 6px; width: 100%;
  background: transparent; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  text-align: inherit; transition: color .14s var(--ease);
}
.rpt-sort:hover { color: var(--indigo-700); }
.rpt-sort:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 5px; }
.rpt-sort.active { color: var(--indigo-700); }
.rpt-caret {
  font-family: var(--ff-mono); font-size: 10px; line-height: 1; opacity: .4;
  flex: 0 0 auto; transition: opacity .14s var(--ease);
}
.rpt-sort:hover .rpt-caret { opacity: .7; }
.rpt-caret.on { opacity: 1; color: var(--indigo-700); }

/* "Showing N of M" row count */
.rpt-count {
  font-size: 12.5px; color: var(--ink-3); margin: -8px 0 14px; font-weight: 600;
}
.rpt-count b {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink);
}

/* Friendly empty-state row (keeps the sortable header visible) */
.rpt-empty-row, .matrix td.rpt-empty-row {
  text-align: center; color: var(--ink-3); font-size: 13.5px;
  padding: 34px 12px; white-space: normal;
}

/* Matrix / drill-in search count */
.matrix-count {
  font-size: 12.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap;
}
.matrix-count b {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink);
}
.drill-toolbar { margin-bottom: 16px; }

/* Reports landing - flagship "Vehicle Dossier" feature card */
.rpt-feature {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--sh-2); margin-bottom: 20px;
  transition: box-shadow .16s var(--ease), transform .16s var(--ease), border-color .16s var(--ease);
}
.rpt-feature:hover { box-shadow: var(--sh-3); transform: translateY(-1px); border-color: var(--indigo); }
.rpt-feature-ico {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--indigo); color: #fff; display: grid; place-items: center;
}
.rpt-feature-body { flex: 1; min-width: 0; }
.rpt-feature-title { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.rpt-feature-desc { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }

/* Vehicle Dossier - picker + section tables */
.dossier-picker .search-inline { margin-top: 14px; }
.dossier-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dossier-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; cursor: pointer; transition: border-color .14s var(--ease), background .14s var(--ease);
}
.dossier-opt:hover { border-color: var(--indigo); background: var(--grad-soft); }
.dossier-opt.active { border-color: var(--indigo); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--indigo); }
.dossier-opt .do-meta { display: flex; flex-direction: column; min-width: 0; }
.dossier-opt .do-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.dossier-opt .do-sub { font-size: 11.5px; color: var(--ink-3); }
.dossier-selected { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dossier-selected .ds-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.dossier-selected .ds-owner { font-size: 12.5px; color: var(--ink-3); }
.dossier-section { margin-bottom: 16px; }
.dossier-table-wrap { overflow-x: auto; }
.kv-table td.kv-k { font-weight: 650; color: var(--ink-2); width: 40%; white-space: nowrap; }
.kv-table .rpt-mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ink); }

@media (max-width: 720px) {
  .rpt-stats { grid-template-columns: 1fr 1fr; }
  .rpt-table-wrap { max-height: none; }
  .rpt-head { flex-direction: column; }
  .rpt-actions { width: 100%; }
  .rpt-actions .btn { flex: 1; justify-content: center; }
  .rpt-search-box { max-width: none; }
  .rpt-feature { flex-wrap: wrap; }
}

/* ==========================================================================
   22 · PRINT - clean report layout (screen-hidden, print-only)
   ========================================================================== */
#report-print-root { display: none; }

@media print {
  body > *:not(#report-print-root) { display: none !important; }
  #report-print-root { display: block !important; }
  html, body { background: #fff !important; }
  @page { margin: 16mm 12mm; }

  .rpt-print-doc { font-family: var(--ff); color: #0B1526; }
  .rpt-print-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid #0B1526;
  }
  .rpt-print-brand { display: flex; align-items: center; gap: 10px; }
  .rpt-print-mark {
    width: 32px; height: 32px; border-radius: 9px; background: #4F5DE8;
    display: grid; place-items: center; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .rpt-print-mark svg { width: 18px; height: 18px; }
  .rpt-print-word { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; color: #0B1526; }
  .rpt-print-meta { font-family: var(--ff-mono); font-size: 11px; color: #3B475C; text-align: right; }
  .rpt-print-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
  .rpt-print-desc { font-size: 12px; color: #3B475C; margin: 0 0 16px; }
  .rpt-print-empty { font-size: 13px; color: #3B475C; }

  .rpt-print-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
  .rpt-print-table th {
    text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em;
    color: #64748B; font-weight: 700; padding: 7px 8px; border-bottom: 1.5px solid #0B1526;
  }
  .rpt-print-table td { padding: 6px 8px; border-bottom: 1px solid #E4E7EE; color: #0B1526; }
  .rpt-print-table tr { page-break-inside: avoid; }
  .rpt-print-foot { margin-top: 20px; font-size: 10px; color: #94A3B8; text-align: center; }

  /* Multi-section print (Vehicle Dossier) */
  .rpt-print-section-title {
    font-size: 13px; font-weight: 800; color: #0B1526; letter-spacing: -0.01em;
    margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #C7CEDA;
    page-break-after: avoid;
  }
  .rpt-print-doc .rpt-print-table { margin-bottom: 6px; }
}

/* ==========================================================================
   20 · TEAM (fleet-owner sub-users)
   ========================================================================== */
/* Sub-user role badges - solid pastel tints, AA text.
   manager=indigo · accountant=teal · driver=amber · viewer=slate */
.srole-manager    { background: var(--grad-soft);   color: var(--indigo-700); }
.srole-accountant { background: var(--cng-bg);      color: var(--cng-ink); }
.srole-driver     { background: var(--gcv-bg);      color: var(--gcv-ink); }
.srole-viewer     { background: var(--missing-bg);  color: var(--missing-ink); }

/* Team tag on the user chip + team-scoped chip accent */
.team-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px;
  border-radius: var(--r-full); background: var(--grad-soft); color: var(--indigo-700);
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.team-tag svg { width: 11px; height: 11px; }
.user-chip-team { border-color: var(--indigo); }

/* Login: sub-user cards grouped under their owner */
.login-card.lc-team { border-top-color: var(--indigo); }
.login-card.lc-team.srole-top-accountant { border-top-color: var(--cng); }
.login-card.lc-team.srole-top-driver { border-top-color: var(--gcv); }
.login-card.lc-team.srole-top-viewer { border-top-color: var(--missing); }
.login-subgroup { margin-bottom: 18px; }
.login-subgroup:last-child { margin-bottom: 0; }
.login-subgroup-owner {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
}
.login-subgroup-owner svg { width: 14px; height: 14px; }

/* Preview banner - a full owner viewing their app as a sub-user (purple) */
.preview-banner { background: var(--misc); border-bottom-color: var(--misc-ink); }
.preview-banner .sab-exit { color: var(--misc-ink); }

/* Team table - assigned-vehicle plates + static count chips */
.cs-chip.cs-static { cursor: default; }
.team-assigned { font-size: 12.5px; color: var(--ink-2); }
.team-veh-plates { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 8px; vertical-align: middle; }
.team-plate-mini {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  background: var(--ink); color: #fff; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em;
}
.team-table .owner-avatar { font-size: 13px; }

/* Add/edit member modal - assigned-vehicles checklist */
.mbr-veh-list {
  display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.mbr-veh-row { font-weight: 600; }

/* ==========================================================================
   21 · ASK DRIVIO - AI Fleet Assistant (FAB + slide-in panel + full page)
   Pattern-based simulation. Solid colours only.
   ========================================================================== */
.asst-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 15px;
  border: none; border-radius: var(--r-full); background: var(--indigo); color: #fff;
  font-family: var(--ff); font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: var(--sh-glow-indigo); cursor: pointer;
  transition: transform .16s var(--ease), background .16s;
}
.asst-fab:hover { background: var(--indigo-600); transform: translateY(-2px); }
.asst-fab:active { transform: translateY(0); }
.asst-fab:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--sh-glow-indigo); }
.asst-fab .asst-fab-ico { display: grid; place-items: center; }
.asst-fab svg { width: 22px; height: 22px; }
.asst-fab[hidden] { display: none; }

.asst-scrim { position: fixed; inset: 0; z-index: 128; background: rgba(11, 21, 38, 0.42); animation: fade .2s; }
.asst-scrim[hidden] { display: none; }
@media (min-width: 621px) { .asst-scrim { display: none !important; } }

.asst-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 130;
  width: 404px; max-width: 92vw; display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-3);
  transform: translateX(103%); visibility: hidden;
  transition: transform .28s var(--ease-out), visibility 0s linear .28s;
}
.asst-panel.open { transform: none; visibility: visible; transition: transform .28s var(--ease-out); }

.asst-head { display: flex; align-items: center; gap: 11px; padding: 15px 15px 13px; border-bottom: 1px solid var(--line-soft); }
.asst-head-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: var(--indigo); color: #fff; display: grid; place-items: center; }
.asst-head-ico svg { width: 19px; height: 19px; }
.asst-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.asst-ai-tag {
  display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px;
  border-radius: var(--r-full); background: var(--grad-soft); color: var(--indigo-700);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.asst-ai-tag svg { width: 10px; height: 10px; }
.asst-sub { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.asst-head-actions { margin-left: auto; display: flex; gap: 2px; }
.asst-head-actions .icon-btn { width: 34px; height: 34px; }

.asst-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 13px; background: var(--canvas); }
.asst-msg { display: flex; gap: 9px; max-width: 100%; align-items: flex-start; animation: asstIn .22s var(--ease-out); }
.asst-msg.user { justify-content: flex-end; }
.asst-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: var(--indigo); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.asst-avatar svg { width: 16px; height: 16px; }
.asst-bubble { max-width: 83%; padding: 10px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.5; }
.asst-msg.bot .asst-bubble { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-top-left-radius: 5px; box-shadow: var(--sh-1); }
.asst-msg.user .asst-bubble { background: var(--indigo); color: #fff; border-top-right-radius: 5px; font-weight: 600; }
.asst-say b { color: var(--ink); font-weight: 700; }
@keyframes asstIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.asst-mono { font-family: var(--ff-mono); font-weight: 700; color: var(--ink); }
.asst-plate {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px;
  background: var(--ink); color: #fff; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.asst-result { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.asst-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 7px 9px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; font-size: 12px;
}
.asst-row-mid { color: var(--ink-2); font-weight: 600; }
.asst-row-days { margin-left: auto; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-3); }
.asst-row .status-chip { height: 20px; font-size: 10.5px; }
.asst-more { font-size: 11px; color: var(--ink-4); font-weight: 600; padding: 2px 4px; }
.asst-stat {
  display: flex; align-items: baseline; gap: 9px; margin-top: 9px; padding: 11px 13px;
  background: var(--grad-soft); border-radius: 12px;
}
.asst-stat-n { font-family: var(--ff-mono); font-size: 20px; font-weight: 800; color: var(--indigo-700); }
.asst-stat-l { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.asst-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.asst-act {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px;
  border-radius: var(--r-full); background: var(--indigo); color: #fff; border: none;
  font-family: var(--ff); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.asst-act:hover { background: var(--indigo-600); }
.asst-act:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.asst-act svg { width: 13px; height: 13px; }
.asst-inline-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }

.asst-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 14px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.asst-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: var(--r-full); background: var(--canvas-2); border: 1px solid var(--line);
  color: var(--ink-2); font-family: var(--ff); font-size: 12px; font-weight: 650; cursor: pointer; transition: all .15s;
}
.asst-chip:hover { border-color: var(--indigo); color: var(--indigo-700); background: var(--grad-soft); }
.asst-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.asst-input-row { display: flex; gap: 8px; padding: 12px 14px 6px; background: var(--surface); align-items: center; }
.asst-input {
  flex: 1; height: 42px; padding: 0 15px; border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--surface-2); font-family: var(--ff); font-size: 13.5px; color: var(--ink);
}
.asst-input::placeholder { color: var(--ink-4); }
.asst-input:focus { outline: none; border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.14); }
.asst-send {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--indigo);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.asst-send:hover { background: var(--indigo-600); }
.asst-send:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.asst-send svg { width: 18px; height: 18px; }
.asst-foot { padding: 6px 16px 13px; font-size: 10.5px; color: var(--ink-4); text-align: center; background: var(--surface); line-height: 1.45; }

/* Full-page assistant (#/assistant) - same conversation, roomier card */
.asst-page-card { display: flex; flex-direction: column; overflow: hidden; height: calc(100vh - 230px); min-height: 440px; padding: 0; }
.asst-page-card .asst-thread { background: var(--surface); }

/* Bottom-sheet on small screens */
@media (max-width: 620px) {
  .asst-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 86vh;
    border-left: none; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
    transform: translateY(103%);
  }
  .asst-panel.open { transform: none; }
  .asst-bubble { max-width: 86%; }
}
@media (max-width: 980px) {
  .asst-fab { right: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); }
}
