/* THE GUESSTIMATOR — Costa Oil | Light-default, themeable */

/* ════════════════════════════════════════
   LIGHT MODE (default)
════════════════════════════════════════ */
:root, [data-theme="light"] {
  --bg:            #f4f3ef;
  --bg-card:       #ffffff;
  --bg-input:      #f9f8f6;
  --bg-darker:     #ebebea;
  --border:        #dddbd4;
  --border-strong: #c9c7be;
  --text:          #1a1a1a;
  --text-muted:    #5a5a5a;
  --text-dim:      #9a9a9a;
  --gold:          #b87200;
  --gold-bright:   #d48a00;
  --gold-light:    #e09c06;
  --topbar-bg:     #ffffff;
  --topbar-border: #e2e0da;
  --card-bg:       #ffffff;
  --dark2:         #f0eeea;
  --dark3:         #e8e6e2;
  --warning-bg:    #fffbee;
  --warning-border:#e8cc5a;
  --warning-text:  #7a5800;
  --red:           #d32f2f;
  --red-light:     #e53935;
  --green:         #2e7d32;
  --green-light:   #388e3c;
  --shadow:        0 2px 16px rgba(0,0,0,0.10);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.16s ease;
}

/* ════════════════════════════════════════
   DARK MODE
════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:            #0d0d0d;
  --bg-card:       #181818;
  --bg-input:      #222222;
  --bg-darker:     #111111;
  --border:        #2a2a2a;
  --border-strong: #3a3a3a;
  --text:          #f0f0f0;
  --text-muted:    #999999;
  --text-dim:      #555555;
  --gold:          #E09C06;
  --gold-bright:   #FFC107;
  --gold-light:    #FFD54F;
  --topbar-bg:     #111111;
  --topbar-border: #3a3000;
  --card-bg:       #181818;
  --dark2:         #1a1a1a;
  --dark3:         #222222;
  --warning-bg:    #140e00;
  --warning-border:#5a3e00;
  --warning-text:  #cc9900;
  --red:           #e53935;
  --red-light:     #ff6b6b;
  --green:         #2e7d32;
  --green-light:   #4caf50;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.16s ease;
}

/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}
.gz-body { display: flex; flex-direction: column; min-height: 100vh; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
.hidden { display: none !important; }

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
.gz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}
.gz-topbar-left { display: flex; align-items: center; gap: 10px; }
.gz-topbar-right { display: flex; align-items: center; gap: 14px; }
.gz-logo { height: 30px; }

/* In light mode, darken the logo so it's visible on white */
[data-theme="light"] .gz-logo { filter: brightness(0.1); }
[data-theme="dark"] .gz-logo { filter: none; }

.gz-brand { font-size: 1rem; font-weight: 800; color: var(--gold); letter-spacing: -0.01em; }
.gz-topbar-note { font-size: 0.72rem; color: var(--text-dim); }

.gz-theme-toggle {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.gz-theme-toggle:hover { background: var(--border); }

/* ════════════════════════════════════════
   PROGRESS BAR
════════════════════════════════════════ */
.gz-progress-wrap {
  height: 3px;
  background: var(--bg-darker);
  position: sticky;
  top: 51px;
  z-index: 99;
}
.gz-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.38s cubic-bezier(.4,0,.2,1);
}

/* ════════════════════════════════════════
   STEPS
════════════════════════════════════════ */
.gz-steps { flex: 1; }

.gz-step {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
.gz-step-enter {
  animation: gz-slide-in 0.22s cubic-bezier(.4,0,.2,1) both;
}
@keyframes gz-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.gz-step-inner {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}
.gz-quote-inner { max-width: 560px; }

/* ════════════════════════════════════════
   BACK BUTTON
════════════════════════════════════════ */
.gz-step-back { margin-bottom: 20px; }
.gz-back-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: color 0.15s;
}
.gz-back-btn:hover { color: var(--text-muted); }

