/* BidQueue Version B — simplified UI accents (full feature parity) */
body.ui-version-b {
  --b-accent: #46eca6;
}

.version-b-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0d111a;
  background: var(--b-accent, #46eca6);
  flex-shrink: 0;
}

body.ui-version-b .nav-v1-only {
  display: none !important;
}

body.ui-version-b .wizard-page[data-wpage="2"] .ai-estimate-promo {
  border: 1px solid var(--border, #283142);
  border-radius: 12px;
  padding: 12px;
}

body.ui-version-b .host-supply-guide h3 {
  font-size: 1.05rem;
}

body.ui-version-b #quote-b-advanced-toggle {
  text-align: left;
  justify-content: flex-start;
}

/* Service picker — icon tiles (wizard step 1) */
body.ui-version-b .wizard-page[data-wpage="1"] .category-service-grid {
  gap: 12px;
}
body.ui-version-b .wizard-page[data-wpage="1"] .service-tile {
  min-height: 112px;
  border-radius: 16px;
}
body.ui-version-b .wizard-page[data-wpage="1"] .service-tile-label {
  font-size: 12px;
  font-weight: 800;
}
body.ui-version-b .wizard-page[data-wpage="1"] .service-tile-icon .bq-ico {
  width: 40px;
  height: 40px;
}
body.ui-version-b .wizard-page[data-wpage="1"] .service-tile.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--b-accent, #46eca6), 0 10px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
body.ui-version-b .wizard-top-nav {
  margin-top: 4px;
}
body.ui-version-b .wizard-back-top {
  color: var(--role-ink, #1b4fd1);
}
body.ui-version-b .wiz-selected-service {
  background: color-mix(in srgb, var(--b-accent, #46eca6) 10%, var(--surface));
}

/* ——— Job stages: one moment at a time ——— */
body.ui-version-b #panel-host-quotes[data-job-stage="waiting"] .compare-stage-only,
body.ui-version-b #panel-host-quotes[data-job-stage="waiting"] .booked-stage-only {
  display: none !important;
}

body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] .booked-stage-only {
  display: none !important;
}

body.ui-version-b #panel-host-quotes[data-job-stage="booked"] .compare-stage-only {
  display: none !important;
}

body.ui-version-b #panel-host-quotes[data-job-stage="booked"] #job-timeline {
  display: block !important;
}

/* ——— Quotes lead: during comparison, show the actual quotes right under the
   stage hero, and push setup/secondary content (share-the-problem media,
   job details, pre-book questions) below so the host never has to scroll past
   them to see incoming quotes. Scoped to version-b's quotes panel; nothing is
   hidden — only reordered. ——— */
body.ui-version-b #panel-host-quotes {
  display: flex;
  flex-direction: column;
}
body.ui-version-b #panel-host-quotes > * { order: 5; }
body.ui-version-b #panel-host-quotes > #back-from-quotes,
body.ui-version-b #panel-host-quotes > #quotes-screen-title,
body.ui-version-b #panel-host-quotes > #quotes-request-title,
body.ui-version-b #panel-host-quotes > #booked-celebration,
body.ui-version-b #panel-host-quotes > #job-stage-hero,
body.ui-version-b #panel-host-quotes > #job-timeline { order: 1; }
body.ui-version-b #panel-host-quotes > #host-new-referrals-banner,
body.ui-version-b #panel-host-quotes > #host-supply-guide { order: 2; }
/* The quotes themselves and their controls */
body.ui-version-b #panel-host-quotes > #quote-summary,
body.ui-version-b #panel-host-quotes > #quote-group-bar,
body.ui-version-b #panel-host-quotes > #compare-toggle-row,
body.ui-version-b #panel-host-quotes > #quotes-sort,
body.ui-version-b #panel-host-quotes > #quote-compare,
body.ui-version-b #panel-host-quotes > #quote-table,
body.ui-version-b #panel-host-quotes > #quotes-list { order: 3; }
/* Booked-stage live tracking + messages sit right under the hero too */
body.ui-version-b #panel-host-quotes > #booked-pro-banner,
body.ui-version-b #panel-host-quotes > #booked-stage-panel { order: 2; }
body.ui-version-b #panel-host-quotes > #host-msg-card { order: 3; }
/* Secondary setup content drops below the quotes */
body.ui-version-b #panel-host-quotes > #host-inquiries-card,
body.ui-version-b #panel-host-quotes > #host-job-details,
body.ui-version-b #panel-host-quotes > #host-diagnostics,
body.ui-version-b #panel-host-quotes > #host-help-strip { order: 6; }

