.salary-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 260px;
}

.salary-chart-wrap.is-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
}

.salary-chart-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.salary-band {
  margin-top: 1rem;
  padding: 0.75rem 0;
}

.salary-band-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8edf2 0%, #d6fd61 45%, #e8edf2 100%);
}

.salary-band-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f1724;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 36, 0.25);
}

.salary-band-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 36, 0.45);
}

.bm-modal-root {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bm-modal-root.is-open {
  display: flex;
}

.bm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, 0.55);
  backdrop-filter: blur(6px);
}

.bm-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 36, 0.25);
  padding: 1.75rem 1.5rem 1.5rem;
}

.bm-modal-step[hidden] {
  display: none !important;
}

.bm-generating-dots span {
  animation: bmPulse 1.2s infinite ease-in-out;
}

.bm-generating-dots span:nth-child(2) { animation-delay: 0.15s; }
.bm-generating-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bmPulse {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.bm-action-card {
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #f9fafb;
}

.bm-salary-toggle {
  display: flex;
  gap: 0.5rem;
}

.bm-salary-toggle button {
  flex: 1;
  border: 1px solid rgba(15, 23, 36, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.bm-salary-toggle button.is-active {
  background: #d6fd61;
  border-color: #b8e04a;
}

.bm-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 36, 0.42);
}

.bm-modal-heading {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1a1a1a;
}

.bm-modal-card {
  max-width: 600px;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid rgba(15, 23, 36, 0.06);
}

.bm-result-hero {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.bm-result-context {
  margin-top: 0.55rem;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 36, 0.5);
}

.bm-verdict-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bm-verdict--below {
  background: #fff4e6;
  color: #b45309;
  border: 1px solid #fed7aa;
}

.bm-verdict--around {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.bm-verdict--above {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.bm-verdict--unknown {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.bm-metrics-card {
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfc;
}

.bm-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 36, 0.06);
  font-size: 13px;
}

.bm-metric-row:last-child {
  border-bottom: none;
}

.bm-metric-row--highlight {
  background: linear-gradient(90deg, rgba(214, 253, 97, 0.22), rgba(214, 253, 97, 0.05));
}

.bm-metric-label {
  font-weight: 600;
  color: rgba(15, 23, 36, 0.55);
}

.bm-metric-value {
  font-weight: 800;
  color: #1a1a1a;
  text-align: right;
}

.bm-chart-fallback {
  border: 1px dashed rgba(15, 23, 36, 0.15);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 36, 0.5);
  background: #fafbfc;
}

.bm-action-card strong {
  display: block;
  font-size: 13px;
  color: #1a1a1a;
}

.bm-action-card p {
  margin-top: 0.25rem;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 36, 0.58);
}

.bm-action-card a {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
}

#bm-modal-unlock {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.salary-chart-lock p {
  max-width: 220px;
  line-height: 1.45;
}

.bm-metrics-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.bm-metric-chip {
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.bm-metric-chip span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 36, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bm-metric-chip strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
}

.bm-metrics-note {
  margin-top: 0.65rem;
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 36, 0.42);
  text-align: center;
  line-height: 1.4;
}

.bm-step1-summary {
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 0.85rem 1rem;
}

.bm-step1-summary-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 36, 0.42);
  margin-bottom: 0.55rem;
}

.bm-step1-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

.bm-step1-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 36, 0.42);
}

.bm-step1-item strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 13px;
  font-weight: 800;
  color: #1a1a1a;
}

.bm-step1-edit {
  margin-top: 0.65rem;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 36, 0.55);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.bm-salary-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.bm-salary-breakdown-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.bm-salary-breakdown-field .bm-label {
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.bm-salary-breakdown-field .bm-input {
  width: 100%;
  min-width: 0;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 14px;
}

@media (min-width: 640px) {
  .bm-salary-breakdown {
    gap: 0.75rem;
  }

  .bm-salary-breakdown-field .bm-label {
    font-size: inherit;
  }
}
