/* ...existing styles... */

/* Live Price Feed Section */
.live-feed-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.feed-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
  min-height: auto;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.btn.secondary:hover {
  background: #3b82f6;
  color: white;
}

.select.small {
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  min-width: 150px;
}

.price-feed-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-feed-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  background: rgba(59, 130, 246, 0.2);
  padding: 15px 20px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-feed-data {
  max-height: 400px;
  overflow-y: auto;
}

.feed-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.feed-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feed-row.new-data {
  background: rgba(34, 197, 94, 0.1);
  animation: highlightRow 2s ease-out;
}

@keyframes highlightRow {
  0% {
    background: rgba(34, 197, 94, 0.3);
  }
  100% {
    background: rgba(255, 255, 255, 0.05);
  }
}

.feed-column {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.price-up {
  color: #22c55e;
  font-weight: 600;
}

.price-down {
  color: #ef4444;
  font-weight: 600;
}

.price-neutral {
  color: #94a3b8;
}

.opportunity-high {
  color: #22c55e;
  font-weight: 600;
}

.opportunity-medium {
  color: #f59e0b;
  font-weight: 600;
}

.opportunity-low {
  color: #94a3b8;
}

.price-statistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
}

/* Revenue Opportunities Section */
.revenue-opportunities-section {
  padding: 80px 0;
  background: #f8fafc;
}

.section-intro {
  font-size: 18px;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  line-height: 1.6;
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.opportunity-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.opportunity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.opportunity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.opportunity-icon {
  font-size: 24px;
  margin-right: 12px;
}

.opportunity-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.revenue-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.opportunity-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.opportunity-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.opportunity-status {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.opportunity-status.active .status-dot {
  background: #22c55e;
}

.opportunity-status.planning .status-dot {
  background: #f59e0b;
}

.opportunity-status.emerging .status-dot {
  background: #3b82f6;
}

.opportunity-status.active {
  color: #22c55e;
}

.opportunity-status.planning {
  color: #f59e0b;
}

.opportunity-status.emerging {
  color: #3b82f6;
}

/* Revenue Stacking Visualization */
.revenue-stacking-summary {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.revenue-stacking-summary h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e293b;
}

.stacking-chart {
  max-width: 800px;
  margin: 0 auto;
}

.stacking-bar {
  height: 60px;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.stack-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stack-segment:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  z-index: 1;
}

.stack-segment.balancing {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stack-segment.fcr {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stack-segment.congestion {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stack-segment.voltage {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stack-segment.other {
  background: linear-gradient(135deg, #64748b, #475569);
}

.stacking-total {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.stacking-total strong {
  color: #1e293b;
  font-size: 18px;
}

.stacking-total small {
  color: #64748b;
  margin-top: 8px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .price-feed-header,
  .feed-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feed-column:nth-child(n + 3) {
    display: none;
  }

  .opportunities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feed-controls {
    justify-content: center;
  }

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

  .stack-segment span {
    font-size: 12px;
  }
}