/* While comparing, quotes are the headline: title → live "quotes arriving"
   strip → quotes, with the progress timeline tucked just below them. */
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #back-from-quotes,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quotes-screen-title,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quotes-request-title { order: 1; }
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quote-summary,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quote-group-bar,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #compare-toggle-row,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quotes-sort,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quote-compare,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quote-table,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #quotes-list { order: 2; }
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #job-stage-hero,
body.ui-version-b #panel-host-quotes[data-job-stage="comparing"] > #job-timeline { order: 3; }
/* same for the waiting stage so the first quote appears at the top instantly */
body.ui-version-b #panel-host-quotes[data-job-stage="waiting"] > #quotes-list { order: 2; }
body.ui-version-b #panel-host-quotes[data-job-stage="waiting"] > #job-stage-hero,
body.ui-version-b #panel-host-quotes[data-job-stage="waiting"] > #job-timeline { order: 3; }

.job-stage-hero {
  margin: 12px 0 16px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border, #283142);
  background: linear-gradient(145deg, rgba(70, 236, 166, 0.08), rgba(13, 17, 26, 0.4));
}

.job-stage-hero h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.job-stage-hero .stage-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #9aa6ba);
  line-height: 1.5;
}

.job-stage-hero.stage-waiting {
  border-color: rgba(70, 236, 166, 0.35);
}

.job-stage-hero.stage-comparing {
  border-color: rgba(59, 130, 246, 0.35);
}

.job-stage-hero.stage-booked {
  border-color: rgba(70, 236, 166, 0.5);
  background: linear-gradient(145deg, rgba(70, 236, 166, 0.14), rgba(6, 193, 103, 0.06));
}

.booked-celebration {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  animation: bFadeIn 0.35s ease;
}

.booked-celebration.hidden {
  display: none !important;
}

.booked-celebration-inner {
  text-align: center;
  max-width: 320px;
  animation: bPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booked-celebration-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green, #06c167);
  color: #0d111a;
  font-size: 36px;
  font-weight: 800;
  line-height: 72px;
  box-shadow: 0 0 0 12px rgba(6, 193, 103, 0.2);
}

.booked-celebration h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.booked-celebration p {
  margin: 0;
  color: var(--muted, #9aa6ba);
  font-size: 14px;
  line-height: 1.5;
}

.booked-stage-panel {
  margin: 12px 0 16px;
}

.booked-stage-map-card {
  overflow: hidden;
  padding: 0;
}

.booked-stage-map-head {
  padding: 14px 16px 8px;
}

.booked-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green, #06c167);
  margin-bottom: 6px;
}

