/* =========================================================
   FLEETSIGNAL MASTER STYLESHEET
   CLEAN STABLE VERSION
   ========================================================= */



/* =========================================================
   GLOBAL RESET + BASE STYLES
   ========================================================= */



/* =========================================================
   APP SHELL + MAIN LAYOUT
   ========================================================= */



/* =========================================================
   HEADER SYSTEM
   ========================================================= */



/* =========================================================
   HEADER TRAFFIC ANIMATION
   ========================================================= */



/* =========================================================
   AUTHENTICATION UI
   ========================================================= */



/* =========================================================
   FORM CONTROLS
   ========================================================= */



/* =========================================================
   VEHICLE CARDS
   ========================================================= */



/* =========================================================
   STATUS PILLS
   ========================================================= */



/* =========================================================
   PREMIUM FEATURES
   ========================================================= */



/* =========================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================= */


:root {
  --bg: #eef3fb;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #64748b;
  --blue: #0f62fe;
  --blue-dark: #1d4ed8;
  --cyan: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(0,114,255,0.08), transparent 60%);
  z-index: -1;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 40%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 40%),
    linear-gradient(180deg, #edf4ff 0%, #f7f9fc 100%);
}

.hidden {
  display: none !important;
}

/* APP SHELL */

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;

    overflow: hidden;
    padding: 12px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    background:
      linear-gradient(
        135deg,
        rgba(15, 98, 254, 0.96),
        rgba(59, 130, 246, 0.92)
      );

    color: white;

    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

#headerPlanBadge,
.logout-btn {
  width: 90px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  line-height: 1;
}

.header-user-email {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 190px;
    height: 20px;

    padding: 0 18px;

    border-radius: 999px;

    background: rgba(255,255,255,0.14);

    border: 1px solid rgba(255,255,255,0.16);

    color: white;

    font-size: 11px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-sizing: border-box;

    flex-shrink: 1;
}

.header-user-email::before{
  content:"👤";
  font-size:10px;
  opacity:0.9;
}

.header-left{
  min-width:0;
}

.badge{
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.3px;
}

.badge.free{
  background:rgba(255,255,255,0.18);
  color:white;
  border:1px solid rgba(255,255,255,0.22);
}

