/* =====================================================================
   ONE STOP AUTO RENTALS — Stylesheet
   Public site + Modern Admin UX (light/dark)
   ===================================================================== */

:root {
  --brand-red: #D71920;
  --brand-red-dark: #B30E14;
  --brand-black: #0A0A0A;
  --brand-gray: #2C2C2C;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

/* Brand colors as utility classes */
.bg-brand-red { background-color: var(--brand-red); }
.bg-brand-red-dark { background-color: var(--brand-red-dark); }
.bg-brand-black { background-color: var(--brand-black); }
.text-brand-red { color: var(--brand-red); }
.text-brand-black { color: var(--brand-black); }
.border-brand-red { border-color: var(--brand-red); }
.hover\:bg-brand-red:hover { background-color: var(--brand-red); }
.hover\:bg-brand-red-dark:hover { background-color: var(--brand-red-dark); }
.hover\:text-brand-red:hover { color: var(--brand-red); }

/* Buttons */
.btn-primary {
  background-color: var(--brand-red);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
}
.btn-outline {
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--brand-red);
  color: white;
}

/* =====================================================================
   AUTO-RUNNING TOP MARQUEE (Task 2)
   ===================================================================== */
.marquee-bar {
  background: linear-gradient(90deg, #0A0A0A 0%, #1f1f1f 50%, #0A0A0A 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--brand-red);
  z-index: 5;
}
.marquee-bar::before,
.marquee-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee-bar::before { left: 0;  background: linear-gradient(90deg, #0A0A0A, transparent); }
.marquee-bar::after  { right: 0; background: linear-gradient(270deg, #0A0A0A, transparent); }

.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  padding: 0.55rem 0;
  width: max-content;
  will-change: transform;
}
.marquee-content {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }

/* =====================================================================
   HERO — Auto-running BACKGROUND image slider (Task 1) — 2s, no manual
   ===================================================================== */
.hero-section {
  position: relative;
  isolation: isolate;
  background: #000;
}
.hero-bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  /* Removed scale + ken-burns animation for performance — static background only */
}
.hero-bg-slide.active {
  opacity: 1;
}
/* ken-burns animation removed — was causing constant repaints */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(10,10,10,0.55) 50%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

/* Legacy hero classes kept for backward-compat with older code */
.hero-bg {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/static/images/hero-slider/hero1.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.65) 100%);
}
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Card hover */
.vehicle-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  border-color: var(--brand-red);
}

.destination-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.destination-card img {
  transition: transform 0.5s ease;
}
.destination-card:hover img { transform: scale(1.1); }
.destination-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 50%, transparent);
}

/* Top bar (legacy) */
.top-bar {
  background-color: var(--brand-black);
  color: white;
  font-size: 0.8rem;
}

/* =====================================================================
   MODERN DESKTOP HEADER (Task 1)
   ===================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.top-bar-modern {
  background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1d 50%, #0a0a0a 100%);
  color: #d1d5db;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-social {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #d1d5db;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.topbar-social:hover {
  background: var(--brand-red);
  color: white;
  transform: translateY(-1px);
}

.header-main {
  padding: 0.85rem 0;
  background: white;
  border-bottom: 1px solid #f3f4f6;
}
.header-brand img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}
.header-brand:hover img { transform: scale(1.03); }

/* Modern desktop nav — pill bar */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #f8f9fb;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid #eef0f3;
}
.desk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #4b5563;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.desk-link i {
  font-size: 0.78rem;
  color: #9ca3af;
  transition: color 0.2s;
}
.desk-link:hover {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.desk-link:hover i { color: var(--brand-red); }
.desk-link.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(215,25,32,0.4);
}
.desk-link.active i { color: white; }
.desk-link .caret {
  font-size: 0.6rem;
  margin-left: 0.15rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

/* Dropdown menu (Locations) */
.desk-dropdown { position: relative; }
.desk-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.18), 0 8px 16px -4px rgba(0,0,0,0.08);
  padding: 0.5rem;
  border: 1px solid #f0f1f4;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 50;
}
.desk-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: white;
  border-left: 1px solid #f0f1f4;
  border-top: 1px solid #f0f1f4;
}
.desk-dropdown:hover .desk-dropdown-menu,
.desk-dropdown:focus-within .desk-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.desk-dropdown:hover .desk-link.has-caret .caret { transform: rotate(180deg); }

.desk-dropdown-title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  padding: 0.5rem 0.85rem 0.35rem;
}
.desk-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}
.desk-dropdown-item:hover {
  background: #fef2f2;
  color: var(--brand-red);
}
.desk-flag { font-size: 1rem; flex-shrink: 0; }
.desk-loc-name { flex: 1; }
.desk-loc-code {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--brand-red);
  color: white;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.desk-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  margin-top: 0.25rem;
  border-top: 1px solid #f3f4f6;
  color: var(--brand-red);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}
.desk-dropdown-footer:hover { background: #fef2f2; }

/* Header phone & CTA */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  text-decoration: none;
  transition: all 0.2s;
}
.header-phone:hover {
  background: #fef2f2;
  border-color: #fecaca;
}
.header-phone i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px -4px rgba(215,25,32,0.45);
  transition: all 0.2s;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(215,25,32,0.55);
}

/* Modern hamburger */
.mobile-hamburger {
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-hamburger:hover { background: #fef2f2; border-color: #fecaca; }
.mobile-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Legacy nav link kept for backwards compatibility */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: #1f2937;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-red); }
.nav-link.active { color: var(--brand-red); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--brand-red);
  border-radius: 2px;
}

/* Mobile drawer link (Task 1: distinct from desktop) */
.mob-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  transition: all 0.15s;
}
.mob-link:hover, .mob-link.active {
  background: #fef2f2;
  color: var(--brand-red);
}

/* Booking widget */
.booking-widget {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.booking-widget-header {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.booking-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--input-bg, white);
  color: var(--text, #111827);
  font-family: inherit;
}
.booking-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}
.booking-input:disabled { opacity: .6; cursor: not-allowed; }

/* Section titles */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background-color: var(--brand-red);
}
.section-title::before { right: calc(100% + 16px); }
.section-title::after { left: calc(100% + 16px); }

/* Trust badges */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.trust-badge .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(215,25,32,0.3);
}

/* Footer features */
.footer-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}
.footer-feature i {
  color: var(--brand-red);
  font-size: 1.5rem;
}

/* Animations — kept lightweight (no transform, just opacity) */
@keyframes fadeInUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp 0.25s ease-out; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 100;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* CMS content (rendered HTML from admin) */
.cms-content { line-height: 1.7; color: #374151; }
.cms-content h2 { margin-top: 1.75rem; margin-bottom: .75rem; }
.cms-content h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-weight: 700; }
.cms-content p { margin-bottom: 1rem; }
.cms-content ul { margin-bottom: 1rem; padding-left: 0; }
.cms-content ul li { margin-bottom: .35rem; }
.cms-content a { color: var(--brand-red); text-decoration: underline; }
.cms-content strong { color: #111827; }
.cms-content code {
  background: #f3f4f6;
  padding: .15rem .35rem;
  border-radius: .25rem;
  font-size: .875em;
}

/* CMS preview pane (admin) */
.cms-preview {
  width: 100%;
  min-height: 480px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--input-bg);
  overflow-y: auto;
}

/* Utility */
.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   SELECTABLE RATE CARDS (Task 5) — vehicle detail page
   ===================================================================== */
.rate-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.18s ease;
  display: block;
  position: relative;
}
.rate-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(215,25,32,0.15);
}
.rate-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rate-card.rate-selected {
  border-color: var(--brand-red);
  background: linear-gradient(135deg, rgba(215,25,32,0.06), rgba(215,25,32,0.02));
  box-shadow: 0 4px 14px rgba(215,25,32,0.2);
}
.rate-card.rate-selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  background: var(--brand-red);
  color: white;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rate-card .rate-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1.1;
  margin: 0.25rem 0;
  /* TASK 1 (2026-05-01) — Prevent rate-amount from overflowing the card on
     narrow phones (e.g. USD$1500.00 on a 3-column grid). Allow the long
     prices to shrink rather than spill out of the viewport. */
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 480px) {
  .rate-card .rate-amount { font-size: 1.05rem; }
  .rate-card { padding: 0.6rem 0.35rem; }
}

/* =====================================================================
   VEHICLE BOOKING MODAL (Tasks 4 + 5)
   ===================================================================== */
