:root {
  --ink: #14213d;
  --muted: #667085;
  --brand: #0d6efd;
  --brand-dark: #0b3d91;
  --accent: #20c997;
  --line: #e6ebf2;
  --soft: #f6f8fb;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.site-logo {
  max-height: 38px;
  max-width: 150px;
  object-fit: contain;
}

.site-nav {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand), #000 12%);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--brand), #000 16%);
  --bs-btn-active-bg: color-mix(in srgb, var(--brand), #000 18%);
  --bs-btn-active-border-color: color-mix(in srgb, var(--brand), #000 22%);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
}

.text-primary {
  color: var(--brand) !important;
}

.bg-primary {
  background-color: var(--brand) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand), transparent 78%);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 29, 56, .92), rgba(9, 29, 56, .52)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  min-height: 148px;
}

.service-card:hover,
.service-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand), transparent 84%);
}

.service-card i {
  font-size: 2rem;
  color: var(--brand);
}

.service-card.requires-confirmation {
  background: color-mix(in srgb, var(--brand), white 94%);
}

.sale-banner {
  display: inline-flex;
  margin-top: .65rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.service-price {
  margin-top: .4rem;
  display: grid;
  gap: .1rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.service-price small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: .15rem;
}

.price-note {
  margin-top: .65rem;
  color: var(--brand-dark);
}

.price-confirmation-box {
  border: 1px solid color-mix(in srgb, var(--brand), white 65%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand), white 94%);
  padding: 1rem;
}

.job-checklist-item span {
  transition: color .18s ease, text-decoration-color .18s ease;
}

.job-checklist-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.booking-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 1rem;
}

.booking-total .total-row {
  border-top: 1px solid var(--line);
  margin-top: .65rem;
  padding-top: .65rem;
  font-size: 1.1rem;
}

.stat {
  border-left: 4px solid var(--brand);
  background: var(--soft);
  border-radius: 8px;
}

.feature-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-tile i {
  color: var(--brand);
  font-size: 2.2rem;
}

.blog-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scroll-snap-type: x mandatory;
}

.blog-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.site-footer {
  background: #101828;
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.settings-tabs .nav-link {
  color: var(--ink);
}

.help-text {
  color: var(--muted);
  font-size: .84rem;
  margin-top: .25rem;
}

.admin-shell {
  min-height: 100vh;
  background: var(--soft);
}

.sidebar {
  background: #101828;
  color: #e4e7ec;
  min-height: 100vh;
}

.sidebar a {
  color: #d0d5dd;
  border-radius: 8px;
  padding: .65rem .8rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
  background: #1d2939;
  color: #fff;
}

.sidebar-group {
  color: #98a2b3;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: .95rem .55rem .3rem;
}

.invoice-view-row {
  cursor: pointer;
}

.invoice-edit-row[hidden] {
  display: none;
}

.calendar-board {
  display: grid;
  grid-template-columns: 90px repeat(7, minmax(160px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-head,
.calendar-time,
.calendar-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .65rem;
}

.calendar-head {
  background: var(--soft);
  font-weight: 800;
  min-height: auto;
}

.calendar-time {
  color: var(--muted);
  font-weight: 700;
}

.calendar-cell {
  min-height: 88px;
}

.calendar-job {
  display: block;
  border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand), #fff 88%);
  color: var(--ink);
  border-radius: 8px;
  padding: .5rem;
  text-decoration: none;
  margin-bottom: .35rem;
}

.table thead th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-soft {
  background: color-mix(in srgb, var(--brand), #fff 88%);
  color: var(--brand-dark);
}

.vrn-input {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}

.wizard-steps button {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: .7rem .5rem;
  color: var(--muted);
  font-weight: 700;
}

.wizard-steps button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.availability-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .75rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-scroll {
  overflow-x: auto;
  padding-bottom: .25rem;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
}

.availability-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.availability-date {
  text-align: center;
  padding: .65rem .35rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.slot-button {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: .5rem .25rem;
  margin-bottom: .45rem;
  font-weight: 700;
  font-size: .88rem;
}

.slot-button.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand), #fff 88%);
  color: var(--brand-dark);
}

.slot-button:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  text-decoration: line-through;
  cursor: not-allowed;
}

.slot-button.is-unavailable {
  opacity: .58;
  border-style: dashed;
}

.vehicle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

.vehicle-summary.is-hidden {
  display: none;
}

.vehicle-summary span {
  display: grid;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--soft));
  padding: .85rem 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.vehicle-summary small {
  color: var(--muted);
  font-weight: 600;
}

.rich-editor {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  overflow: auto;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--soft);
  padding: .5rem;
}

.editor-toolbar + .rich-editor {
  border-radius: 0 0 8px 8px;
}

.placeholder-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .25rem .55rem;
  margin: .15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}

.payment-status {
  border-radius: 999px;
  padding: .35rem .7rem;
  font-weight: 800;
}

.rich-editor:focus {
  outline: 3px solid color-mix(in srgb, var(--brand), transparent 78%);
  border-color: var(--brand);
}

.quick-search {
  min-width: min(360px, 100%);
}

@media (max-width: 991px) {
  .sidebar {
    min-height: auto;
  }

  .wizard-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .availability-grid {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    min-width: 840px;
  }
}
