:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 24px;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand .task { color: var(--text); }
.brand .key { color: var(--accent); }

/* Filter chips */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
}
.chip {
  flex: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Task card */
.task-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}
.task-card-top {
  display: flex;
  gap: 12px;
}
.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: #f1f5f9;
}
.task-info { flex: 1; min-width: 0; }
.task-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.task-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.category-tag {
  font-size: 12px;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.payout-badge {
  font-size: 13px;
  background: var(--success-bg);
  color: var(--success-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.open-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
}

/* Detail page */
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.back-link {
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
}
.banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef2ff;
}
.detail-title {
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0 6px;
}
.detail-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.detail-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.step-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-box {
  display: flex;
  gap: 10px;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #1e3a8a;
  margin: 20px 0;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  border: none;
}
.cta-btn:active { background: var(--accent-dark); }
.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