.vbm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: vbm-fade 0.15s linear;
}
@keyframes vbm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vbm-card {
  background: #fff;
  border-radius: 0.85rem;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  animation: vbm-slide 0.15s linear;
}
@keyframes vbm-slide {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vbm-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #374151;
  z-index: 2;
  transition: all 0.15s;
}
.vbm-close:hover { background: var(--brand-red); color: white; }
.vbm-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}
.vbm-body { padding: 1.25rem 1.5rem 1.5rem; }
.vbm-row { margin-bottom: 0.85rem; }
.vbm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.vbm-step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111827;
  margin: 1.1rem 0 0.7rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e5e7eb;
}
.vbm-step-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.vbm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.vbm-availability {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0.5rem 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vbm-availability.ok {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.vbm-availability.bad {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* License upload zone (Task 4) */
.vbm-upload {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 0.6rem;
  padding: 1rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.15s;
}
.vbm-upload:hover, .vbm-upload.drag-over {
  border-color: var(--brand-red);
  background: rgba(215,25,32,0.04);
}
.vbm-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.vbm-upload-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: #4b5563;
}
.vbm-upload-label i { font-size: 1.7rem; }
.vbm-file-preview {
  margin-top: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: #d1fae5;
  border-radius: 0.4rem;
  font-size: 0.825rem;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #10b981;
}
.vbm-file-preview img {
  width: 56px; height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.vbm-summary {
  margin-top: 1rem;
  padding: 0.85rem;
  background: #fef2f2;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
}
.vbm-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* =====================================================================
   BOOKING MODAL — STEPPER, PANES, PAYMENT CARDS, REVIEW (Task 4)
   ===================================================================== */
.vbm-stepper {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0;
  list-style: none;
}
.vbm-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}
.vbm-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 900;
}
.vbm-step.on {
  background: #fef2f2;
  color: var(--brand-red);
  border-color: #fecaca;
}
.vbm-step.on span {
  background: var(--brand-red);
  color: white;
}
.vbm-step.done {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.vbm-step.done span {
  background: #10b981;
  color: white;
}
.vbm-step.done span::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}
.vbm-step.done span:not(:empty) { font-size: 0; }

/* Payment method cards */
.vbm-pay-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  margin: 0.85rem 0;
  overflow: hidden;
}
.vbm-pay-card-cod {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.vbm-pay-card-head {
  padding: 0.7rem 1rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  background: rgba(255,255,255,0.5);
  border-bottom: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vbm-pay-card-cod .vbm-pay-card-head {
  color: #047857;
  border-bottom-color: #bbf7d0;
}
.vbm-pay-card-body {
  padding: 0.85rem 1rem;
  color: #1f2937;
}
.vbm-pay-acct,
.vbm-pay-instr {
  margin-bottom: 0.6rem;
}
.vbm-pay-acct:last-child,
.vbm-pay-instr:last-child { margin-bottom: 0; }
.vbm-pay-pre {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.35rem;
  color: #111827;
}

/* Review card */
.vbm-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  margin: 0.5rem 0 1rem;
}
.vbm-review-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #e5e7eb;
}
.vbm-review-img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.vbm-review-vehicle {
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  color: #111827;
}
.vbm-review-cat {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vbm-review-dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}
.vbm-review-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
}
.vbm-review-dl dd {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  word-break: break-word;
}
.vbm-review-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--brand-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: #111827;
}
.vbm-review-total-amt {
  color: var(--brand-red);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0;
}
.vbm-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  color: #92400e;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.vbm-agree input { margin-top: 0.2rem; accent-color: var(--brand-red); flex-shrink: 0; }
.vbm-agree a { color: var(--brand-red); text-decoration: underline; font-weight: 700; }

/* Disabled submit */
.vbm-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.vbm-actions .btn-primary:disabled:hover { transform: none; box-shadow: none; }

/* =====================================================================
   AREA PAGE — Custom hero (Task 2)
   ===================================================================== */
.area-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.area-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
}
.area-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(10,10,10,0.55) 60%, rgba(215,25,32,0.55) 100%);
  z-index: 1;
}
.area-hero-inner {
  position: relative;
  z-index: 2;
  color: white;
  padding: 3rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}
.area-hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.area-hero-sub {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.area-hero-desc {
  margin-top: 0.85rem;
  max-width: 42rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}
.area-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.95);
}
.area-hero-meta a, .area-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.area-hero-meta a:hover { background: var(--brand-red); border-color: var(--brand-red); }
.area-hero-meta i { color: #fca5a5; }

/* =====================================================================
   BEAUTIFUL BOOKING SLIP (Task 4) — printable, branded
   ===================================================================== */
.booking-slip {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.3);
  border: 1px solid #e5e7eb;
  position: relative;
}
.booking-slip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, white 12px 24px),
    linear-gradient(90deg, var(--brand-red), #f59e0b, var(--brand-red));
  -webkit-mask: linear-gradient(#000 0 0);
}
.slip-head {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1d 60%, #2c0508 100%);
  color: white;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.slip-head::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), #f59e0b, var(--brand-red));
}
.slip-brand { display: flex; align-items: center; gap: 0.85rem; }
.slip-logo {
  height: 64px;
  width: auto;
  background: white;
  padding: 6px;
  border-radius: 0.5rem;
}
.slip-brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.slip-brand-tag {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.slip-status-wrap { text-align: right; }
.slip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}
.slip-bnum {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.slip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem 0.5rem;
  flex-wrap: wrap;
}
.slip-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-red);
  font-weight: 800;
}
.slip-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111827;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.slip-amount-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 160px;
}
.slip-amount-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #991b1b;
  font-weight: 700;
}
.slip-amount {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1.1;
  margin-top: 2px;
}
.slip-amount-sub {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
  text-transform: capitalize;
}
.slip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.75rem;
}
.slip-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
}
.slip-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  font-weight: 800;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #e5e7eb;
}
.slip-dl {
  display: grid;
  grid-template-columns: minmax(80px, max-content) 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0;
  font-size: 0.85rem;
}
.slip-dl dt {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.78rem;
}
.slip-dl dd {
  color: #111827;
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}
.slip-pay {
  margin: 0.5rem 1.75rem 1rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
}
.slip-pay-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.slip-pay-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.slip-pay-method {
  font-weight: 900;
  font-size: 1rem;
  color: #111827;
}
.slip-pay-type { margin-top: 4px; }
.slip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}
.slip-pill-online {
  background: #dbeafe;
  color: #1e40af;
}
.slip-pill-cod {
  background: #dcfce7;
  color: #047857;
}
.slip-pay-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.slip-pay-instructions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #fecaca;
  font-size: 0.85rem;
  color: #1f2937;
}
.slip-notes {
  margin: 0 1.75rem 1rem;
  padding: 0.85rem 1.1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
}
.slip-foot {
  background: #0a0a0a;
  color: #d1d5db;
  padding: 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.82rem;
  border-top: 4px solid var(--brand-red);
}
.slip-foot-h {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.slip-foot-col div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.slip-foot-col i { color: var(--brand-red); width: 16px; }
.slip-foot-thanks { text-align: right; }
.slip-foot-thanks div { justify-content: flex-end; }

@media (max-width: 640px) {
  .slip-grid { grid-template-columns: 1fr; }
  .slip-foot { grid-template-columns: 1fr; }
  .slip-foot-thanks { text-align: left; }
  .slip-foot-thanks div { justify-content: flex-start; }
  .slip-head { padding: 1rem; }
  .slip-title-row { padding: 1rem 1rem 0.25rem; }
  .slip-grid { padding: 0.75rem 1rem; }
  .slip-pay { margin: 0.5rem 1rem 1rem; }
  .slip-notes { margin: 0 1rem 1rem; }
  .slip-foot { padding: 1rem; }
  .slip-amount-card { width: 100%; }
}

/* Print: clean slip output */
@media print {
  body * { visibility: hidden; }
  #booking-slip, #booking-slip * { visibility: visible; }
  #booking-slip {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }
  .print\\:hidden { display: none !important; }
}

/* Admin: vehicle locations checkbox grid (Task 3) */
.vehicle-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem;
}
.location-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 0.5rem;
  cursor: pointer;
  background: var(--surface, #fff);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s;
  user-select: none;
}
.location-pill:hover { border-color: var(--brand-red); }
.location-pill input { accent-color: var(--brand-red); }
.location-pill.on {
  border-color: var(--brand-red);
  background: rgba(215,25,32,0.06);
  color: var(--brand-red);
}
[data-theme="dark"] .location-pill.on {
  background: rgba(215,25,32,0.18);
  color: #fca5a5;
}

@media (max-width: 640px) {
  .vbm-grid-2 { grid-template-columns: 1fr; }
  .marquee-content { font-size: 0.72rem; letter-spacing: 0.05em; }
  .marquee-track { gap: 2.5rem; padding: 0.45rem 0; }
  .header-brand img { height: 44px; }
  .header-cta { padding: 0.5rem 0.85rem; font-size: 0.7rem; }
  .header-main { padding: 0.6rem 0; }
}

/* =====================================================================
   MOBILE FIX (Task 3) — prevent broken stacking / overflow
   The screenshot showed marquee text spilling, headline letters
   overlapping the booking card and a wide-blank gap in hero.
   These rules clamp typography and force tighter spacing at small widths.
   ===================================================================== */
@media (max-width: 768px) {
  .hero-section .min-h-\[640px\] { min-height: 520px !important; }
  .hero-section h1 {
    font-size: 1.6rem !important;
    line-height: 1.15 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  }
  .hero-section p { font-size: 0.95rem !important; line-height: 1.35 !important; }
  .hero-section .text-shadow { color: white; }
  /* Booking widget: full width inside hero on mobile */
  .booking-widget { margin-top: 1.5rem; }
  /* Trust badges shrink */
  .trust-badge .icon-circle { width: 38px; height: 38px; font-size: 1rem; }
  .trust-badge span { font-size: 0.7rem; }
  /* Section title decorative bars hidden so titles don't break */
  .section-title { font-size: 1.25rem !important; }
  /* Page hero (sub pages) */
  .page-hero h1 { font-size: 1.5rem !important; }
  /* Vehicle card grid */
  .vehicle-card .p-4 { padding: 0.85rem; }
}

