/* =====================================================================
   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 28s linear infinite;
  padding: 0.55rem 0;
  width: max-content;
}
.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 1s ease-in-out;
  transform: scale(1.05);
}
.hero-bg-slide.active {
  opacity: 1;
  animation: ken-burns 6s ease-out forwards;
}
@keyframes ken-burns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.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 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s 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;
}

/* =====================================================================
   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.2s ease-out;
}
@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.25s ease-out;
}
@keyframes vbm-slide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    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 ---------- */
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

.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);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: .02em;
}
.topbar-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 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; }

.admin-page { padding: 1.5rem; }

/* ---------- 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;
  }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-content { margin-left: 0 !important; }
  .sidebar-collapsed .admin-sidebar { width: 260px; }
  .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; }
}
