/* ============================================================
   CarVerdict — Garage CSS
   Dashboard + Add-Car Wizard + Car Detail Page + Toast
   ============================================================ */

/* ============================================================
   CAR DETAIL PAGE — gcp-*
   ============================================================ */

/* Sticky header */
.gcp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gcp-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #aaa;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.gcp-back:hover { background: rgba(255,255,255,.1); color: #fff; }

.gcp-header-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcp-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}
.gcp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.gcp-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Dropdown menu */
.gcp-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  min-width: 160px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: grFadeIn .15s ease;
  z-index: 200;
}
.gcp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.gcp-menu-item:hover { background: rgba(255,255,255,.06); }
.gcp-menu-danger { color: #ef4444; }
.gcp-menu-danger:hover { background: rgba(239,68,68,.08); }

/* Loading wrap */
.gcp-loading-wrap { padding: 1.25rem; }
.gcp-hero-skeleton { margin-bottom: 1.25rem; }

/* Page content wrap */
.gcp-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 8rem;
}

/* Hero banner */
.gcp-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.gcp-hero-color {
  height: 6px;
  width: 100%;
}
.gcp-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.1rem 1rem;
  max-width: 680px;
  margin: 0 auto;
}
.gcp-car-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 3px;
  line-height: 1.1;
}
.gcp-car-sub {
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
}
.gcp-health-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Ring */
.gcp-ring-area { flex-shrink: 0; }
.gcp-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
}
.gcp-ring-svg {
  width: 90px;
  height: 90px;
}
.gcp-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.gcp-ring-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
}
.gcp-ring-denom {
  font-size: 9px;
  color: #444;
  font-weight: 700;
  margin-top: 0px;
  line-height: 1;
}
.gcp-ring-spark {
  margin-top: 3px;
  line-height: 0;
}
.gcp-ring-trend {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.gcp-ring-empty {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.gcp-ring-empty-label {
  font-size: 9px;
  color: #444;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
/* Scanning arc during generation */
.gcp-ring-scanning {
  display: block;
}
.gcp-ring-scan-arc {
  transform-origin: center center;
  animation: gcpRingScan 1s linear infinite;
}
.gcp-ring-scan-glow {
  transform-origin: center center;
  animation: gcpRingScan 1s linear infinite;
  filter: blur(2px);
  opacity: .4;
}
@keyframes gcpRingScan {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.gcp-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: #E8FF47;
  border-radius: 50%;
  animation: gcpRingScan .8s linear infinite;
}
/* Animated ellipsis for generating label */
.gcp-gen-dots::after {
  content: '';
  animation: gcpDots 1.4s steps(4, end) infinite;
}
@keyframes gcpDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* Tab bar */
.gcp-tabs-wrap {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gcp-tabs {
  display: flex;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gcp-tabs::-webkit-scrollbar { display: none; }
.gcp-tab {
  flex-shrink: 0;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #555;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.gcp-tab.active {
  color: #E8FF47;
  border-bottom-color: #E8FF47;
}
.gcp-tab:hover:not(.active) { color: #aaa; }

/* Section label */
.gcp-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: .75rem;
}

/* Stats grid */
.gcp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
  margin-bottom: 1.25rem;
}
.gcp-stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1rem 1rem .9rem;
  display: flex;
  flex-direction: column;
}
.gcp-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.gcp-stat-label {
  font-size: 11.5px;
  color: #555;
  font-weight: 600;
}

/* Generate health score block */
.gcp-generate-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(232,255,71,.05);
  border: 1px solid rgba(232,255,71,.15);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.gcp-generate-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
}
.gcp-generate-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.gcp-generate-sub {
  font-size: 12px;
  color: #666;
}
.gcp-generate-btn {
  flex-shrink: 0;
  width: fit-content;
  padding: 9px 18px;
  border-radius: 10px;
  background: #E8FF47;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity .18s;
}
.gcp-generate-btn:hover { opacity: .88; }
.gcp-generate-btn:disabled { opacity: 1; cursor: not-allowed; background: #1a1a1a; color: #888; border: 1px solid rgba(255,255,255,.1); }
.gcp-gen-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  animation: gcpSpin .7s linear infinite;
  margin-right: 7px;
  vertical-align: middle;
}
@keyframes gcpSpin {
  to { transform: rotate(360deg); }
}


/* Pro banner */
.gcp-pro-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(232,255,71,.05);
  border: 1px solid rgba(232,255,71,.15);
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: #aaa;
  font-size: 13px;
  transition: background .18s;
}
.gcp-pro-banner:hover { background: rgba(232,255,71,.08); }
.gcp-pro-banner strong { color: #E8FF47; }

/* Tool grid */
.gcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.gcp-tool-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  text-decoration: none;
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
.gcp-tool-btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}

/* Notes */
/* ── Notes list ── */
.gcp-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Note card (saved state) ── */
.gcp-note-card {
  background: rgba(232,255,71,.04);
  border: 1px solid rgba(232,255,71,.12);
  border-radius: 16px;
  padding: 14px 16px;
  animation: gcpNoteFadeIn .25s ease;
}
@keyframes gcpNoteFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gcp-note-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.gcp-note-card-meta {
  font-size: 11px;
  color: #555;
  flex: 1;
  letter-spacing: .3px;
}
.gcp-note-card-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gcp-note-edit-btn {
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #aaa;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  width: fit-content;
  flex-shrink: 0;
}
.gcp-note-edit-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.gcp-note-del-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  color: #444;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.gcp-note-del-btn:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #ef4444; }
.gcp-note-card-text {
  font-size: 14px;
  color: #ccc;
  line-height: 1.65;
  margin: 0;
  word-break: break-word;
}

/* ── Note editor (editing state) ── */
.gcp-note-editor {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px;
}
.gcp-notes {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s;
  min-height: 80px;
}
.gcp-notes:focus { border-color: rgba(232,255,71,.35); }
.gcp-notes::placeholder { color: #444; }
.gcp-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.gcp-note-save {
  padding: 8px 20px;
  border-radius: 10px;
  background: #E8FF47;
  border: none;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
  flex-shrink: 0;
  transition: opacity .15s;
}
.gcp-note-save:hover { opacity: .88; }
.gcp-note-cancel {
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: #666;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  flex-shrink: 0;
  transition: color .15s;
}
.gcp-note-cancel:hover { color: #aaa; }

/* ── Add note button ── */
.gcp-note-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.15);
  color: #666;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  flex-shrink: 0;
  transition: background .18s, color .18s, border-color .18s;
}
.gcp-note-add-btn:hover {
  background: rgba(232,255,71,.06);
  border-color: rgba(232,255,71,.25);
  color: #E8FF47;
}

/* Search + filter pills — same as history.html */
.hist-search-input {
  width: 100%; background: #111;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 13px 16px; outline: none; box-sizing: border-box;
  transition: border-color .2s;
}
.hist-search-input:focus { border-color: rgba(232,255,71,.35); }
.hist-search-input::placeholder { color: #555; }
.hist-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #888;
  cursor: pointer; transition: all .18s; white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.hist-filter.active { background: rgba(232,255,71,.1); border-color: rgba(232,255,71,.4); color: #E8FF47; }
.hist-filter:hover:not(.active) { border-color: rgba(255,255,255,.22); color: #ccc; }
.hist-filter i { width: 13px; height: 13px; }

/* History items — same classes as history.html for visual parity */
.hist-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: border-color .18s, transform .22s cubic-bezier(.16,1,.3,1), background .18s;
  animation: histCardIn .35s cubic-bezier(.16,1,.3,1) both;
  position: relative;
  overflow: hidden;
}
.hist-card:hover { border-color: rgba(232,255,71,.25); transform: translateY(-2px); background: rgba(255,255,255,.05); }
@keyframes histCardIn { from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.hist-card-ic {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hist-card-ic i { width: 20px; height: 20px; }
.hist-card-body { flex: 1; min-width: 0; }
.hist-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 5px;
}
.hist-tool-tag { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.hist-time { font-size: 11px; color: #555; }
.hist-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-summary { font-size: 12.5px; color: #888; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-card-del {
  background: transparent; border: none; padding: 4px; cursor: pointer;
  flex-shrink: 0; opacity: .35; transition: opacity .2s; display: flex; margin-top: 2px;
}
.hist-card-del:hover { opacity: 1; }
/* Result modal */
.hist-modal {
  position: fixed; inset: 0; background: rgba(8,8,8,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 99999; display: flex; flex-direction: column;
  animation: histModalIn .3s cubic-bezier(.16,1,.3,1);
}
@keyframes histModalIn { from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:translateY(0); } }
.hist-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0; background: rgba(8,8,8,.98);
}
.hist-modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #aaa; font-size: 18px; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.hist-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.hist-modal-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.25rem 4rem;
  max-width: 680px; margin: 0 auto; width: 100%;
}

/* Maintenance items */
.gcp-maint-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid;
  margin-bottom: .6rem;
}
.gcp-maint-left { flex: 1; min-width: 0; }
.gcp-maint-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.gcp-maint-due { font-size: 12px; color: #666; }
.gcp-maint-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.gcp-maint-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 100px;
  padding: 3px 9px;
}
.gcp-maint-done {
  display: block;
  width: 100%;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(232,255,71,.08);
  border: 1px solid rgba(232,255,71,.2);
  color: #E8FF47;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  text-align: center;
  white-space: nowrap;
}
.gcp-maint-done:hover:not(:disabled) {
  background: rgba(232,255,71,.15);
  transform: translateY(-1px);
}
.gcp-maint-done:disabled { opacity: .5; cursor: default; transform: none; }

.gcp-add-log-btn {
  padding: 7px 14px;
  border-radius: 9px;
  background: rgba(232,255,71,.08);
  border: 1px solid rgba(232,255,71,.2);
  color: #E8FF47;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .18s;
}
.gcp-add-log-btn:hover { background: rgba(232,255,71,.14); }

/* Log items */
.gcp-log-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gcp-log-item:last-of-type { border-bottom: none; }
.gcp-log-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.gcp-log-name { font-size: 13.5px; font-weight: 600; color: #ddd; line-height: 1.3; }
.gcp-log-date { font-size: 11.5px; color: #555; margin-top: 2px; line-height: 1.5; }
.gcp-log-cost { font-size: 14px; font-weight: 700; color: #aaa; flex-shrink: 0; padding-top: 2px; }
.gcp-log-empty { font-size: 13px; color: #444; padding: 1rem 0; line-height: 1.7; }

/* Cost summary cards */
.gcp-cost-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.gcp-cost-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1rem .75rem;
  text-align: center;
}
.gcp-cost-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.gcp-cost-label { font-size: 11px; color: #555; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* Pro gate block */
.gcp-pro-gate {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
}
.gcp-pro-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232,255,71,.06);
  border: 1px solid rgba(232,255,71,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.gcp-pro-gate-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #fff;
  margin: 0 0 .5rem;
  letter-spacing: .5px;
}
.gcp-pro-gate-sub {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Empty block */
.gcp-empty-block {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  margin-top: 1rem;
}
.gcp-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.gcp-empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #fff;
  margin: 0 0 .5rem;
  letter-spacing: .5px;
}
.gcp-empty-sub {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Share link */
.gcp-share-link-wrap {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}
.gcp-share-input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #aaa;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}
.gcp-share-copy {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: #E8FF47;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity .18s;
}
.gcp-share-copy:hover { opacity: .88; }

/* Responsive */
@media (max-width: 600px) {
  .gcp-car-name { font-size: 28px; }
  .gcp-tools-grid { grid-template-columns: 1fr 1fr; }
  .gcp-cost-summary { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .gcp-cost-amount { font-size: 20px; }
  .gcp-tab { padding: 11px 13px; font-size: 13px; }
  .gcp-wrap { padding: 1rem 1rem 8rem; }

  /* Generate block — stack on mobile */
  .gcp-generate-block {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
  }
  .gcp-generate-left { width: 100%; }
  .gcp-generate-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .gcp-tools-grid { grid-template-columns: 1fr; }
  .gcp-stats-grid { grid-template-columns: 1fr 1fr; }
  .gcp-cost-summary { grid-template-columns: 1fr; }
}

/* ── Layout ── */
.gr-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.gr-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 7rem;
}

/* ============================================================
   LOADING SKELETONS
   ============================================================ */
.gr-hero-skeleton {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.gr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.gr-card-skeleton {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.sk-accent {
  height: 5px;
  background: rgba(255,255,255,.07);
}
.sk-body {
  padding: 1.25rem;
}
.sk-block {
  background: rgba(255,255,255,.06);
  animation: sk-pulse 1.5s ease-in-out infinite;
}
.sk-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.sk-chip {
  width: 70px;
  height: 24px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  animation: sk-pulse 1.5s ease-in-out infinite;
}
@keyframes sk-pulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}

/* ============================================================
   GUEST WALL
   ============================================================ */
.gr-guest-wall {
  max-width: 420px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 0 1rem;
}
.gr-guest-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(232,255,71,.06);
  border: 1px solid rgba(232,255,71,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.gr-guest-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: .6rem;
}
.gr-guest-sub {
  font-size: 14px;
  color: #777;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.gr-guest-features {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.gr-guest-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #ccc;
  font-weight: 500;
}
.gr-pro-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #E8FF47;
  background: rgba(232,255,71,.1);
  border: 1px solid rgba(232,255,71,.25);
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
}
.gr-feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gr-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.gr-guest-actions .gr-btn-primary,
.gr-guest-actions .gr-btn-ghost {
  width: 100%;
}

/* ============================================================
   HOW GARAGE WORKS — 3-step strip (guest wall + empty state)
   ============================================================ */
.gr-how-strip {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: .85rem 0 1.75rem;
  text-align: left;
}
.gr-how-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gr-how-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gr-how-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gr-how-text strong { font-size: 13px; font-weight: 700; color: #fff; }
.gr-how-text span { font-size: 11.5px; color: #666; line-height: 1.4; }

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.gr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  background: #E8FF47;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .18s, transform .18s;
  width: fit-content;
  flex-shrink: 0;
}
.gr-btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.gr-btn-primary:active {
  transform: translateY(0);
  opacity: 1;
}
.gr-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  background: transparent;
  color: #888;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s, color .18s;
}
.gr-btn-ghost:hover {
  border-color: rgba(255,255,255,.25);
  color: #ccc;
}

/* ============================================================
   HERO ROW
   ============================================================ */
.gr-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.gr-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #fff;
  letter-spacing: 1.5px;
  line-height: 1;
  margin: 0 0 4px;
}
.gr-subtitle {
  font-size: 13px;
  color: #555;
  margin: 0;
}
.gr-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #E8FF47;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  transition: opacity .18s, transform .18s;
}
.gr-add-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ============================================================
   HERO ACTIONS (Compare + Add Car)
   ============================================================ */
.gr-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gr-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  transition: background .18s, border-color .18s, color .18s;
}
.gr-compare-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

/* ============================================================
   SORT + FILTER TOOLBAR
   ============================================================ */
.gr-toolbar {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.gr-toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 0 14px;
  min-width: 0;
  transition: border-color .18s;
}
.gr-toolbar-search:focus-within { border-color: rgba(232,255,71,.35); }
.gr-toolbar-search svg { flex-shrink: 0; color: #555; }
.gr-toolbar-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 0;
}
.gr-toolbar-search input::placeholder { color: #444; }
.gr-sort-field {
  flex-shrink: 0;
  width: 210px;
}
.gr-sort-field .custom-select { padding: 12px 14px; gap: 8px; }
.gr-sort-field .custom-select-value { font-size: 13px; }

/* ============================================================
   COMPARE MODAL
   ============================================================ */
.gr-cmp-modal {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  animation: histModalIn .3s cubic-bezier(.16,1,.3,1);
}
.gr-cmp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.gr-cmp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .5px;
  color: #fff;
}
.gr-cmp-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.gr-cmp-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.gr-cmp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.25rem 4rem;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Picker grid (step 1: choose cars) */
.gr-cmp-hint {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.gr-cmp-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.gr-cmp-pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.gr-cmp-pick-card:hover { border-color: rgba(255,255,255,.2); }
.gr-cmp-pick-card.selected {
  border-color: rgba(232,255,71,.45);
  background: rgba(232,255,71,.05);
}
.gr-cmp-pick-swatch {
  width: 10px;
  height: 34px;
  border-radius: 4px;
  flex-shrink: 0;
}
.gr-cmp-pick-name { font-size: 14px; font-weight: 700; color: #fff; }
.gr-cmp-pick-sub { font-size: 11.5px; color: #555; margin-top: 1px; }
.gr-cmp-pick-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .18s;
}
.gr-cmp-pick-card.selected .gr-cmp-pick-check {
  background: #E8FF47;
  border-color: #E8FF47;
  color: #000;
}
.gr-cmp-run-btn { width: 100%; justify-content: center; }
.gr-cmp-run-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Result grid (step 2: side-by-side) */
.gr-cmp-back-row { margin-bottom: 1.25rem; }
.gr-cmp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #666;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.gr-cmp-back:hover { color: #ccc; }

.gr-cmp-grid {
  display: grid;
  gap: .85rem;
  margin-bottom: 1.5rem;
}
.gr-cmp-col {
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
}
.gr-cmp-col-accent { height: 5px; width: 100%; }
.gr-cmp-col-head { padding: 1rem 1.1rem .85rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.gr-cmp-col-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 1px; }
.gr-cmp-col-sub { font-size: 11.5px; color: #555; }

.gr-cmp-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.gr-cmp-row:last-child { border-bottom: none; }
.gr-cmp-row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 2px;
}
.gr-cmp-row-value {
  font-size: 15px;
  font-weight: 700;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gr-cmp-row-value.best { color: #22c55e; }
.gr-cmp-best-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(34,197,94,.15);
  color: #22c55e;
  flex-shrink: 0;
}
.gr-cmp-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #555;
  font-size: 13.5px;
}

@media (max-width: 700px) {
  .gr-cmp-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   FREE LIMIT BAR
   ============================================================ */
.gr-free-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(232,255,71,.05);
  border: 1px solid rgba(232,255,71,.15);
  border-radius: 14px;
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 13px;
  color: #aaa;
  font-weight: 500;
}
.gr-free-bar strong { color: #E8FF47; }
.gr-free-upgrade {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 9px;
  background: #E8FF47;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .18s;
}
.gr-free-upgrade:hover { opacity: .85; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.gr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.gr-empty-inner {
  text-align: center;
  max-width: 360px;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
}
/* Empty state CTA: never stretch full-width */
.gr-empty-inner .gr-btn-primary {
  width: fit-content;
}
.gr-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.gr-empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #fff;
  margin: 0 0 .5rem;
  letter-spacing: .5px;
}
.gr-empty-sub {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.gr-empty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 1.25rem;
}
.gr-empty-pill {
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 11.5px;
  color: #666;
  font-weight: 600;
}

/* ============================================================
   CAR CARDS GRID
   ============================================================ */
.gr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Individual card */
.gr-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .22s cubic-bezier(.16,1,.3,1), box-shadow .2s;
  animation: grCardIn .35s cubic-bezier(.16,1,.3,1) both;
  position: relative;
}
.gr-card:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
@keyframes grCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Color accent strip */
.gr-card-accent {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
}

/* Card body */
.gr-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

/* Car name row */
.gr-card-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.gr-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.gr-card-year {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
  font-weight: 500;
}

/* Health ring (right side of card header) */
.gr-ring-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gr-ring-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.gr-ring-track {
  fill: none;
  stroke: rgba(255,255,255,.07);
  stroke-width: 5;
}
.gr-ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.gr-ring-center {
  position: relative;
  margin-top: -52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gr-ring-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1;
}
.gr-ring-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1.5px dashed rgba(255,255,255,.12);
}

/* Chips row (mileage, fuel, next due) */
.gr-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: .85rem;
}
.gr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: #888;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.gr-chip svg {
  flex-shrink: 0;
  opacity: .7;
}
.gr-chip-alert {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: #ef4444;
}
.gr-chip-due {
  background: rgba(251,191,36,.08);
  border-color: rgba(251,191,36,.2);
  color: #fbbf24;
}
.gr-chip-ok {
  background: rgba(34,197,94,.07);
  border-color: rgba(34,197,94,.18);
  color: #22c55e;
}

/* Delete button on card */
.gr-card-del {
  background: transparent;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  transition: color .18s;
  flex-shrink: 0;
}
.gr-card-del:hover { color: #ef4444; }

/* Card footer (last checked / arrow) */
.gr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.gr-card-last {
  font-size: 11.5px;
  color: #444;
}
.gr-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background .18s, color .18s;
}
.gr-card:hover .gr-card-arrow {
  background: rgba(232,255,71,.1);
  border-color: rgba(232,255,71,.3);
  color: #E8FF47;
}

/* ============================================================
   ADD CAR WIZARD — OVERLAY + SHEET
   ============================================================ */
.gr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  animation: grFadeIn .2s ease;
}
@keyframes grFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gr-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #141414;
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 24px 24px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: grSlideUp .35s cubic-bezier(.16,1,.3,1);
  max-width: 600px;
  margin: 0 auto;
}
@keyframes grSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes gcpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

@keyframes gcpMaintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
}