/* Extra-small (≤420px — what was shown in the screenshot) */
@media (max-width: 420px) {
  .marquee-content { font-size: 0.65rem; }
  .header-brand img { height: 38px; }
  .mobile-hamburger { width: 36px; height: 36px; }
  .hero-section h1 { font-size: 1.35rem !important; }
  .booking-widget-header { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .booking-widget .p-6 { padding: 1rem !important; }
}

/* =====================================================================
   ADMIN PANEL — Modern UX
   ===================================================================== */

/* THEME TOKENS — light is default; dark via [data-theme="dark"] */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-hover: #f3f4f6;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --input-bg: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px -8px rgba(0,0,0,.12);
  --sidebar-bg: linear-gradient(180deg, #0b0b0d 0%, #161618 100%);
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #6b7280;
  --topbar-bg: rgba(255,255,255,0.85);
  --accent: #D71920;
}
[data-theme="dark"] {
  --bg: #0e0f12;
  --surface: #18191d;
  --surface-2: #1f2026;
  --surface-hover: #23252b;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #2a2c33;
  --border-strong: #3a3d45;
  --input-bg: #1f2026;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 25px -8px rgba(0,0,0,.5);
  --sidebar-bg: linear-gradient(180deg, #0b0b0d 0%, #131316 100%);
  --topbar-bg: rgba(24,25,29,0.85);
}

.admin-html { color-scheme: light; }
.admin-html[data-theme="dark"] { color-scheme: dark; }

.admin-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
  margin: 0;
  min-height: 100vh;
  transition: background-color .25s, color .25s;
}

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

/* ---------- Sidebar ---------- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar-collapsed .admin-sidebar { width: 76px; }
.sidebar-collapsed .admin-content { margin-left: 76px; }
.sidebar-collapsed .brand-text,
.sidebar-collapsed .admin-nav-link span,
.sidebar-collapsed .nav-section,
.sidebar-collapsed .sidebar-user .user-info { display: none; }
.sidebar-collapsed .admin-nav-link { justify-content: center; padding: 0.75rem; }
.sidebar-collapsed .sidebar-user { justify-content: center; }
.sidebar-collapsed .sidebar-toggle i { transform: rotate(180deg); }

.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.brand-link { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px;
  background: white; border-radius: 8px;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-title { font-weight: 900; font-size: 0.95rem; color: white; letter-spacing: .05em; }
.brand-sub { font-size: 0.7rem; color: var(--sidebar-text-muted); margin-top: 1px; }

.sidebar-toggle {
  background: rgba(255,255,255,0.06);
  color: var(--sidebar-text);
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(215,25,32,0.2); color: white; }
.sidebar-toggle i { transition: transform 0.25s; }

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem 0;
}
.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.nav-section {
  padding: 1rem 1.5rem 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sidebar-text-muted);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.5rem;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
.admin-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
}
.admin-nav-link:hover {
  background: rgba(255,255,255,0.04);
  color: white;
}
.admin-nav-link:hover i { color: var(--brand-red); }
.admin-nav-link.active {
  background: linear-gradient(90deg, rgba(215,25,32,0.15), transparent);
  color: white;
}
.admin-nav-link.active i { color: var(--brand-red); }
.admin-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--brand-red);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
}
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.user-avatar.small { width: 32px; height: 32px; font-size: 0.85rem; }
.user-info { min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; color: white; line-height: 1.2; }
.user-role { font-size: 0.7rem; color: var(--sidebar-text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Main content area ---------- */
/* TASK 1 (Fix): keep the main column from ever exceeding viewport width.
   Without min-width:0 a wide child (table, long URL, code block) can push the
   .admin-content past 100vw, causing horizontal page-scroll AND making the
   sticky topbar look "cut off" on desktop. */
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - 260px);
  transition: margin-left 0.25s ease, max-width 0.25s ease;
}
.sidebar-collapsed .admin-content { max-width: calc(100vw - 76px); }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.topbar-title { flex: 1 1 0%; min-width: 0; overflow: hidden; }
.topbar-title h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: .02em;
  /* Prevent long titles like "Booking OS-20260430-1353" from wrapping into the
     subtitle row and squashing the avatar/actions column. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { flex-shrink: 0; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 0.5rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
  transform: translateY(-1px);
}
.topbar-user {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0 0.5rem;
}
.topbar-user .user-name { color: var(--text); }
.topbar-user .user-role { color: var(--text-muted); }

/* Theme-toggle icon visibility */
.dark-only { display: none; }
[data-theme="dark"] .light-only { display: none; }
[data-theme="dark"] .dark-only { display: inline; }

.mobile-toggle { display: none; }

/* TASK 1 (Fix): admin page wrapper must constrain horizontal overflow.
   Tables, long pre/code blocks, base64 image URLs, etc. were pushing the
   page past the available width on desktop. */