/* ════════════════════════════════════════
   QUESTION & HINT
════════════════════════════════════════ */
.gz-question {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.gz-hint {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ════════════════════════════════════════
   OPTION BUTTON GRIDS
════════════════════════════════════════ */
.gz-year-recents {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.gz-btn-grid {
  display: grid;
  gap: 12px;
}

#make-grid  { grid-template-columns: repeat(6, 1fr); }
#model-grid { grid-template-columns: repeat(4, 1fr); }

.gz-option-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  padding: 20px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s, box-shadow 0.13s, transform 0.1s;
  text-align: center;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.gz-option-btn:hover {
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(180,114,0,0.12), var(--shadow);
  transform: translateY(-1px);
}
.gz-option-btn:active { transform: scale(0.97); }
.gz-option-btn.selected {
  border-color: var(--gold);
  border-width: 2px;
  background: var(--bg-card);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180,114,0,0.15);
}

/* Year buttons — slightly smaller text, more compact */
.gz-year-recents .gz-option-btn {
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 80px;
}

/* Older year dropdown */
.gz-year-older-wrap { margin-top: 6px; }
.gz-select-older {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  min-width: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  box-shadow: var(--shadow);
}
.gz-select-older:focus { border-color: var(--gold); }

/* ════════════════════════════════════════
   ENGINE CARDS
════════════════════════════════════════ */
.gz-engine-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.gz-engine-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.13s, box-shadow 0.13s;
  box-shadow: var(--shadow);
}
.gz-engine-card:hover { border-color: var(--gold); }
.gz-engine-card.selected {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(180,114,0,0.12), var(--shadow);
}

.gz-engine-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gz-engine-card.selected .gz-engine-radio {
  border-color: var(--gold);
  background: var(--gold);
}
.gz-engine-card.selected .gz-engine-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.gz-engine-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.gz-engine-detail { font-size: 0.83rem; color: var(--text-muted); margin-top: 3px; }

.gz-manual-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

/* ── AI Guess Button ── */
.gz-ai-guess-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 20px;
  background: transparent;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
  letter-spacing: 0.01em;
}
.gz-ai-guess-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(180,114,0,0.05);
}
.gz-ai-guess-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