.booked-stage-map {
  min-height: 220px;
  background: var(--surface-2, #121820);
}

.booked-stage-map .map-pin.booked-pro circle {
  fill: var(--green, #06c167);
  stroke: #fff;
  stroke-width: 2;
}

.booked-stage-eta {
  padding: 10px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green, #06c167);
}

.booked-stage-live.hidden { display: none; }

.host-media-disclosure > summary { cursor: pointer; list-style: none; }
.host-media-disclosure > summary::-webkit-details-marker { display: none; }
.host-media-disclosure > summary::after { content: "＋"; float: right; font-weight: 700; color: var(--muted, #94a3b8); }
.host-media-disclosure[open] > summary::after { content: "－"; }
.host-media-disclosure > summary h3 { margin: 0; }

/* Compact horizontal progress strip (version B) */
.status-timeline.timeline-compact { padding: 12px 14px; }
.status-timeline.timeline-compact .st-head { margin-bottom: 8px; }
.st-strip { display: flex; align-items: center; gap: 0; }
.st-pip { display: flex; align-items: center; flex: 1; }
.st-pip:not(:last-child)::after { content: ""; height: 2px; flex: 1; background: var(--border, #283142); margin: 0 4px; }
.st-pip.done:not(:last-child)::after { background: var(--green, #06c167); }
.st-pip-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--border, #283142); background: var(--surface, #121820);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: transparent;
}
.st-pip.done .st-pip-dot { background: var(--green, #06c167); border-color: var(--green, #06c167); color: #fff; }
.st-pip.current .st-pip-dot { border-color: var(--green, #06c167); box-shadow: 0 0 0 4px rgba(6,193,103,.18); }
.st-strip-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }

/* Referral reward ladder + made-referral status */
.reward-explainer { border: 1px solid var(--green, #06c167); }
.reward-ladder { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reward-ladder li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.reward-amt { flex: none; min-width: 72px; text-align: center; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(6,193,103,.16); color: var(--green, #06c167); }
.reward-amt--cash { background: rgba(37,99,235,.16); color: #2563eb; min-width: 92px; }
.ref-made-row { padding: 10px 0; border-bottom: 1px solid var(--border, #283142); }
.ref-made-row:last-child { border-bottom: none; }
.ref-made-head { font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.ref-made-status { display: inline-block; font-size: 12px; font-weight: 600; margin-right: 8px; }
.ref-made-status.pending { color: var(--muted, #94a3b8); }
.ref-made-status.joined { color: var(--green, #06c167); }

.booked-stage-map .booked-appointment {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  min-height: 0;
}
.booked-appt-cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--green, #06c167);
  color: #fff;
  flex: none;
}
.booked-appt-cal-day { font-size: 22px; font-weight: 800; line-height: 1; }
.booked-appt-cal-mon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.booked-appt-text { display: flex; flex-direction: column; gap: 3px; }
.booked-appt-text strong { font-size: 15px; }
.booked-appt-text span { font-size: 13px; color: var(--muted, #94a3b8); }

.booked-stage-map .booked-dropoff {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 18px; min-height: 0;
}
.booked-dropoff-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.16); color: #2563eb;
}
.booked-dropoff-icon .bq-ico { width: 22px; height: 22px; }
.booked-dropoff-text { display: flex; flex-direction: column; gap: 3px; }
.booked-dropoff-text strong { font-size: 15px; }
.dropoff-addr { font-size: 13.5px; color: var(--ink); }
.dropoff-meta { font-size: 12.5px; color: var(--muted, #94a3b8); }
.dropoff-directions { font-size: 13px; font-weight: 700; color: #2563eb; margin-top: 4px; text-decoration: none; }

/* Uber-style mock tracking map (demo, no real GPS) */
.mock-map { width: 100%; height: auto; display: block; border-radius: 12px; }
.mm-bg { fill: #0f1722; }
.mm-street { stroke: #1f2c3d; stroke-width: 6; stroke-linecap: round; }
.mm-block { fill: #16212e; }
.mm-park { fill: #142a1f; }
.mm-route-bg { fill: none; stroke: #0b2a44; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mm-route { fill: none; stroke: #3b82f6; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 8; }
.mm-origin { fill: #64748b; }
.mm-host-dot { fill: rgba(6,193,103,.3); }
.mm-host-core { fill: #06c167; }
.mm-car-halo { fill: rgba(59,130,246,.25); }
.mm-car { fill: #3b82f6; stroke: #fff; stroke-width: 2; }
.mm-car-label { fill: #fff; font-size: 9px; font-weight: 800; }
.mm-eta-pill { fill: #0b1320; stroke: #3b82f6; stroke-width: 1.5; }
.mm-eta-text { fill: #fff; font-size: 13px; font-weight: 700; }

/* Pro trade filter toggle (My trades / All services) */
.trade-filter { display: flex; gap: 8px; margin: 6px 0 12px; }
.trade-chip {
  flex: 1; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; text-align: center;
  background: var(--surface-2, #121820); color: var(--muted, #94a3b8);
  border: 1px solid var(--border, #283142);
}
.trade-chip.active { background: var(--green, #06c167); color: #fff; border-color: var(--green, #06c167); }

/* Host quote card: pro quoting outside their verified specialty */
.not-specialist-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(245, 158, 11, .16); color: #f59e0b;
}
.not-specialist-tag .bq-ico { width: 12px; height: 12px; }

/* Step-2 description requirement + prominent intake block */
.wiz-desc-required-hint {
  font-size: 13px; font-weight: 600; color: #f59e0b;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4);
  border-radius: 10px; padding: 8px 12px; margin: 0 0 10px;
}
.wiz-desc-required-hint.hidden { display: none; }
.lbl-required { color: #f59e0b !important; font-weight: 700; }
.wiz-intake-block {
  margin: 16px 0; padding: 14px; border-radius: 12px;
  background: var(--surface-2, #121820); border: 1px solid var(--border, #283142);
}
.wiz-intake-block .big-label { margin-bottom: 2px; }
.wiz-intake-block .wiz-help { margin-bottom: 12px; }

/* Live AI intake output */
.ai-summary { font-size: 14px; font-weight: 600; color: var(--ink); margin: 8px 0; line-height: 1.4; }
.ai-details { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.ai-detail-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(59,130,246,.14); color: #60a5fa; }

/* AI quick-describe box above the category grid */
.ai-quick {
  margin: 6px 0 14px; padding: 14px; border-radius: 14px;
  background: linear-gradient(155deg, rgba(99,102,241,.16), rgba(59,130,246,.10));
  border: 1px solid rgba(99,102,241,.35);
}
.ai-quick-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ai-quick-row { display: flex; gap: 8px; }
.ai-quick-input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--border, #283142); background: var(--surface, #0e141b);
  color: var(--ink); font-size: 15px;
}
.ai-quick-go { flex: none; padding-left: 18px; padding-right: 18px; }
.ai-quick-status { font-size: 13px; color: var(--muted, #94a3b8); margin: 8px 0 0; min-height: 1px; }
.ai-quick-or { text-align: center; margin: 10px 0 6px; position: relative; }
.ai-quick-or span { font-size: 12px; color: var(--muted, #94a3b8); text-transform: uppercase; letter-spacing: .04em; }
.job-chip.flex-price { color: #f59e0b; background: rgba(245,158,11,.14); font-weight: 700; }

/* Promote a slow-day deal (pro side) */
.promo-card { margin: 4px 0 12px; border: 1px solid var(--border,#283142); border-radius: 12px; background: var(--surface-2,#121820); overflow: hidden; }
.promo-card > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.promo-card > summary::-webkit-details-marker { display: none; }
.promo-card > summary small { color: var(--muted,#94a3b8); font-weight: 500; margin-left: auto; }
.promo-sum-ic { color: #f59e0b; }
.promo-body { padding: 0 14px 14px; }
.promo-body .big-label { margin-top: 10px; }
.promo-body select, .promo-body input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border,#283142); background: var(--surface,#0e141b); color: var(--ink); font-size: 14px; }
.promo-active { margin-top: 12px; }
.promo-active-head { font-size: 12px; font-weight: 700; color: var(--muted,#94a3b8); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.promo-chip-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.promo-chip { flex: 1; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(245,158,11,.12); color: #f59e0b; }
.promo-remove { flex: none; background: none; border: none; color: var(--muted,#94a3b8); cursor: pointer; font-size: 14px; padding: 4px 8px; }

.role-badge.role-host-b {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.role-badge.role-pro-b {
  background: rgba(70, 236, 166, 0.15);
  color: var(--green, #46eca6);
}

@keyframes bFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bPopIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

body.celebrating-booked {
  overflow: hidden;
}

.job-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.job-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.job-mark-recent {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.job-mark-new {
  background: rgba(6, 193, 103, 0.15);
  color: var(--green, #06c167);
  border: 1px solid rgba(6, 193, 103, 0.35);
}

.job-mark-wait {
  background: rgba(154, 166, 186, 0.12);
  color: var(--muted, #9aa6ba);
}

.host-job-card.is-recent-post,
.host-hub-card.is-recent-post {
  border-left: 3px solid #3b82f6;
}

.host-job-card.has-new-quotes,
.host-hub-card.has-new-quotes {
  border-color: rgba(6, 193, 103, 0.45);
}

.host-hub-card.flash,
.host-job-card.flash {
  animation: jobFlash 1.2s ease;
}

.hub-when {
  font-size: 12px;
  color: var(--muted, #9aa6ba);
  margin: 0 0 8px;
}

.job-date-pill {
  font-weight: 600;
}

.demo-role-switch{position:fixed;left:10px;bottom:86px;z-index:1200;display:flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:rgba(15,23,42,.94);border:1px solid rgba(148,163,184,.35);box-shadow:0 6px 20px -8px rgba(0,0,0,.55);backdrop-filter:blur(6px);max-width:calc(100vw - 24px)}
.demo-role-switch.hidden{display:none}
.drs-label{font-size:10px;font-weight:700;color:#94a3b8;padding-left:4px;text-transform:uppercase;letter-spacing:.04em}
.drs-btn{font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px;border:none;cursor:pointer;background:transparent;color:#cbd5e1}
.drs-btn.active{background:var(--green,#06c167);color:#fff}