.admin-page {
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.admin-page > * { min-width: 0; max-width: 100%; }
/* Force any data table inside the admin to scroll inside its panel instead of
   pushing the whole page sideways. */
.admin-page table { width: 100%; max-width: 100%; }
.admin-page .panel { overflow: hidden; }
.admin-page .table-wrap,
.admin-page .panel > table,
.admin-page .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Long unbroken strings (booking numbers, base64 license images, emails)
   should wrap inside their cell rather than expand the row. */
.admin-page .panel,
.admin-page .panel * { overflow-wrap: anywhere; word-break: break-word; }
.admin-page img, .admin-page embed, .admin-page video { max-width: 100%; height: auto; }

/* ---------- Panels & Cards ---------- */
.panel {
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.panel-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  color: var(--text);
}
.panel-link {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.panel-link:hover { text-decoration: underline; }

.row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  gap: 0.75rem;
}
.row-link:hover { background: var(--surface-hover); }

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-red::before { background: var(--brand-red); }
.stat-yellow::before { background: #f59e0b; }
.stat-blue::before { background: #3b82f6; }
.stat-green::before { background: #10b981; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-red .stat-icon { background: rgba(215,25,32,0.1); color: var(--brand-red); }
.stat-yellow .stat-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-blue .stat-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }
.stat-green .stat-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-info { min-width: 0; flex: 1; }
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .05em;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-top: 2px;
}

/* ---------- Tables ---------- */
.admin-table {
  width: 100%;
  background: var(--surface);
  border-collapse: collapse;
}
.admin-table th {
  background: var(--surface-2);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
}
.admin-table tr:hover td { background: var(--surface-hover); }

/* ---------- Status Badges & Pills ---------- */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-completed { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .status-pending   { background: rgba(245,158,11,.15); color: #fbbf24; }
[data-theme="dark"] .status-confirmed { background: rgba(16,185,129,.15); color: #34d399; }
[data-theme="dark"] .status-cancelled { background: rgba(239,68,68,.15); color: #f87171; }
[data-theme="dark"] .status-completed { background: rgba(59,130,246,.15); color: #60a5fa; }

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pill-red { background: var(--brand-red); color: white; }
.pill-gray { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.chip:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.chip-active {
  background: var(--brand-red) !important;
  color: white !important;
  border-color: var(--brand-red) !important;
}

/* ---------- Form helpers ---------- */
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
}
.check input { accent-color: var(--brand-red); width: 16px; height: 16px; }

/* ---------- Misc admin ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-decoration: none;
}
.back-link:hover { color: var(--brand-red); }

.link-action {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-action:hover { text-decoration: underline; }

/* ---------- Toggle switch (payment enabled) ---------- */
.switch {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background: var(--border-strong);
  border: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.switch.on { background: var(--brand-red); }
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch.on .switch-knob { left: 23px; }

/* ---------- Payment icon block ---------- */
.payment-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(215,25,32,0.12), rgba(215,25,32,0.05));
  color: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Login page ---------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  font-family: 'Inter','Montserrat',sans-serif;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(215,25,32,0.5), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(215,25,32,0.25), transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1c1c20 100%);
  z-index: -1;
}
.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
.login-error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---------- Responsive ---------- */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 49;
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 260px;
    /* Solid background + higher z-index so the sidebar always masks content
       behind it when opened on mobile (Task 4 video showed nav overlay was
       semi-transparent / cluttered). */
    background: var(--sidebar-bg) !important;
    z-index: 60 !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
  }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-content {
    margin-left: 0 !important;
    max-width: 100vw !important;       /* never exceed viewport — prevents the
                                          dashboard cards from being squeezed
                                          into a 10px-wide column on phones */
  }
  .sidebar-collapsed .admin-sidebar { width: 260px; }
  .sidebar-collapsed .admin-content { max-width: 100vw !important; }
  .mobile-toggle {
    display: flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
  }
  .sidebar-toggle { display: none; }
  .sidebar-backdrop.open { display: block; }
}

@media (max-width: 768px) {
  .section-title::before,
  .section-title::after { display: none; }
  .admin-page { padding: 1rem; }
  .topbar-user .user-name,
  .topbar-user .user-role { display: none; }
}

/* =====================================================================
   ADMIN PANEL — MOBILE DESIGN FIXES (Task 4, 2026-05-01)
   --------------------------------------------------------------------
   The screen recording showed several mobile-only design failures:
     • "RECENT BOOKINGS" / "AUTO-RUNNING TOP HEAD" titles were rendering
       VERTICALLY one letter per line — caused by very narrow flex items
       with no min-width:0 + word-break:break-all somewhere upstream.
     • Tables were squished into ~10px columns with text overlapping.
     • Stat-card values were stacked oddly because .stat-card was set to
       horizontal flex even at narrow widths.
     • Sidebar overlay had insufficient mask/contrast (fixed above).
   These rules ONLY tweak presentation — no logic, routing or data
   handling is touched.
   ===================================================================== */
@media (max-width: 768px) {
  /* 1. NEVER let admin headings break per-letter. The Tailwind utility
     `break-words` was inheriting from somewhere and combining with a
     0-width flex parent caused vertical letter stacking. */
  .admin-page h1,
  .admin-page h2,
  .admin-page h3,
  .admin-page h4,
  .admin-page .section-title,
  .admin-page .panel-header h3,
  .admin-page .stat-label,
  .admin-page .stat-value {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    min-width: 0;
  }

  /* 2. Stat cards — keep them horizontal but readable on narrow screens.
        The icon + info shouldn't shrink so small that the value wraps
        per-letter. */
  .stat-card { padding: 0.85rem; gap: 0.7rem; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: 0.62rem; }
  .stat-info { min-width: 0; flex: 1 1 0%; }

  /* 3. Tables — wrap them in a horizontal-scroll container instead of
        squishing them. Combined with the existing .admin-page .panel
        overflow-x:auto rule, this gives a clean swipe experience. */
  .admin-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
  }
  .admin-table thead, .admin-table tbody, .admin-table tr {
    display: table;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }
  .admin-table th,
  .admin-table td {
    white-space: nowrap;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }

  /* 4. Panel header — title + action link should sit on one line and
        ellipsize, not break per-letter. */
  .panel-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }
  .panel-header h3 {
    font-size: 0.78rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .panel-link { font-size: 0.7rem; flex-shrink: 0; }

  /* 5. Row-link items (Recent Bookings list) — the booking number, email
        and date are now stacked vertically inside the row, not jumbled. */
  .row-link {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .row-link > * { min-width: 0; }
  .row-link .font-semibold { font-size: 0.875rem; word-break: break-word; }

  /* 6. Topbar — keep title on a single ellipsised line so the avatar/
        actions column doesn't get pushed off-screen. */
  .admin-topbar { padding: 0.7rem 1rem; gap: 0.6rem; }
  .topbar-title h1 { font-size: 1rem; }
  .topbar-title p { font-size: 0.7rem; }
  .icon-btn { width: 34px; height: 34px; font-size: 0.85rem; }

  /* 7. Generic safety-net: any descendant that inherited
        `word-break: break-all` from utility CSS is reset HERE so labels
        like "RECENT BOOKINGS" stay on one line. We exempt long URLs /
        base64 strings inside .panel (those still wrap as before — see
        the existing `.admin-page .panel *` rule earlier in this file). */
  .admin-page .nav-section,
  .admin-page .form-label,
  .admin-page label,
  .admin-page button,
  .admin-page .pill,
  .admin-page .chip,
  .admin-page .status-badge {
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  /* Extra-small (phones in portrait) — reduce paddings further so the
     content area never collides with the screen edge (a problem clearly
     visible in the recording at the 0:24-0:32 dashboard frames). */
  .admin-page { padding: 0.75rem; }
  .stat-card {
    flex-direction: row;
    padding: 0.75rem;
  }
  .stat-value { font-size: 1.1rem; }
  .stat-icon { width: 34px; height: 34px; font-size: 0.95rem; }
  /* Stack 4 stat cards into a 2-col grid on tiny screens (Tailwind
     `grid-cols-2` is already used by the dashboard JSX, but we make
     sure the gap is tight). */
  .admin-page .grid { gap: 0.6rem; }
  /* Topbar actions: hide secondary icon buttons on very narrow screens
     (theme toggle + view-site stay visible because they're the
     first two; only the trailing avatar text was hidden, already done). */
  .admin-topbar { padding: 0.55rem 0.85rem; }
  .topbar-title h1 { font-size: 0.95rem; }
  .topbar-title p { display: none; }   /* free up space — title already conveys context */

  /* Panel content rows */
  .row-link { padding: 0.65rem 0.85rem; }
  .panel-header { padding: 0.7rem 0.85rem; }
}

/* =====================================================================
   WHATSAPP FLOATING POPUP WIDGET — REDESIGNED (Task 2, 2026-05-01)
   ----------------------------------------------------------------------
   NEW LAYOUT
     ┌─────────────────────────────────────┐
     │ [avatar]  One Stop Auto Rentals  [×]│  ← gradient header strip
     │           ● Online · Replies in mins │
     ├─────────────────────────────────────┤
     │  Need help? Chat with us…           │  ← message body
     └─────────────────────────────────────┘
                                  [WA float]   ← circular button + badge

   • Close button is a clearly-visible 28×28 pill in the top-right of the
     bubble (was a tiny ambiguous "×" floating outside the bubble before).
   • Float button uses an inline SVG WhatsApp glyph so it ALWAYS renders
     even if FontAwesome is cached / blocked.
   IMPORTANT: !important is used to defeat any external/utility overrides
   ===================================================================== */
#whatsapp-popup,
.whatsapp-popup {
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 14px !important;
  width: auto !important;
  max-width: 300px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
#whatsapp-popup > *,
.whatsapp-popup > * { pointer-events: auto; }

.wa-bubble {
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06) !important;
  max-width: 264px !important;
  /* Light fade-in only (transform removed for performance) */
  animation: wa-bubble-in 0.2s ease-out;
  position: relative !important;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: visible !important;
}
/* Speech-bubble tail pointing down to the float button */
.wa-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.wa-bubble-head {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 10px 44px 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.wa-bubble-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wa-bubble-text {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}
/* Close button — clearly-labelled 28×28 pill, top-right INSIDE the bubble */
.wa-bubble-close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.95) !important;
  color: #1f2937 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  transition: background 0.15s, color 0.15s, transform 0.15s !important;
  z-index: 2;
}
.wa-bubble-close:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  transform: scale(1.08);
}
.wa-bubble-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.wa-float-btn {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 2px 4px rgba(0,0,0,0.08) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  /* wa-pulse infinite animation removed for performance */
  align-self: flex-end;
  position: relative !important;
}
.wa-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55), 0 4px 8px rgba(0,0,0,0.12) !important;
}
.wa-float-btn:focus-visible {
  outline: 3px solid rgba(37,211,102,0.4);
  outline-offset: 3px;
}
@keyframes wa-bubble-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* wa-pulse keyframes removed — was constantly repainting box-shadow */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wa-bubble { animation: none; }
  .wa-float-btn { animation: none; }
}

/* Hide bubble after close */
.wa-bubble.hidden { display: none !important; }

@media (max-width: 640px) {
  #whatsapp-popup,
  .whatsapp-popup { bottom: 14px !important; right: 14px !important; max-width: 260px !important; }
  .wa-float-btn { width: 56px !important; height: 56px !important; }
  .wa-float-btn svg { width: 28px !important; height: 28px !important; }
  .wa-bubble { max-width: 234px !important; }
  .wa-bubble-text { font-size: 0.8rem !important; }
}

/* =====================================================================
   SWITCH LABEL (for social media admin toggle)
   ===================================================================== */
.switch-label {
  position: relative;
  cursor: pointer;
}
.switch-label input { display: none; }
.switch-label .switch { display: block; }

