:root {
  --brand: #76203c;
  --brand-dark: #531329;
  --brand-soft: #f7eaf0;
  --ink: #202633;
  --muted: #667085;
  --surface: #fff;
  --page: #f6f7f9;
  --line: #e6e8ec;
  --radius: 18px;
  --shadow: 0 10px 30px #2026330d;
}
body {
  background: var(--page);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-nav {
  background: var(--brand);
  box-shadow: 0 3px 16px #00000012;
}
.site-nav .container {
  min-height: 68px;
}
.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.navbar-brand span {
  color: #ffd18d;
}
.site-nav .nav-link {
  color: #ffffffd9;
  padding: 0.55rem 0.8rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: #fff;
}
.site-nav .btn {
  border-radius: 999px;
  font-weight: 650;
}
.site-nav .navbar-toggler {
  border-color: #ffffff60;
}
main.container {
  width: 100%;
  flex: 1;
  padding-top: 2.25rem !important;
  padding-bottom: 2rem !important;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  font-weight: 750;
}
h1 {
  margin-bottom: 1.25rem;
}
.hero {
  background:
    radial-gradient(ellipse at 80% 15%, #ffffff20, transparent 42%),
    linear-gradient(120deg, #591329, #9b3150);
  color: white;
  border-radius: 26px;
  padding: clamp(2rem, 6vw, 5rem);
  box-shadow: 0 16px 40px #53132925;
}
.hero h1 {
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.hero p {
  max-width: 600px;
}
.hero .btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  color: var(--brand);
}
.vehicle-card,
.card {
  border: 1px solid #e9eaee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vehicle-card {
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px #20263316;
}
.vehicle-card img {
  height: 220px;
  object-fit: cover;
  background: #eceef1;
}
.vehicle-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.vehicle-card .card-body > p {
  color: var(--muted);
}
.vehicle-card .card-body > .d-flex {
  margin-top: auto;
}
.price {
  color: var(--brand);
  font-weight: 800;
}
.price small {
  color: var(--muted);
  font-weight: 500;
}
.btn {
  font-weight: 650;
  border-radius: 10px;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}
.form-control,
.form-select {
  min-height: 46px;
  border-color: #d9dce2;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #a34e69;
  box-shadow: 0 0 0 0.22rem #76203c1c;
}
.form-label {
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.form-text,
.text-secondary {
  color: var(--muted) !important;
}
.form-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-panel .btn {
  min-height: 48px;
}
.alert {
  border: 0;
  border-radius: 12px;
}
.alert-success {
  background: #e9f7ef;
  color: #17633b;
}
.alert-danger {
  background: #fff0ef;
  color: #922f29;
}
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.table {
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  padding: 0.9rem 0.8rem;
}
.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom-color: var(--line);
}
.table tbody tr:last-child > * {
  border-bottom: 0;
}
.footer {
  background: #202633;
  color: #dbe0e8;
  margin-top: auto;
}
.footer a {
  color: #fff;
}
.admin-sidebar {
  background: #202633;
  color: #fff;
  min-height: 100%;
  border-radius: 16px;
}
.admin-sidebar a {
  color: #e5e7eb;
  text-decoration: none;
  display: block;
  padding: 0.6rem;
}
.admin-sidebar a:hover {
  background: #343d4e;
  border-radius: 8px;
}
.stat {
  background: white;
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-weight: 650;
  text-decoration: none;
}
.empty-state {
  background: white;
  border: 1px dashed #d8dbe2;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.empty-state h2,
.empty-state h3 {
  color: var(--ink);
}
.booking-summary {
  background: var(--brand-soft);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.step-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--muted);
}
.step-note .step-number {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 1rem;
  min-height: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-sidebar a {
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  margin: 0.15rem 0;
}
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #ffffff1a;
  color: #fff;
}
.admin-content {
  min-width: 0;
}
.admin-content .table-wrap {
  padding: 0.5rem;
}
.admin-content form .form-control,
.admin-content form .form-select {
  background-color: #fff;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.calendar-legend span {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.calendar-dot.available {
  background: #56a879;
}
.calendar-dot.pending {
  background: #e1a42b;
}
.calendar-dot.booked {
  background: var(--brand);
}
.calendar-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays > div {
  text-align: center;
  padding: 0.65rem 0.2rem;
  background: #fafafb;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calendar-day {
  min-height: 92px;
  padding: 0.5rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-date {
  font-weight: 750;
  font-size: 0.9rem;
}
.calendar-day.available {
  background: #f7fcf8;
}
.calendar-day.pending {
  background: #fffaf0;
}
.calendar-day.booked {
  background: #fcf4f7;
}
.calendar-day.past {
  background: #f7f7f8;
  color: #a0a4ad;
}
.calendar-blank {
  background: #fafafb;
}
.calendar-event {
  font-size: 0.7rem;
  line-height: 1.2;
  color: #774c11;
  overflow-wrap: anywhere;
}
.calendar-day.booked .calendar-event {
  color: var(--brand);
}
.calendar-add {
  font-size: 0.7rem;
  color: #28734a;
  text-decoration: none;
  line-height: 1.25;
}
.calendar-add:hover {
  text-decoration: underline;
}
.calendar-toolbar {
  overflow: visible;
}
.report-card {
  padding: 1.25rem;
}
.report-status-list {
  display: grid;
  gap: 0.4rem;
}
.report-status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background: #f8f9fb;
  border-radius: 10px;
}
.report-bars {
  display: grid;
  gap: 0.55rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.report-bar-row {
  display: grid;
  grid-template-columns: 52px minmax(40px, 1fr) 28px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
}
.report-bar-row time {
  color: var(--muted);
  white-space: nowrap;
}
.report-bar-track {
  height: 12px;
  background: #f0e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.report-bar-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
}
.report-bar-row strong {
  text-align: right;
}
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 28px;
  background: radial-gradient(ellipse at 82% 12%, #ffffff26, transparent 34%), radial-gradient(ellipse at 8% 100%, #d9745b26, transparent 38%), linear-gradient(118deg, #531329 0%, #76203c 58%, #9b3150 100%);
  color: #fff;
  box-shadow: 0 18px 45px #53132924;
}
.home-hero h1 {
  margin: 1rem 0;
  max-width: 650px;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1.02;
}
.home-hero .btn {
  color: var(--brand);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 750;
}
.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffe4bc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.home-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc573;
  box-shadow: 0 0 0 5px #ffc57324;
}
.home-hero-copy {
  max-width: 500px;
  color: #ffffffd9;
  font-size: 1.12rem;
}
.home-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  color: #ffffffdf;
  font-size: 0.84rem;
}
.home-benefits b { color: #ffd18d; margin-right: 0.25rem; }
.home-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  isolation: isolate;
}
.hero-orbit {
  position: absolute;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.orbit-one { width: 280px; height: 190px; }
.orbit-two { width: 225px; height: 255px; transform: rotate(35deg); }
.hero-bike {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 390px);
  height: 230px;
  animation: hero-float 4s ease-in-out infinite;
}
.hero-bike-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 18px #28091266); }
.hero-art-caption {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  display: grid;
  gap: 0.05rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ffffff35;
  border-radius: 14px;
  background: #ffffff15;
  backdrop-filter: blur(10px);
}
.hero-art-caption span { color: #ffe4bc; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; }
.hero-art-caption strong { font-size: 1rem; }
.hero-spark { position: absolute; color: #ffd18d; animation: spark-pulse 2.4s ease-in-out infinite; }
.spark-one { top: 2.4rem; right: 3rem; font-size: 1.8rem; }
.spark-two { left: 2rem; bottom: 3rem; font-size: 1rem; animation-delay: 0.8s; }
.home-search {
  position: relative;
  z-index: 2;
  margin-top: -2.3rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid #eee1e6;
  box-shadow: 0 18px 45px #20263318;
}
.home-search-intro { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.search-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.7rem;
  line-height: 1;
}
.home-search .btn { min-height: 46px; }
.home-search-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.78rem; }
.home-section-heading { margin-bottom: 1.3rem; }
.home-vehicle-card { border-color: #ebecef; }
.home-vehicle-image { position: relative; }
.home-vehicle-card img { display: block; }
.home-vehicle-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #ffffff77;
  border-radius: 999px;
  background: #ffffffed;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 750;
}
.home-vehicle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid #f0f1f3;
}
.home-how-it-works { padding: 1.5rem 0 0.75rem; }
.home-step {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px #20263308;
}
.home-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
}
.home-step h3 { margin-bottom: 0.4rem; }
.home-step p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 767.98px) {
  .home-hero { padding: 2rem 1.35rem; }
  .home-hero h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .home-benefits { gap: 0.55rem 1rem; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-11px) rotate(1deg); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}