.badge.premium{
  background:linear-gradient(135deg,#facc15,#f59e0b);
  color:#111827;
  box-shadow:0 4px 14px rgba(245,158,11,0.35);
}

.logo-mark {
  font-size: 18px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
}

.logo-text {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.logout-btn {
    border: none;
    border-radius: 14px;

    height: 20px;
    min-width: 80px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #fb7185, #ef4444);

    color: white;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

.logout-btn:active {
  transform: scale(0.96);
}

.app-content {
  flex: 1;
  padding-bottom: 90px;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

/* CARDS */

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-top: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.auth-card {
  margin-top: 30px;
}

.card h1,
.card h2,
.card h3 {
  margin: 0;
  letter-spacing: -0.7px;
}

.card h2 {
  font-size: 30px;
}

.card h3 {
  font-size: 22px;
}

/* DASHBOARD HERO */

.dashboard-hero {
  margin: 18px 16px 0;
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15,98,254,0.95), rgba(56,189,248,0.92));
  color: white;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -1.4px;
}

.dashboard-hero p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  font-weight: 600;
}

.hero-icon {
  font-size: 42px;
}

/* AUTH */

.auth-kicker,
.upgrade-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-kicker {
  color: var(--blue-dark);
  background: rgba(37, 99, 235, 0.10);
  margin-bottom: 12px;
}

.auth-subtext,
.dashboard-subtext,
.section-subtext,
.upgrade-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* INPUTS */

input {
  width: 100%;
  margin-top: 11px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255,255,255,0.88);
  color: var(--text);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

/* BUTTONS */

button {
  font-family: inherit;
}

.primary-btn,
.secondary-btn,
.upgrade-btn {
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn {
  width: 100%;
  margin-top: 15px;
  padding: 15px 16px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.secondary-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(145deg, #f1f5f9, #e5e7eb);
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn:active,
.secondary-btn:active,
.upgrade-btn:active {
  transform: scale(0.97);
}

/* USER BAR */

.user-bar {
  margin: 2px 0 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-bar-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-user-email {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 900;
}

/* BADGES */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.badge.free {
  background: #edf2f7;
  color: #64748b;
}

.badge.premium {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  box-shadow: 0 0 18px rgba(34,197,94,0.32);
}

/* ALERT TOGGLE */

.alert-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

#alertsLabel {
  font-size: 15px;
  font-weight: 900;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: var(--pill);
  transition: 0.25s ease;
}

.slider:before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* RESULT */

.result-box {
  display: none;
  margin-top: 15px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
}

/* UPGRADE */

.upgrade-box {
  margin-top: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 38%),
    linear-gradient(135deg, #0891b2, #0284c7, #2563eb);
  color: white;
  text-align: center;
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.26);
}

.upgrade-box p {
  margin: 8px 0;
  font-size: 20px;
}

.upgrade-copy {
  color: rgba(255,255,255,0.82);
}

.upgrade-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: white;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

/* VEHICLE LIST */

.vehicle-list-card {
  margin-bottom: 24px;
}

#vehicleList {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-state {
  text-align: center;
  padding: 30px 18px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

/* PREMIUM VEHICLE CARD */

.vehicle-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(255,255,255,0.72);
  animation: fadeSlideUp 0.34s ease forwards;
  opacity: 0;
}

.vehicle-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 0 10px 10px 0;
}

.vehicle-card.green::before {
  background: linear-gradient(180deg, #22c55e, #86efac);
}

.vehicle-card.yellow::before {
  background: linear-gradient(180deg, #f59e0b, #fde68a);
}

.vehicle-card.red::before {
  background: linear-gradient(180deg, #ef4444, #fca5a5);
}

.vehicle-card.green {
  box-shadow: 0 14px 34px rgba(34,197,94,0.10);
}

.vehicle-card.yellow {
  box-shadow: 0 14px 34px rgba(245,158,11,0.13);
}

.vehicle-card.red {
  box-shadow: 0 14px 34px rgba(239,68,68,0.16);
}

.vehicle-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.vehicle-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.vehicle-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  font-size: 23px;
}

/* OLD MINI REG RULE DISABLED

.vehicle-reg {
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.04em;
}

*/

.vehicle-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-status {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-pill.green {
  background: rgba(34, 197, 94, 0.13);
  color: #15803d;
}

.status-pill.green .dot {
  background: #22c55e;
}

.status-pill.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #a16207;
}

.status-pill.yellow .dot {
  background: #f59e0b;
}

.status-pill.red {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.status-pill.red .dot {
  background: #ef4444;
}

.delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: white;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(239,68,68,0.24);
  flex: 0 0 auto;
}

.delete-btn:active,
.vehicle-card:active {
  transform: scale(0.98);
}

.mot-countdown {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 900;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* DESKTOP */

@media (min-width: 760px) {
  .app-shell {
    max-width: 760px;
  }

  .container {
    max-width: 620px;
  }

  .dashboard-hero {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
  .container {
    padding: 14px;
  }

  .dashboard-hero h1 {
    font-size: 30px;
  }

  .card {
    padding: 18px;
  }

  /*

  .vehicle-reg {
    font-size: 20px;
  }

  */
}


.mot-badge {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 6px;
  display: inline-block;
  font-weight: 600;
}

.mot-badge.green {
  background: #16a34a;
  color: white;
}

.mot-badge.orange {
  background: #f59e0b;
  color: white;
}

.mot-badge.red {
  background: #dc2626;
  color: white;
}

.mot-badge.grey {
  background: #6b7280;
  color: white;
}

/* =======================
   FLEETSIGNAL – PREMIUM UI FINAL
   ======================= */

/* ---------- BASE POLISH ---------- */
body {
  background: #f5f7fb;
  -webkit-font-smoothing: antialiased;
}

/* App container */
.app-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- HEADER (APPLE STYLE) ---------- */
.header {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  color: white;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(0, 114, 255, 0.25);
  backdrop-filter: blur(12px);
}

/* ---------- CARD SYSTEM ---------- */
.card,
.vehicle-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow:
    0 8px 25px rgba(0,0,0,0.06),
    0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

/* Hover lift (desktop only) */
@media (hover: hover) {
  .vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 35px rgba(0,0,0,0.08),
      0 4px 12px rgba(0,0,0,0.05);
  }
}

/* ---------- VEHICLE ICON ---------- */
.vehicle-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ---------- REG TEXT ---------- */
.vehicle-reg {
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- STATUS PILLS (GLOWING) ---------- */
.status-pill {
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

/* Dot inside pill */
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* GREEN */
.status-pill.green {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  box-shadow: 0 0 10px rgba(34,197,94,0.25);
}
.status-pill.green .dot {
  background: #22c55e;
}

/* YELLOW */
.status-pill.yellow {
  background: rgba(245,158,11,0.12);
  color: #d97706;
  box-shadow: 0 0 10px rgba(245,158,11,0.25);
}
.status-pill.yellow .dot {
  background: #f59e0b;
}

/* ORANGE (match JS) */
.status-pill.orange {
  background: rgba(245,158,11,0.12);
  color: #d97706;
  box-shadow: 0 0 10px rgba(245,158,11,0.25);
}

.status-pill.orange .dot {
  background: #f59e0b;
}

/* RED */
.status-pill.red {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  box-shadow: 0 0 10px rgba(239,68,68,0.25);
}
.status-pill.red .dot {
  background: #ef4444;
}

/* ---------- DELETE BUTTON ---------- */
.delete-btn {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

/* ---------- BUTTONS ---------- */
button {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ---------- PREMIUM CARD ---------- */
.premium-card {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,114,255,0.25);
  position: relative;
  overflow: hidden;
}

/* Glow animation */
.premium-card::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  top: -50%;
  left: -50%;
  animation: glowMove 6s linear infinite;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  50% { transform: translate(25%,25%); }
  100% { transform: translate(0,0); }
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  opacity: 0.7;
}

.empty-state-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

/* =======================
   DESKTOP ENHANCEMENTS
   ======================= */

@media (min-width: 768px) {

  .app-shell {
    margin: 50px auto;
    padding: 20px;
  }

  .header {
    height: 60px;
    font-size: 18px;
  }

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

  .vehicle-reg {
    font-size: 18px;
  }

  .vehicle-meta {
    font-size: 13px;
    opacity: 0.7;
  }

  .status-pill {
    font-size: 12px;
    padding: 6px 10px;
  }

}

/* =========================
   PREMIUM BOTTOM NAV
========================= */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 8px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 20px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}


/* NAV ITEM */
.nav-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #6b7280;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 10px 6px;
  border-radius: 14px;

  transition: all 0.25s ease;
}

/* ICON */
.nav-item span {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}

/* ACTIVE STATE */
.nav-item.active {
 background: linear-gradient(135deg, #3b82f6, #06b6d4);
 color: white;
 font-weight: 600;

 box-shadow:
   0 6px 16px rgba(59,130,246,0.35),
   inset 0 1px rgba(255,255,255,0.4);

 transform: translateY(-2px);
}

/* HOVER (desktop only) */
@media (hover: hover) {
  .nav-item:hover {
    transform: translateY(-2px);
    background: rgba(59,130,246,0.08);
  }
}

/* =========================
   VIEW FADE ANIMATION
========================= */

.fade-in {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   PREMIUM TOGGLE (APPLE STYLE)
========================= */

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

/* hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* slider background */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 30px;
  transition: 0.3s;
}

/* circle */
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* ON state */
input:checked + .slider {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* move circle */
input:checked + .slider:before {
  transform: translateX(22px);
}

/* label styling */
#alertsLabel {
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  transition: 0.3s;
}

/* INPUT GROUP (premium spacing) */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

/* LABEL */
.input-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-left: 4px;
}

/* HELPER TEXT */
.helper-text {
  font-size: 11px;
  color: #9ca3af;
  margin-left: 4px;
}

/* DATE INPUT POLISH */
.input[type="date"] {
  appearance: none;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

/* FOCUS GLOW (premium feel) */
.input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ALERT PILLS (match your glowing style) */
.status-pill.alert {
  font-weight: 600;
}

/* URGENT (RED) */
.status-pill.alert.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* WARNING (ORANGE) */
.status-pill.alert.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* =========================
   GLOBAL WIDTH FIX (FINAL CLEAN)
========================= */

/* MAIN PAGE WIDTH */
.container,
.reg-hero {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* REMOVE DOUBLE PADDING ISSUE */
.container {
  padding: 0 16px;
}

/* MAKE CARDS RESPECT WIDTH */
.card {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
}

/* FIX HERO SPACING */
.reg-hero {
  margin: 0 auto 10px auto;
}

/* REMOVE EXTRA GAP FROM NEXT SECTION */
#detailsSection {
  margin-top: 0;
}

/* =========================
   FINAL POLISH (DROP-IN)
========================= */

/* FIX GLOBAL WIDTH + CONSISTENCY */
.container,
.reg-hero {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.container {
  padding: 0 16px;
}

.card {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* FIX HERO SPACING */
.reg-hero {
  margin: 0 auto 12px auto;
}

/* REMOVE GAP BELOW HERO */
#detailsSection {
  margin-top: 0;
}

/* CONSISTENT SECTION SPACING */
#resultSection,
#detailsSection,
#alertsSection,
.upgrade-box,
.vehicle-list-card {
  margin-top: 14px;
}

.logged-in-bar{
  margin:12px 16px 0;
  padding:10px 14px;

  background:rgba(255,255,255,0.72);

  border-radius:14px;

  font-size:13px;
  font-weight:700;

  color:#111827;

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  box-shadow:
    0 4px 18px rgba(0,0,0,0.06);
}

#dashboardUserEmail{
  color:#0072ff;
}

/* =========================
   BUTTON POLISH
========================= */

.check-btn {
  margin-top: 14px;
  width: 100%;
  padding: 16px;

  border-radius: 16px;
  border: none;

  font-size: 16px;
  font-weight: 600;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;

  transition: all 0.2s ease;
}

.check-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(37,99,235,0.35);
}

.check-btn:active {
  transform: scale(0.97);
}

/* =========================
   RESULT CARD UPGRADE
========================= */

.result-card {
  border-radius: 18px;
  padding: 16px;

  background: linear-gradient(180deg, #ffffff, #f9fafb);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.06);

  font-size: 15px;
}

/* =========================
   SMOOTH APP FEEL
========================= */

* {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

/* =========================
   FINAL SAFE OVERRIDES
   KEEP ORIGINAL PREMIUM UI
========================= */

/* keep page width stable */
.app-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.container,
.reg-hero {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* prevent old duplicate padding problems */
.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================
   VEHICLE CARD RESTORE
========================= */

.vehicle-card {
  position: relative;
  overflow: hidden;

  padding: 17px;
  border-radius: 24px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));

  border: 1px solid rgba(255,255,255,0.72);

  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);

  animation: fadeSlideUp 0.34s ease forwards;
  opacity: 1;
}

.vehicle-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 0 10px 10px 0;
}

.vehicle-card.green::before {
  background: linear-gradient(180deg, #22c55e, #86efac);
}

.vehicle-card.yellow::before,
.vehicle-card.orange::before {
  background: linear-gradient(180deg, #f59e0b, #fde68a);
}

.vehicle-card.red::before {
  background: linear-gradient(180deg, #ef4444, #fca5a5);
}

/* keep card layout as before */
.vehicle-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.vehicle-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.vehicle-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 23px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.vehicle-reg {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 190px;
    height: 52px;

    padding-left: 60px;
    padding-right: 10px;

    background: linear-gradient(
        180deg,
        #ffd84d 0%,
        #f5c400 100%
    );

    border: 4px solid #111;
    border-radius: 14px;

    overflow: hidden;
    box-sizing: border-box;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #111;

    white-space: nowrap;
}

.vehicle-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-status {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================
   MOBILE CARD SAFETY
========================= */

@media (max-width: 480px) {
  .vehicle-reg {
    font-size: 20px;
  }
}

/* ===== PLAN BADGE ===== */
.badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 6px;
}

.badge.free {
  background: rgba(255,255,255,0.2);
  color: white;
}

.badge.premium {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.logged-in-bar{
  display:block !important;
}

.scroll-down{
  display:flex;
  justify-content:center;
  align-items:center;

  margin:28px auto 10px;

  width:54px;
  height:54px;

  border-radius:50%;

  background:linear-gradient(135deg,#00c6ff,#0072ff);

  color:white;

  font-size:28px;
  font-weight:900;

  box-shadow:
    0 10px 30px rgba(0,114,255,0.25);

  animation:bounceArrow 2s infinite;
}

@keyframes bounceArrow{

  0%,20%,50%,80%,100%{
    transform:translateY(0);
  }

  40%{
    transform:translateY(10px);
  }

  60%{
    transform:translateY(5px);
  }
}

/* =========================================================
   FLEETSIGNAL UI LAYER v2
   SAFE VISUAL POLISH ONLY
   (NON-DESTRUCTIVE)
========================================================= */

/* =========================================================
   GLOBAL PREMIUM SMOOTHING
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* softer overall rendering */
* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   FLOATING BACKGROUND GLOWS
========================================================= */

body::after {
  content: "";

  position: fixed;

  top: -20%;
  right: -20%;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(56,189,248,0.12),
      transparent 70%
    );

  pointer-events: none;
  z-index: -1;

  filter: blur(40px);
}

/* =========================================================
   APP SHELL PREMIUM DEPTH
========================================================= */

.app-shell {

  position: relative;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

}

/* =========================================================
   PREMIUM HEADER ENHANCEMENT
========================================================= */

.app-header {

  border-bottom:
    1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 12px 40px rgba(37,99,235,0.18);

}

/* floating glass feel */
.app-header::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.6),
      transparent
    );

}

/* =========================================================
   LOGGED IN BAR
========================================================= */

.logged-in-bar {

  border:
    1px solid rgba(255,255,255,0.5);

  background:
    rgba(255,255,255,0.65);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

}

/* =========================================================
   CARD VISUAL UPGRADE
   (SAFE — NO SIZE CHANGES)
========================================================= */

.card {

  position: relative;

  overflow: hidden;

}

/* soft premium reflection */
.card::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.18),
      transparent
    );

  transform: skewX(-18deg);

  pointer-events: none;

}

/* =========================================================
   BUTTON PREMIUM EFFECTS
========================================================= */

.primary-btn,
.check-btn,
.upgrade-btn {

  position: relative;
  overflow: hidden;

}

/* glossy button sweep */
.primary-btn::before,
.check-btn::before,
.upgrade-btn::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.28),
      transparent
    );

  transform: skewX(-20deg);

}

