.scraper-page {
  padding: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.scraper-header {
  margin-bottom: 16px;
}

.scraper-title {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.scraper-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.url-input {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.url-input:focus {
  border-color: var(--neon-cyan);
}

.submit-btn {
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}

.submit-btn:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-banner {
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}

.job-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--bg-border);
  background: var(--bg-card);
}

.job-badge {
  font-weight: bold;
  letter-spacing: 0.08em;
}

.job-status--pending .job-badge,
.job-status--running .job-badge { color: #ffaa00; }
.job-status--done .job-badge { color: var(--neon-green); }
.job-status--failed .job-badge { color: var(--neon-red); }

.error-card {
  background: rgba(255, 68, 102, 0.08);
  border: 1px solid var(--neon-red);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
}

.error-card-title {
  color: var(--neon-red);
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.error-detail {
  color: var(--text-muted);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 14px;
}

.price-card-title {
  color: var(--neon-cyan);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.price-card-url {
  color: var(--text-muted);
  font-size: 10px;
  margin-bottom: 10px;
  word-break: break-all;
}

.price-entries {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.price-entry {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--bg-border);
}

.price-key { color: var(--text-muted); }
.price-val { color: var(--neon-green); }

.no-price { color: var(--text-muted); font-size: 12px; }

.price-time {
  color: var(--text-muted);
  font-size: 10px;
}

.history-section {
  margin-top: 20px;
}

.section-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: border-color 0.2s;
}

.history-item:hover { border-color: var(--neon-cyan); }

.history-id { color: var(--neon-cyan); }
.history-time { color: var(--text-muted); text-align: right; }

.history-item--done .history-status { color: var(--neon-green); }
.history-item--failed .history-status { color: var(--neon-red); }
.history-item--running .history-status,
.history-item--pending .history-status { color: #ffaa00; }