/* =====================================================================
   CMS CONTENT — rich text styling
   ===================================================================== */
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 {
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #111827;
}
.cms-content h1 { font-size: 2rem; }
.cms-content h2 { font-size: 1.5rem; }
.cms-content h3 { font-size: 1.25rem; }
.cms-content p { margin-bottom: 1em; line-height: 1.7; }
.cms-content ul, .cms-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.cms-content li { margin-bottom: 0.35em; }
.cms-content a { color: var(--brand-red); text-decoration: underline; }
.cms-content a:hover { color: var(--brand-red-dark); }
.cms-content img { max-width: 100%; border-radius: 0.5rem; margin: 1em 0; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.cms-content th, .cms-content td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; }
.cms-content th { background: #f9fafb; font-weight: 700; }

/* =====================================================================
   TASK 2 — Currency switcher (top header + mobile)
   Professional pill toggle: clear active state, smooth slide animation,
   visible focus ring for keyboard users.
   ===================================================================== */
#currency-switcher,
#currency-switcher-mobile {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
  user-select: none;
}
.cur-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  min-width: 46px;
  justify-content: center;
}
.cur-btn:hover  { color: #fff; }
.cur-btn:active { transform: scale(0.96); }
.cur-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cur-btn.cur-active {
  background: linear-gradient(180deg, var(--brand-red, #D71920), #a71419);
  color: #fff;
  box-shadow: 0 1px 4px rgba(215,25,32,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cur-btn i { font-size: 9px; opacity: 0.9; }

/* Mobile bar styling for clarity */
#currency-switcher-mobile { background: rgba(255,255,255,0.06); }

/* Smooth swap animation when prices update */
[data-price] {
  transition: opacity .15s ease;
}
.price-updating { opacity: 0.55; }

/* =====================================================================
   TASK 3 — Vehicle Detail Gallery thumbnails
   ===================================================================== */
.vd-main-wrap { position: relative; }
#vd-main-image { transition: opacity .15s ease; display: block; }

.vd-thumb {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.vd-thumb img {
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color .15s ease, transform .2s ease;
  pointer-events: none; /* clicks always register on the button */
}
.vd-thumb:hover img {
  border-color: var(--brand-red, #D71920);
  transform: scale(1.03);
}
.vd-thumb:focus-visible {
  outline: 2px solid var(--brand-red, #D71920);
  outline-offset: 2px;
}
.vd-thumb.vd-thumb-active img {
  border-color: var(--brand-red, #D71920);
  box-shadow: 0 0 0 2px rgba(215,25,32,0.25);
}

/* =====================================================================
   APP-STYLE ADMIN REDESIGN (Task 2026-05-05) — UI/UX ONLY
   --------------------------------------------------------------------
   Soft, Flutter-app-like admin panel. Fixed-screen layout (the chrome
   stays put, the inner content scrolls) + bottom navigation on mobile +
   redesigned login + dashboard hero, stat tiles, charts and panels.
   No JS / data / routing logic was touched.
   ===================================================================== */

/* ---- Soft theme tokens (override existing on .app-shell) ---- */
.app-shell {
  --app-bg: #f5f6fa;
  --app-surface: #ffffff;
  --app-text: #0f172a;
  --app-muted: #6b7280;
  --app-border: #eceef3;
  --app-radius: 18px;
  --app-radius-sm: 12px;
  --app-shadow-sm: 0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.03);
  --app-shadow:    0 6px 24px -10px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.04);
  --app-shadow-lg: 0 18px 50px -18px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.06);
  --app-accent: #D71920;
  background: var(--app-bg);
}
[data-theme="dark"].admin-html .app-shell,
[data-theme="dark"] .app-shell {
  --app-bg: #0e0f12;
  --app-surface: #18191d;
  --app-text: #f3f4f6;
  --app-muted: #9ca3af;
  --app-border: #2a2c33;
  --app-shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --app-shadow:    0 6px 24px -10px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
  --app-shadow-lg: 0 18px 50px -18px rgba(0,0,0,.65);
}

/* ---- Fixed-screen app layout ---- */
html.admin-html, html.admin-html body.app-shell {
  height: 100%;
  overflow: hidden;            /* page itself never scrolls */
}
.app-shell { min-height: 100vh; }
.app-main {
  display: flex;
  flex-direction: column;
  height: 100vh;               /* full screen */
}
.app-topbar {
  flex-shrink: 0;
}
.app-scroll {
  flex: 1 1 auto;
  overflow-y: auto;            /* only the inner content scrolls */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* =====================================================================
 * MODERN DARK-BLUE SIDEBAR (2026-05-06 redesign)
 * Replaces the prior near-black sidebar with a refined navy/midnight blue
 * palette. Adds subtle gradient accents, glassy hover, soft glow on the
 * active item, and an updated brand/footer card. Visual-only — no menu
 * structure, links, or routes were changed.
 * ===================================================================== */
/* =====================================================================
 * PREMIUM SOFT SIDEBAR (2026-05-06 redesign)
 * Refined "luxury app" feel: deep midnight glass surface, soft inner
 * glow, ultra-smooth pill nav links with floating active glow, premium
 * brand badge, and a polished user card. Visual-only — menu structure,
 * links and routes are unchanged.
 * ===================================================================== */
.app-shell .admin-sidebar {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(99,102,241,0.18), transparent 55%),
    radial-gradient(110% 70% at 100% 100%, rgba(217,70,239,0.10), transparent 60%),
    linear-gradient(180deg, #0a1028 0%, #0d1437 40%, #0a1028 100%) !important;
  border-right: 1px solid rgba(165,180,252,0.10);
  box-shadow:
    8px 0 32px -8px rgba(8, 16, 40, 0.45),
    inset -1px 0 0 rgba(255,255,255,0.04);
  color: #e2e8f0 !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.app-shell .admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(900px 480px at 50% 115%, rgba(99,102,241,0.14), transparent 70%);
  z-index: 0;
}
/* Subtle grain/noise overlay for premium feel */
.app-shell .admin-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.06) 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.05) 50%, transparent 51%);
  background-size: 80px 80px, 110px 110px, 60px 60px;
}
.app-shell .admin-sidebar > * { position: relative; z-index: 1; }

/* ---- Premium brand block ---- */
.app-shell .admin-brand {
  padding: 1.4rem 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(165,180,252,0.10);
  position: relative;
}
.app-shell .admin-brand::after {
  content: '';
  position: absolute;
  left: 1.25rem; right: 1.25rem; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165,180,252,0.25), transparent);
}
.app-shell .brand-logo {
  width: 42px; height: 42px;
  padding: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5ff 50%, #e0e7ff 100%);
  border-radius: 12px;
  box-shadow:
    0 8px 22px -8px rgba(99,102,241,0.55),
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}
.app-shell .brand-title {
  letter-spacing: 0.12em;
  font-size: 0.98rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.app-shell .brand-sub {
  font-size: 0.66rem;
  color: rgba(199,210,254,0.65);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.app-shell .sidebar-toggle {
  background: rgba(255,255,255,0.06);
  color: #c7d2fe;
  border: 1px solid rgba(165,180,252,0.18);
  border-radius: 10px;
  width: 32px; height: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.app-shell .sidebar-toggle:hover {
  background: rgba(99,102,241,0.32);
  color: #ffffff;
  border-color: rgba(165,180,252,0.45);
  transform: scale(1.05);
}

/* ---- Nav sections — refined typography ---- */
.app-shell .nav-section {
  padding: 1.35rem 1.5rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(165,180,252,0.55);
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-shell .nav-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(165,180,252,0.18), transparent);
}

/* ---- Premium pill-style nav links ---- */
.app-shell .admin-nav-link {
  margin: 2px 14px;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(226,232,240,0.82);
  letter-spacing: 0.005em;
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.25s ease, padding-left 0.22s ease;
}
.app-shell .admin-nav-link i {
  color: rgba(165,180,252,0.70);
  transition: color 0.22s, transform 0.22s;
  width: 22px;
  font-size: 0.95rem;
}
.app-shell .admin-nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 0 3px 3px 0;
  transition: height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
.app-shell .admin-nav-link:hover {
  background: linear-gradient(90deg, rgba(99,102,241,0.22), rgba(59,130,246,0.08) 60%, transparent 100%);
  color: #ffffff;
  padding-left: 1.15rem;
}
.app-shell .admin-nav-link:hover i {
  color: #c7d2fe;
  transform: scale(1.08);
}
.app-shell .admin-nav-link:hover::before {
  height: 60%;
  opacity: 1;
}
.app-shell .admin-nav-link.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  color: #ffffff !important;
  box-shadow:
    0 12px 28px -10px rgba(99,102,241,0.65),
    0 4px 10px -2px rgba(79,70,229,0.4),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: none;
  padding-left: 1rem;
  font-weight: 700;
}
.app-shell .admin-nav-link.active i {
  color: #ffffff !important;
  transform: scale(1.05);
}
.app-shell .admin-nav-link.active::before { display: none; }
/* Soft shimmer on the active item */
.app-shell .admin-nav-link.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.10) 50%, transparent 70%);
  pointer-events: none;
}