/* desktop hover only */
@media (hover:hover) {

  .primary-btn:hover::before,
  .check-btn:hover::before,
  .upgrade-btn:hover::before {

    left: 140%;
    transition: 0.8s ease;

  }

}

/* =========================================================
   PREMIUM INPUTS
========================================================= */

input {

  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;

}

/* subtle lift */
input:focus {

  transform: translateY(-1px);

}

/* =========================================================
   HERO FLOAT
========================================================= */

.reg-card {

  animation:
    softFloat 5s ease-in-out infinite;

}

@keyframes softFloat {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0px);
  }

}

/* =========================================================
   PREMIUM BOTTOM NAV
========================================================= */

.bottom-nav {

  border:
    1px solid rgba(255,255,255,0.45);

}

/* =========================================================
   NAV ICON POLISH
========================================================= */

.nav-item span {

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;

}

.nav-item.active span {

  transform: scale(1.08);

}

/* =========================================================
   SCROLLBAR POLISH
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {

  background:
    rgba(255,255,255,0.4);

}

::-webkit-scrollbar-thumb {

  background:
    linear-gradient(
      180deg,
      #60a5fa,
      #2563eb
    );

  border-radius: 999px;

}

/* =========================================================
   DESKTOP POLISH
========================================================= */

@media (min-width: 900px) {

  .app-shell {

    margin-top: 28px;
    margin-bottom: 28px;

    border-radius: 34px;

    overflow: hidden;

    box-shadow:
      0 30px 80px rgba(15,23,42,0.16);

  }

}