.gr-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  margin: .85rem auto .25rem;
  flex-shrink: 0;
}

.gr-sheet-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1.25rem .75rem;
  flex-shrink: 0;
}
.gr-sheet-title-wrap {
  flex: 1;
  text-align: center;
}
.gr-sheet-title {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.gr-sheet-step {
  display: block;
  font-size: 11px;
  color: #555;
  margin-top: 1px;
  font-weight: 600;
  letter-spacing: .3px;
}
.gr-sheet-back,
.gr-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.gr-sheet-back:hover,
.gr-sheet-close:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Progress bar */
.gr-progress-track {
  height: 3px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
  margin: 0 1.25rem;
  border-radius: 2px;
  overflow: hidden;
}
.gr-progress-fill {
  height: 100%;
  background: #E8FF47;
  border-radius: 2px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* Sheet body (scrollable) */
.gr-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.25rem 2rem;
}

/* Step hint text */
.gr-step-hint {
  font-size: 13px;
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

/* Form fields */
.gr-field {
  margin-bottom: 1.1rem;
}
.gr-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .5rem;
}
.gr-req  { color: #E8FF47; }
.gr-optional { color: #444; font-weight: 600; text-transform: none; letter-spacing: 0; }

.gr-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  padding: 13px 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s;
  -webkit-appearance: none;
}
.gr-input:focus {
  border-color: rgba(232,255,71,.4);
  background: rgba(255,255,255,.07);
}
.gr-input::placeholder { color: #3a3a3a; }
.gr-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.3); }

/* Two-column row inside sheet */
.gr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.gr-row .gr-btn-primary,
.gr-row .gr-btn-ghost {
  max-width: none;
}

/* Mileage + unit toggle row */
.gr-mileage-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}
.gr-unit-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.gr-unit-btn {
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: #555;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.gr-unit-btn.active {
  background: #E8FF47;
  color: #000;
}

