:root {
  --cream: #F8F5EF;
  --white: #FFFFFF;
  --charcoal: #171717;
  --orange: #F97316;
  --orange-dark: #DB6510;
  --gray-line: #E7E1D6;
  --gray-text: #6B6660;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(23,23,23,0.06);
  --shadow-hover: 0 10px 28px rgba(23,23,23,0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-title { font-size: 28px; margin-bottom: 4px; }
.section-sub { color: var(--gray-text); margin-bottom: 32px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; font-weight: 700; color: var(--orange); margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: none; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-orange { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.appt-mechanic-select {
  width: 100%; padding: 9px 34px 9px 12px; font-size: 13px; border-radius: 8px;
  border: 1.5px solid var(--gray-line); background: var(--white); color: var(--charcoal);
}
.appt-mechanic-select:focus { outline: none; border-color: var(--orange); }

/* ---------- Back navigation (shown on every page except the homepage) ---------- */
.back-nav-bar { border-bottom: 1px solid var(--gray-line); background: var(--cream); }
.back-nav-inner { max-width: 1180px; margin: 0 auto; padding: 10px 24px; }
.back-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--charcoal);
  padding: 8px 6px; margin: -8px -6px; border-radius: 8px; min-height: 40px;
}
.back-nav-link:hover { background: var(--gray-line); }
.back-nav-link:hover { color: var(--orange-dark); }

/* ---------- Notice Bar (compact, dismissible alert strip) ---------- */
.notice-bar { border-bottom: 1px solid var(--gray-line); }
.notice-bar-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 24px; max-width: 1180px; margin: 0 auto;
}
.notice-bar-icon {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.notice-bar-text { flex: 1; font-size: 13px; line-height: 1.4; min-width: 0; }
.notice-bar-text strong { font-weight: 700; }
.notice-bar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.notice-link { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.notice-link:hover { text-decoration: underline; }
.notice-close {
  background: none; border: none; font-size: 18px; line-height: 1; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.notice-warning { background: #FFF6EC; }
.notice-warning .notice-bar-icon { background: #FCE0BC; color: var(--orange-dark); }
.notice-warning .notice-bar-text { color: #7A4B12; }
.notice-warning .notice-link { color: var(--orange-dark); }
.notice-warning .notice-close { color: #9A6A2C; }
.notice-warning .notice-close:hover { background: rgba(0,0,0,0.06); }

.notice-dark { background: #232323; border-bottom-color: #000; }
.notice-dark .notice-bar-icon { background: #3A3A3A; color: #fff; }
.notice-dark .notice-bar-text { color: #EDEDED; }
.notice-dark .notice-link { color: var(--orange); }
.notice-dark .notice-close { color: #BBB; }
.notice-dark .notice-close:hover { background: rgba(255,255,255,0.1); }

.notice-success { background: #EEF7EC; }
.notice-success .notice-bar-icon { background: #D4EDD0; color: #2C6F27; }
.notice-success .notice-bar-text { color: #1E5A1B; }
.notice-success .notice-link { color: #2C6F27; }
.notice-success .notice-close { color: #4A7A46; }
.notice-success .notice-close:hover { background: rgba(0,0,0,0.06); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--white); border-bottom: 1px solid var(--gray-line);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--charcoal); color: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.brand-logo { height: 42px; width: auto; display: block; }
.admin-sidebar .brand-logo { height: 34px; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links > a { font-weight: 600; font-size: 13.5px; color: var(--charcoal); white-space: nowrap; }
.nav-links > a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-divider { width: 1px; height: 24px; background: var(--gray-line); }
.points-badge {
  display: flex; align-items: center; gap: 4px; background: #FFF6EC; color: var(--orange-dark);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.points-badge:hover { background: #FCE0BC; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--cream); padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.user-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--charcoal); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }

/* ---------- Navbar Dropdowns ("Shop & Services", "My Account") ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; font: inherit; font-weight: 600; font-size: 13.5px;
  color: var(--charcoal); cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 2px;
}
.nav-dropdown-toggle:hover { color: var(--orange); }
.nav-caret {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform .15s ease;
}
.nav-dropdown.open .nav-dropdown-toggle { color: var(--orange); }
.nav-dropdown.open .nav-caret { transform: rotate(-135deg); margin-top: 3px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-hover);
  padding: 8px; min-width: 190px; z-index: 200;
  display: none; flex-direction: column; gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--charcoal); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--orange); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Product Card ---------- */
/* height:100% (in a grid, every card in a row stretches to the tallest)
   + margin-top:auto on the action row means the button always sits at
   the same vertical position regardless of how long each product's
   name/brand text runs, same fix pattern already used by .service-card. */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-name { min-height: 22px; }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card-desc { font-size: 13.5px; color: var(--gray-text); min-height: 60px; margin: 0 0 12px; }
.service-card-price { font-size: 16px; font-weight: 800; color: var(--charcoal); min-height: 34px; display: flex; align-items: center; margin-bottom: 14px; }
.service-card-price.is-transparent { font-size: 13px; font-weight: 600; color: var(--gray-text); }
.service-card-cta { margin-top: auto; }
.product-img { border-radius: 10px; overflow: hidden; background: var(--cream); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 42px; color: var(--gray-line); }
.product-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
/* Service cards show real workshop photos: fill the 16:9 frame (cropping is fine for a scene photo).
   The illustrated .svg fallbacks don't get this class, so they still use 'contain' above. */
.service-card .product-img img.service-photo { object-fit: cover; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); font-weight: 700; }
.product-name { font-size: 16px; font-weight: 700; margin: 4px 0 2px; }
.product-brand { font-size: 13px; color: var(--gray-text); margin-bottom: 8px; }
.product-price { font-size: 19px; font-weight: 800; color: var(--charcoal); }
.product-rating { font-size: 13px; color: var(--orange-dark); margin-bottom: 8px; }
.stock-in { color: #1a7a1a; font-size: 12px; font-weight: 700; }
.stock-out { color: #c0392b; font-size: 12px; font-weight: 700; }
.product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.wishlist-btn { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--gray-line); background: var(--white); cursor: pointer; }

/* ---------- Badges / Status pills ---------- */
.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-due, .pill-danger { background: #FCE4DE; color: #B7401F; }
.pill-due-soon, .pill-warning { background: #FDECC8; color: #92620A; }
.pill-ok, .pill-good, .pill-success { background: #E4F2E1; color: #2C6F27; }
.pill-neutral { background: var(--cream); color: var(--gray-text); border: 1px solid var(--gray-line); }
.pill-orange { background: #FFEAD9; color: var(--orange-dark); }

/* ---------- Forms ---------- */
label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--gray-line);
  background: var(--white); font-size: 14px; font-family: inherit; color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
/* Custom dropdown arrow so <select> doesn't fall back to the plain OS
   default, same look across browsers, matches the rest of the form styling. */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6660' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
  cursor: pointer;
}
select:disabled { cursor: not-allowed; opacity: .6; }
/* Nudge the native date/time picker icon to feel more intentional. Chrome/
   Edge only (::-webkit-*), other browsers just keep their own default icon,
   which is a graceful no-op rather than a broken look. */
input[type="date"], input[type="time"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; filter: invert(38%) sepia(53%) saturate(1584%) hue-rotate(340deg) brightness(96%) contrast(92%);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.form-group { margin-bottom: 18px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.form-error { color: #C0392B; font-size: 13px; margin-top: 6px; }
.form-hint { color: var(--gray-text); font-size: 12px; margin-top: 6px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--gray-text); }
.checkbox-row input { width: auto; margin-top: 3px; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.alert-error { background: #FCE4DE; color: #B7401F; }
.alert-success { background: #E4F2E1; color: #2C6F27; }
.alert-info { background: #FFEAD9; color: var(--orange-dark); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-hover); padding: 40px; width: 100%; max-width: 440px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--gray-text); }

/* ---------- Login Required Modal / Booking & Detail Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,23,23,0.55); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto;
}
.modal-box { background: var(--white); border-radius: 18px; padding: 36px; width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow-hover); position: relative; }
.modal-icon { width: 56px; height: 56px; border-radius: 999px; background: #FFEAD9; color: var(--orange); font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 800; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

.booking-modal-box { max-width: 560px; text-align: left; max-height: 88vh; overflow-y: auto; }
.modal-box-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 999px;
  border: none; background: var(--cream); color: var(--gray-text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-box-close:hover { background: var(--gray-line); color: var(--charcoal); }
.booking-modal-loading { text-align: center; color: var(--gray-text); font-size: 13.5px; padding: 24px 0; }

/* ---------- Booking Checklist (dynamic parts + labor selection) ---------- */
.checklist-group-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--orange-dark); margin: 16px 0 8px;
}
.checklist-group-label:first-child { margin-top: 0; }
.checklist-row {
  background: var(--cream); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.checklist-row .checkbox-row span { color: var(--charcoal); font-size: 13.5px; }
.bm-item-part { margin-top: 8px; }
.bm-item-part select { font-size: 13px; padding: 9px 34px 9px 12px; }
.bm-item-concern { margin-top: 8px; }
.bm-item-concern input { font-size: 12.5px; padding: 8px 12px; border-color: var(--gray-line); }
.bm-item-concern input::placeholder { color: #A8A29A; }

.part-source-toggle { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.part-source-option {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  background: var(--white); border: 1.5px solid var(--gray-line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.part-source-option input[type="radio"] { width: auto; margin: 0; }
.part-source-option:has(input:checked) { border-color: var(--orange); background: #FFF6EC; color: var(--orange-dark); }

.part-picker { display: flex; flex-direction: column; gap: 8px; }
.part-option {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1.5px solid var(--gray-line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.part-option:has(input:checked) { border-color: var(--orange); background: #FFF6EC; }
.part-option input[type="radio"] { width: auto; flex-shrink: 0; }
.part-option-img {
  width: 64px; height: 64px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden;
}
/* contain + small inset: the whole part (bottle, filter, battery...) stays visible, never cropped */
.part-option-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 3px; box-sizing: border-box; display: block; }
.part-option-body { flex: 1; min-width: 0; }
.part-option-name { font-size: 13px; font-weight: 700; }
.part-option-desc { font-size: 11.5px; color: var(--gray-text); margin: 2px 0; }
.part-option-price { font-size: 13px; font-weight: 800; color: var(--orange-dark); }

.estimate-box {
  background: var(--cream); border-radius: 12px; padding: 14px 18px; margin: 16px 0;
}
.estimate-row {
  display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--gray-text);
}
.estimate-row strong { color: var(--charcoal); }
.estimate-grand {
  border-top: 1px solid var(--gray-line); margin-top: 6px; padding-top: 10px;
  font-size: 15px; font-weight: 700;
}
.estimate-grand strong { color: var(--orange-dark); font-size: 17px; }

/* ---------- Product Carousel ---------- */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 24px; max-width: 1180px; margin: 0 auto; }
.carousel-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 4px 0 16px; flex: 1; -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 220px; scroll-snap-align: start; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: block; transition: box-shadow .15s ease;
}
.carousel-card:hover { box-shadow: var(--shadow-hover); }
.carousel-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--gray-line);
  background: var(--white); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
}
.carousel-arrow:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Digital QR Points Card ---------- */
.qr-points-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.qr-points-canvas {
  width: 176px; height: 176px; background: var(--white); border-radius: 14px; border: 1.5px solid var(--gray-line);
  display: flex; align-items: center; justify-content: center; padding: 12px; margin: 0 auto;
}
.qr-points-canvas img, .qr-points-canvas canvas { width: 100% !important; height: 100% !important; }
@media (max-width: 640px) {
  .qr-points-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Loyalty Points / Rewards ---------- */
.points-vault {
  background: var(--charcoal); border-radius: 20px; padding: 40px; text-align: center;
  margin-bottom: 36px; position: relative; overflow: hidden;
}
.points-vault::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  border-radius: 999px; background: radial-gradient(circle, rgba(249,115,22,0.25), transparent 70%);
}
.points-vault-num { font-size: 52px; font-weight: 800; color: var(--orange); position: relative; z-index: 1; }
.points-vault-label { color: #C9C6C1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; position: relative; z-index: 1; }

.voucher-card { position: relative; border: 1.5px dashed var(--orange); }
.voucher-card.voucher-used { border-color: var(--gray-line); opacity: .6; }
.voucher-code {
  font-family: 'Courier New', monospace; font-weight: 800; font-size: 15px; letter-spacing: .03em;
  background: var(--cream); border-radius: 8px; padding: 10px 14px; text-align: center;
}

/* ---------- PMS Package Pricing ---------- */
.pms-package-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.pms-package-head { background: var(--charcoal); color: #fff; padding: 20px 24px; }
.pms-package-head h3 { color: #fff; margin-bottom: 2px; }
.pms-tier-row { display: flex; border-bottom: 1px solid var(--gray-line); }
.pms-tier-row:last-child { border-bottom: none; }
.pms-tier-label { flex: 0 0 130px; padding: 14px 16px; font-size: 12px; font-weight: 700; color: var(--gray-text); text-transform: uppercase; letter-spacing: .04em; background: var(--cream); }
.pms-tier-cell { flex: 1; padding: 14px 16px; text-align: center; font-size: 13px; border-left: 1px solid var(--gray-line); }
.pms-tier-cell.head { background: #FFF6EC; }
.pms-tier-name { font-weight: 800; font-size: 13.5px; }
.pms-tier-brand { font-size: 11.5px; color: var(--gray-text); }
.pms-tier-price { font-size: 20px; font-weight: 800; color: var(--orange-dark); }
.pms-addons { display: flex; gap: 20px; padding: 18px 24px; background: var(--charcoal); flex-wrap: wrap; margin-top: auto; }
.pms-addon-item { color: #C9C6C1; font-size: 12px; font-weight: 600; }
.pms-package-cta { padding: 18px 24px; }

/* ---------- Testimonials ---------- */
.testimonial-card { display: flex; flex-direction: column; gap: 4px; }
.testimonial-stars { color: var(--orange); font-size: 13px; letter-spacing: 2px; margin-bottom: 6px; }
.testimonial-quote { font-size: 14px; color: var(--charcoal); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--white); padding: 56px 0; position: relative; overflow: hidden; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero h1 { font-size: 40px; max-width: 640px; color: var(--white); }
.hero p { color: #C9C6C1; max-width: 520px; font-size: 16px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stripe { position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; border-radius: 999px; background: radial-gradient(circle, rgba(249,115,22,0.25), transparent 70%); }

/* Hero grid: text on the left, the Services/Products/Stories showcase
   embedded directly on the right, this REPLACES the old separate
   full-width showcase section entirely, cutting one whole section's
   worth of scrolling off the homepage. */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-showcase {
  background: var(--white); color: var(--charcoal); border-radius: 16px; padding: 18px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); position: relative; z-index: 2;
  max-width: 340px; width: 100%; margin-left: auto; font-size: 13px;
}
.hero-showcase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hero-showcase-head .eyebrow { color: var(--orange); margin: 0; font-size: 11px; }
.hero-showcase-head h3 { margin: 2px 0 0; font-size: 15px; }
.hero-showcase-body { min-height: 170px; }
.hero-showcase-body .product-name { font-size: 14px; }
.hero-showcase-body .service-card-desc { font-size: 12px; }
.hero-showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hero-showcase .showcase-arrow { font-size: 16px; margin-top: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase { margin: 8px auto 0; max-width: 380px; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
/* Tighter vertical rhythm used only on the homepage (index.php) so the
   whole page fits into far fewer scrolls, without touching the default
   section spacing used everywhere else in the site. */
section.section-tight { padding: 36px 0; }
.section-alt { background: var(--white); }

/* ---------- Steps (booking) ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 34px; }
.step-dot { width: 32px; height: 32px; border-radius: 999px; background: var(--gray-line); color: var(--gray-text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.step-dot.active { background: var(--orange); color: var(--white); }
.step-dot.done { background: var(--charcoal); color: var(--white); }
.step-line { width: 36px; height: 2px; background: var(--gray-line); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 15px 18px; font-size: 13.5px; border-bottom: 1px solid var(--gray-line); }
th { background: var(--cream); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--gray-text); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #FCFAF6; }

/* ---------- Page Head (title + optional info trigger, consistent spacing) ---------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.page-subtext { color: var(--gray-text); font-size: 14px; margin-top: 4px; }

/* ---------- Status Info Popover (replaces the static legend text) ---------- */
.status-info { position: relative; flex-shrink: 0; }
.info-icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--gray-line);
  background: var(--white); color: var(--gray-text); font-size: 12px; font-weight: 800;
  font-style: italic; font-family: Georgia, serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.info-icon-btn:hover, .status-info.open .info-icon-btn { border-color: var(--orange); color: var(--orange); }
.status-popover {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-hover);
  padding: 16px; width: 250px; z-index: 150; display: none;
}
.status-info.open .status-popover { display: block; }
.status-popover-title { font-weight: 800; font-size: 12.5px; margin-bottom: 12px; }
.status-popover-list { display: flex; flex-direction: column; gap: 9px; }
.status-popover-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray-text); }
.status-popover-list .pill { flex-shrink: 0; }

/* ---------- Responsive table -> stacked cards on small screens ---------- */
@media (max-width: 700px) {
  table.responsive-table thead { display: none; }
  table.responsive-table, table.responsive-table tbody,
  table.responsive-table tr, table.responsive-table td { display: block; width: 100%; }
  table.responsive-table { background: transparent; box-shadow: none; }
  table.responsive-table tr {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 18px; margin-bottom: 14px;
  }
  table.responsive-table tr:hover { background: var(--white); }
  table.responsive-table td {
    border: none; padding: 7px 0; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; font-size: 13.5px;
  }
  table.responsive-table td::before {
    content: attr(data-label); font-weight: 700; color: var(--gray-text);
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0;
  }
}

/* ---------- Footer ---------- */
footer { background: var(--charcoal); color: #C9C6C1; padding: 48px 0 24px; margin-top: 60px; }
footer h4 { color: var(--white); font-size: 15px; }
footer a { color: #C9C6C1; font-size: 14px; }
footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 13px; color: #8a8680; text-align: center; }

/* ---------- PMS Odometer Simulator ---------- */
.pms-sim-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.pms-sim-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; }
.pms-sim-subtitle { font-size: 12.5px; color: var(--gray-text); margin: 2px 0 0; }
.pms-sim-body { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.pms-sim-number { font-size: 34px; font-weight: 800; color: var(--charcoal); }
.pms-sim-unit { font-size: 16px; color: var(--gray-text); font-weight: 600; }
.pms-sim-next { font-size: 12.5px; color: var(--gray-text); }
.pms-sim-next strong { color: var(--charcoal); }
.pms-sim-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--gray-text); margin-bottom: 8px; }
.pms-sim-remaining { color: var(--orange-dark); font-weight: 700; }
.pms-sim-progress { width: 100%; height: 8px; border-radius: 999px; background: var(--gray-line); overflow: hidden; }
.pms-sim-progress-fill { height: 100%; background: var(--orange); border-radius: 999px; transition: width .1s ease; }
.pms-checklist-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pms-checklist-row {
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
  background: var(--cream); padding: 10px 14px; border-radius: 8px;
}

/* ---------- Dashboard / vehicle widgets ---------- */
.parts-health-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.parts-health-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; background: var(--cream); padding: 8px 12px; border-radius: 8px; }
.parts-health-hidden { display: none; }
.parts-health-toggle {
  display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer;
  color: var(--orange-dark); font-weight: 700; font-size: 12.5px; padding: 10px 0 0; width: 100%;
}
.parts-health-toggle:hover { text-decoration: underline; }
.parts-health-arrow { font-size: 10px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-num { font-size: 26px; font-weight: 800; }
.stat-label { font-size: 12.5px; color: var(--gray-text); font-weight: 600; }
.vehicle-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.vehicle-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.odometer-box { background: var(--cream); border-radius: 12px; padding: 16px 20px; text-align: center; }
.odometer-num { font-size: 24px; font-weight: 800; }
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 8px; font-size: 14px; background: var(--cream); padding: 10px 14px; border-radius: 10px; }
.checklist li:before { content: "✓"; color: var(--orange); font-weight: 900; }

/* ---------- Admin Calendar ---------- */
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 16px; }
.calendar-today-badge {
  background: var(--cream); border-radius: 12px; padding: 10px 18px; text-align: center; min-width: 70px;
}
.calendar-today-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray-text); }
.calendar-today-num { font-size: 24px; font-weight: 800; color: var(--charcoal); }
.calendar-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calendar-nav-arrow {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--gray-line); background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--charcoal);
}
.calendar-nav-arrow:hover { border-color: var(--orange); color: var(--orange); }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.calendar-dow {
  text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-text); padding: 6px 0;
}
.calendar-cell {
  min-height: 100px; background: var(--cream); border-radius: 8px; padding: 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.calendar-cell-empty { background: transparent; }
.calendar-cell-today { border: 2px solid var(--orange); }
.calendar-daynum { font-size: 12px; font-weight: 700; color: var(--gray-text); margin-bottom: 2px; }
.calendar-appt {
  font-size: 10.5px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; text-decoration: none;
}
.calendar-more { font-size: 10px; color: var(--gray-text); padding: 2px 6px; }

@media (max-width: 900px) {
  .calendar-cell { min-height: 70px; }
  .calendar-appt { font-size: 9px; }
}

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 268px; background: var(--charcoal); color: var(--white); padding: 20px 0 24px; flex-shrink: 0;
  overflow-y: auto; transition: transform .2s ease;
}
.admin-sidebar .brand { color: var(--white); padding: 4px 22px 22px; }
.admin-main { flex: 1; background: var(--cream); padding: 32px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }

/* Base style for every sidebar link, top-level AND inside a group.
   (Previously this used ".admin-sidebar > a" with a direct-child
   combinator, which meant links nested inside a group's div silently
   lost display:block and rendered inline/overlapping, that was the
   actual cause of the cramped, colliding submenu look. Using a plain
   descendant selector fixes it for both levels at once.) */
.admin-sidebar a {
  display: flex; align-items: center; min-height: 20px;
  padding: 11px 22px; font-size: 14px; font-weight: 600; line-height: 1.35;
  color: #C7C3BC; white-space: normal; word-break: break-word;
}
.admin-sidebar a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-sidebar a.active {
  color: var(--white); background: rgba(232,103,43,0.18);
  border-right: 3px solid var(--orange); font-weight: 700;
}

/* Grouped/collapsible sidebar sections. Native <details>/<summary> so
   opening/closing needs zero extra JS; the server decides the initial
   "open" state based on the current page (admin/includes/header.php),
   so navigating anywhere inside a group keeps that group expanded and
   its active item highlighted, no manual reopening needed. */
.admin-nav-group { margin: 6px 0; }
.admin-nav-group-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 10px 22px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: #8A867F; list-style: none; user-select: none; line-height: 1.4;
}
.admin-nav-group-label::-webkit-details-marker { display: none; }
.admin-nav-group-label:hover { color: #D8D4CC; }
.admin-nav-caret {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease; margin-left: 6px; flex-shrink: 0;
}
.admin-nav-group[open] > .admin-nav-group-label .admin-nav-caret { transform: rotate(-135deg); }
.admin-nav-group[open] > .admin-nav-group-label { color: #D8D4CC; }

/* Submenu: a clean vertical list, consistently indented so the
   hierarchy (parent -> child) is visually obvious, one item per row -
   never squeezed side-by-side into columns. */
.admin-nav-group-items { display: flex; flex-direction: column; padding: 2px 0 4px; }
.admin-nav-group-items a { padding-left: 46px; font-size: 13.5px; font-weight: 500; }
.admin-nav-group-items a.active { font-weight: 700; }

.admin-nav-divider { border-top: 1px solid #333; margin: 14px 0; }

/* Mobile sidebar toggle (hidden on desktop, the sidebar is always visible there) */
.admin-sidebar-toggle { display: none; }
.admin-sidebar-overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }

  /* Admin sidebar becomes an off-canvas drawer instead of vanishing
     entirely, opened via the hamburger button in the topbar (PART 19:
     admin sidebar must remain usable on mobile). */
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: 280px;
    transform: translateX(-100%); box-shadow: var(--shadow-hover);
  }
  .admin-sidebar.admin-sidebar-open { transform: translateX(0); }
  .admin-sidebar-toggle { display: inline-flex; }
  .admin-sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(23,23,23,0.5); z-index: 190;
  }
  .admin-sidebar-overlay.admin-sidebar-overlay-open { display: block; }
  .admin-main { padding: 20px; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Registration page: form + "What's Included in a PMS" side panel ---------- */
.register-wrap { align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
.register-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; max-width: 1180px; width: 100%; align-items: start; }
.register-pms-panel {
  position: sticky; top: 24px;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
@media (max-width: 800px) {
  .register-grid { grid-template-columns: 1fr; }
  .register-pms-panel { position: static; order: 2; max-height: 420px; }
  .register-grid > .auth-card { order: 1; }
}

/* ---------- Consistent, larger clickable area for icon-only controls (PART 22) ----------
   Applied alongside each control's existing class, so nothing is removed -
   this only standardizes the minimum tap target (~40px) and hit area. */
.icon-btn {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-line); background: var(--white); color: var(--charcoal);
  cursor: pointer; font-size: 16px; flex-shrink: 0; transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--cream); }

/* ---------- Admin notification bell (PART 4) ---------- */
.admin-notif-wrap { position: relative; }
#adminNotifBell { position: relative; }
.admin-notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: #C0392B; color: #fff; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--white, #fff);
}
.admin-notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 90vw; max-height: 420px; overflow-y: auto;
  background: var(--white, #fff); border: 1px solid var(--gray-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 200;
}
.admin-notif-dropdown-head { font-weight: 800; font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--gray-line); }
.admin-notif-empty { padding: 24px 16px; color: var(--gray-text); font-size: 13px; text-align: center; }
.admin-notif-item {
  display: flex; gap: 10px; padding: 12px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--gray-line);
}
.admin-notif-item:last-child { border-bottom: none; }
.admin-notif-item:hover { background: var(--cream); }
.admin-notif-icon { font-size: 18px; flex-shrink: 0; }
.admin-notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-notif-title { font-weight: 700; font-size: 13px; }
.admin-notif-desc { font-size: 12.5px; color: var(--charcoal); overflow-wrap: anywhere; }
.admin-notif-time { font-size: 11px; color: var(--gray-text); }
@media (max-width: 640px) {
  .admin-notif-dropdown { position: fixed; top: 64px; right: 8px; left: 8px; width: auto; }
}

/* ---------- Admin "Back" link (consistent styling across detail pages, PART 23) ---------- */
.admin-back-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 999px; border: 1.5px solid var(--gray-line); background: var(--white);
  font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 16px;
}
.admin-back-link:hover { border-color: var(--orange); color: var(--orange-dark); }

/* ---------- PMS History Unknown mileage checklist (PARTS 25-29) ---------- */
.checklist-by-mileage { display: none; }
.checklist-by-mileage.open { display: block; }

/* ---------- Landing page top showcase/slider (PARTS 16-17) ---------- */
.showcase-slider { display: flex; align-items: flex-start; gap: 14px; position: relative; }
.showcase-viewport { flex: 1; min-width: 0; }
.showcase-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--gray-line); background: var(--white);
  font-size: 22px; font-weight: 800; color: var(--charcoal); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 60px;
}
.showcase-arrow:hover { border-color: var(--orange); color: var(--orange); background: var(--cream); }
.showcase-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.showcase-dot {
  width: 44px; height: 12px; border-radius: 999px; border: none; background: var(--gray-line);
  cursor: pointer; padding: 0;
}
.showcase-dot.active { background: var(--orange); }
@media (max-width: 720px) {
  .showcase-arrow { margin-top: 0; align-self: center; }
}

/* ---------- Landing hero carousel: arrows on the black section's left/right edges ---------- */
.hero-carousel { padding: 64px 0 72px; }
.hero-slides {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 2;
  /* Fixed box for every slide, a slide's content never resizes this
     section (the "black part" staying the same size no matter which
     slide is showing). A slide taller than this scrolls WITHIN itself
     instead of pushing the box taller. */
  height: 560px;
}
.hero-slide {
  display: none;
  position: absolute; top: 0; left: 90px; right: 90px;
  height: 100%; overflow: visible;
}
.hero-slide.active { display: block; animation: heroFade .35s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-slide-title { color: var(--white); font-size: 34px; margin-bottom: 22px; }
.hero-slide-more { text-align: center; margin-top: 20px; }
.hero-slide .card p { color: var(--gray-text); max-width: none; margin-bottom: 0; }
.hero-slide .card .testimonial-quote { color: var(--charcoal); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff;
  font-size: 28px; font-weight: 800; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow-left { left: 22px; }
.hero-arrow-right { right: 22px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 40px; height: 6px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.28); }
.hero-dot.active { background: var(--orange); }
/* Promo posters: show the WHOLE original post at its own aspect ratio, no fixed 4:3 box,
   no crop, no stretch. Portrait posters get a height cap so they fit the slide instead of
   overflowing it; width/height 'auto' keeps the ratio when either cap kicks in. */
.promo-card img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(520px, 70vh);
  margin: 0 auto 10px; object-fit: contain; border-radius: 10px;
}
.promo-caption { font-size: 13px; margin-top: 4px; }
/* Promos slide: no white card background and no inner scroll, the posters sit
   directly on the black hero, sized to fit the fixed slide box. */
.hero-slide-promo .promo-card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.hero-slide-promo .promo-card img { max-height: 380px; }
.hero-slide-promo .promo-card .product-name { color: var(--white); text-align: center; }
.hero-slide-promo .promo-card .promo-caption { color: #C9C6C1; text-align: center; }

/* Welcome slide: headline on the left, MAIN PROMO (newest Promo Post) on the right.
   Without a promo the slide looks exactly like before. */
.hero-welcome.has-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; height: 100%; }
.hero-welcome.has-promo h1 { font-size: 38px; }
/* Picture only: no border, no card box, bigger so the promo text is readable. */
.hero-main-promo { display: flex; align-items: center; justify-content: center; height: 100%; max-height: 100%; text-decoration: none; transition: transform .2s ease; }
.hero-main-promo:hover { transform: scale(1.02); }
.hero-main-promo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; }
@media (max-width: 900px) {
  .hero-welcome.has-promo { grid-template-columns: 1fr; gap: 24px; height: auto; }
  .hero-welcome.has-promo h1 { font-size: 30px; }
  .hero-main-promo { height: auto; }
  .hero-main-promo img { max-height: 420px; }
}
/* Meet the Team slide */
.team-group-label { color: #C9C6C1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.team-grid { margin-bottom: 22px; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.team-avatar { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
.team-name { font-weight: 800; font-size: 14.5px; }
.team-role { font-size: 12px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.showcase-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
@media (max-width: 720px) {
  .hero-slides { padding: 0 20px 56px; height: 620px; }
  .hero-slide { left: 20px; right: 20px; overflow-y: auto; }
  .hero-arrow { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; font-size: 24px; }
  .hero-arrow-left { left: 16px; }
  .hero-arrow-right { right: 16px; }
  .hero-slide-title { font-size: 26px; }
}

/* ---------- PMS Schedule Guide (pms.php): scrollable range tabs ---------- */
.pms-guide { min-width: 0; max-width: 100%; }
.pms-guide-tabs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--gray-line); -webkit-overflow-scrolling: touch; }
.pms-guide-tab {
  flex-shrink: 0; border: 1px solid var(--gray-line); background: var(--cream); color: var(--charcoal);
  border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.pms-guide-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.pms-guide-tab:hover:not(.active) { border-color: var(--orange); }


/* ---------- Admin dashboard: clickable stat cards / rows ---------- */
a.stat-link { display: block; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; }
a.stat-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
a.stat-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
tr.row-link { cursor: pointer; }

/* ---------- Admin appointments: fit the page, no sideways scroll on normal screens ---------- */
.appt-table-wrap { overflow: visible; }
.appt-table th, .appt-table td { padding: 12px 10px; font-size: 13px; vertical-align: top; }
.appt-table td:first-child { white-space: nowrap; }
.appt-table .appt-mechanic-select { width: 100%; }
@media (max-width: 1100px) { .appt-table-wrap { overflow-x: auto; } }

/* =====================================================================
   Round 7 fixes
   ===================================================================== */

/* Cards inside the dark hero inherited white text (names were invisible
   on the white cards). Force readable dark text inside every hero card. */
.hero .card, .hero-slide .card { color: var(--charcoal); }
.hero-slide .card .team-name,
.hero-slide .card .product-name { color: var(--charcoal); }
.hero-slide .card .product-price { color: var(--charcoal); }

/* Even, aligned product cards: fixed-height text rows so every card lines up */
.product-card .product-name { min-height: 44px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-brand { min-height: 20px; }
.product-card .product-rating { min-height: 20px; }
.product-card .product-price-range { min-height: 62px; }
.product-card .price-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-text); display: block; }
.product-card .product-price-range { font-size: 18px; }
.grid-3 > .card { height: 100%; box-sizing: border-box; }
.team-card { min-height: 100px; box-sizing: border-box; }

/* Admin side: larger, easier to read text */
.admin-main { font-size: 16px; }
.admin-main label { font-size: 14.5px; }
.admin-main input, .admin-main select, .admin-main textarea { font-size: 15.5px; padding-top: 13px; padding-bottom: 13px; }
.admin-main th, .admin-main td { font-size: 15px; }
.admin-main th { font-size: 12.5px; }
.admin-main .btn { font-size: 15px; }
.admin-main .btn-sm { font-size: 14px; }
.admin-main .form-hint { font-size: 13.5px; }
.admin-main .checkbox-row { font-size: 15px; }
.admin-main .checklist-row .checkbox-row span { font-size: 15px; }
.admin-main .checklist-group-label { font-size: 13px; }
.admin-main .stat-label { font-size: 14px; }
.admin-main .stat-num { font-size: 30px; }
.admin-main h3 { font-size: 20px; }
.admin-main .pill { font-size: 13px; }
.admin-sidebar a { font-size: 15.5px; }
.admin-nav-group-items a { font-size: 15px; }
.admin-nav-group-label { font-size: 12.5px; }
.admin-main .part-option-name { font-size: 14.5px; }
.admin-main .part-option-desc { font-size: 13px; }
.admin-main .part-option-price { font-size: 14.5px; }


/* ---------- Searchable brand picker (my-vehicle.php Add a Vehicle) ---------- */
.brand-combo { position: relative; }
.brand-combo input[type="text"] { width: 100%; box-sizing: border-box; padding-right: 40px; }
.brand-combo-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; color: var(--gray-text); }
/* The real <select> stays in the form (so "required" + submit still work) but is visually hidden. */
.brand-combo select { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.brand-combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--gray-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; }
.brand-combo-item { padding: 10px 14px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.brand-combo-item:hover, .brand-combo-item.hi { background: var(--cream); }
.brand-combo-item.selected { color: var(--orange-dark, var(--orange)); font-weight: 700; }
.brand-combo-empty { padding: 10px 14px; font-size: 13px; color: var(--gray-text); }

/* =====================================================================
   Cashier Transactions / Job Order & Service Receipt (admin)
   Kept deliberately plain - same cards, inputs and buttons as the rest of Admin.
   ===================================================================== */
.txn-ids { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.txn-id-label { font-size: 12px; font-weight: 700; color: var(--gray-text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.txn-id-value { font-size: 17px; font-weight: 800; word-break: break-all; }
.txn-info { margin: 0; }
.txn-info > div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-line); font-size: 14px; }
.txn-info dt { width: 190px; flex-shrink: 0; font-weight: 700; color: var(--gray-text); }
.txn-info dd { margin: 0; min-width: 0; word-break: break-word; }
.txn-addbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.txn-table th.r, .txn-table td.r, .txn-sum td.r { text-align: right; }
.txn-table td input { padding: 9px 10px; }
.txn-table tfoot td { background: var(--cream); border-bottom: none; }
.txn-empty { color: var(--gray-text); text-align: center; padding: 22px 18px !important; }
.txn-x { border: none; background: transparent; color: #B7401F; font-size: 16px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.txn-x:hover { background: #FCE4DE; }
.txn-stock-err { color: #B7401F; font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.txn-sum td { padding: 10px 4px; border-bottom: 1px solid var(--gray-line); font-size: 15px; }
.txn-sum tr.line td { border-top: 1.5px solid var(--charcoal); }
.txn-sum tr.grand td { font-size: 20px; font-weight: 800; border-bottom: none; border-top: 2px solid var(--charcoal); color: var(--orange-dark); }
.txn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.txn-mgr-ok { background: #E4F2E1; color: #2C6F27; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.txn-mgr-ok .form-hint { color: #2C6F27; margin-top: 2px; font-weight: 500; }
@media (max-width: 1100px) { .txn-ids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .txn-ids { grid-template-columns: repeat(2, minmax(0, 1fr)); } .txn-info dt { width: 120px; } }

/* ---------- Printed receipt (white paper look: black text, simple borders, small orange accent) ---------- */
.rc-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rc-actions-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt { background: #fff; color: #222; max-width: 820px; margin: 0 auto; padding: 28px 34px 30px; border: 1px solid #cfcfcf; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.4; }
.receipt table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0; overflow: visible; }
.receipt th, .receipt td { padding: 5px 7px; font-size: 12.5px; text-align: left; border-bottom: none; text-transform: none; letter-spacing: 0; color: #222; background: transparent; }
.receipt .r { text-align: right; } .receipt .c { text-align: center; }
.rc-head { text-align: center; }
.rc-logo { height: 70px; width: auto; display: block; margin: 0 auto 6px; }
.rc-contact { font-size: 11.5px; color: #444; }
.rc-accent { height: 3px; background: var(--orange); margin: 10px 0 14px; }
.rc-title { text-align: center; font-size: 19px; letter-spacing: .04em; margin: 0 0 12px; font-weight: 800; color: #111; }
.rc-status { text-align: center; font-weight: 800; color: #B7401F; border: 2px solid #B7401F; padding: 5px; margin: 0 0 12px; letter-spacing: .06em; }
.receipt .rc-box { border: 1px solid #444; margin-bottom: 10px; }
.receipt .rc-ids td { width: 33.33%; border-right: 1px solid #444; vertical-align: top; padding: 8px 10px; }
.receipt .rc-ids td:last-child { border-right: none; }
.rc-ids span, .rc-info span { color: #555; font-size: 11.5px; margin-right: 4px; }
.rc-ids strong { font-size: 14px; }
.receipt .rc-info td { width: 50%; vertical-align: top; padding: 8px 10px; }
.receipt .rc-info td:first-child { border-right: 1px solid #444; }
.rc-info div { padding: 2px 0; }
.rc-sec { font-weight: 800; font-size: 11.5px; letter-spacing: .05em; margin-bottom: 4px; color: #111; }
.receipt .rc-items { border: 1px solid #444; margin-bottom: 12px; }
.receipt .rc-items th, .receipt .rc-items td { border: 1px solid #999; }
.receipt .rc-items thead th { background: #efefef; font-size: 11px; text-transform: uppercase; }
.receipt .rc-items th.rc-grp { text-align: center; font-size: 12px; letter-spacing: .08em; border-bottom: 1px solid #444; }
.receipt .rc-items .rc-split { border-left: 2px solid #444; }
.receipt .rc-items tbody td { height: 24px; }
.receipt .rc-items tfoot td { background: #efefef; border-top: 1px solid #444; }
.rc-lower { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.receipt .rc-pay { width: 44%; border: 1px solid #444; }
.receipt .rc-pay th { border-bottom: 1px solid #444; }
.receipt .rc-totals { width: 56%; }
.receipt .rc-totals td { padding: 4px 6px; font-size: 13px; }
.receipt .rc-grand td { font-size: 17px; font-weight: 800; border-top: 2px solid #222; padding-top: 7px; color: #111; background: #f1f1f1; }
.rc-notes { font-size: 11.5px; margin-bottom: 12px; }
.rc-notes ol { margin: 4px 0 0 18px; padding: 0; } .rc-notes li { margin-bottom: 2px; }
.rc-visit { font-size: 13px; margin: 14px 0 26px; } .rc-visit span { border-bottom: 1px solid #222; padding: 0 30px 1px 6px; font-weight: 700; }
.rc-sign { display: flex; gap: 60px; justify-content: space-between; margin-top: 34px; }
.rc-sign > div { flex: 1; text-align: center; font-size: 12px; }
.rc-line { border-top: 1px solid #222; margin-bottom: 4px; }
@media (max-width: 640px) { .receipt { padding: 16px; overflow-x: auto; } .rc-lower { flex-direction: column; } .receipt .rc-pay, .receipt .rc-totals { width: 100%; } }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff !important; }
  .admin-sidebar, .admin-sidebar-overlay, .admin-topbar, .no-print { display: none !important; }
  .admin-shell { display: block !important; }
  .admin-main { padding: 0 !important; background: #fff !important; }
  .receipt { border: none; max-width: none; padding: 0; margin: 0; }
  .receipt, .receipt * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* keep the whole receipt on one A4 page */
  .receipt { font-size: 12px; page-break-inside: avoid; break-inside: avoid; }
  .rc-logo { height: 56px; margin-bottom: 4px; }
  .rc-accent { margin: 8px 0 10px; }
  .rc-title { font-size: 17px; margin-bottom: 8px; }
  .receipt th, .receipt td { padding: 3px 6px; }
  .receipt .rc-items tbody td { height: 20px; }
  .rc-lower, .rc-notes { margin-bottom: 8px; }
  .rc-visit { margin: 8px 0 14px; }
  .rc-sign { margin-top: 20px; }
}

/* =====================================================================
   Responsive layer: phones, tablets, laptops and big desktop monitors
   (added last on purpose so it refines the rules above without removing them)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, svg, canvas { max-width: 100%; }
img { height: auto; }
input, select, textarea { max-width: 100%; }

/* Any table that is not already turned into stacked cards scrolls sideways inside its own box
   (main.js wraps each one in .table-scroll), so the page itself never scrolls sideways. */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table.tbl-wide { min-width: 600px; }       /* 4+ columns: keep them readable and scroll */
.table-scroll > table.txn-table { min-width: 680px; }
@media (max-width: 900px) { .table-scroll > table.tbl-wide td { white-space: nowrap; } .table-scroll > table.txn-table td { white-space: normal; } }
.table-scroll > table.txn-sum { min-width: 0; }

/* ---------- Public navbar: full menu on desktop, hamburger on phones/tablets ---------- */
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .navbar-inner { flex-wrap: wrap; gap: 0; padding: 12px 20px; }
  .brand-logo { height: 38px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--gray-line); background: var(--white);
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--charcoal); transition: transform .18s ease, opacity .18s ease; }
  .navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links, .nav-actions { display: none; width: 100%; }
  .navbar.nav-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; order: 3; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--gray-line); }
  .navbar.nav-open .nav-actions { display: flex; flex-wrap: wrap; order: 4; gap: 10px; padding: 14px 0 6px; }
  .navbar.nav-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }

  .nav-links > a, .nav-dropdown-toggle { width: 100%; min-height: 46px; padding: 12px 4px; font-size: 15px; display: flex; align-items: center; }
  .nav-dropdown-toggle { justify-content: space-between; }
  .nav-links > a, .nav-dropdown { border-bottom: 1px solid var(--gray-line); }
  .nav-dropdown-menu {
    position: static; transform: none; box-shadow: none; min-width: 0; width: 100%;
    background: var(--cream); border-radius: 10px; padding: 6px; margin: 0 0 10px;
  }
  .nav-dropdown-menu a { white-space: normal; min-height: 44px; display: flex; align-items: center; font-size: 14.5px; }
  .nav-divider { display: none; }
  .nav-actions .btn, .nav-actions .points-badge, .nav-actions .user-chip { min-height: 44px; }
  .nav-actions .btn { flex: 1 1 140px; }
}

/* ---------- Tablets & phones ---------- */
@media (max-width: 900px) {
  section { padding: 48px 0; }
  .container, .hero-inner { padding-left: 20px; padding-right: 20px; }
  .section-title { font-size: 24px; }
  .page-head { margin-bottom: 20px; }
  .admin-main { padding: 18px 16px; }
  .admin-topbar { margin-bottom: 20px; }
  .admin-topbar h2 { font-size: 22px; }
  .calendar-grid { padding: 10px; gap: 4px; }
  .pms-tier-label { flex-basis: 96px; }
  .card { padding: 18px; }
  .points-vault { padding: 28px 20px; }
  .points-vault-num { font-size: 42px; }
}

@media (max-width: 900px) {
  /* Landing hero: the slide grows with its content instead of scrolling inside a fixed 560px box */
  .hero-carousel { padding: 44px 0 0; }
  .hero-slides { height: auto; min-height: 520px; padding-bottom: 84px; }
  .hero-slide, .hero-slide.active { position: relative; left: auto; right: auto; top: auto; height: auto; overflow: visible; margin: 0 90px; }
  .hero-slide:not(.active) { display: none; }
  .hero-slide-promo .promo-card img, .hero-main-promo img { max-height: 380px; }
  .hero-dots { bottom: 36px; }
}
@media (max-width: 720px) {
  .hero-carousel { padding-top: 36px; }
  .hero-slides { padding: 0 20px 92px; }
  .hero-slide, .hero-slide.active { margin: 0; }
  .hero-slide-promo .promo-card img, .hero-main-promo img { max-height: 340px; }
  .hero .hero-actions .btn { flex: 1 1 100%; }
  .hero-arrow { bottom: 24px; }
  .hero-dots { bottom: 40px; left: 70px; right: 70px; gap: 6px; }
  .hero-dot { width: 26px; }
  .hero p { font-size: 15px; }
}

@media (max-width: 640px) {
  .container, .hero-inner, .navbar-inner, .back-nav-inner, .notice-bar-inner { padding-left: 16px; padding-right: 16px; }
  section { padding: 40px 0; }
  section.section-tight { padding: 28px 0; }
  .hero { padding: 40px 0; }
  .hero h1, .hero-welcome.has-promo h1 { font-size: 27px; }
  .auth-wrap { padding: 24px 14px; }
  .auth-card { padding: 26px 20px; border-radius: 16px; }
  .grid { gap: 16px; }
  .footer-grid { gap: 24px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .notice-bar-inner { flex-wrap: wrap; row-gap: 6px; }
  .notice-bar-actions { width: 100%; justify-content: space-between; }
  .steps { flex-wrap: wrap; }
  .step-line { width: 18px; }
  .pms-addons { gap: 12px; padding: 14px 16px; }
  .pms-package-head, .pms-package-cta { padding-left: 16px; padding-right: 16px; }
  .pms-tier-label { flex-basis: 78px; padding: 10px 8px; font-size: 10.5px; }
  .pms-tier-cell { padding: 10px 6px; font-size: 12px; }
  .pms-tier-price { font-size: 16px; }
  .pms-guide-tab { padding: 10px 18px; font-size: 14px; }
  .calendar-toolbar { justify-content: center; }
  .calendar-cell { min-height: 54px; padding: 3px; }
  .calendar-appt { font-size: 8.5px; padding: 2px 3px; }
  .calendar-dow { font-size: 9.5px; letter-spacing: 0; }
  .calendar-more { font-size: 9px; padding: 0 3px; }
  .txn-ids { gap: 12px; }
  .txn-info > div { flex-direction: column; gap: 2px; }
  .txn-info dt { width: auto; }
  .txn-addbar > * { flex: 1 1 100%; max-width: 100% !important; min-width: 0 !important; }
  .txn-actions .btn, .rc-actions-btns .btn { flex: 1 1 140px; }
  .admin-main form[style*="max-width"] { max-width: 100% !important; }
  .admin-main .btn { white-space: normal; }
  /* Admin top bar stays on one line: title + menu button on the left, bell + avatar on the right */
  .admin-topbar { flex-wrap: nowrap; gap: 10px; }
  .admin-topbar > div:first-child { min-width: 0; flex: 1; }
  .admin-topbar h2 { font-size: 18px; line-height: 1.25; }
  .admin-topbar > div:last-child { gap: 8px !important; flex-shrink: 0; }
  .admin-topbar .user-chip { font-size: 0; padding: 4px; gap: 0; }
  .admin-main .card > form > div[style*="display:flex"] { flex-wrap: wrap; }
  .hero-showcase { max-width: 100%; }
  .carousel-card { flex-basis: 70%; }
  .admin-notif-dropdown { max-height: 70vh; }
}

/* Touch screens: 16px form text stops iOS from zooming in on tap, and buttons get a thumb-sized target */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  input, select, textarea,
  .admin-main input, .admin-main select, .admin-main textarea { font-size: 16px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .nav-dropdown-menu a, .admin-sidebar a { min-height: 44px; }
  .carousel-arrow, .showcase-arrow, .icon-btn { min-width: 44px; min-height: 44px; }
}

/* Short landscape phones: the fixed-height hero would otherwise cover the whole screen */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-slides { min-height: 0; }
  .admin-sidebar { width: 240px; }
}

/* Big desktop monitors: a little more breathing room, same layout */
@media (min-width: 1600px) {
  html { font-size: 17px; }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keyboard users can see where they are */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
@media print { .nav-toggle, .table-scroll { overflow: visible; } }


/* ---------- Find us / map ---------- */
.location-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.location-info { display: flex; flex-direction: column; gap: 16px; }
.location-info .btn { align-self: flex-start; margin-top: auto; }
.location-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.location-list dt { font-size: 12px; font-weight: 700; color: var(--gray-text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.location-list dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.location-list a:hover { color: var(--orange-dark); }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--gray-line); min-height: 340px; }
.location-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 800px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map, .location-map iframe { min-height: 300px; }
  .location-info .btn { align-self: stretch; }
}


/* ---------- Booking checklist: each category is a dropdown ---------- */
.checklist-group { margin-bottom: 10px; border: 1.5px solid var(--gray-line); border-radius: 12px; background: var(--white); }
.checklist-group[open] { border-color: #F3C9A3; }
.checklist-group-head {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; user-select: none;
  padding: 13px 14px; min-height: 48px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--orange-dark);
}
.checklist-group-head::-webkit-details-marker { display: none; }
.checklist-group-name { flex: 1; min-width: 0; }
.checklist-group-count { font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; background: var(--orange); color: #fff; border-radius: 999px; padding: 2px 10px; }
.checklist-group-count:empty { display: none; }
.checklist-group-caret {
  width: 8px; height: 8px; flex-shrink: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: -3px 4px 0 0; transition: transform .15s ease;
}
.checklist-group[open] > .checklist-group-head .checklist-group-caret { transform: rotate(-135deg); margin-top: 3px; }
.checklist-group-body { padding: 2px 12px 6px; }
.checklist-group-body .checklist-row { margin-bottom: 8px; }


/* ---------- Table action buttons: same size, same look (Inventory, Products...) ---------- */
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.row-actions form { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.row-actions input[type="number"] { width: 92px; flex: 0 0 92px; height: 44px; padding: 0 12px; margin: 0; }
.row-actions .btn { min-width: 92px; height: 44px; padding: 0 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
@media (max-width: 700px) { .row-actions, .row-actions form { flex-wrap: wrap; } }

/* ---------- Size picker (booking modal) + size price list (service cards) ---------- */
.size-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.size-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; margin: 0; padding: 16px 10px 14px; text-align: center; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--gray-line); border-radius: 14px;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.size-opt:hover { border-color: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow); }
.size-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.size-opt-name { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-text); }
.size-opt-price { font-size: 21px; font-weight: 800; line-height: 1.1; color: var(--charcoal); }
.size-opt-check {
  position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--gray-line); background: var(--white); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: transparent;
  transition: all .15s;
}
.size-opt.is-selected, .size-opt:has(input:checked) { border-color: var(--orange); background: #FFF6EC; box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.size-opt.is-selected .size-opt-name, .size-opt:has(input:checked) .size-opt-name { color: var(--orange-dark); }
.size-opt.is-selected .size-opt-price, .size-opt:has(input:checked) .size-opt-price { color: var(--orange-dark); }
.size-opt.is-selected .size-opt-check, .size-opt:has(input:checked) .size-opt-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.size-opt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.size-picker-hint { font-size: 12.5px; color: var(--gray-text); margin: 8px 0 0; }
.size-picker.has-error .size-opt { border-color: #C0392B; }

.size-price-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; }
.size-price-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--cream); border-radius: 10px; font-size: 13.5px;
}
.size-price-list li span { color: var(--gray-text); font-weight: 600; }
.size-price-list li strong { color: var(--orange-dark); font-weight: 800; }

/* ---------- Inventory: stats, tabs, mark up / mark down, critical rows ---------- */
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.inv-stat { background: var(--cream); border: 1px solid var(--gray-line); border-radius: 12px; padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: var(--gray-text); }
.inv-stat span { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--charcoal); margin-bottom: 2px; }
.inv-stat-warn { background: #FFF4E5; border-color: #F5C98C; }
.inv-stat-warn span { color: var(--orange-dark); }
.inv-stat-danger { background: #FDECEA; border-color: #F1B5AE; }
.inv-stat-danger span { color: #C0392B; }
.inv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.inv-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--gray-line); background: var(--white); font-size: 13px; font-weight: 700; color: var(--charcoal); text-decoration: none; }
.inv-tab em { font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--cream); border-radius: 999px; padding: 1px 8px; color: var(--gray-text); }
.inv-tab:hover { border-color: var(--orange); }
.inv-tab.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.inv-tab.is-active em { background: var(--orange); color: #fff; }
.inv-row-critical td { background: #FFF8EE; }
.inv-row-archived td { opacity: .62; }
.inv-row-archived td:last-child { opacity: 1; }
.inv-price { font-weight: 800; }
.trend-badge { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.trend-badge small { font-weight: 600; opacity: .8; }
.trend-up { background: #E6F4E4; color: #2C6F27; }
.trend-down { background: #FDECEA; color: #C0392B; }
.inv-price-edit { margin-top: 6px; }
.inv-price-edit summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--orange-dark); list-style: none; }
.inv-price-edit summary::-webkit-details-marker { display: none; }
.inv-price-edit summary::before { content: '\270E  '; }
.inv-price-form, .inv-stock-form { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; }
.inv-price-form input, .inv-stock-form input { width: 110px; }
.inv-stock-form { margin: 0; }
.inv-price-history { margin-top: 8px; font-size: 12px; color: var(--gray-text); display: grid; gap: 4px; }
.inv-price-history .trend-badge { margin-top: 0; }

/* ---------- Click-to-enlarge (QR codes and promo pictures) ---------- */
.zoomable, [data-zoom-qr] { cursor: zoom-in; }
.zoomable { transition: transform .2s ease, box-shadow .2s ease; }
.zoomable:hover { transform: scale(1.015); }
.zoom-hint { display: block; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--gray-text); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15,15,15,.88); opacity: 0; transition: opacity .18s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox-inner { position: relative; max-width: min(92vw, 900px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-inner img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox-qr { background: #fff; padding: 22px; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); line-height: 0; }
.lightbox-qr canvas, .lightbox-qr img { width: min(78vw, 360px) !important; height: min(78vw, 360px) !important; max-height: none; box-shadow: none; border-radius: 0; }
.lightbox-caption { color: #fff; text-align: center; font-size: 15px; font-weight: 700; max-width: 520px; }
.lightbox-caption small { display: block; font-weight: 500; color: #C9C6C1; margin-top: 4px; font-size: 13px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; color: var(--charcoal); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.lightbox-close:hover { background: var(--orange); color: #fff; }
@media (max-width: 600px) { .lightbox { padding: 14px; } .lightbox-close { top: -10px; right: -6px; } }

/* ---------- Inventory: cost/selling price, actions, modals (Mark Up / Mark Down / Price History / QR) ---------- */
.inv-table th, .inv-table td { padding: 12px 14px; vertical-align: middle; }
.inv-table th { white-space: nowrap; }
.inv-table td:first-child { min-width: 190px; }
.inv-cost { color: var(--gray-text); }
.inv-cost-missing { font-size: 12.5px; font-weight: 700; color: var(--gray-text); line-height: 1.2; }
.inv-link { font-size: 12px; font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.inv-link:hover { text-decoration: underline; }
.inv-stock-num { font-size: 18px; }
.inv-table .pill { padding: 3px 10px; font-size: 11px; letter-spacing: .03em; margin-top: 4px; }
.inv-stock-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inv-stock-form input { width: 64px; padding: 7px 8px; border-radius: 8px; font-size: 13px; text-align: center; }
.inv-stock-form .btn-sm { padding: 7px 14px; font-size: 12.5px; }
.inv-actions-cell { white-space: nowrap; }
.inv-actions { display: flex; align-items: center; gap: 6px; }
.inv-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.inv-btn-up { background: var(--orange); color: #fff; }
.inv-btn-up:hover { background: var(--orange-dark); }
.inv-btn-down { background: var(--white); color: var(--charcoal); border-color: var(--charcoal); }
.inv-btn-down:hover { background: var(--charcoal); color: #fff; }
.inv-btn-more { padding: 7px 10px; background: var(--white); color: var(--charcoal); border-color: var(--gray-line); font-size: 16px; }
.inv-btn-more:hover { border-color: var(--orange); color: var(--orange-dark); }
.inv-menu { position: fixed; z-index: 1500; min-width: 170px; background: var(--white); border: 1px solid var(--gray-line); border-radius: 12px; box-shadow: var(--shadow-hover); padding: 6px; }
.inv-menu[hidden] { display: none; }
.inv-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--charcoal); cursor: pointer; }
.inv-menu-item:hover { background: var(--cream); color: var(--orange-dark); }
.inv-menu-danger:hover { background: #FDECEA; color: #C0392B; }
.inv-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(23,23,23,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.inv-modal[hidden] { display: none; }
.inv-modal-box { background: var(--white); border-radius: 18px; padding: 28px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-hover); }
.inv-modal-wide { max-width: 760px; }
.inv-modal-box h3 { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .02em; font-size: 16px; }
.inv-field { margin-bottom: 14px; }
.inv-label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-text); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em; }
.inv-field .inv-label + strong, .inv-field strong { font-size: 15px; }
.inv-radio { display: block; font-size: 14px; margin: 4px 0; cursor: pointer; }
.inv-adj-row { display: flex; align-items: center; gap: 8px; }
.inv-adj-row input { width: 140px; }
.inv-unit { font-weight: 800; font-size: 15px; }
.inv-calc { background: var(--cream); border: 1px solid var(--gray-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; }
.inv-calc > div { display: flex; justify-content: space-between; }
.inv-calc span { color: var(--gray-text); }
.inv-calc-new { border-top: 1px dashed var(--gray-line); padding-top: 8px; margin-top: 2px; font-size: 16px; }
.inv-calc-new b { color: var(--orange-dark); }
.inv-invalid { margin-top: 12px; background: #FDECEA; border: 1px solid #F1B5AE; color: #C0392B; border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; font-size: 13px; }
.inv-invalid strong { font-size: 13.5px; letter-spacing: .04em; }
.inv-warnline { margin-top: 12px; background: #FFF4E5; border: 1px solid #F5C98C; color: #8a5a00; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; }
.inv-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.inv-modal-actions .btn { flex: 1; }
.inv-modal-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.inv-hist-table { width: 100%; font-size: 13.5px; }
.inv-hist-table td { white-space: nowrap; }
.hist-up { color: #2C6F27; font-weight: 800; }
.hist-down { color: #C0392B; font-weight: 800; }
.inv-qr-holder { display: flex; justify-content: center; padding: 14px; background: #fff; border: 1px solid var(--gray-line); border-radius: 14px; }
.inv-qr-holder img, .inv-qr-holder canvas { max-width: 100%; height: auto; }


/* ---- Floating Messenger button (public pages) ----
   Fixed bottom-right with a safe margin from the screen edges (and from phone notches / home bars).
   z-index 900 keeps it ABOVE page content but BELOW booking/login modals (1000+) and lightboxes, so
   it never covers a modal's buttons. On phones it is a little smaller and sits a bit higher so it
   doesn't overlap the footer text or sticky form buttons. */
.messenger-fab {
  position: fixed; z-index: 900;
  right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.messenger-fab:hover, .messenger-fab:focus-visible { transform: scale(1.07); box-shadow: 0 8px 22px rgba(0,0,0,.34); }
@media (max-width: 640px) {
  .messenger-fab { width: 50px; height: 50px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .messenger-fab { display: none; } }

/* ---------- Admin: one button style everywhere (same look as the Cashier "Complete Transaction" button) ----------
   White with an orange outline and orange text; the orange fill only appears on hover / keyboard focus.
   !important is used on purpose so older inline colours (e.g. red Cancel / Delete) follow the same style. */
.admin-main .btn,
.admin-main .btn-primary,
.admin-main .btn-dark,
.admin-main .btn-outline,
.admin-main .btn-outline-orange {
  background: var(--white) !important;
  color: var(--orange-dark) !important;
  border: 1.5px solid #F8C9A0 !important;
  border-radius: 10px !important; /* same rounded-box shape as the Cashier action buttons */
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.admin-main .btn:hover:not(:disabled),
.admin-main .btn:focus-visible,
.admin-main .btn-primary:hover:not(:disabled),
.admin-main .btn-dark:hover:not(:disabled),
.admin-main .btn-outline:hover:not(:disabled),
.admin-main .btn-outline-orange:hover:not(:disabled) {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(249,115,22,.35);
  transform: translateY(-1px);
  outline: none;
}
.admin-main .btn:active:not(:disabled) { transform: translateY(0); }
.admin-main .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Admin typography: ONE font and ONE size scale for every admin page ----------
   Font: Inter everywhere (buttons / inputs / selects included).  Scale:
     page + card titles  20px / 16px (800)      body, inputs, table cells  14-15px
     labels  14px (700)                          table headers  12px caps
     buttons 14px, small buttons 13px            hints, notes, meta text  13px
     pills, tiny captions  12.5px
   Receipts / printed forms are left alone (they intentionally use their own paper-form font). */
.admin-shell, .admin-sidebar, .admin-main,
.admin-main button, .admin-main input, .admin-main select, .admin-main textarea, .admin-main .btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.admin-main { font-size: 15px; line-height: 1.5; }
.admin-main h1 { font-size: 26px; }
.admin-main h2 { font-size: 22px; }
.admin-main h3 { font-size: 20px; }
.admin-main h4 { font-size: 16px; }
.admin-main label { font-size: 14px; font-weight: 700; }
.admin-main input, .admin-main select, .admin-main textarea { font-size: 15px; font-weight: 400; }
.admin-main th { font-size: 12px; font-weight: 700; }
.admin-main td { font-size: 14px; }
.admin-main .btn { font-size: 14px; }
.admin-main .btn-sm { font-size: 13px; }
.admin-main .form-hint { font-size: 13px; }
.admin-main .pill { font-size: 12.5px; }
.admin-main .checkbox-row, .admin-main .checklist-row .checkbox-row span { font-size: 14px; }
.admin-main .stat-label { font-size: 13px; }
.admin-main .part-option-name, .admin-main .part-option-price { font-size: 14px; }
.admin-main .part-option-desc { font-size: 13px; }
.admin-sidebar a, .admin-nav-group-items a { font-size: 15px; }
.admin-nav-group-label { font-size: 12px; }

/* Older inline sizes scattered through the admin pages get snapped to the same scale. */
.admin-main [style*="font-size:9px"]:not(.receipt *),   .admin-main [style*="font-size: 9px"]:not(.receipt *),
.admin-main [style*="font-size:10px"]:not(.receipt *),  .admin-main [style*="font-size: 10px"]:not(.receipt *),
.admin-main [style*="font-size:11px"]:not(.receipt *),  .admin-main [style*="font-size: 11px"]:not(.receipt *),
.admin-main [style*="font-size:11.5px"]:not(.receipt *),.admin-main [style*="font-size: 11.5px"]:not(.receipt *),
.admin-main [style*="font-size:12px"]:not(.receipt *),  .admin-main [style*="font-size: 12px"]:not(.receipt *),
.admin-main [style*="font-size:12.5px"]:not(.receipt *),.admin-main [style*="font-size: 12.5px"]:not(.receipt *) { font-size: 12.5px !important; }
.admin-main [style*="font-size:13px"]:not(.receipt *),  .admin-main [style*="font-size: 13px"]:not(.receipt *),
.admin-main [style*="font-size:13.5px"]:not(.receipt *),.admin-main [style*="font-size: 13.5px"]:not(.receipt *) { font-size: 13px !important; }
.admin-main [style*="font-size:14px"]:not(.receipt *),  .admin-main [style*="font-size: 14px"]:not(.receipt *),
.admin-main [style*="font-size:14.5px"]:not(.receipt *),.admin-main [style*="font-size: 14.5px"]:not(.receipt *) { font-size: 14px !important; }
.admin-main [style*="font-size:15px"]:not(.receipt *),  .admin-main [style*="font-size: 15px"]:not(.receipt *),
.admin-main [style*="font-size:15.5px"]:not(.receipt *),.admin-main [style*="font-size: 15.5px"]:not(.receipt *) { font-size: 15px !important; }