/* =========================================================
   SAFE PERFORMANCE
========================================================= */

.vehicle-card,
.status-pill,
.delete-btn {

  will-change: transform;

}

/* =========================
   FLOATING HEADER TRAFFIC
========================= */

.traffic{
position:absolute;
font-size:20px;
opacity:0.22;
pointer-events:none;
z-index:0;
}

/* CAR */
.car-traffic{
top:6px;
right:-120px;
animation:trafficCar 18s linear infinite;
}

/* VAN */
.van-traffic{
top:24px;
right:-320px;
animation:trafficVan 24s linear infinite;
}

/* LORRY */
.lorry-traffic{
top:12px;
right:-520px;
animation:trafficLorry 30s linear infinite;
}

/* ANIMATIONS */

@keyframes trafficCar{
from{
transform:translateX(0);
}
to{
transform:translateX(-1600px);
}
}

@keyframes trafficVan{
from{
transform:translateX(0);
}
to{
transform:translateX(-1600px);
}
}

@keyframes trafficLorry{
from{
transform:translateX(0);
}
to{
transform:translateX(-1600px);
}
}

/* =========================
   SITE FOOTER
========================= */

.site-footer{

  text-align:center;

  padding:24px 16px 110px;

  font-size:12px;

  font-weight:600;

  color:#94a3b8;

  opacity:0.9;

}

