/* ============================================================
   FINAIVO — ROI SIMULATOR
   roi.css | v1.0
   ============================================================ */

/* ---------- OVERLAY ---------- */
.roi-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.roi-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- DIALOG ---------- */
.roi-dialog {
  background: #07090f;
  border: 1px solid rgba(99, 179, 237, 0.18);
  border-radius: 22px;
  width: 100%;
  max-width: 700px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(99, 179, 237, 0.06),
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(99, 179, 237, 0.05);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.roi-overlay.active .roi-dialog {
  transform: translateY(0) scale(1);
}

/* ---------- HEADER ---------- */
.roi-header {
  padding: 22px 28px 0;
  background: linear-gradient(180deg, rgba(99, 179, 237, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid rgba(99, 179, 237, 0.08);
  flex-shrink: 0;
}
.roi-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.roi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.roi-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4299e1, #3182ce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.roi-brand-text {
  font-size: 11px;
  font-weight: 700;
  color: #63b3ed;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.roi-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.roi-close:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- STEPS PROGRESS ---------- */
.roi-steps-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.roi-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.roi-step-item-expand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.roi-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.roi-step-circle.active {
  border-color: #63b3ed;
  background: rgba(99, 179, 237, 0.12);
  color: #63b3ed;
  box-shadow: 0 0 14px rgba(99, 179, 237, 0.25);
}
.roi-step-circle.done {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.12);
  color: #48bb78;
}
.roi-step-circle.result-step {
  border-color: rgba(237, 179, 99, 0.4);
  color: rgba(237, 179, 99, 0.4);
  font-size: 13px;
}
.roi-step-circle.result-step.active {
  border-color: #edb363;
  background: rgba(237, 179, 99, 0.12);
  color: #edb363;
  box-shadow: 0 0 14px rgba(237, 179, 99, 0.25);
}
.roi-step-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.roi-step-label.active { color: #63b3ed; }
.roi-step-label.done { color: rgba(72, 187, 120, 0.7); }
.roi-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 6px;
  transition: background 0.4s;
}
.roi-step-line.done { background: rgba(72, 187, 120, 0.35); }
.roi-progress-bar-wrap {
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}
.roi-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #48bb78);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- BODY ---------- */
.roi-body {
  padding: 26px 28px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 179, 237, 0.2) transparent;
}
.roi-body::-webkit-scrollbar { width: 4px; }
.roi-body::-webkit-scrollbar-track { background: transparent; }
.roi-body::-webkit-scrollbar-thumb {
  background: rgba(99, 179, 237, 0.2);
  border-radius: 2px;
}

/* ---------- STEP PANELS ---------- */
.roi-step-panel { display: none; }
.roi-step-panel.active { display: block; }

.roi-step-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.3px;
}
.roi-step-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 26px;
  line-height: 1.65;
}

/* ---------- FIELD GRID ---------- */
.roi-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.roi-field-full { grid-column: 1 / -1; }
.roi-field { display: flex; flex-direction: column; gap: 7px; }