/* Fuel type chips */
.gr-fuel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gr-fuel-chip {
  padding: 8px 15px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #888;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.gr-fuel-chip.active {
  background: rgba(232,255,71,.1);
  border-color: rgba(232,255,71,.4);
  color: #E8FF47;
}
.gr-fuel-chip:hover:not(.active) {
  border-color: rgba(255,255,255,.2);
  color: #ccc;
}

/* Color swatches */
.gr-color-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gr-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.gr-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s, border-color .18s;
  flex-shrink: 0;
}
.gr-swatch:hover { transform: scale(1.15); }
.gr-swatch.active {
  border-color: #E8FF47;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgba(232,255,71,.3);
}
.gr-color-preview {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  transition: background .25s;
}

/* Step next button — always full width inside the sheet */
.gr-step-next {
  margin-top: .5rem;
  width: 100%;
}

/* Review card (step 3) */
.gr-review-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.gr-review-accent {
  height: 6px;
}
.gr-review-body {
  padding: 1.15rem 1.25rem;
}
.gr-review-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.gr-review-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 1rem;
}
.gr-review-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.gr-review-detail {
  font-size: 12.5px;
  color: #666;
}
.gr-review-detail strong {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 1px;
}

/* ============================================================
   DELETE CONFIRM MODAL
   ============================================================ */