/* HEADER RIGHT SIDE */
.header-right{
    display:flex;
    align-items:center;
    gap:18px;
    margin-left:auto;
}

/* EMAIL PILL */
.header-user-email{
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(10px);
    color:white;
    font-weight:600;
    font-size:15px;
    white-space:nowrap;
}

/* BUTTON STACK */
.header-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
}

/* MATCH BUTTON SIZES */
.badge,
.logout-btn{
    min-width:140px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font-weight:700;
}

/* =================================
   HEADER SIZE FIX
================================= */

.app-header{
    padding: 8px 16px;
    min-height: 82px;
}

/* LEFT SIDE */
.header-left{
    display:flex;
    align-items:center;
    gap:8px;
}

.logo-mark{
    font-size:24px;
}

.logo-text{
    font-size:38px;
    line-height:1;
    margin-top:2px;
}

/* RIGHT SIDE */
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
}

/* EMAIL */
.header-user-email{
    padding:8px 14px;
    font-size:14px;
    max-width:240px;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* BUTTON COLUMN */
.header-actions{
    display:flex;
    flex-direction:column;
    gap:6px;
}

/* BUTTONS */
.badge,
.logout-btn{
    min-width:120px;
    height:36px;
    font-size:14px;
    border-radius:999px;
}

/* =================================
   FINAL HEADER OVERRIDE
================================= */

.logo-text{
    font-size:30px !important;
    line-height:1 !important;
}

.logo-mark{
    font-size:20px !important;
}

.header-user-email{
    padding:6px 12px !important;
    font-size:13px !important;
    max-width:190px !important;
}

.badge{
    min-width:110px !important;
    height:34px !important;
    font-size:13px !important;
}

.logout-btn{
    min-width:110px !important;
    height:34px !important;
    font-size:13px !important;
}

.header-actions{
    gap:6px !important;
}

/* =================================
  MOBILE HEADER FIX
================================= */

@media (max-width: 900px){

   .app-header{
       flex-direction:column;
       align-items:flex-start;
       gap:14px;
   }

   .header-left{
       width:100%;
   }

   .header-right{
       width:100%;
       justify-content:space-between;
   }

   .logo-text{
       font-size:28px !important;
   }

   .header-user-email{
       max-width:180px !important;
       font-size:12px !important;
   }

   .badge,
   .logout-btn{
       min-width:100px !important;
       height:32px !important;
       font-size:12px !important;
   }

}

/* =================================
   FINAL HEADER POLISH
================================= */

.app-header{
    padding:10px 20px !important;
    min-height:auto !important;
    gap:10px !important;
}

/* BUTTON COLUMN */
.header-actions{
    gap:4px !important;
}

/* PREMIUM + LOGOUT */
.badge,
.logout-btn{
    width:58px !important;
    height:22px !important;
    min-width:80px !important;

    font-size:10px !important;
    font-weight:700 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:0 !important;
    margin:0 !important;
}

/* EMAIL */
.header-user-email{
    padding:5px 12px !important;
    font-size:12px !important;
    margin-top:2px !important;
}

/* LOGO */
.logo-text{
    font-size:26px !important;
}

.logo-mark{
    font-size:18px !important;
}

/* MOVE BUTTONS UP */
.header-actions{
    position:relative;
    top:-5px !important; 
}

.header-actions{
    position: relative !important;
    transform: translateY(-8px) !important;
}

/* HEADER TRAFFIC LAYER */

.app-header{
    position:relative;
    overflow:hidden;
}

/* TRAFFIC */
.traffic{
    position:absolute;

    right:-150px;
    top:58px;

    z-index:2;

    opacity:0.65;
    font-size:18px;

    pointer-events:none;

    animation:driveAcross 18s linear infinite;
}

/* KEEP UI ABOVE VEHICLES */
.header-left,
.header-right{
    position:relative;
    z-index:5;
}

/* LANES */
.car-traffic{
    top:88px;
    animation-delay:6s;
}

.van-traffic{
    top:88px;
    animation-delay:0s;
}

.lorry-traffic{
    top:88px;
    animation-delay:12s;
}

/* DRIVE ANIMATION */
@keyframes driveAcross{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-1600px);
    }

}

