#ai-roi-calculator {
  --primary: #FFCC00;
  --primary-hover: #E55A2B;
  --secondary: #2C3E50;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --border: #E0E6ED;
  --bg-light: #F8F9FA;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);

  font-family: Geist,sans-serif;
  margin: 40px auto;
  padding: 0 20px;
  color: var(--text-dark);
}

.calc-container {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calc-header {
  background: #000;
  color: white;
  padding: 50px 40px;
  text-align: center;
}

.calc-header h4 {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.calc-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.calc-inputs {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 15px;
}

.calc-results {
  padding: 0 30px 30px 30px;
}

.input-section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.input-help {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-field {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.input-prefix, .input-suffix {
  color: var(--text-light);
  white-space: nowrap;
}

.input-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 5px;
  background: var(--border);
  outline: none;
  margin: 15px 0;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.input-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: -10px;
}

.slider-value {
  display: inline-block;
  background: var(--primary);
  color: black;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 10px;
}

.toggle-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.toggle-btn:hover {
  border-color: var(--primary);
}

.toggle-btn.active {
  background: var(--primary);
  color: black;
  border-color: black;
}

.results-summary {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(44,62,80,0.1));
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.roi-headline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.roi-period {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.roi-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.metric-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.metric-value.positive {
  color: var(--success);
}

.metric-value.negative {
  color: var(--danger);
}

.breakdown-section {
  margin-bottom: 30px;
}

.breakdown-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-dark);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: .75rem;
}

.breakdown-icon {
  width: 24px;
  height: 24px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.breakdown-value {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--success);
}

.chart-container {
  margin: 30px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  margin: 20px 0;
}

.chart-bar {
  flex: 1;
  max-width: 80px;
  text-align: center;
  height: 100%;
}

.bar-fill {
  background: var(--primary); {# linear-gradient(180deg, black, var(--primary)); #}
  border-radius: 10px 10px 0 0;
  min-height: 20px;
  transition: height 0.5s ease;
  position: relative;
}

.bar-value {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.bar-label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
}

.cta-section {
  background: var(--text-dark);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin-top: 30px;
}

.cta-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.cta-desc {
  margin-bottom: 20px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-btn-primary {
  background: var(--primary);
  color: white;
}

.cta-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn-secondary:hover {
  background: white;
  color: var(--text-dark);
}

.assumptions-note {
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.assumptions-toggle {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.assumptions-details {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.assumptions-details.show {
  display: block;
}

@media (max-width: 968px) {
  .calc-body {
    grid-template-columns: 1fr;
  }

  .roi-metrics {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .calc-header h4 {
    font-size: 1.2rem;
  }

  .roi-headline {
    font-size: 1.5rem;
  }

  .chart-bars {
    height: 150px;
  }
}