* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 32px 20px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 32px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

label {
  display: block;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="url"] {
  flex: 1;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

input[type="url"]:focus {
  border-color: #4a9eff;
}

button {
  padding: 12px 24px;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #3a8eef;
}

button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

#site-info {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

#site-info .site-name {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}

#site-info .site-detail {
  color: #888;
  margin-top: 4px;
}

#variant-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.variant-option:hover {
  border-color: #555;
}

.variant-option.selected {
  border-color: #4a9eff;
  background: #1a2a3a;
}

.variant-option input[type="radio"] {
  accent-color: #4a9eff;
}

.variant-option label {
  margin: 0;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #4a9eff;
  border-radius: 4px;
  transition: width 0.3s;
}

#status-message {
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}

#progress-text {
  font-size: 13px;
  color: #888;
}

#complete-message {
  font-size: 16px;
  color: #4aef7a;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-block;
  padding: 14px 32px;
  background: #4aef7a;
  color: #000;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}

.error {
  color: #ef4a4a;
  font-size: 15px;
  margin-bottom: 16px;
}

#reset-btn, #error-reset-btn {
  background: #333;
  color: #aaa;
}

#download-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 4px;
}

.scan-log {
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #6a6;
  background: #0a0f0a;
  border: 1px solid #1a2a1a;
  border-radius: 8px;
  padding: 12px;
  display: none;
}

.scan-log.active {
  display: block;
}

.scan-log .log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-log .log-line::before {
  content: '› ';
  color: #4a9eff;
}