/* =========================================
   MASTER HEADER CONTROL
========================================= */

.app-header{
  padding: 8px 18px !important;
  min-height: 90px !important;

  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;

  position:relative !important;
  overflow:hidden !important;
}

/* LOGO */

.logo-text{
  font-size:26px !important;
}

.logo-mark{
  font-size:18px !important;
}

/* EMAIL */

.header-user-email{
  font-size:10px !important;
  padding:5px 12px !important;
  margin-top:4px !important;
  max-width:180px !important;
}

/* BUTTON AREA */

.header-actions{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;

  position:relative !important;
  top:-6px !important;
}

/* PREMIUM + LOGOUT */

.badge,
.logout-btn{
  min-width:90px !important;
  height:22px !important;

  font-size:10px !important;
  font-weight:700 !important;

  padding:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* VEHICLE TRAFFIC */

.traffic{
  position:absolute !important;

  top:80px !important;

  right:-150px !important;

  z-index:1 !important;

  opacity:0.7 !important;

  pointer-events:none !important;

  animation:driveAcross 18s linear infinite !important;
}

.car-traffic{
  animation-delay:0s !important;
}

.van-traffic{
  animation-delay:5s !important;
}

.lorry-traffic{
  animation-delay:10s !important;
}

/* =========================================
   VEHICLE CARD MASTER OVERRIDES
========================================= */

.vehicle-card{
  border-radius:24px !important;

  padding:18px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.92),
      rgba(255,255,255,0.82)
    ) !important;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08) !important;

  transition:all 0.25s ease !important;
}

