/* ROI Calculator CSS */
.roi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.roi-modal-content {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(16, 185, 129, 0.1);
  position: relative;
  background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 40%);
}

.roi-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-muted);
}
.roi-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .roi-grid { grid-template-columns: 1fr; }
}

.roi-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sliders */
.roi-slider-group {
  margin-bottom: 24px;
}
.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.roi-slider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.roi-slider-value {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--border);
}
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--emerald);
  transition: transform 0.1s;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Presets */
.roi-presets {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.roi-preset-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.roi-preset-btn:hover, .roi-preset-btn.active {
  background: var(--emerald-glow);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Result Cards */
.roi-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-result-card {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.roi-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.roi-result-card.primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(10, 12, 18, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}
.roi-result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.roi-result-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.roi-result-card.primary .roi-result-value {
  color: var(--emerald);
  font-size: 28px;
}

.roi-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