/* ---------- LABELS ---------- */
.roi-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roi-label-hint {
  font-size: 9px;
  font-weight: 500;
  color: rgba(99, 179, 237, 0.5);
  text-transform: none;
  letter-spacing: 0;
  background: rgba(99, 179, 237, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- INPUTS ---------- */
.roi-input,
.roi-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 11px 14px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
.roi-input:hover,
.roi-select:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
.roi-input:focus,
.roi-select:focus {
  border-color: rgba(99, 179, 237, 0.45);
  background: rgba(99, 179, 237, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.08);
}
.roi-input::placeholder { color: rgba(255, 255, 255, 0.18); }
.roi-select option { background: #0d1117; color: #fff; }

/* ---------- INPUT GROUP (prefix/suffix) ---------- */
.roi-input-group { position: relative; }
.roi-prefix,
.roi-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.roi-prefix { left: 13px; }
.roi-suffix { right: 13px; }
.roi-input-group .roi-input.has-prefix { padding-left: 28px; }
.roi-input-group .roi-input.has-suffix { padding-right: 36px; }

/* ---------- SEGMENT BUTTONS ---------- */
.roi-segment {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.roi-seg-btn {
  flex: 1;
  min-width: 70px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}
.roi-seg-btn:hover {
  border-color: rgba(99, 179, 237, 0.35);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(99, 179, 237, 0.05);
}
.roi-seg-btn.selected {
  border-color: #4299e1;
  background: rgba(66, 153, 225, 0.12);
  color: #63b3ed;
  font-weight: 600;
}

/* ---------- SLIDER ---------- */
.roi-slider-wrap { display: flex; flex-direction: column; gap: 10px; }
.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.roi-slider-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.roi-slider-val {
  font-size: 13px;
  font-weight: 700;
  color: #63b3ed;
  background: rgba(99, 179, 237, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.roi-slider:hover { background: rgba(255, 255, 255, 0.12); }
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4299e1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
  transition: transform 0.15s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4299e1;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
}

/* ---------- INFO BOX ---------- */
.roi-info-box {
  background: rgba(99, 179, 237, 0.05);
  border: 1px solid rgba(99, 179, 237, 0.12);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.65;
  margin-top: 18px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.roi-info-icon {
  color: rgba(99, 179, 237, 0.5);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}

/* ---------- DIVIDER ---------- */
.roi-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0;
}

/* ============================================================
   RESULT PANEL
   ============================================================ */
.roi-result-panel { display: none; }
.roi-result-panel.active { display: block; }

/* --- Calculating Animation --- */
.roi-calculating {
  text-align: center;
  padding: 40px 20px;
}
.roi-calc-brain {
  font-size: 36px;
  margin-bottom: 18px;
  animation: roi-pulse 1.2s ease-in-out infinite;
}
@keyframes roi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}
.roi-calc-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.roi-calc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.roi-calc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4299e1;
  animation: roi-dot-bounce 1.2s ease-in-out infinite;
}
.roi-calc-dot:nth-child(2) { animation-delay: 0.2s; }
.roi-calc-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes roi-dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-8px); opacity: 1; }
}

/* --- Pain Phase --- */
.roi-pain-header {
  text-align: center;
  padding: 10px 0 20px;
}
.roi-pain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fc8181;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.roi-pain-title {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.roi-pain-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin: 6px 0 0;
}

.roi-pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.roi-pain-card {
  background: rgba(229, 62, 62, 0.05);
  border: 1px solid rgba(229, 62, 62, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  transition: all 0.3s;
}
.roi-pain-card:hover {
  border-color: rgba(229, 62, 62, 0.3);
  background: rgba(229, 62, 62, 0.08);
}
.roi-pain-card-icon {
  font-size: 18px;
  margin-bottom: 6px;
}
.roi-pain-card-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.roi-pain-card-value {
  font-size: 22px;
  font-weight: 800;
  color: #fc8181;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}
.roi-pain-card-sub {
  font-size: 10px;
  color: rgba(252, 129, 129, 0.5);
  margin-top: 3px;
}

.roi-pain-message {
  background: rgba(229, 62, 62, 0.06);
  border-left: 3px solid rgba(229, 62, 62, 0.5);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin: 14px 0;
}
.roi-pain-message strong { color: #fc8181; font-weight: 600; }

/* --- Transition Arrow --- */
.roi-transition {
  text-align: center;
  padding: 16px 0;
  position: relative;
}
.roi-transition-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin-bottom: 16px;
}
.roi-transition-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 30, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.roi-transition-arrow {
  font-size: 16px;
  color: #4299e1;
  animation: roi-arrow-bounce 1.5s ease-in-out infinite;
}
@keyframes roi-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- Gain Phase --- */
.roi-gain-header {
  text-align: center;
  padding: 6px 0 18px;
}
.roi-gain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #68d391;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.roi-gain-title {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.roi-gain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.roi-gain-card {
  background: rgba(72, 187, 120, 0.05);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  transition: all 0.3s;
}
.roi-gain-card:hover {
  border-color: rgba(72, 187, 120, 0.3);
  background: rgba(72, 187, 120, 0.08);
}
.roi-gain-card-icon { font-size: 18px; margin-bottom: 6px; }
.roi-gain-card-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.roi-gain-card-value {
  font-size: 22px;
  font-weight: 800;
  color: #68d391;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}
.roi-gain-card-sub {
  font-size: 10px;
  color: rgba(104, 211, 145, 0.5);
  margin-top: 3px;
}

/* --- ROI Score Gauge --- */
.roi-score-wrap {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.07), rgba(72, 187, 120, 0.07));
  border: 1px solid rgba(99, 179, 237, 0.15);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  margin: 14px 0;
  position: relative;
  overflow: hidden;
}
.roi-score-wrap::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(99,179,237,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.roi-score-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.roi-score-number {
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, #63b3ed, #68d391);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 4px;
}
.roi-score-unit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

/* Gauge Bar */
.roi-gauge-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 10px 6px;
}
.roi-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #fc8181, #f6ad55, #68d391);
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.roi-gauge-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
}

