.scv-ats-card {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.scv-ats-header {
  margin-bottom: 1rem;
}

.scv-ats-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.scv-ats-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.scv-ats-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scv-ats-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scv-ats-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.scv-ats-textarea,
.scv-ats-input {
  border-radius: 0.75rem;
  border: 1px solid #cbd5f5;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scv-ats-textarea:focus,
.scv-ats-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.15);
}

.scv-ats-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
}

.scv-ats-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

.scv-ats-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.scv-ats-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

.scv-ats-btn-primary:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.scv-ats-btn-secondary {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.scv-ats-btn-secondary:hover {
  background: #e2e8f0;
}

.scv-ats-btn-loader {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.7);
  border-top-color: #0f172a;
  animation: scv-ats-spin 0.6s linear infinite;
}

@keyframes scv-ats-spin {
  to {
    transform: rotate(360deg);
  }
}

.scv-ats-security-note {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.scv-ats-error {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

/* Result section */

.scv-ats-result {
  margin-top: 1.5rem;
  border-top: 1px dashed #e2e8f0;
  padding-top: 1.25rem;
}

.scv-ats-score-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.scv-ats-score-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.scv-ats-score-circle {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.1rem;
}

.scv-ats-score-value {
  font-size: 1.4rem;
  margin-inline-end: 0.15rem;
}

.scv-ats-score-unit {
  font-size: 0.8rem;
  opacity: 0.8;
}

.scv-ats-score-label {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.scv-ats-columns {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .scv-ats-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scv-ats-column-title {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.scv-ats-list {
  list-style: disc;
  padding-inline-start: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scv-ats-list li {
  font-size: 0.9rem;
  color: #475569;
}

.scv-ats-ctas {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scv-ats-cta-main {
  flex-grow: 1;
  text-align: center;
}

.scv-ats-mock-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #f97316;
}

/* RTL tweaks */
html[dir="rtl"] .scv-ats-card {
  direction: rtl;
}