.vehicle-card:hover{
  transform:translateY(-2px);
}

/* =========================================
   STATUS PILL MASTER OVERRIDES
========================================= */

/* STATUS PILLS */

.status-pill{
  border-radius:999px !important;

  padding:6px 12px !important;

  font-size:12px !important;
  font-weight:700 !important;

  letter-spacing:0.3px;

  border:none !important;

  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.08) !important;
}

/* GREEN */

.status-green{
  background:
    linear-gradient(
      135deg,
      #22c55e,
      #16a34a
    ) !important;

  color:white !important;
}

/* AMBER */

.status-yellow{
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #d97706
    ) !important;

  color:white !important;
}

/* RED */

.status-red{
  background:
    linear-gradient(
      135deg,
      #ef4444,
      #dc2626
    ) !important;

  color:white !important;
}

/* GREY */

.status-grey{
  background:
    linear-gradient(
      135deg,
      #6b7280,
      #4b5563
    ) !important;

  color:white !important;
}

/* =========================================
   REGISTRATION PLATE MASTER OVERRIDES
========================================= */


/* =========================================
   VEHICLE ICON MASTER OVERRIDES
========================================= */

/* ICON CONTAINER */

.vehicle-icon{
  width:58px !important;
  height:58px !important;

  border-radius:18px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  font-size:30px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.75)
    ) !important;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.55) !important;

  backdrop-filter:blur(12px);

  flex-shrink:0 !important;
}

/* VALID VEHICLE */

.vehicle-valid .vehicle-icon{
  box-shadow:
    0 0 20px rgba(34,197,94,0.35),
    0 10px 25px rgba(0,0,0,0.10) !important;
}

/* WARNING VEHICLE */

.vehicle-warning .vehicle-icon{
  box-shadow:
    0 0 20px rgba(245,158,11,0.35),
    0 10px 25px rgba(0,0,0,0.10) !important;
}

/* EXPIRED VEHICLE */

.vehicle-expired .vehicle-icon{
  box-shadow:
    0 0 20px rgba(239,68,68,0.35),
    0 10px 25px rgba(0,0,0,0.10) !important;
}

/* =========================================
  PREMIUM VEHICLE CARD DEPTH
========================================= */

.vehicle-card{
 position:relative !important;

 overflow:hidden !important;

 border-radius:28px !important;

 background:
   linear-gradient(
     180deg,
     rgba(255,255,255,0.96),
     rgba(248,250,252,0.92)
   ) !important;

 border:
   1px solid rgba(255,255,255,0.75) !important;

 box-shadow:
   0 20px 45px rgba(15,23,42,0.10),
   0 2px 8px rgba(15,23,42,0.06),
   inset 0 1px 0 rgba(255,255,255,0.75) !important;

 backdrop-filter:blur(18px) !important;

 transition:
   transform 0.25s ease,
   box-shadow 0.25s ease !important;
}

/* HOVER */

.vehicle-card:hover{
 transform:translateY(-4px) !important;

 box-shadow:
   0 28px 60px rgba(15,23,42,0.14),
   0 10px 20px rgba(15,23,42,0.08) !important;
}

/* TOP LIGHT GLOW */

.vehicle-card::before{
 content:"";

 position:absolute;

 top:0;
 left:0;
 right:0;

 height:1px;

 background:
   linear-gradient(
     90deg,
     transparent,
     rgba(255,255,255,0.95),
     transparent
   );

 opacity:0.9;
}

/* =========================================
   VEHICLE STATUS GLOW SYSTEM
========================================= */

/* VALID */

.vehicle-valid{
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.10),
    0 12px 30px rgba(34,197,94,0.12),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

/* WARNING */

.vehicle-warning{
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.14),
    0 12px 30px rgba(245,158,11,0.16),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

/* EXPIRED */