.gr-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  animation: grFadeIn .2s ease;
}
.gr-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  background: #161616;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 2rem 1.75rem 1.75rem;
  width: calc(100% - 2.5rem);
  max-width: 360px;
  text-align: center;
  animation: grConfirmIn .3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
@keyframes grConfirmIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.gr-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.gr-confirm-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .5rem;
}
.gr-confirm-sub {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.gr-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.gr-confirm-actions .gr-btn-ghost,
.gr-confirm-del {
  max-width: none;
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
}
.gr-confirm-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  background: #ef4444;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .18s;
}
.gr-confirm-del:hover { opacity: .88; }
.gr-confirm-del:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   TOAST
   ============================================================ */
.gr-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.gr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {

  /* ── Page wrap ── */
  .gr-wrap { padding: 1rem 1rem 7rem; }

  /* ── Hero row: title left, button right, same line ── */
  .gr-hero-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: nowrap;
  }
  .gr-hero-left { flex: 1; min-width: 0; }
  .gr-title { font-size: 30px; line-height: 1; }
  .gr-subtitle { font-size: 12px; margin-top: 2px; }

  /* Add Car: small pill, never stretches */
  .gr-add-btn {
    flex-shrink: 0;
    width: auto;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .gr-compare-btn {
    padding: 9px 12px;
    font-size: 12.5px;
    border-radius: 10px;
  }
  .gr-compare-btn span { display: none; }

  /* ── Toolbar: stack search above sort ── */
  .gr-toolbar { flex-direction: column; }
  .gr-sort-field { width: 100%; }

  /* ── Car cards: single column ── */
  .gr-cards { grid-template-columns: 1fr; }

  /* ── Compare modal: sit above fixed tab bar ── */
  .gr-cmp-body { padding: 1rem 1rem 6rem; }
  .gr-cmp-pick-grid { grid-template-columns: 1fr; }

  /* ── Empty state: compact, button not full width ── */
  .gr-empty-inner {
    padding: 1.75rem 1.25rem;
  }
  .gr-empty-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  .gr-empty-title { font-size: 26px; }
  .gr-empty-sub { font-size: 13px; margin-bottom: 1.1rem; }
  .gr-empty-inner .gr-btn-primary {
    width: fit-content;
    max-width: none;
    padding: 11px 22px;
    font-size: 13.5px;
  }

  /* ── Free bar: stack on small ── */
  .gr-free-bar { flex-wrap: wrap; gap: 8px; }
  .gr-free-upgrade {
    margin-left: 0;
    width: 100%;
    text-align: center;
    display: block;
    padding: 8px;
  }

  /* ── Wizard sheet: sit above the fixed tab bar ── */
  .gr-sheet {
    border-radius: 20px 20px 0 0;
    bottom: 70px;
    max-height: calc(100vh - 70px);
  }
  /* Sheet body scrolls */
  .gr-sheet-body {
    padding-bottom: 1rem;
    overflow-y: auto;
  }
  /* Continue button: normal flow, full width, safe bottom gap */
  .gr-step-next {
    position: static;
    width: 100%;
    max-width: none;
    border-radius: 14px;
    margin-top: 1rem;
    margin-bottom: .5rem;
    box-shadow: none;
  }
  /* Two-column row inside sheet */
  .gr-row { grid-template-columns: 1fr 1fr; }
  .gr-row .gr-btn-primary,
  .gr-row .gr-btn-ghost { max-width: none; width: 100%; }

  /* Color swatches compact */
  .gr-color-swatches { gap: 7px; }
  .gr-swatch { width: 30px; height: 30px; }

  /* Guest wall */
  .gr-guest-wall { margin-top: 2rem; }
  .gr-guest-actions .gr-btn-primary { max-width: none; width: 100%; }
  .gr-guest-actions .gr-btn-ghost { max-width: none; width: 100%; }
}