/* ---- Premium user/footer card ---- */
.app-shell .sidebar-footer {
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid rgba(165,180,252,0.10);
  position: relative;
}
.app-shell .sidebar-footer::before {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165,180,252,0.22), transparent);
}
.app-shell .sidebar-user {
  background:
    linear-gradient(135deg, rgba(99,102,241,0.20) 0%, rgba(79,70,229,0.10) 50%, rgba(56,108,255,0.06) 100%);
  border: 1px solid rgba(165,180,252,0.18);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow:
    0 6px 18px -8px rgba(79,70,229,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-shell .sidebar-user:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px -8px rgba(79,70,229,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.app-shell .sidebar-user .user-avatar {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
  box-shadow:
    0 8px 16px -6px rgba(99,102,241,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
  border-radius: 12px;
  width: 40px; height: 40px;
  font-weight: 800;
}
.app-shell .sidebar-user .user-name {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.app-shell .sidebar-user .user-role {
  color: rgba(199,210,254,0.75);
  font-weight: 600;
}

/* Custom scrollbar — slim, premium */
.app-shell .admin-nav::-webkit-scrollbar { width: 5px; }
.app-shell .admin-nav::-webkit-scrollbar-thumb {
  background: rgba(165,180,252,0.20);
  border-radius: 999px;
}
.app-shell .admin-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(165,180,252,0.40);
}

/* Slightly more breathing room around nav on the new design */
.app-shell .admin-nav { padding: 0.65rem 0 1rem 0; }

/* ---- Soft topbar refresh ---- */
.app-shell .admin-topbar {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--app-border);
}
[data-theme="dark"] .app-shell .admin-topbar {
  background: rgba(24,25,29,0.78) !important;
}
.app-shell .icon-btn {
  border-radius: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
}
.app-shell .icon-btn:hover {
  background: var(--app-accent);
  border-color: var(--app-accent);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}

/* ---- Dashboard hero ---- */
.dash-hero {
  background: linear-gradient(135deg, #D71920 0%, #8b0e13 100%);
  color: #fff;
  border-radius: var(--app-radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 12px 30px -12px rgba(215,25,32,0.5);
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  border-radius: 50%;
}
.dash-hero::after {
  content: '';
  position: absolute; left: -30px; bottom: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.85;
}
.dash-hero-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-top: 4px;
  line-height: 1.15;
}
.dash-hero-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}
.dash-hero-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.dash-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.2s;
}
.dash-hero-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.dash-hero-btn-primary { background: #fff; color: #D71920 !important; }
.dash-hero-btn-primary:hover { background: #fff; transform: translateY(-1px) scale(1.02); }

/* ---- Stat tiles (soft gradient app-style) ---- */
.stat-tile {
  position: relative;
  background: var(--app-surface);
  border-radius: var(--app-radius);
  padding: 1.1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  box-shadow: var(--app-shadow-sm);
  border: 1px solid var(--app-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-tile::after {
  content: '';
  position: absolute;
  right: -30px; bottom: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  opacity: 0.10;
  pointer-events: none;
}
.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--app-shadow);
}
.stat-tile-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.2);
}
.stat-tile-body { min-width: 0; flex: 1; }
.stat-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
}
.stat-tile-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--app-text);
  line-height: 1.1;
  margin-top: 2px;
}
.stat-tile-sub {
  font-size: 0.7rem;
  color: var(--app-muted);
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.stat-tile-red    .stat-tile-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.stat-tile-red::after    { background: #ef4444; }
.stat-tile-amber  .stat-tile-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.stat-tile-amber::after  { background: #f59e0b; }
.stat-tile-blue   .stat-tile-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-tile-blue::after   { background: #3b82f6; }
.stat-tile-green  .stat-tile-icon { background: linear-gradient(135deg, #10b981, #047857); }
.stat-tile-green::after  { background: #10b981; }

/* ---- Chart cards ---- */
.chart-card {
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chart-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.chart-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text);
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
}
.chart-card-sub {
  font-size: 0.75rem;
  color: var(--app-muted);
  margin-top: 2px;
  font-weight: 500;
}
.chart-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  color: var(--app-text);
  text-decoration: none;
  border: 1px solid var(--app-border);
}
.chart-pill i { font-size: 0.6rem; }
.chart-pill-green { background: rgba(16,185,129,0.10); color: #047857; border-color: rgba(16,185,129,0.25); }
.chart-pill-red   { background: rgba(215,25,32,0.10); color: var(--app-accent); border-color: rgba(215,25,32,0.25); }
.chart-pill-red:hover { background: var(--app-accent); color: #fff; }
.chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  min-width: 0;
}
.chart-wrap-doughnut { height: 200px; }
.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--app-border);
}
.chart-legend-item {
  font-size: 0.78rem;
  color: var(--app-muted);
  display: flex; align-items: center; gap: 8px;
}
.chart-legend-item b { color: var(--app-text); margin-left: auto; font-weight: 800; }
.chart-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

/* ---- Panel soft refresh ---- */
.panel-soft {
  background: var(--app-surface);
  border-radius: var(--app-radius) !important;
  border: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-sm);
  overflow: hidden;
}
.panel-soft .panel-header {
  border-bottom: 1px solid var(--app-border);
  padding: 1rem 1.15rem;
}
.panel-soft .row-link { padding: 0.85rem 1.15rem; gap: 0.85rem; }
.row-link-avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(215,25,32,0.12), rgba(215,25,32,0.05));
  color: var(--app-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.row-link-avatar-blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.05));
  color: #3b82f6;
}

/* Bottom navigation (Flutter-style) — REMOVED 2026-05-06.
   Hidden via display:none everywhere as a safety net in case any leftover
   markup references these classes. Mobile users now use the top-left
   hamburger to access the main sidebar. */
.app-bottom-nav,
.app-bottom-link,
.app-bottom-fab { display: none !important; }

/* ---- Mobile profile sheet ---- */
.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,23,42,0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.app-sheet.open { display: flex; animation: app-fade 0.15s linear; }
.app-sheet-card {
  background: var(--app-surface);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -10px 30px -8px rgba(0,0,0,0.25);
  animation: app-slide-up 0.18s ease-out;
}
.app-sheet-handle {
  width: 44px; height: 4px;
  border-radius: 999px;
  background: var(--app-border);
  margin: 0 auto 14px;
}
.app-profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--app-border);
}
.app-profile-name { font-size: 1rem; font-weight: 800; color: var(--app-text); }
.app-profile-role { font-size: 0.75rem; color: var(--app-muted); margin-top: 2px; }
.user-avatar.large { width: 52px; height: 52px; font-size: 1.2rem; border-radius: 16px; }
.app-sheet-list {
  display: flex; flex-direction: column;
  padding: 10px 0 4px;
}
.app-sheet-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--app-text);
  text-decoration: none;
  transition: background 0.15s;
}
.app-sheet-item i { width: 22px; text-align: center; color: var(--app-muted); }
.app-sheet-item:hover { background: rgba(0,0,0,0.04); }
.app-sheet-danger { color: #b91c1c; }
.app-sheet-danger i { color: #b91c1c; }

@keyframes app-fade { from { opacity:0 } to { opacity:1 } }
@keyframes app-slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- Mobile tweaks ---- */
@media (max-width: 1024px) {
  .app-shell .admin-content {
    margin-left: 0 !important;
    max-width: 100vw !important;
  }
  .app-shell .admin-page { padding: 1rem; }
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 1.1rem; }
  .dash-hero-actions { flex-wrap: wrap; }
  .dash-hero-title { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .stat-tile { padding: 0.85rem; gap: 0.65rem; }
  .stat-tile-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }
  .stat-tile-value { font-size: 1.3rem; }
  .chart-wrap { height: 200px; }
  .chart-wrap-doughnut { height: 180px; }
}

/* =====================================================================
   SOFT LOGIN PAGE REDESIGN (2026-05-05)
   ===================================================================== */
/* =====================================================================
   PREMIUM LOGIN — Refined 2026-05-06
   Goals: premium feel, soft polish, fast paint cost.
   - Single static gradient background (no blur, no animation)
   - Layered subtle radial accents (no filter:blur, no transforms)
   - Tight typography, refined shadows, glassy-but-cheap card
   - Owner/Staff toggle is now a true flex segmented control (50/50)
   ===================================================================== */
.login-body-soft {
  min-height: 100vh;
  /* Premium soft gradient — no blur layers, single paint */
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(215,25,32,0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(99,102,241,0.10), transparent 60%),
    linear-gradient(135deg, #fbf7f7 0%, #ffffff 45%, #f5f6ff 100%);
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.login-soft-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Static radial-gradient accents — no filter:blur (cheap to paint) */
.login-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}
.login-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(215,25,32,0.22), rgba(215,25,32,0) 70%);
  top: -140px; left: -140px;
}
.login-blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), rgba(99,102,241,0) 70%);
  bottom: -110px; right: -110px;
}
.login-blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,158,11,0.12), rgba(245,158,11,0) 70%);
  top: 38%; right: 18%;
}
.login-card-soft {
  position: relative;
  z-index: 1;
  /* Solid white with a hint of warmth — no backdrop-filter for speed */
  background: #ffffff;
  border-radius: 28px;
  padding: 2.25rem 1.85rem 1.9rem;
  width: 100%;
  max-width: 430px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 80px -28px rgba(15,23,42,0.22),
    0 12px 24px -12px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.05);
}
.login-logo-wrap { display: flex; justify-content: center; margin-top: -68px; }
.login-logo-ring {
  width: 92px; height: 92px;
  border-radius: 26px;
  background: #fff;
  /* Refined ring — premium red glow, soft halo */
  box-shadow:
    0 16px 34px -10px rgba(215,25,32,0.50),
    0 0 0 6px rgba(255,255,255,0.85),
    0 0 0 7px rgba(215,25,32,0.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 9px;
}
.login-logo-ring img { width: 100%; height: 100%; object-fit: contain; }
.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: 500;
}

/* ---- Owner/Staff Segmented Toggle — fixed overflow ---- */
.role-toggle-soft {
  display: flex !important;
  width: 100%;
  background: #f1f3f9 !important;
  padding: 5px !important;
  border-radius: 14px !important;
  border: 1px solid #e6e9f2;
  gap: 4px;
  margin-bottom: 0.55rem;
  box-sizing: border-box;
}
.role-toggle-soft .role-toggle-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
  padding: 0.62rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}