.current-photo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.current-photo img {
  width: 92px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eceef1;
}
.profile-details { padding: 1.4rem; }
.profile-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.profile-data dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; margin-bottom: 0.2rem; }
.profile-data dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #f6f7f9ef;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(3px);
}
.site-loader.is-visible {
  opacity: 1;
  visibility: visible;
}
.site-loader-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 50px #20263320;
  font-weight: 700;
  color: var(--ink);
}
.site-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #ead8df;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: site-spin 0.75s linear infinite;
}
.availability-search {
  border-color: #e8dce1;
}
.availability-search .form-text {
  font-size: 0.82rem;
}
.vehicle-page-heading,
.admin-content > div:first-child {
  animation: page-enter 0.35s ease both;
}
.vehicle-result {
  animation: card-enter 0.42s ease both;
  animation-delay: calc(var(--card-index, 0) * 65ms);
}
@keyframes site-spin {
  to { transform: rotate(360deg); }
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
  .home-hero { border-radius: 22px; }
  .home-search { margin-top: -1.6rem; }
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem;
  }
  .admin-sidebar p {
    grid-column: 1/-1;
  }
  .admin-sidebar a {
    margin: 0;
  }
}
@media (max-width: 575.98px) {
  .profile-data { grid-template-columns: 1fr; gap: 0.7rem; }
  .calendar-title {
    padding: 0.75rem;
  }
  .calendar-day {
    min-height: 68px;
    padding: 0.3rem;
  }
  .calendar-date {
    font-size: 0.8rem;
  }
  .calendar-add,
  .calendar-event {
    font-size: 0.6rem;
  }
  .calendar-weekdays > div {
    font-size: 0.65rem;
    padding: 0.5rem 0.1rem;
  }
}
@media (max-width: 575.98px) {
  main.container {
    padding-top: 1.25rem !important;
  }
  .hero {
    border-radius: 20px;
  }
  .vehicle-card img {
    height: 195px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
  .table-wrap {
    padding: 0.5rem;
  }
  .table > :not(caption) > * > * {
    padding: 0.75rem 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-spinner,
  .vehicle-result,
  .vehicle-page-heading,
  .admin-content > div:first-child,
  .hero-bike,
  .hero-spark { animation: none !important; }
  .site-loader { transition: none; }
}
