/* ── Energy Arc Planner ────────────────────── */
.arc-planner-container {
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  margin-left: 40px; /* Room for Y-axis labels */
  position: relative;
}

.arc-svg-wrapper {
  width: 100%;
  height: 150px;
  position: relative;
  cursor: crosshair;
  background: linear-gradient(to bottom, rgba(0,229,255,0.05), transparent);
  border-bottom: 2px solid var(--mid);
  overflow: visible; /* Allow handles at edges to be seen */
}

.arc-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.arc-path {
  fill: none;
  stroke: var(--electric);
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--electric));
}

.arc-handle {
  fill: var(--void);
  stroke: var(--electric);
  stroke-width: 2;
  cursor: grab;
  transition: r 0.1s;
}

.arc-handle:hover { r: 8; fill: var(--electric); }
.arc-handle:active { cursor: grabbing; }

.arc-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.arc-y-axis {
  position: absolute;
  left: -45px; /* Moved slightly further left */
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
  padding-right: 8px;
  pointer-events: none;
}

/* ── Suggested Crate Cards ────────────────── */
.crate-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.crate-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.crate-card-header {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.crate-card-header h3 { font-size: 14px; margin-bottom: 4px; color: var(--electric); }
.crate-card-header p { font-size: 12px; color: var(--muted); }

.crate-track-list {
  padding: 8px;
  flex: 1;
}

.crate-track-item {
  padding: 10px 12px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.crate-track-item:hover { background: rgba(0,229,255,0.05); }

.crate-track-item .title { font-weight: 600; font-size: 13px; color: var(--ice); }
.crate-track-item .artist { font-size: 11px; color: var(--muted); }
.crate-track-item .energy-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--mid);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--white);
}