/* AI guess result badge */
.gz-ai-result {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(220,100,0,0.08);
  border: 1.5px solid rgba(220,100,0,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
}
.gz-ai-result-headline {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.gz-ai-result-reasoning {
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gz-ai-result-warning {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c05000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Disclaimer Modal ── */
.gz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.gz-modal-overlay.hidden { display: none; }
.gz-modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-height: 88vh;
  overflow-y: auto;
}
.gz-modal-icon {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 10px;
}
.gz-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 16px;
}
.gz-modal-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.gz-modal-disclaimers {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.gz-modal-disclaimers li {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-darker);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.gz-modal-warning {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #c05000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px;
  border: 1.5px dashed rgba(192,80,0,0.35);
  border-radius: 8px;
  margin-bottom: 4px;
}
.gz-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.gz-modal-cancel {
  flex: 1;
  padding: 13px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.gz-modal-cancel:hover { border-color: var(--border-strong); color: var(--text); }
.gz-modal-confirm {
  flex: 2;
  padding: 13px;
  background: var(--gold);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.14s;
}
.gz-modal-confirm:hover { opacity: 0.88; }
.gz-modal-confirm:disabled { opacity: 0.5; cursor: wait; }
.gz-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  margin-bottom: 4px;
  box-shadow: var(--shadow);
}
.gz-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,114,0,0.1); }
.gz-field-note { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 14px; }

/* ════════════════════════════════════════
   LOCATION STEP
════════════════════════════════════════ */
.gz-zip-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.gz-zip-input { flex: 1; margin-bottom: 0; }
.gz-zip-btn {
  background: var(--bg-darker);
  border: 1.5px solid var(--border);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.gz-zip-btn:hover { border-color: var(--gold); }

.gz-location-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.gz-loc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 70px;
  transition: border-color 0.13s, box-shadow 0.13s, background 0.13s;
  box-shadow: var(--shadow);
}
.gz-loc-card:hover {
  border-color: var(--gold);
  background: var(--bg-darker);
}
.gz-loc-card.selected {
  border-color: var(--gold);
  border-width: 2.5px;
  background: var(--bg-darker);
  box-shadow: 0 0 0 3px rgba(180,114,0,0.14), var(--shadow);
}
.gz-loc-city {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}
.gz-loc-st {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gz-loc-dist {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.gz-zip-town {
  min-height: 22px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 4px 0 10px;
  padding-left: 2px;
  transition: color 0.2s;
}
.gz-zip-town-found {
  color: var(--text);
  font-weight: 600;
}
.gz-loc-addr { display: none; }
.gz-loc-name { display: none; }
.gz-loc-addr-sm {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ════════════════════════════════════════
   QUOTE STEP
════════════════════════════════════════ */
.gz-vehicle-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.gz-tag-engine { color: var(--text-dim); }
.gz-tag-loc {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Store Contact Bar ── */
.gz-store-contact {
  background: var(--bg-darker);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px 16px;
  margin-top: 20px;
  margin-bottom: 16px;
}
.gz-contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.gz-contact-btns {
  display: flex;
  gap: 10px;
}
.gz-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.14s, box-shadow 0.14s;
  cursor: pointer;
}
.gz-contact-call {
  background: #1a7f37;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,127,55,0.25);
}
.gz-contact-call:hover  { opacity: 0.88; }
.gz-contact-email {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.gz-contact-email:hover { border-color: var(--gold); color: var(--gold); }

.gz-price-block {
  text-align: center;
  padding: 32px 0 24px;
}
.gz-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.gz-price {
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}
.gz-price-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
}
/* ── Manual Model Entry ── */
.gz-manual-model-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.gz-manual-model-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 10px;
}
.gz-manual-model-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.gz-manual-model-input {
  flex: 1;
  margin-bottom: 0 !important;
  font-size: 1rem;
}
.gz-ai-guess-model-btn {
  flex-shrink: 0;
  padding: 0 18px;
  background: var(--gold);
  color: #1a1000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.14s;
  white-space: nowrap;
}
.gz-ai-guess-model-btn:disabled { opacity: 0.38; cursor: default; }
.gz-ai-guess-model-btn:not(:disabled):hover { opacity: 0.85; }
.gz-manual-model-status {
  margin-top: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.gz-manual-model-found { color: #1a7f37; }
.gz-manual-model-hint  { color: var(--text-dim); }
.gz-manual-model-err   { color: var(--red-light, #c0392b); }

.gz-conf-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gz-breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.gz-breakdown-toggle {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.gz-breakdown-toggle::after { content: '›'; font-size: 1.1rem; transition: transform 0.2s; }
details[open] .gz-breakdown-toggle::after { transform: rotate(90deg); }
.gz-breakdown-body { padding: 0 18px 16px; }
.gz-bline {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  padding: 6px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.gz-bline:first-child { border-top: none; }
.gz-bline span:last-child { color: var(--text); font-weight: 600; }
.gz-bline-total { font-weight: 700; font-size: 0.94rem; }
.gz-bline-total span { color: var(--text) !important; }
.gz-bline-total span:last-child { color: var(--gold) !important; }
.gz-surcharge-note {
  font-size: 0.78rem;
  color: var(--warning-text);
  padding: 4px 0;
  border-top: 1px solid var(--border);
}

.gz-disclaimer {
  font-size: 0.8rem;
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.gz-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.gz-check-label:hover { border-color: var(--gold); }
.gz-check-label.checked {
  border-color: var(--green-light);
  background: var(--bg-card);
  color: var(--text);
}
.gz-check-label input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin-top: 1px;
  cursor: pointer;
}

.gz-cta-btn {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .gz-cta-btn { color: #000; }
.gz-cta-btn:hover:not(:disabled) {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(180,114,0,0.3);
}
.gz-cta-btn:active:not(:disabled) { transform: scale(0.98); }
.gz-cta-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.gz-submit-btn { margin-bottom: 6px; }

.gz-restart-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  padding: 12px;
  margin-top: 4px;
  text-align: center;
  transition: color 0.15s;
}
.gz-restart-btn:hover { color: var(--text-muted); }

.gz-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.9rem;
  color: var(--green-light);
  margin-top: 12px;
}
.gz-success-icon { font-size: 1.3rem; flex-shrink: 0; }

.gz-error-inline {
  background: rgba(211,47,47,0.07);
  border: 1px solid rgba(211,47,47,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--red-light);
  margin-top: 10px;
}

/* ════════════════════════════════════════
   SHARED UTILITY
════════════════════════════════════════ */
.gz-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 10px 0;
}
.gz-spinner {
  display: inline-block;
  width: 17px; height: 17px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: gz-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes gz-spin { to { transform: rotate(360deg); } }

.gz-error {
  color: var(--red-light);
  font-size: 0.85rem;
  padding: 10px 0;
}
.gz-empty {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 14px 0;
}
.gz-step-cta { margin-top: 22px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.gz-footer {
  text-align: center;
  padding: 20px 16px 14px;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.gz-footer-website {
  margin-top: 8px;
}
.gz-footer-website a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.gz-footer-website a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 640px) {
  .gz-question { font-size: 1.5rem; }
  .gz-step-inner { padding: 22px 16px 64px; max-width: 100%; }
  .gz-year-recents { grid-template-columns: repeat(4, 1fr); gap: 9px; }
  .gz-year-recents .gz-option-btn { min-height: 66px; font-size: 1rem; }
  #make-grid  { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  #model-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .gz-option-btn { min-height: 66px; font-size: 0.97rem; padding: 16px 8px; }
  .gz-progress-wrap { top: 49px; }
  .gz-topbar-note { display: none; }
}
@media (max-width: 400px) {
  .gz-year-recents { grid-template-columns: repeat(3, 1fr); }
  #make-grid  { grid-template-columns: repeat(2, 1fr); }
  #model-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   ADMIN PANEL STYLES
════════════════════════════════════════ */
.container { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--gold); color: #fff; }
[data-theme="dark"] .btn-primary { color: #000; }
.btn-primary:hover { background: var(--gold-bright); }
.btn-secondary { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-secondary:hover { background: rgba(180,114,0,0.1); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: gz-spin 0.7s linear infinite;
  vertical-align: middle;
}

.badge { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; }
.badge-green { background: rgba(56,142,60,0.12); color: var(--green-light); }
.badge-yellow { background: rgba(180,114,0,0.12); color: var(--gold); }
.badge-red { background: rgba(211,47,47,0.12); color: var(--red-light); }
.badge-gray { background: rgba(128,128,128,0.1); color: var(--text-dim); }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  appearance: none;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control:disabled { opacity: 0.35; cursor: not-allowed; }

.admin-header {
  background: var(--topbar-bg);
  border-bottom: 2px solid var(--gold);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header h1 { font-size: 1.2rem; color: var(--gold); font-weight: 800; }

.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 59px); }
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px 0;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer; text-decoration: none;
}
.admin-nav-item:hover { color: var(--text); background: var(--bg-darker); }
.admin-nav-item.active { color: var(--gold); border-left-color: var(--gold); background: var(--bg-darker); }

.admin-content { padding: 24px; overflow-x: auto; background: var(--bg); }
.admin-section { margin-bottom: 28px; }
.admin-section h3 {
  font-size: 0.95rem; color: var(--text); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); font-weight: 700;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-value.white { color: var(--text); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.admin-table th { background: var(--bg-darker); color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; background: var(--bg-card); }
.admin-table tr:hover td { background: var(--bg-darker); }
.admin-table td strong { color: var(--text); }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .admin-form-grid { grid-template-columns: 1fr; } }
.admin-label { display: block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; }
.admin-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; outline: none; font-family: inherit;
}
.admin-input:focus { border-color: var(--gold); }
textarea.admin-input { min-height: 80px; resize: vertical; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; width: 100%; max-width: 360px; box-shadow: var(--shadow);
}
.login-card h2 { color: var(--gold); margin-bottom: 6px; font-size: 1.3rem; font-weight: 800; }
.login-card p { color: var(--text-muted); font-size: 0.83rem; margin-bottom: 22px; }
.login-error { background: rgba(211,47,47,0.08); border: 1px solid rgba(211,47,47,0.25); color: var(--red-light); padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.83rem; margin-bottom: 14px; }
.error-msg { background: rgba(211,47,47,0.08); border: 1px solid rgba(211,47,47,0.25); color: var(--red-light); padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.83rem; margin-bottom: 14px; }

.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--warning-text);
  margin: 10px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.warning-box.red { background: rgba(211,47,47,0.07); border-color: rgba(211,47,47,0.3); color: var(--red-light); }
.warning-box.green { background: rgba(46,125,50,0.07); border-color: rgba(46,125,50,0.3); color: var(--green-light); }
.warning-icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

/* legacy embed compat */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.step-title { font-size: 1.3rem; color: var(--gold); margin-bottom: 14px; }
.btn-large { padding: 14px 28px; font-size: 1rem; }

/* ── Redemption code card (customer-facing) ── */
.gz-redemption-card {
  margin-top: 20px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  text-align: center;
  animation: rd-in 0.35s ease;
}
@keyframes rd-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.gz-redemption-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.gz-redemption-code {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--text);
  font-family: "Inter", monospace;
  line-height: 1;
  margin-bottom: 14px;
  user-select: all;
}

.gz-redemption-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.gz-rd-active10 { background: rgba(76,175,80,0.12); color: #2e7d32; border: 1.5px solid #4caf50; }
.gz-rd-active5  { background: rgba(249,168,37,0.12); color: #e65100; border: 1.5px solid #f9a825; }
.gz-rd-expired  { background: rgba(211,47,47,0.10); color: #c62828; border: 1.5px solid #e53935; }
[data-theme="dark"] .gz-rd-active10 { background: rgba(76,175,80,0.18); color: #66bb6a; border-color: #4caf50; }
[data-theme="dark"] .gz-rd-active5  { background: rgba(249,168,37,0.18); color: #ffa726; border-color: #f9a825; }
[data-theme="dark"] .gz-rd-expired  { background: rgba(211,47,47,0.18); color: #ef5350; border-color: #e53935; }

.gz-redemption-msg {
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.55;
  margin-bottom: 14px;
}

.gz-redemption-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.gz-countdown-label { font-size: 0.75rem; color: #1a1a1a; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.gz-countdown-timer {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.gz-redemption-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: #1a1a1a;
}
.gz-redemption-amount span:last-child { font-weight: 700; color: var(--text); }
.gz-redemption-discount span:last-child { color: #2e7d32; }
[data-theme="dark"] .gz-redemption-discount span:last-child { color: #66bb6a; }

.gz-copy-btn {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
[data-theme="dark"] .gz-copy-btn { color: #000; }
.gz-copy-btn:hover { background: var(--gold-bright); }

[data-theme="dark"] .gz-redemption-msg,
[data-theme="dark"] .gz-countdown-label,
[data-theme="dark"] .gz-redemption-amount { color: var(--text); }
[data-theme="dark"] .gz-redemption-fine   { color: var(--text-dim); }

.gz-redemption-fine {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.7;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.gz-redemption-fine div { padding: 2px 0; }
.gz-redemption-fine div::before { content: "• "; }

/* ── Email this code row ── */
.gz-email-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.gz-email-input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  transition: border-color 0.15s;
}
.gz-email-input:focus { border-color: var(--gold); }
.gz-email-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.gz-email-btn:hover { background: var(--gold); color: #fff; }
[data-theme="dark"] .gz-email-btn:hover { color: #000; }
.gz-email-status {
  font-size: 0.78rem;
  text-align: center;
  padding: 4px 0 8px;
  font-weight: 600;
}
.gz-email-status.ok { color: var(--green); }
.gz-email-status.err { color: var(--red-light); }

/* ── Competitor pricing comparison ── */
.gz-competitor-wrap {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  text-align: center;
  animation: rd-in 0.35s ease;
}
.gz-competitor-heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.gz-competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.gz-comp-card {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px 10px;
}
.gz-comp-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.gz-comp-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  line-height: 1.1;
}
.gz-comp-label {
  font-size: 0.65rem;
  color: #444;
  margin-top: 3px;
}
.gz-comp-vs {
  font-size: 0.9rem;
  color: #1a1a1a;
  padding: 10px 0 6px;
  border-top: 1px solid var(--border);
}
.gz-comp-vs strong { color: var(--green); font-size: 1.05rem; }
.gz-comp-disclaimer {
  font-size: 0.65rem;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}
[data-theme="dark"] .gz-competitor-heading,
[data-theme="dark"] .gz-comp-name,
[data-theme="dark"] .gz-comp-vs   { color: var(--text); }
[data-theme="dark"] .gz-comp-label,
[data-theme="dark"] .gz-comp-disclaimer { color: var(--text-dim); }
