:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 48px;
}

.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
  margin-bottom: 14px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.hero p {
  margin: 0;
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.5;
}

.resume-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.resume-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.resume-bar button {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.step-pill {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.cat-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.cat-tab {
  border: 1.5px solid var(--border);
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-tab .cat-ico {
  font-size: 22px;
  display: block;
}
.cat-tab .cat-lbl {
  font-size: 14px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
  color: #334155;
}
.cat-tab.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.cat-tab.active .cat-lbl {
  color: var(--primary-dark);
}
.result-banner.precheck {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1e3a8a;
}
.brand-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: #f8fafc;
}
.brand-item.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.brand-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.brand-item span {
  font-size: 11px;
  color: var(--muted);
}

.upload-box {
  border: 2px dashed #93c5fd;
  background: #f8fbff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
}
.upload-box:hover { background: #eff6ff; }
.upload-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 12px 0 6px;
  display: block;
}
.input-text, .select-box {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: #f8fafc;
}
.radio-card.active {
  border-color: var(--primary);
  background: #eff6ff;
}
.radio-card input { margin-top: 3px; }
.radio-card strong { display: block; font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12px; }

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}
.tag-chip.active {
  background: #dbeafe;
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  margin-top: 16px;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-success {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}
.btn-outline {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.result-banner {
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.result-banner.ok {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #14532d;
}
.result-banner.bad {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #7f1d1d;
}

.sla-bar {
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
.sla-timer {
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}

.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.wizard-dot {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
}
.wizard-dot.done { background: var(--success); }
.wizard-dot.current { background: var(--primary); }

.step-detail-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  margin: 12px 0;
}
.download-btn {
  display: block;
  text-decoration: none;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1d4ed8;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.qa-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 15px;
  margin-top: 14px;
}
.quick-q-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.quick-q {
  background: #fff;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.chat-bubble {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-line;
}
.hidden { display: none !important; }
.footer-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
}