@media (max-width: 380px) {
  .gr-title { font-size: 26px; }
  .gr-add-btn { padding: 8px 12px; font-size: 12px; }
  .gr-swatch { width: 26px; height: 26px; }
}

/* ============================================================
   CUSTOM SELECT — matches tool-ui.css pattern
   ============================================================ */
.custom-select-field { position: relative; }

.custom-select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.custom-select:hover,
.custom-select-field.open .custom-select {
  border-color: rgba(232,255,71,.35);
  box-shadow: 0 0 0 3px rgba(232,255,71,.05);
}
.custom-select-field.open .custom-select { color: #E8FF47; }
.custom-select-value { flex: 1; text-align: left; color: inherit; }
.custom-select-chevron { transition: transform .2s; color: #555; flex-shrink: 0; }
.custom-select-field.open .custom-select-chevron { transform: rotate(180deg); color: #E8FF47; }

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #141414;
  border: 1px solid rgba(232,255,71,.18);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s cubic-bezier(.16,1,.3,1);
  z-index: 200;
  overflow: hidden;
}
.custom-select-field.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: #ccc;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .1s;
}
.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover { background: rgba(255,255,255,.04); color: #fff; }
.custom-select-option.active {
  background: rgba(232,255,71,.07);
  color: #fff;
}
.custom-select-option.active::after {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #E8FF47;
  margin-left: auto;
  flex-shrink: 0;
}
