* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html, body { width: 100%; background: #f7f8fa; }

.tool-header {
  background: linear-gradient(135deg, #0f2e1a 0%, #146c3a 50%, #1fa855 100%);
  padding: 24px 20px 60px;
  position: relative;
  overflow: hidden;
}
.tool-header::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.tool-header-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.tool-header-title { color: white; font-size: 17px; font-weight: 700; }
.tool-header-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  margin-top: 10px;
  margin-left: 50px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.tool-body {
  max-width: 480px;
  margin: -36px auto 0;
  padding: 0 16px 50px;
  position: relative;
  z-index: 2;
}

.tool-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(15, 46, 26, 0.08);
  border: 1px solid #f0f2f0;
}

.tool-card-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eafcf1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tool-card-label { font-size: 14.5px; font-weight: 700; color: #0d1b12; }
.tool-card-sub { font-size: 12px; color: #8a8f8a; line-height: 1.6; margin-bottom: 14px; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #22c55e22, #16a34a22);
  color: #16a34a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tool-search-row { display: flex; gap: 8px; }
.tool-search-row input {
  flex: 1;
  border: 1.5px solid #eef1ef;
  background: #fafbfa;
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.tool-search-row input:focus { border-color: #22c55e; background: white; }

.tool-search-btn {
  width: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #0f9448);
  color: white;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.tool-input-label { display: block; font-size: 11px; color: #9a9f9a; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; margin: 14px 0 6px; }
.tool-input-label:first-of-type { margin-top: 0; }

.tool-card input[type="text"], .tool-card select, .tool-card textarea {
  width: 100%;
  border: 1.5px solid #eef1ef;
  background: #fafbfa;
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  color: #111;
  transition: border-color 0.15s ease;
}
.tool-card input[type="text"]:focus, .tool-card select:focus, .tool-card textarea:focus { border-color: #22c55e; background: white; }
.tool-card textarea { resize: vertical; margin-bottom: 14px; line-height: 1.6; }

.tool-primary-btn {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #0f9448);
  color: white;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(34,197,94,0.25);
}
.tool-primary-btn:active { transform: scale(0.98); }

.tool-outline-btn {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  background: white;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.social-card { background: linear-gradient(135deg, #f0fdf4, #eafcf1); border: 1px solid #d5f4e0; }

.result-item {
  background: #fafbfa;
  border: 1px solid #f0f2f0;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 10px;
}
.result-title { font-size: 13.5px; font-weight: 700; color: #0d1b12; margin-bottom: 4px; }
.result-meta { font-size: 11.5px; color: #9a9f9a; margin-bottom: 12px; }
.result-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.result-btn-row > * { flex: 1; min-width: 90px; }

.result-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #22c55e, #0f9448);
  color: white;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.result-call-btn {
  padding: 10px 16px;
  border-radius: 11px;
  background: white;
  border: 1.5px solid #22c55e;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.no-results { font-size: 12.5px; color: #9a9f9a; text-align: center; padding: 20px 0; }

.apply-steps { list-style: none; counter-reset: step; }
.apply-steps li {
  counter-increment: step;
  font-size: 12.5px;
  color: #444;
  line-height: 1.6;
  padding: 8px 0 8px 34px;
  position: relative;
  border-bottom: 1px solid #f4f5f4;
}
.apply-steps li:last-child { border-bottom: none; }
.apply-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 22px;
  background: #eafcf1;
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interview-list { list-style: none; }
.interview-list li {
  font-size: 12.5px;
  color: #444;
  line-height: 1.5;
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid #f4f5f4;
}
.interview-list li:last-child { border-bottom: none; }
.interview-list li::before {
  content: '🎤';
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 12px;
}

.resume-score-box {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4, #eafcf1);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.resume-score-num { display: block; font-size: 30px; font-weight: 800; color: #16a34a; }
.resume-score-label { font-size: 11px; color: #8a8f8a; font-weight: 600; }

.resume-section-title { font-size: 12.5px; font-weight: 700; color: #111; margin-bottom: 8px; margin-top: 14px; }
.resume-list { padding-left: 18px; margin-bottom: 4px; }
.resume-list li { font-size: 12.5px; line-height: 1.8; }
.resume-list.good li { color: #16a34a; }
.resume-list.tips li { color: #b45309; }
.resume-list.mistakes li { color: #dc2626; }
.resume-perfect { font-size: 13px; color: #16a34a; font-weight: 600; text-align: center; padding: 12px 0; }

.extracted-box {
  background: linear-gradient(135deg, #f0fdf4, #eafcf1);
  border: 1px solid #d5f4e0;
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.extracted-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #d5f4e0;
  font-size: 12.5px;
}
.extracted-row:last-child { border-bottom: none; }
.extracted-row span { color: #5a6b5f; }
.extracted-row b { color: #0d1b12; font-weight: 700; text-align: right; }
.extracted-row a { color: #16a34a; text-decoration: none; }

.extracted-note {
  font-size: 11px;
  color: #9a9f9a;
  margin-top: 12px;
  line-height: 1.5;
}

.result-msg-btn {
  padding: 10px;
  border-radius: 11px;
  background: #25D366;
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.usage-badge {
  text-align: center;
  font-size: 11px;
  color: #b45309;
  background: #fef3c7;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tool-or {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin: 4px 0 12px;
}

.ocr-status-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eafcf1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}

.ocr-spinner-inline {
  width: 15px;
  height: 15px;
  border: 2.5px solid #d1fae5;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: toolSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes toolSpin { to { transform: rotate(360deg); } }


/* Premium result pagination */
.tool-outline-btn {
  margin-top: 6px;
  background: linear-gradient(180deg, #ffffff, #f7fcf8);
  box-shadow: 0 4px 14px rgba(22,163,74,0.10);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tool-outline-btn:hover {
  background: #f0fdf4;
  box-shadow: 0 6px 18px rgba(22,163,74,0.14);
}
.tool-outline-btn:active { transform: scale(.98); }
