/* ─── ROI Calculator ─────────────────────────────────────── */
.xp-roi {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 32px rgba(123,92,250,.10);
  max-width: 960px;
  margin: 0 auto;
}

/* Inputs row */
.xp-roi__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.xp-roi__input-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.xp-roi__money-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e4e0ff;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.xp-roi__money-wrap:focus-within { border-color: #7b5cfa; }
.xp-roi__currency {
  padding: 0 12px;
  background: #f7f5ff;
  color: #7b5cfa;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 48px;
  border-right: 2px solid #e4e0ff;
  user-select: none;
}
.xp-roi__money-wrap input {
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a0a3c;
  width: 100%;
  height: 48px;
  background: transparent;
}

/* Channel sliders */
.xp-roi__channels { margin-bottom: 40px; }
.xp-roi__channels-label {
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.xp-roi__total-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: #34d399;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  transition: background .3s;
}
.xp-roi__channel {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0edff;
}
.xp-roi__channel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.xp-roi__ch-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.xp-roi__ch-name { font-weight: 600; color: #1a0a3c; font-size: .95rem; }
.xp-roi__ch-pct  { font-weight: 700; color: #7b5cfa; font-size: 1rem; min-width: 40px; text-align: right; }
.xp-roi__slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e4e0ff;
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}
.xp-roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7b5cfa;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(123,92,250,.4);
  cursor: pointer;
}
.xp-roi__slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7b5cfa;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(123,92,250,.4);
  cursor: pointer;
}
.xp-roi__ch-desc { font-size: .8rem; color: #6b7280; margin: 0; line-height: 1.5; }

/* Results */
.xp-roi__results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.xp-roi__result-card {
  background: #f7f5ff;
  border: 2px solid #e4e0ff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xp-roi__result-card--accent {
  background: linear-gradient(135deg, #7b5cfa, #a855f7);
  border-color: transparent;
}
.xp-roi__result-card--accent .xp-roi__result-label,
.xp-roi__result-card--accent .xp-roi__result-value { color: #fff; }
.xp-roi__result-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.xp-roi__result-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a0a3c;
  line-height: 1.2;
}
.xp-roi__rev-grid {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 8px;
}
.xp-roi__rev-yr {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.xp-roi__rev-yr em {
  font-style: normal;
  font-size: .65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.xp-roi__rev-yr span {
  font-size: .92rem;
  font-weight: 700;
  color: #4c3a9e;
  white-space: nowrap;
}
.xp-roi__rev-yr--primary { flex: 0 0 auto; }
.xp-roi__rev-yr--primary em { color: #7b5cfa; font-size: .72rem; }
.xp-roi__rev-yr--primary span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a0a3c;
  line-height: 1.1;
}
.xp-roi__rev-arrow {
  flex-shrink: 0;
  color: #c4b5fd;
  font-size: .9rem;
  line-height: 1;
  padding-bottom: 3px;
  user-select: none;
}

/* Chart */
.xp-roi__chart-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  margin-bottom: 32px;
}
#roi-chart { max-width: 220px; max-height: 220px; }
.xp-roi__chart-legend { display: flex; flex-direction: column; gap: 10px; }
.xp-roi__leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: #3d3d3d;
}
.xp-roi__leg-item span {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Disclaimer */
.xp-roi__disclaimer {
  text-align: center;
  font-size: .78rem;
  color: #9ca3af;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Report section */
.xp-report-header-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 8px;
}
.xp-report-content { color: #e5e0ff; }
.xp-report-content h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.xp-report-lead { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 20px; }
.xp-report-focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.xp-report-focus-list li {
  color: rgba(255,255,255,.85);
  padding-left: 20px;
  position: relative;
  font-size: .9rem;
}
.xp-report-focus-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-weight: 700;
}
.xp-report-value { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.xp-report-value strong { color: #fff; }

/* Report form card */
.xp-report-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 48px rgba(0,0,0,.25);
}
.xp-report-form-card h3 {
  color: #1a0a3c;
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.xp-report-form-card > p { color: #6b7280; font-size: .9rem; margin: 0 0 24px; }
.xp-report-form__field { margin-bottom: 18px; }
.xp-report-form__field label,
.xp-report-form__field legend {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 8px;
}
.xp-report-form__field fieldset { border: none; padding: 0; margin: 0; }
.xp-report-form__field input[type="email"],
.xp-report-form__field input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e4e0ff;
  border-radius: 8px;
  font-size: .95rem;
  color: #1a0a3c;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.xp-report-form__field input[type="email"]:focus,
.xp-report-form__field input[type="url"]:focus { border-color: #7b5cfa; }
.xp-report-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.xp-report-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #3d3d3d;
  font-weight: 400;
  cursor: pointer;
}
.xp-report-checks input[type="checkbox"] {
  accent-color: #7b5cfa;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.xp-report-submit {
  width: 100%;
  padding: 14px;
  background: #7b5cfa;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.xp-report-submit:hover { background: #6a4de8; }
.xp-report-submit:disabled { background: #a78bfa; cursor: not-allowed; }
.xp-report-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 12px;
}
.xp-report-status--ok  { background: #d1fae5; color: #065f46; }
.xp-report-status--err { background: #fee2e2; color: #991b1b; }

/* Tool logos strip */
.xp-tools-logos__label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-bottom: 20px;
}
.xp-tools-logos__strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.xp-tools-logos__strip img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: opacity .2s, filter .2s;
}
.xp-tools-logos__strip img:hover { filter: grayscale(0); opacity: 1; }

/* Video wrap */
.xp-report-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.12);
}
.xp-report-video-wrap video { display: block; width: 100%; height: auto; }

/* Insight bar */
.xp-roi__insight-bar {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  background: #f7f5ff;
  min-height: 46px;
  transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 880px) {
  .xp-roi { padding: 32px 24px; }
  .xp-roi__inputs { grid-template-columns: 1fr; }
  .xp-roi__results { grid-template-columns: 1fr; }
  .xp-roi__chart-wrap { flex-direction: column; gap: 24px; }
  .xp-report-focus-list { grid-template-columns: 1fr; }
  .xp-report-checks { grid-template-columns: 1fr; }
}