/* Competitor Warning */
.roi-competitor-bar {
  background: rgba(237, 179, 99, 0.06);
  border: 1px solid rgba(237, 179, 99, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.roi-competitor-icon { font-size: 20px; flex-shrink: 0; }
.roi-competitor-text { font-size: 12px; color: rgba(255, 255, 255, 0.4); line-height: 1.55; }
.roi-competitor-text strong { color: #f6ad55; }

/* CTA in result */
.roi-result-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.roi-cta-primary {
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4299e1, #3182ce);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.35);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.roi-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(66, 153, 225, 0.45);
}
.roi-cta-secondary {
  padding: 12px 22px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.roi-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- FOOTER ---------- */
.roi-footer {
  padding: 14px 28px 20px;
  border-top: 1px solid rgba(99, 179, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(7, 9, 15, 0.9);
}
.roi-step-counter {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}
.roi-footer-btns { display: flex; gap: 10px; }
.roi-btn-back {
  padding: 10px 20px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.roi-btn-back:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}
.roi-btn-back:disabled {
  opacity: 0.25;
  cursor: default;
}
.roi-btn-next {
  padding: 10px 24px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4299e1, #3182ce);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 12px rgba(66, 153, 225, 0.3);
  letter-spacing: 0.2px;
}
.roi-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(66, 153, 225, 0.4);
}
.roi-btn-next.calculate-mode {
  background: linear-gradient(135deg, #48bb78, #38a169);
  box-shadow: 0 3px 12px rgba(72, 187, 120, 0.35);
}
.roi-btn-next.calculate-mode:hover {
  box-shadow: 0 5px 18px rgba(72, 187, 120, 0.45);
}

/* ---------- LANG SWITCHER (bilingual labels) ---------- */
[lang="fa"] .roi-en { display: none; }
[lang="fa"] .roi-fa { display: inline; }
[lang="en"] .roi-fa { display: none; }
[lang="en"] .roi-en { display: inline; }
.roi-fa, .roi-en { display: inline; }

/* ---------- RTL SUPPORT ---------- */
[dir="rtl"] .roi-prefix { left: auto; right: 13px; }
[dir="rtl"] .roi-suffix { right: auto; left: 13px; }
[dir="rtl"] .roi-input-group .roi-input.has-prefix { padding-left: 14px; padding-right: 28px; }
[dir="rtl"] .roi-input-group .roi-input.has-suffix { padding-right: 14px; padding-left: 36px; }
[dir="rtl"] .roi-pain-message { border-left: none; border-right: 3px solid rgba(229, 62, 62, 0.5); border-radius: 8px 0 0 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 540px) {
  .roi-field-grid { grid-template-columns: 1fr; }
  .roi-pain-grid,
  .roi-gain-grid { grid-template-columns: 1fr; }
  .roi-dialog { border-radius: 16px; max-height: 96vh; }
  .roi-header,
  .roi-body,
  .roi-footer { padding-left: 16px; padding-right: 16px; }
  .roi-step-title { font-size: 18px; }
  .roi-score-number { font-size: 40px; }
  .roi-result-cta { flex-direction: column; }
  .roi-step-label { display: none; }
}