/* Results panel — matches app calculator simple/complete view */
.results-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.results-panel h3.panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.r-hero {
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.r-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.r-hero-price {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: -0.02em;
}

.r-hero-sub {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
}

.r-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.r-stat {
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.5);
}

.r-stat.profit {
  border-color: #d1fae5;
  background: rgba(236, 253, 245, 0.5);
}

.r-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}

.r-stat.profit .r-stat-label { color: #059669; }

.r-stat-value {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.r-stat.profit .r-stat-value { color: #047857; }

.r-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.r-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.r-breakdown h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.r-bar {
  display: flex;
  height: 0.75rem;
  width: 100%;
  border-radius: 9999px;
  background: #f1f5f9;
  overflow: hidden;
}

.r-bar-seg { height: 100%; transition: width 0.3s; }
.r-bar-blue { background: #3b82f6; }
.r-bar-green { background: #10b981; }
.r-bar-amber { background: #f59e0b; }
.r-bar-purple { background: #a855f7; }
.r-bar-gray { background: #94a3b8; }

.r-legend {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.75rem;
}

@media (min-width: 400px) {
  .r-legend { grid-template-columns: 1fr 1fr; }
}

.r-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}

.r-legend-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.r-details {
  margin-top: 1rem;
}

.r-details summary {
  cursor: pointer;
  list-style: none;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem;
}

.r-details summary::-webkit-details-marker { display: none; }

.r-details-body {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  background: #f8fafc;
  font-size: 0.875rem;
}

.r-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.r-detail-row strong { color: #0f172a; }
.r-detail-row.final {
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  border-bottom: none;
}

.upsell-banner {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  padding: 1.25rem 1.5rem;
}

.upsell-banner h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 0.5rem;
}

.upsell-banner p {
  font-size: 0.875rem;
  color: #c2410c;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-upsell-primary {
  display: inline-block;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f26419, #ff8c42);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(242, 100, 25, 0.25);
}

.btn-upsell-secondary {
  display: inline-block;
  border-radius: 0.75rem;
  border: 1px solid #fdba74;
  background: #fff;
  color: #c2410c;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
}
