:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #7c3aed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}

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

h1 { margin: 0; font-size: 26px; }
.accent { color: var(--accent); }
h2 { margin: 0 0 10px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.controls { display: flex; gap: 10px; }

.btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn.armed { background: #16a34a; border-color: #16a34a; }
.btn:disabled { opacity: 0.5; cursor: default; }

.stats { display: flex; gap: 16px; margin-bottom: 20px; }
.stat {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 22px; margin-top: 4px; }

.status { font-size: 13px; }
.status-idle { color: var(--muted); }
.status-running { color: #60a5fa; }
.status-waiting_captcha { color: #fbbf24; }
.status-done { color: #34d399; }
.status-error { color: #f87171; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.plan-summary { margin-bottom: 12px; color: var(--text); }

.wallet {
  font-size: 13px;
  color: #34d399;
  word-break: break-all;
}

.muted { color: var(--muted); }

.profile-name { font-size: 16px; font-weight: 600; }
.profile-handle { color: var(--accent); font-weight: 400; }
.profile-bio { color: var(--muted); margin-top: 4px; }
.profile-interests { margin-top: 8px; }
.tag {
  display: inline-block;
  background: #1f2733;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #1f2733;
  font-size: 13px;
}
.account-platform { text-transform: uppercase; font-size: 11px; color: #60a5fa; flex-shrink: 0; width: 110px; }
.account-username { flex: 1; word-break: break-all; }
.account-secret { font-family: ui-monospace, monospace; word-break: break-all; }
.reveal-btn { padding: 2px 8px; font-size: 11px; }

.post {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #1f2733;
  font-size: 13px;
  flex-wrap: wrap;
}
.post-platform { color: #f472b6; text-transform: lowercase; flex-shrink: 0; }
.post-title { flex: 1; min-width: 160px; }
.post-link { color: #60a5fa; text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.post-status { color: var(--muted); font-size: 11px; }
.post-posted .post-status { color: #34d399; }
.post-failed .post-status { color: #f87171; }
.post-time { font-size: 11px; }

.payout-method {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #1f2733;
  font-size: 13px;
}
.payout-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.payout-method.available .payout-dot { background: #34d399; }
.payout-method.unavailable .payout-dot { background: #6b7280; }
.payout-name { text-transform: uppercase; font-size: 11px; color: var(--text); width: 90px; flex-shrink: 0; }
.payout-method.unavailable .payout-name { color: var(--muted); }
.payout-note { flex: 1; word-break: break-word; }

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.login-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  width: 320px;
  text-align: center;
}
.login-box h1 { margin-bottom: 8px; }
.login-box input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  margin: 16px 0;
  font-family: inherit;
}
.login-box .btn { width: 100%; }
.login-error { color: #f87171; font-size: 13px; margin-top: 12px; min-height: 16px; }

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #1f2733;
}
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.step-active .step-dot { background: #60a5fa; }
.step-done .step-dot { background: #34d399; }
.step-failed .step-dot { background: #f87171; }
.step-skipped .step-dot { background: #6b7280; }
.step-title { flex: 1; }
.step-note { color: var(--muted); font-size: 12px; }
.step-income { color: #34d399; font-size: 12px; }

.log {
  max-height: 420px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.log-line { display: flex; gap: 10px; padding: 1px 0; }
.log-time { color: #4b5563; flex-shrink: 0; }

.captcha-panel img { max-width: 100%; border-radius: 6px; margin-bottom: 10px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
}