.vehicle-expired{
  box-shadow:
    0 0 0 1px rgba(239,68,68,0.16),
    0 12px 30px rgba(239,68,68,0.18),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

/* =========================================
   VEHICLE STATUS GLOW SYSTEM
========================================= */

.vehicle-card.green{
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.10),
    0 12px 30px rgba(34,197,94,0.14),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

.vehicle-card.yellow{
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.14),
    0 12px 30px rgba(245,158,11,0.18),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

.vehicle-card.red{
  box-shadow:
    0 0 0 1px rgba(239,68,68,0.16),
    0 12px 30px rgba(239,68,68,0.22),
    0 20px 45px rgba(15,23,42,0.08) !important;
}

/* =========================================
   MASTER REGISTRATION PLATE SYSTEM
========================================= */

/* MAIN INPUT PLATE */

.reg-plate {
   position: relative !important;

   display: flex !important;
   align-items: center !important;

   width: 100% !important;
   max-width: 760px !important;
   height: 74px !important;

   margin: 14px auto 28px auto !important;
   padding-left: 92px !important;
   padding-right: 12px !important;

   background: linear-gradient(
       180deg,
       #ffd84d 0%,
       #f5c400 100%
   ) !important;

   border: 4px solid #111 !important;
   border-radius: 14px !important;

   overflow: hidden !important;
   box-sizing: border-box !important;

   isolation: isolate !important;

   .reg-plate-wrapper{
  width:100% !important;
}
}

/* MINI INPUT PLATE */

.saved-reg-plate {
   position: relative !important;

   display: flex !important;
   align-items: center !important;

   width: 190px !important;
   height: 52px !important;

   padding-left: 58px !important;
   padding-right: 12px !important;

   background: linear-gradient(
       180deg,
       #ffd84d 0%,
       #f5c400 100%
   ) !important;

   border: 4px solid #111 !important;
   border-radius: 14px !important;

   overflow: hidden !important;
   box-sizing: border-box !important;

   font-size: 14px !important;
   font-weight: 900 !important;
   letter-spacing: 1px !important;
   color: #111 !important;

   white-space: nowrap !important;
}

/* =========================================
   UK FLAG BADGE
========================================= */

.gb-badge{
  position:absolute !important;

  left:10px !important;
  top:50% !important;

  transform:translateY(-50%) !important;

  width:72px !important;
  height:68% !important;

  border-radius:10px !important;

  overflow:hidden !important;

  z-index:3 !important;

  background:
    linear-gradient(
      rgba(0,0,0,0.10),
      rgba(0,0,0,0.10)
    ),
    url("https://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg");

  background-size:cover !important;
  background-position:center !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 2px 8px rgba(0,0,0,0.18) !important;
}

/* GB TEXT */

.gb-badge span{
  position:absolute;

  bottom:10px;
  left:50%;

  transform:translateX(-50%);

  color:white;

  font-size:18px;
  font-weight:900;

  letter-spacing:1px;

  text-shadow:
    0 2px 4px rgba(0,0,0,0.35);
}


/* =========================================
   MAIN REG INPUT
========================================= */

#regInput{
  flex:1 !important;

  width:100% !important;
  height:100% !important;

  border:none !important;
  outline:none !important;
  background:transparent !important;

  padding:0 20px 0 105px !important;
  margin:0 !important;

  font-size:42px !important;
  font-weight:900 !important;

  font-family:
    "Arial Black",
    "Segoe UI",
    sans-serif !important;

  letter-spacing:4px !important;

  color:#111 !important;

  text-transform:uppercase !important;

  text-align:center !important;

  line-height:74px !important;

  caret-color:#111 !important;

  box-shadow:none !important;
}

/* =========================================
   SAVED VEHICLE MINI PLATES
========================================= */

.saved-reg-plate{
   position: relative !important;

   display: flex !important;
   align-items: center !important;

   width: 130px !important;
   height: 42px !important;

   padding-left: 42px !important;
   padding-right: 10px !important;

   background: linear-gradient(
       180deg,
       #ffd84d 0%,
       #f5c400 100%
   ) !important;

   border: 4px solid #111 !important;
   border-radius: 10px !important;

   overflow: hidden !important;
   box-sizing: border-box !important;

   white-space: nowrap !important;

   box-shadow:
      0 4px 10px rgba(0,0,0,0.18) !important;
}

/* MINI FLAG */

.saved-reg-plate .gb-badge{
   position:absolute !important;

   left:5px !important;
   top:50% !important;

   transform:translateY(-50%) !important;

   width:32px !important;
   height:70% !important;

   border-radius:6px !important;

   overflow:hidden !important;
}

/* MINI REG TEXT */

.saved-reg-plate .reg-text{
   flex:1 !important;

   display:flex !important;
   align-items:center !important;

   height:100% !important;

   font-size:14px !important;
   font-weight:900 !important;

   letter-spacing:1px !important;

   color:#111 !important;

   white-space:nowrap !important;
}

/* =========================================
   MOBILE TWEAKS
========================================= */

@media (max-width:600px){

  .reg-plate{
    height:50px !important;
    border-radius:12px !important;
  }

  .gb-badge{
    width:52px !important;
  }

  #regInput{
    font-size:21px !important;
    letter-spacing:2px !important;
  }
}

/* FIX MINI REG TEXT POSITION */

.vehicle-reg .reg-text {
    position: relative !important;

    left: 18px !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;

    white-space: nowrap !important;
}