/* Pilot Car Helper v50 - Uniform Edge-to-Edge Beta Bar & Legacy Banner Cleanup */
.beta-strip,
#pchRoleStrip,
#betaBanner,
#demoBanner,
.beta-banner,
.demo-banner,
.sandbox-banner,
[data-pch-hidden-legacy="1"] {
  display: none !important;
}

#pchBetaBar,
body.pch-solo-active > #pchBetaBar {
  display: block !important;
  width: 100%;
  background: linear-gradient(90deg, #0D182E 0%, #162647 50%, #0D182E 100%);
  color: #F8FAFC;
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  position: relative;
  z-index: 60;
}
.pch-beta-in {
  width: 100%;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.pch-beta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pch-beta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #FACC15;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.pch-beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}
.pch-beta-copy {
  font-size: 13px;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pch-beta-copy strong { color: #FFFFFF; font-weight: 800; }
.pch-beta-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px !important;
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: #FACC15;
  color: #0B1528;
  font-size: 12.5px !important;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.28);
}
.pch-beta-cta:hover { background: #FDE047; }
.pch-beta-cta.is-joined { background: #059669; color: #FFFFFF; box-shadow: none; }

#pchWaitlistBg,
body.pch-solo-active > #pchWaitlistBg {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 30, 0.78);
  backdrop-filter: blur(4px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
#pchWaitlistBg.is-open,
body.pch-solo-active > #pchWaitlistBg.is-open { display: flex !important; }
.pch-wl-card {
  width: min(440px, 100%);
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 16px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.pch-wl-head {
  background: #0B1528;
  color: #FFFFFF;
  padding: 16px 18px;
  border-bottom: 2px solid #FACC15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pch-wl-head h3 { margin: 0; font-size: 16px; font-weight: 900; color: #FFFFFF; }
.pch-wl-head p { margin: 2px 0 0; font-size: 12px; color: #CBD5E1; }
.pch-wl-close {
  min-height: 32px !important;
  width: 32px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 16px !important;
  font-weight: 800;
  cursor: pointer;
}
.pch-wl-body { padding: 16px 18px 18px; }
.pch-wl-field { margin-bottom: 11px; }
.pch-wl-field label { display: block; font-size: 12.5px; font-weight: 800; color: #0B1528; margin-bottom: 4px; }
.pch-wl-field input,
.pch-wl-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 15px;
  color: #0F172A;
  background: #FFFFFF;
  box-sizing: border-box;
}
.pch-wl-submit {
  width: 100%;
  min-height: 44px !important;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: #0B1528;
  color: #FACC15;
  font-size: 14.5px !important;
  font-weight: 900;
  cursor: pointer;
}
.pch-wl-note { font-size: 11.5px; color: #64748B; text-align: center; margin-top: 9px; }

#pchSoloReturnFab {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 95000;
  min-height: 40px !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #FACC15;
  background: #0B1528;
  color: #FACC15;
  font-size: 12.5px !important;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.35);
  cursor: pointer;
}
#pchSoloReturnFab { display: none !important; }

@media (max-width: 640px) {
  .pch-beta-in { padding: 7px 10px; gap: 8px; }
  .pch-beta-sub { display: none; }
  .pch-beta-copy { font-size: 12px; }
  .pch-beta-cta { padding: 5px 11px; font-size: 12px !important; }
}

/* v89 mobile beta & waitlist fit */
#pchBetaBar,
#pchBetaBar .pch-beta-in {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
@media (max-width: 640px) {
  #pchBetaBar .pch-beta-in {
    padding: 7px 10px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  #pchBetaBar .pch-beta-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    gap: 6px !important;
  }
  #pchBetaBar .pch-beta-sub {
    display: none !important;
  }
  #pchBetaBar .pch-beta-copy {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #pchBetaBar .pch-beta-copy strong {
    display: block !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #pchBetaBar .pch-beta-tag {
    font-size: 10px !important;
    padding: 2px 6px !important;
    flex-shrink: 0 !important;
  }
  #pchBetaBar .pch-beta-cta {
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  #pchWaitlistBg .pch-wl-card {
    width: calc(100vw - 20px) !important;
    max-width: 440px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}
