.tool-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.tool-head { text-align: center; margin-bottom: 20px; }
.tool-head h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); }
.tool-head p { margin: 0; color: var(--muted); font-size: 15.5px; }

.card {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.cek-fields { display: flex; flex-direction: column; gap: 14px; }
.cek-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.cek-label .req { font-weight: 600; font-size: 12px; color: var(--brand-dark); }
.cek-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: 14px;
  border: 2px dashed rgba(16, 185, 129, .45);
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.cek-drop:hover { border-color: var(--brand); background: rgba(255, 255, 255, .9); }
.cek-drop .icon { width: 26px; height: 26px; color: var(--brand-dark); }
.cek-drop strong { font-size: 14.5px; color: var(--ink); }
.cek-drop span { font-size: 12.5px; }
.cek-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.cek-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}
.cek-textarea { resize: vertical; line-height: 1.55; }

.cek-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.score-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.score-ring {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .1);
  border: 4px solid var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring strong { font-size: 30px; line-height: 1; color: var(--brand-dark); }
.score-ring span { font-size: 12px; color: var(--muted); font-weight: 700; }
.score-ring.mid { border-color: #f59e0b; background: rgba(245, 158, 11, .1); }
.score-ring.mid strong { color: #b45309; }
.score-ring.low { border-color: #e11d48; background: rgba(225, 29, 72, .08); }
.score-ring.low strong { color: #be123c; }

.score-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.score-summary p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }

.aspect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.aspect-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(15, 23, 42, .08);
}
.aspect-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.aspect-track { height: 7px; border-radius: 999px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.aspect-fill { height: 100%; border-radius: 999px; background: var(--grad); }

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fb-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(15, 23, 42, .08);
}
.fb-box h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14.5px;
}
.fb-good h3 .icon { color: var(--brand-dark); }
.fb-fix h3 .icon { color: #d97706; }
.fb-box ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #334155; }
.fb-box li + li { margin-top: 4px; }

.result-foot { margin-top: 16px; display: flex; justify-content: flex-end; }

/* ---------- Animasi Loading Scan CV ---------- */
.scan-stage {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 4px;
}
.scan-doc {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 98px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(16, 185, 129, .35);
  box-shadow: 0 12px 28px -14px rgba(16, 185, 129, .55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.scan-doc .sk {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
}
.scan-doc .sk-lg { width: 100%; }
.scan-doc .sk-md { width: 74%; }
.scan-doc .sk-sm { width: 52%; background: rgba(16, 185, 129, .28); }
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px 2px rgba(16, 185, 129, .65);
  animation: bg-scan 1.6s ease-in-out infinite;
}
@keyframes bg-scan {
  0%, 100% { top: 8px; }
  50% { top: calc(100% - 11px); }
}

.scan-info { flex: 1; min-width: 0; }
.scan-info .score-badge { display: inline-flex; align-items: center; gap: 5px; }
.scan-info .score-badge .icon { width: 13px; height: 13px; }
.scan-info h3 { margin: 4px 0 10px; font-size: 16.5px; color: var(--ink); }
.scan-info p { margin: 8px 0 0; font-size: 13px; }
.scan-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
}
.scan-bar-fill {
  height: 100%;
  width: 18%;
  border-radius: 999px;
  background: var(--grad);
  transition: width .55s ease;
}

@media (max-width: 767px) {
  .aspect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-grid { grid-template-columns: 1fr; }
  .score-head { flex-direction: column; text-align: center; }
  .scan-stage { flex-direction: column; text-align: center; }
}
