:root {
  /* Palette matched against the original Tcar Workshop Flow build so both
     versions look identical — exact hex values read from that site's
     computed styles, not approximated. */
  --red: #e31b23;
  --red-dark: #c81620;
  --ink: #0b0b0b;
  --sidebar-bg: #0b0b0b;
  --sidebar-border: #4b171c;
  --sidebar-accent: #2a1114;
  --sidebar-muted: #aab8c6;
  --sidebar-pill-border: #432126;
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #dfe4e9;
  --input-border: #d8dee5;
  --text: #191919;
  --text-dim: #67717f;
  --muted-bg: #eef1f4;
  --green: #27a873;
  --green-bg: #dff5ec;
  --green-text: #21795d;
  --sync-green: #43c59e;
  --amber: #e1a11a;
  --amber-bg: #fef3e0;
  --blue: #3483c5;
  --purple: #7e57c2;
  --cyan: #24a6b8;
  --orange: #e36b34;
  --pill-red-bg: #ffe3e5;
  --pill-red-text: #9f1017;
  --radius: 13px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #eaeaea;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-right: 1px solid var(--sidebar-border);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; }
.brand-badge {
  width: 54px; height: 54px; border-radius: 14px 14px 14px 4px;
  background: #1d1d1d; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09), 0 8px 22px 0 rgba(0,0,0,0.4);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 1px; color: #fff; }
.brand-sub { font-size: 11px; color: #91a0b2; margin-top: 1px; }

.cloud-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--sidebar-muted);
  background: transparent; border: 1px solid var(--sidebar-pill-border);
  padding: 8px 10px; border-radius: 8px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--sync-green); box-shadow: 0 0 0 3px rgba(67,197,158,0.133); }