.role-toggle-soft .role-toggle-btn i {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.role-toggle-soft .role-toggle-btn:hover { color: #0f172a; }
.role-toggle-soft .role-toggle-btn.active {
  background: #fff !important;
  color: #D71920 !important;
  box-shadow:
    0 2px 6px rgba(15,23,42,0.08),
    0 0 0 1px rgba(215,25,32,0.10);
}
.role-hint {
  font-size: 0.72rem !important;
  color: #6b7280 !important;
  text-align: center;
  margin-top: -0.4rem !important;
  margin-bottom: 1rem !important;
  min-height: 1.2em;
}
.login-error-soft {
  background: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  border-left-width: 4px !important;
  border-left-color: #ef4444 !important;
  color: #b91c1c !important;
  padding: 0.7rem 0.9rem !important;
  border-radius: 12px !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.85rem !important;
  display: flex !important;
  align-items: center; gap: 0.5rem;
}
.login-form-soft .form-label-soft {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.input-wrap-soft {
  position: relative;
  background: #fafbfc;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input-wrap-soft:hover {
  border-color: #d4d7e0;
  background: #fff;
}
.input-wrap-soft:focus-within {
  border-color: #D71920;
  box-shadow: 0 0 0 4px rgba(215,25,32,0.10);
  background: #fff;
}
.input-wrap-soft > i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.18s;
}
.input-wrap-soft:focus-within > i { color: #D71920; }
.login-input-soft {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 2.6rem 0.9rem 2.55rem;
  font-size: 0.93rem;
  color: #0f172a;
  font-weight: 500;
  border-radius: 14px;
}
.login-input-soft::placeholder { color: #cbd5e1; font-weight: 400; }
.login-pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.login-pw-toggle:hover { color: #D71920; background: #fef2f2; }
.login-submit-soft {
  width: 100%;
  background: linear-gradient(135deg, #E8232B 0%, #D71920 50%, #a71419 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 1rem 1rem;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 12px 26px -10px rgba(215,25,32,0.60),
    0 4px 10px -4px rgba(215,25,32,0.35);
  transition: transform 0.15s, box-shadow 0.18s, filter 0.18s;
  letter-spacing: 0.015em;
  position: relative;
  overflow: hidden;
}
.login-submit-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.login-submit-soft:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 16px 32px -10px rgba(215,25,32,0.70),
    0 6px 12px -4px rgba(215,25,32,0.40);
  filter: brightness(1.05);
}
.login-submit-soft:active { transform: translateY(0) scale(0.985); }
.login-submit-soft i { transition: transform 0.18s ease; }
.login-submit-soft:hover i { transform: translateX(3px); }
.login-footer-soft {
  text-align: center;
  margin-top: 1.1rem;
}
.login-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}
.login-back-link:hover { color: #D71920; }

.login-hint-card {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1px solid;
}
.login-hint-card i { font-size: 0.95rem; margin-top: 1px; }
.login-hint-card code {
  background: rgba(255,255,255,0.8);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
}
.login-hint-card .login-hint-title { font-weight: 700; margin-bottom: 2px; }
.login-hint-owner {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}
.login-hint-owner i { color: #94a3b8; }
.login-hint-staff {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.login-hint-staff i { color: #3b82f6; }

@media (max-width: 480px) {
  .login-card-soft { padding: 1.5rem 1.25rem 1.25rem; border-radius: 22px; }
  .login-title { font-size: 1.3rem; }
  .login-logo-ring { width: 76px; height: 76px; border-radius: 20px; }
  .login-logo-wrap { margin-top: -48px; }
}

/* ---- Hide WhatsApp popup inside admin (it's a customer widget) ---- */
.app-shell #whatsapp-popup,
.app-shell .whatsapp-popup { display: none !important; }

/* =====================================================================
   GLOBAL "Processing..." INDICATOR (Task 2 — 2026-05-06)
   Lightweight, dependency-free loader shown when a link or form is
   submitted. Designed for zero CPU cost when hidden, minimal cost while
   visible (single small pill, one short opacity transition, no spinning
   ring, no backdrop, no shadows).
   ===================================================================== */
#app-processing {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s linear, visibility 0s linear 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#app-processing.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s linear, visibility 0s linear 0s;
}
#app-processing .app-processing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  /* tiny CSS-only pulse, paint-only (no transform/box-shadow recalcs) */
  animation: app-processing-blink 0.9s steps(2, end) infinite;
}
@keyframes app-processing-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  #app-processing .app-processing-dot { animation: none; opacity: 1; }
}

/* ===================================================================
   FIX 2026-05-06 — Maintenance vehicle hero, Reminders cards on mobile
   These rules are additive and do not change any existing behaviour.
   =================================================================== */

/* ----- Task 1: Vehicle hero on Maintenance detail page ----- */
.vehicle-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.vehicle-hero-thumb { flex: 0 0 auto; }
.vehicle-hero-info {
  flex: 1 1 0;
  min-width: 0;          /* critical: allow text to use full available width */
}
.vehicle-hero-name {
  font-size: 1.125rem;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  line-height: 1.25;
}
.vehicle-hero-meta {
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}
.vehicle-hero-edit { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 640px) {
  /* Stack hero vertically on phones so the long vehicle name has the
     full panel width instead of being squished by the image + button. */
  .vehicle-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .vehicle-hero-thumb { display: flex; justify-content: flex-start; }
  .vehicle-hero-thumb img,
  .vehicle-hero-thumb > div { width: 100%; max-width: 320px; height: auto; }
  .vehicle-hero-info { width: 100%; }
  .vehicle-hero-name { font-size: 1.05rem; }
  .vehicle-hero-edit { width: 100%; justify-content: center; }
}

/* ----- Task 3: Reminders for this vehicle — proper cards on mobile ----- */
/* The reminders list is rendered as an .admin-table inside a panel labelled
   "Reminders for this vehicle". On phones the global .admin-table rule turns
   the table into a horizontal-scroll strip — which is exactly what the user
   asked us to remove. We mark the table with .reminders-table and switch it
   to a card stack on small screens, while leaving every other admin table
   untouched. */
@media (max-width: 768px) {
  .reminders-table,
  .reminders-table thead,
  .reminders-table tbody,
  .reminders-table tr,
  .reminders-table th,
  .reminders-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .reminders-table thead { display: none; }
  .reminders-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }
  .reminders-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
  }
  .reminders-table tr:hover td { background: transparent; }
  .reminders-table td {
    border: 0 !important;
    padding: 0.25rem 0 !important;
    font-size: 0.875rem;
    text-align: left !important;
  }
  .reminders-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #6b7280);
    margin-bottom: 0.15rem;
  }
  .reminders-table td.reminders-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem !important;
    border-top: 1px dashed var(--border) !important;
  }
  .reminders-table td.reminders-actions::before { display: none; }
}

/* =====================================================================
 * INSPECTION CHECKLIST UI (2026-05-06) — modern dark-blue accent.
 * ===================================================================== */
.insp-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 14px;
  width: fit-content;
  box-shadow: var(--shadow);
}
.insp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.insp-tab:hover { color: var(--text, #111827); background: rgba(99,102,241,0.06); }
.insp-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(59,130,246,0.55);
}

.insp-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6b7280);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border);
  width: 100%;
}
.insp-section-title i { color: #2563eb; font-size: 0.95rem; }

.insp-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.insp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  background: var(--surface, #fff);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
  color: var(--text, #111827);
}
.insp-status-pill input { display: none; }
.insp-status-pill i { font-size: 0.85rem; opacity: 0.7; }
.insp-status-pill:hover { border-color: #6366f1; transform: translateY(-1px); }

.insp-status-pill.on.insp-status-good {
  border-color: #10b981; background: rgba(16,185,129,0.10); color: #047857;
}
.insp-status-pill.on.insp-status-good i { color: #10b981; opacity: 1; }
.insp-status-pill.on.insp-status-bad {
  border-color: #ef4444; background: rgba(239,68,68,0.10); color: #b91c1c;
}
.insp-status-pill.on.insp-status-bad i { color: #ef4444; opacity: 1; }
.insp-status-pill.on.insp-status-warn {
  border-color: #f59e0b; background: rgba(245,158,11,0.10); color: #b45309;
}
.insp-status-pill.on.insp-status-warn i { color: #f59e0b; opacity: 1; }
.insp-status-pill.on.insp-status-neutral {
  border-color: #6366f1; background: rgba(99,102,241,0.10); color: #4338ca;
}
.insp-status-pill.on.insp-status-neutral i { color: #6366f1; opacity: 1; }

[data-theme="dark"] .insp-status-pill { background: var(--surface-2, #1f2026); }
[data-theme="dark"] .insp-status-pill.on.insp-status-good { color: #6ee7b7; }
[data-theme="dark"] .insp-status-pill.on.insp-status-bad { color: #fca5a5; }
[data-theme="dark"] .insp-status-pill.on.insp-status-warn { color: #fcd34d; }
[data-theme="dark"] .insp-status-pill.on.insp-status-neutral { color: #c7d2fe; }

/* ======================================================================
 * INSPECTION & CHECKLIST — PREMIUM REDESIGN (2026-05-06)
 * Modern soft cards, premium gradient buttons, polished alerts/toolbar
 * ====================================================================== */

/* --- Premium buttons used across inspection pages --- */
.insp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}
.insp-btn i { font-size: 0.95rem; }
.insp-btn:hover { transform: translateY(-1px); }
.insp-btn:active { transform: translateY(0); }
.insp-btn:disabled,
.insp-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.insp-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, 0.55), 0 2px 4px rgba(0,0,0,0.05);
}
.insp-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.7);
  color: #fff;
}

.insp-btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(16, 185, 129, 0.55), 0 2px 4px rgba(0,0,0,0.05);
}
.insp-btn-secondary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 12px 28px -10px rgba(16, 185, 129, 0.7);
  color: #fff;
}

.insp-btn-outline {
  background: var(--app-surface, #fff);
  color: var(--text, #1f2937);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.insp-btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
}

/* --- Booking summary card at top of checklist page --- */
.insp-summary-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(79, 70, 229, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 24px -16px rgba(37, 99, 235, 0.35);
}
.insp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
}
.insp-summary-item { min-width: 0; }
.insp-summary-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.insp-summary-label i { color: #4f46e5; }
.insp-summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.3;
  word-break: break-word;
}
.insp-summary-strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1d4ed8;
}
.insp-summary-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
  word-break: break-word;
}

/* --- Action toolbar (Print / Send via Email) --- */
.insp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--app-surface, #fff);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 12px -8px rgba(15, 23, 42, 0.15);
}
.insp-toolbar-info { flex: 1 1 280px; min-width: 0; }
.insp-toolbar-title {
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text, #0f172a);
}
.insp-toolbar-title i { color: #2563eb; }
.insp-toolbar-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.insp-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* --- Hidden / toggleable email form --- */
.insp-email-form {
  background: var(--app-surface, #fff);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px -16px rgba(16, 185, 129, 0.35);
}

/* --- Checkbox pill (include before / after / bcc) --- */
.insp-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.04);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text, #1f2937);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.insp-check-pill:has(input:checked) {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
}
.insp-check-pill input { accent-color: #2563eb; }
.insp-check-pill i { color: #4f46e5; }

/* --- Alerts --- */
.insp-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.insp-alert i { font-size: 1.15rem; margin-top: 0.1rem; flex-shrink: 0; }
.insp-alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.04));
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}
.insp-alert-success i { color: #059669; }
.insp-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.04));
  border-color: rgba(239, 68, 68, 0.35);
  color: #991b1b;
}
.insp-alert-error i { color: #dc2626; }
.insp-alert-warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border-color: rgba(245, 158, 11, 0.4);
  color: #92400e;
}
.insp-alert-warn i { color: #d97706; }

/* --- Inspection card (single section block) --- */
.insp-card {
  background: var(--app-surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.insp-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 22px -16px rgba(99, 102, 241, 0.45);
}

/* --- Action bar (Save / Last saved) at bottom of each form --- */
.insp-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.insp-saved-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
}
.insp-saved-stamp i { color: #4f46e5; }

/* --- Pane head (above each before/after form) --- */
.insp-pane-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.insp-pane-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -10px rgba(37, 99, 235, 0.6);
}
.insp-pane-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 18px -10px rgba(16, 185, 129, 0.6);
}
.insp-pane-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text, #0f172a);
  margin: 0;
}
.insp-pane-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}
.insp-pane-saved {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Tabs: enhanced "saved" indicator dot --- */
.insp-tab-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-left: 0.3rem;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.insp-tab.has-data { color: #047857; }

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .insp-toolbar { flex-direction: column; align-items: stretch; }
  .insp-toolbar-actions { justify-content: stretch; }
  .insp-toolbar-actions .insp-btn { flex: 1 1 auto; justify-content: center; }
  .insp-summary-grid { grid-template-columns: 1fr 1fr; }
  .insp-pane-saved { margin-left: 0; }
}
@media (max-width: 480px) {
  .insp-summary-grid { grid-template-columns: 1fr; }
  .insp-btn { padding: 0.65rem 0.95rem; font-size: 0.82rem; }
}

/* =====================================================================
   FIX (Task 1 — 2026-05-09 round 5) — Badge & Card overflow safeguards
   ---------------------------------------------------------------------
   Problem 1 (Booking detail screenshot):
     The "ACTIVE RENTAL" rental-status-badge and the "CONFIRMED"
     status-badge were rendering one letter per line (vertical) on
     mobile because their flex parent ran out of horizontal space and
     `word-break: break-all` was inherited from utility CSS.
   Problem 2 (Maintenance History screenshot):
     The maintenance record card forced its left column (date /
     service type / cost) into a near-zero width because the right
     column (thumbnail + View / Download buttons) refused to shrink,
     causing every word to break per-letter.
   Fix:
     - Force `white-space: nowrap` and `flex-shrink: 0` on the badges
       so they always render in one line.
     - Allow the badge container to wrap to the next line if both
       badges combined exceed the row width.
     - On the maintenance card, force horizontal layout to wrap and
       give the inner text columns a sane min-width / overflow-wrap.
   Presentation-only — no logic changes.
   ===================================================================== */
.rental-status-badge,
.status-badge {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  flex-shrink: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  /* Booking detail header: let the two badges wrap onto the next
     line instead of being squeezed beside the booking number. */
  .admin-page .panel .flex.items-center.justify-between {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .admin-page .panel .flex.items-center.gap-2 {
    flex-wrap: wrap;
  }

  /* Maintenance History records (per-vehicle view) — keep the row
     elements horizontally wrapped, never squeeze the text column to
     0px wide. */
  .admin-page .panel .border.border-gray-200.rounded-lg {
    overflow: hidden;
  }
  .admin-page .panel .border.border-gray-200.rounded-lg > div.flex.items-start {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .admin-page .panel .border.border-gray-200.rounded-lg > div.flex.items-start > div.flex-1 {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .admin-page .panel .border.border-gray-200.rounded-lg > div.flex.items-start > div.flex-1 * {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal;
  }
  .admin-page .panel .border.border-gray-200.rounded-lg > div.flex.items-start > div.flex-1 .font-bold {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  /* Right side (thumbnail + buttons) drops below the text on mobile */
  .admin-page .panel .border.border-gray-200.rounded-lg > div.flex.items-start > div.flex.items-center {
    flex: 1 1 100%;
    flex-wrap: wrap;
    width: 100%;
  }
  .admin-page .panel .border.border-gray-200.rounded-lg img {
    width: 64px !important;
    height: 64px !important;
  }
}

/* Reports filter toolbar (Task 2 — 2026-05-09) */
.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}
.report-filter-bar .filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.report-filter-bar .filter-field label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.report-filter-bar .filter-field input,
.report-filter-bar .filter-field select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  min-width: 140px;
}
.report-filter-bar .filter-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
@media (max-width: 640px) {
  .report-filter-bar { flex-direction: column; align-items: stretch; }
  .report-filter-bar .filter-field input,
  .report-filter-bar .filter-field select { width: 100%; }
  .report-filter-bar .filter-actions { margin-left: 0; }
}

/* =====================================================================
   Task 3 (2026-05-17) — Calendar & Daily Schedule widget
   ===================================================================== */
.ds-view-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.ds-view-btn:hover { background: #fff5f5; color: #b91c1c; }
.ds-view-btn.ds-view-btn-active {
  background: #D71920; color: #fff; border-color: #b91c1c;
}

.ds-mini-tile {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
}
.ds-mini-tile i { font-size: 1.3rem; opacity: .9; }
.ds-mini-tile-green  { border-left: 4px solid #10b981; }
.ds-mini-tile-green  i { color: #10b981; }
.ds-mini-tile-red    { border-left: 4px solid #ef4444; }
.ds-mini-tile-red    i { color: #ef4444; }
.ds-mini-tile-amber  { border-left: 4px solid #f59e0b; }
.ds-mini-tile-amber  i { color: #f59e0b; }
.ds-mini-tile-blue   { border-left: 4px solid #3b82f6; }
.ds-mini-tile-blue   i { color: #3b82f6; }

.ds-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: #9ca3af;
  border-radius: 0.5rem;
  transition: all .15s ease;
  color: inherit;
  text-decoration: none;
}
.ds-row:hover { background: #fff5f5; transform: translateX(2px); }
.ds-row-time {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 700; color: #475569;
  min-width: 70px;
}
.ds-row-main { flex: 1; min-width: 0; }
.ds-row-title { font-weight: 600; font-size: 0.875rem; color: #111827; }
.ds-row-sub { font-size: 0.72rem; color: #6b7280; margin-top: 2px; }
.ds-row-pill {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: #e5e7eb; color: #374151;
}
.ds-row-pending   { border-left-color: #f59e0b; }
.ds-row-confirmed { border-left-color: #3b82f6; }
.ds-row-active    { border-left-color: #10b981; }
.ds-row-completed { border-left-color: #64748b; }
.ds-row-cancelled { border-left-color: #ef4444; opacity: 0.7; }
.ds-row-pill-pending   { background: #fef3c7; color: #92400e; }
.ds-row-pill-confirmed { background: #dbeafe; color: #1e40af; }
.ds-row-pill-active    { background: #d1fae5; color: #065f46; }
.ds-row-pill-completed { background: #e5e7eb; color: #374151; }
.ds-row-pill-cancelled { background: #fee2e2; color: #991b1b; }

/* Week view */
.ds-week-day {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  min-height: 110px;
}
.ds-week-day-today {
  border-color: #D71920;
  box-shadow: 0 0 0 2px rgba(215,25,32,0.15);
}
.ds-week-day-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
  color: #475569;
}
.ds-week-day-today .ds-week-day-head { color: #D71920; }
.ds-week-day-body { display: flex; flex-direction: column; gap: 0.3rem; }
.ds-week-event {
  display: block;
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid #cbd5e1;
  background: #f8fafc;
}
.ds-week-event:hover { background: #fff5f5; }
.ds-week-event-pickup  { border-left-color: #10b981; background: #ecfdf5; color: #065f46; }
.ds-week-event-dropoff { border-left-color: #ef4444; background: #fef2f2; color: #991b1b; }

/* Month view */
.ds-month-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  min-height: 50px;
  padding: 0.25rem 0.3rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  cursor: default;
}
.ds-month-cell-blank { background: transparent; border-color: transparent; }
.ds-month-cell-today {
  background: #fef2f2;
  border-color: #D71920;
  box-shadow: inset 0 0 0 1px #D71920;
}
.ds-month-dots {
  display: flex; gap: 0.2rem; align-items: center; flex-wrap: wrap;
}
.ds-month-dot-p, .ds-month-dot-d {
  width: 7px; height: 7px; border-radius: 999px;
  display: inline-block;
}
.ds-month-dot-p { background: #10b981; }
.ds-month-dot-d { background: #ef4444; }