.nav-section {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: #79797f; margin: 4px 6px 8px;
}
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--sidebar-muted); text-decoration: none;
  font-size: 14px; cursor: pointer; border: 1px solid transparent;
  background: transparent;
  transition: background 0.12s ease;
}
.nav-item:hover { background: #17171a; color: #fff; }
.nav-item.active {
  background: var(--sidebar-accent);
  color: #fff;
  font-weight: 500;
}
.nav-icon { width: 18px; text-align: center; }

.sidebar-footer { margin-top: 12px; }
.workshop-pill {
  display: flex; align-items: center; gap: 10px;
  background: #151517; border: 1px solid var(--sidebar-border);
  padding: 10px; border-radius: 12px;
}
.workshop-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.workshop-name { font-size: 12.5px; font-weight: 600; color: #fff; }
.workshop-loc { font-size: 11px; color: #9a9a9f; }
.icon-btn {
  margin-left: auto; background: transparent; border: none; color: #9a9a9f;
  cursor: pointer; font-size: 14px; padding: 4px;
}
.icon-btn:hover { color: #fff; }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 2px solid var(--red);
  background: #fff;
}
.topbar-date { font-size: 12px; color: var(--text-dim); text-transform: capitalize; }
.topbar-title { font-size: 20px; margin: 2px 0 0; font-weight: 400; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.bell { position: relative; font-size: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; }
.badge {
  position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 20px; font-weight: 700;
}
.btn {
  border: none; border-radius: 10.8px; padding: 10px 16px; font-size: 13.5px;
  font-weight: 800; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 7px 18px 0 rgba(227,27,35,0.2); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.btn-dark { background: var(--ink); color: #fff; }

.content { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }

/* Generic pieces */
.eyebrow { color: var(--red); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-size: 26px; font-weight: 400; margin: 0 0 6px; color: var(--text); }
.page-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 16px 0 rgba(25,25,25,0.03);
}
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.stat-icon-box {
  width: 39px; height: 39px; border-radius: 10px; background: var(--muted-bg);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  margin-bottom: 12px; flex-shrink: 0;
}
.card.accent-red { border-color: #ed8b90; }
.card.accent-red .stat-icon-box { background: var(--pill-red-bg); color: var(--pill-red-text); }
.stat-label { font-size: 13px; color: var(--text-dim); font-weight: 400; margin-bottom: 10px; }
.stat-value { font-size: 26px; font-weight: 800; }
.stat-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 99px; font-size: 11px; font-weight: 800;
}
.pill-green { background: var(--green-bg); color: var(--green-text); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--pill-red-bg); color: var(--pill-red-text); }
.pill-gray { background: var(--muted-bg); color: var(--text-dim); }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-dim); padding: 10px 12px; border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.search-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 220px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 13.5px;
}
.select {
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; font-size: 13.5px;
}

/* Kanban */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
  min-width: 240px; flex: 1; background: #edf0f3; border: 1px solid #e1e6ea;
  border-radius: 12px; padding: 9px; min-height: 340px;
}
.kanban-col.drag-over { background: #fdeaec; border-color: var(--red); }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 3px 3px 0; font-size: 11px; font-weight: 800; color: #3d4b5b; text-transform: uppercase; letter-spacing: 0.44px; }
.kanban-count { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.job-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 11px; padding: 12px; margin-bottom: 9px; cursor: grab; font-size: 12.5px;
  box-shadow: 0 2px 7px 0 rgba(28,38,51,0.03);
}
.job-card:active { cursor: grabbing; }
.job-card .rego {
  display: inline-block; position: relative; border: 1px solid #485665; border-radius: 4px; padding: 1px 8px 1px 10px;
  font-weight: 900; font-size: 10px; letter-spacing: 0.8px; color: var(--text); overflow: hidden;
}
/* Small red corner-notch accent on the rego plate, matching the original. */
.job-card .rego::before {
  content: ""; position: absolute; left: -1px; bottom: -1px; width: 0; height: 0;
  border-style: solid; border-width: 0 0 8px 8px; border-color: transparent transparent var(--red) transparent;
}
.job-card .job-id { float: right; color: var(--text-dim); font-size: 11px; }
.job-card .job-title { font-weight: 700; margin: 8px 0 2px; }
.job-card .job-desc { color: var(--text-dim); margin-bottom: 8px; }
.job-card .job-meta { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 11.5px; margin-bottom: 8px; }
.job-card .job-foot { display: flex; align-items: center; justify-content: space-between; }
.job-timer {
  display: inline-block; background: #fff3f4; border: 1px solid #efb6ba; color: #a41219;
  border-radius: 7px; padding: 3px 9px; font-weight: 700; font-size: 12px; margin-bottom: 8px;
}
.job-timer.paused { background: #fff9ec; border-color: #f2c96b; color: #7a4c00; }
.job-timer.lunch { background: #fff5d9; border-color: #e4b24f; color: #7a4c00; }
.avatar-sm {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700;
}
.empty-col { text-align: center; color: var(--text-dim); font-size: 12.5px; padding: 30px 0; }

/* Bookings calendar */
.calendar { display: grid; grid-template-columns: 60px 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal-times { display: flex; flex-direction: column; }
.cal-time { height: 64px; font-size: 11px; color: var(--text-dim); padding: 4px 8px; border-bottom: 1px solid var(--border); }
.cal-body { position: relative; border-left: 1px solid var(--border); }
.cal-slot { height: 64px; border-bottom: 1px solid var(--border); }
.cal-event {
  position: absolute; left: 8px; right: 8px; background: #e9f9ef; border-left: 4px solid var(--green);
  border-radius: 8px; padding: 6px 10px; font-size: 11.5px; overflow: hidden;
}
.cal-event .cal-time-label { font-weight: 700; font-size: 10.5px; }
.cal-event .cal-name { font-weight: 700; }
.cal-event .cal-meta { color: var(--text-dim); font-size: 10.5px; }

/* Mechanic / customer cards */
.mech-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.mech-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mech-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mech-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.mech-footer { display: flex; gap: 8px; margin-top: 12px; }
.mech-footer .btn { flex: 1; padding: 9px; font-size: 12.5px; }
.day-not-started { background: #fdeaec; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.day-not-started .t1 { font-weight: 700; font-size: 13px; color: var(--red); }
.day-not-started .t2 { font-size: 11.5px; color: var(--text-dim); }

/* progress bars */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-label { width: 130px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bar-track { flex: 1; height: 8px; background: #f0f0f2; border-radius: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--red); border-radius: 20px; }
.bar-count { width: 26px; text-align: right; font-size: 12.5px; font-weight: 700; }

.notice {
  display: flex; align-items: center; gap: 10px; background: #fdeaec; color: var(--red-dark);
  border-radius: 10px; padding: 12px 14px; font-size: 12.5px; margin-top: 18px;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,10,12,0.5); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-overlay.open { display: flex; }
/* #modalOverlay (job/mechanic/customer forms, PIN, select-mechanic) must always
   sit above #sheetOverlay (the job side panel), since a form is often opened
   from a button inside the open job sheet. */
#modalOverlay { z-index: 70; }
#sheetOverlay { z-index: 50; }
.modal {
  background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 480px;
  max-height: 86vh; overflow-y: auto;
}
.modal h2 { margin-top: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border); font-size: 13.5px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.small-btn { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fafafb; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.link-row .lr-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.link-row .lr-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.link-row .lr-title { font-weight: 700; font-size: 13.5px; }
.link-row .lr-sub { font-size: 12px; color: var(--text-dim); max-width: 480px; }

.tag-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.chip { background: #f0f0f2; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 600; }

.sheet {
  max-width: 640px;
  width: 100%;
}
.sheet-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.sheet-rail { display: flex; gap: 6px; margin: 14px 0 18px; }
.sheet-rail .dot-stage {
  flex: 1; height: 6px; border-radius: 4px; background: #eee; cursor: pointer; border: none; padding: 0;
}
.sheet-rail .dot-stage.done { background: var(--red); }
.sheet-rail .dot-stage.current { background: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn { background: none; border: none; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--red); }
.timer-box {
  background: #fff3f4; border: 1px solid #efb6ba; color: #a41219;
  border-radius: 10px; padding: 12px 14px; font-weight: 700; text-align: center; margin-bottom: 14px; font-size: 15px;
}
.timer-box.paused { background: #fff9ec; border-color: #f2c96b; color: #7a4c00; }
.timer-box.lunch { background: #fff5d9; border-color: #e4b24f; color: #7a4c00; }
.checklist-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.checklist-row:last-child { border-bottom: none; }
.checklist-row input { width: 17px; height: 17px; }

/* Evidence / licence-photo gallery (mediaStore.js-backed thumbnails) */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.evidence-item { position: relative; }
.evidence-thumb {
  width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--muted-bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.evidence-thumb img, .evidence-thumb video { width: 100%; height: 100%; object-fit: cover; }
.evidence-remove {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid #fff; font-size: 11px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.evidence-remove:hover { background: var(--red); }
.pin-screen { max-width: 380px; margin: 80px auto; text-align: center; }
.pin-error { color: var(--red); font-size: 12.5px; margin-top: 10px; min-height: 18px; }
.week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.week-grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.week-head { padding: 10px 6px; text-align: center; font-size: 11.5px; font-weight: 700; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); background: #fafafb; }
.week-head.today { color: var(--red); }
.week-col { position: relative; border-left: 1px solid var(--border); }
.week-slot { height: 52px; border-bottom: 1px solid var(--border); }
.week-event {
  position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 6px; font-size: 10.5px;
  overflow: hidden; cursor: grab; border-left: 3px solid; color: #163; line-height: 1.25;
}
.week-event.tone-blue { background: #e8f1fd; border-color: var(--blue); color: #1d4c8a; }
.week-event.tone-amber { background: var(--amber-bg); border-color: var(--amber); color: #7a4c00; }
.week-event.tone-green { background: var(--green-bg); border-color: var(--green); color: #155e33; }
.week-event.dragging { opacity: 0.5; }
.week-closed { background: repeating-linear-gradient(45deg, #f4f4f5, #f4f4f5 6px, #ececee 6px, #ececee 12px); }
.attendance-status { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.doc-line-grid { display: grid; grid-template-columns: 90px 1fr 60px 90px 90px 30px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 8px; }
.doc-line-grid input, .doc-line-grid select { padding: 7px 8px; border-radius: 7px; border: 1px solid var(--border); font-size: 12.5px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #ddd; border-radius: 20px; cursor: pointer; transition: 0.15s; }
.switch .track:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.15s; }
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track:before { transform: translateX(18px); }

/* Monthly mechanic attendance calendar (Office desk) */
.att-month-table { border-collapse: collapse; font-size: 11.5px; }
.att-month-table th, .att-month-table td { padding: 3px; text-align: center; }
.att-month-table th.att-mech-col, .att-month-table td.att-mech-col { text-align: left; padding: 6px 10px 6px 2px; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.att-month-table thead th { color: var(--text-dim); font-weight: 600; }
.att-month-table th.att-weekend, .att-month-table td.att-weekend { background: #f7f7f8; }
.att-day-cell { width: 26px; height: 26px; }
.att-dot { width: 20px; height: 20px; border-radius: 6px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--border); }
.att-dot.att-present { background: var(--green, #1f9d55); }
.att-dot.att-today { outline: 2px solid var(--red); outline-offset: 1px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-size: 13px; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ---------------------------------------------------------------------------
   Public customer-facing pages (booking / courtesy / pre-purchase inspection).
   These are reached via shared links with no login, so they get their own
   full-bleed marketing-style shell instead of the admin app's sidebar layout —
   matched against the original Tcar Workshop Flow build's public pages.
--------------------------------------------------------------------------- */
.pub-page { min-height: 100vh; background: linear-gradient(145deg, #f5f5f5, #fff0f1); }
.pub-page.pub-page-plain { background: var(--bg); }
.pub-hero-wrap { position: relative; overflow: hidden; }
.pub-hero-wrap::before {
  content: ""; position: absolute; top: 0; right: 0; width: 60%; height: 480px;
  background: radial-gradient(circle at 100% 0px, rgba(77,13,18,0.5) 0px, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.pub-hero-dark { background: linear-gradient(120deg, #0b0b0b 0%, #1c0507 55%, #2a0a0d 100%); color: #fff; }

.pub-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--ink); padding: 14px 28px; border-bottom: 3px solid var(--red);
  position: relative; z-index: 1;
}
.pub-topbar-brand { display: flex; align-items: center; gap: 12px; }
.pub-topbar-badge {
  width: 40px; height: 40px; border-radius: 11px 11px 11px 3px; overflow: hidden;
  background: #1d1d1d; box-shadow: 0 0 0 1px rgba(255,255,255,0.09); flex-shrink: 0;
}
.pub-topbar-badge img { width: 100%; height: 100%; object-fit: cover; }
.pub-topbar-name { font-weight: 800; font-size: 14px; letter-spacing: 1px; color: #fff; }
.pub-topbar-sub { font-size: 11px; color: #9aa4af; }
.pub-secure-pill {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #d8dee5;
  border: 1px solid #3a3a3d; padding: 7px 12px; border-radius: 99px;
}

.pub-hero {
  max-width: 1180px; margin: 0 auto; padding: 56px 28px 46px;
  display: grid; grid-template-columns: 1fr 440px; gap: 48px; position: relative; z-index: 1;
}
.pub-hero-dark .pub-hero { grid-template-columns: 1fr 320px; align-items: start; }
@media (max-width: 980px) { .pub-hero, .pub-hero-dark .pub-hero { grid-template-columns: 1fr; } }
.pub-tag {
  display: inline-block; color: var(--red); font-weight: 700; font-size: 11px;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px;
}
.pub-hero-dark .pub-tag { color: #ff9195; }
.pub-headline { font-size: clamp(30px, 4.4vw, 48px); font-weight: 400; line-height: 1.08; margin: 0 0 16px; color: #161616; }
.pub-hero-dark .pub-headline { color: #fff; }
.pub-hero-sub { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0 0 26px; max-width: 500px; }
.pub-hero-dark .pub-hero-sub { color: #c7c7cc; }
.pub-hero-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff;
  border: none; padding: 13px 20px; border-radius: 11px; font-weight: 800; font-size: 14px;
  cursor: pointer; box-shadow: 0 10px 22px rgba(227,27,35,0.3);
}
.pub-bullets { display: flex; flex-direction: column; gap: 18px; }
.pub-bullet { display: flex; gap: 12px; align-items: flex-start; }
.pub-bullet-icon { font-size: 17px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.pub-bullet-title { font-weight: 700; font-size: 14px; color: var(--text); }
.pub-bullet-desc { font-size: 12.5px; color: var(--text-dim); margin-top: 1px; }

.pub-hero-side-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px; padding: 22px;
}
.pub-hero-side-card .pub-bullet-icon { color: var(--red); font-size: 22px; }
.pub-hero-side-title { font-weight: 700; font-size: 16px; margin: 12px 0 6px; color: #fff; }
.pub-hero-side-desc { font-size: 13px; color: #c7c7cc; }

.pub-card {
  background: #fff; border: 1px solid #e3c7c9; border-radius: 20px;
  box-shadow: 0 20px 60px 0 rgba(25,25,25,0.07); overflow: hidden;
}
.pub-card-inner { padding: 32px; }
@media (max-width: 560px) { .pub-card-inner { padding: 22px; } }
.pub-section-eyebrow { color: var(--red); font-weight: 700; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.pub-section-title { font-size: 22px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.pub-required-note { font-size: 11.5px; color: var(--text-dim); margin-bottom: 20px; }
.pub-field-head {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text);
  border-top: 1px solid var(--border); margin: 22px 0 14px; padding-top: 18px;
}
.pub-card-inner > form > .pub-field-head:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.pub-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--text-dim); margin: 18px 0 16px; line-height: 1.5; }
.pub-consent input { margin-top: 3px; flex-shrink: 0; }
.pub-submit-btn {
  width: 100%; background: var(--red); color: #fff; border: none; padding: 14px;
  border-radius: 11px; font-weight: 800; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(227,27,35,0.25);
}
.pub-submit-btn:hover { background: var(--red-dark); }

.pub-footer-links { max-width: 1180px; margin: 0 auto; padding: 0 28px 60px; display: flex; gap: 16px; flex-wrap: wrap; }
.pub-footer-card {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #ecdbdc; border-radius: 14px; padding: 16px 18px;
  text-decoration: none; color: inherit;
}
.pub-footer-icon { color: var(--red); font-size: 16px; }
.pub-footer-label { font-size: 10px; letter-spacing: 0.8px; color: var(--text-dim); font-weight: 700; }
.pub-footer-value { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* Pre-purchase inspection landing sections */
.pub-section { max-width: 1180px; margin: 0 auto; padding: 46px 28px; }
.pub-section-head-center { margin-bottom: 24px; }
.pub-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .pub-price-grid { grid-template-columns: repeat(2, 1fr); } }
.pub-price-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.pub-price-icon { color: var(--red); margin-bottom: 10px; }
.pub-price-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pub-price-value { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.pub-price-hint { font-size: 12px; color: var(--text-dim); }

.pub-note-dark { display: flex; gap: 14px; background: #0b0b0b; color: #e6e6e6; border-radius: 14px; padding: 18px 20px; margin-top: 18px; font-size: 13.5px; line-height: 1.6; }
.pub-note-dark strong { color: #fff; }
.pub-quote-bar { border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin-top: 20px; font-size: 14.5px; color: var(--text); }

.pub-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .pub-two-col { grid-template-columns: 1fr; } }
.pub-checklist-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pub-checklist-item:last-child { border-bottom: none; }
.pub-checklist-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pub-checklist-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.pub-checklist-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.pub-coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 22px; }
.pub-coverage-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.pub-coverage-item .chk { color: var(--green); }
.pub-note-card { background: var(--pill-red-bg); border: 1px solid #f3c2c6; border-radius: 14px; padding: 16px 18px; }
.pub-note-card .pub-note-title { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pub-note-card p { font-size: 12.5px; color: var(--text-dim); margin: 0 0 8px; line-height: 1.55; }
.pub-note-card p:last-child { margin-bottom: 0; }
