/* ATS Scanner Page */
.ats-hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #001B3A 0%, #0a2d5c 45%, #1a4a8a 100%);
}
.ats-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.ats-hero__orb--1 { width: 400px; height: 400px; top: -80px; left: -60px; background: rgba(201,168,76,.1); }
.ats-hero__orb--2 { width: 350px; height: 350px; bottom: -80px; right: -40px; background: rgba(201,168,76,.08); }
.ats-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.ats-hero__text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
}
.ats-hero__text p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.ats-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.ats-hero__badges span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(74,114,255,.35);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 50px;
}
.ats-hero__inner--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: left;
}
.ats-preview-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}
.ats-preview-card__ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}
.ats-preview-card__ring svg { width: 100%; height: 100%; }
.ats-preview-card__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #E8C96A;
}
.ats-preview-card__num span { font-size: .9rem; color: rgba(255,255,255,.4); }
.ats-preview-card__label { color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: 1.25rem; }
.ats-preview-card__bars { text-align: left; display: flex; flex-direction: column; gap: .65rem; }
.ats-preview-card__bars > div span { display: block; color: rgba(255,255,255,.55); font-size: .75rem; margin-bottom: .25rem; }
.ats-preview-card__bars .bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.ats-preview-card__bars .bar > div { height: 100%; background: linear-gradient(90deg, #C9A84C, #E8C96A); border-radius: 3px; }

.ats-scanner { background: var(--ivory); padding-top: 3rem; }
.ats-upload-card {
  background: #fff;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.ats-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  background: var(--ivory);
  padding: .35rem;
  border-radius: .75rem;
}
.ats-tab {
  flex: 1;
  padding: .65rem 1rem;
  border: none;
  background: transparent;
  border-radius: .55rem;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .25s;
}
.ats-tab--active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ats-panel { display: none; }
.ats-panel--active { display: block; }

.ats-dropzone {
  border: 2px dashed rgba(201,168,76,.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
}
.ats-dropzone:hover, .ats-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(201,168,76,.04);
}
.ats-dropzone__title { font-weight: 800; color: var(--text); margin: 1rem 0 .35rem; }
.ats-dropzone__sub { color: var(--text-muted); font-size: .9rem; }
.ats-dropzone__browse {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
}
.ats-dropzone__formats { color: var(--text-muted); font-size: .78rem; margin-top: .75rem; }
.ats-dropzone__filename { color: var(--gold-dark); font-weight: 700; font-size: .85rem; margin-top: .75rem; }

.ats-textarea {
  width: 100%;
  min-height: 220px;
  padding: 1.25rem;
  border: 1.5px solid rgba(201,168,76,.22);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--ivory);
  color: var(--text);
}
.ats-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }

.ats-scan-btn { margin-top: 1.25rem; border-radius: .85rem !important; }
.ats-privacy { text-align: center; color: var(--text-muted); font-size: .75rem; margin-top: .85rem; }

.ats-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.ats-loading__spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201,168,76,.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 0 auto 1rem;
}
.ats-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: #B91C1C;
  margin-bottom: 2rem;
}

.ats-results {
  background: #fff;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.ats-results__header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.ats-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.ats-score-ring svg { width: 100%; height: 100%; }
.ats-score-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-dark);
}
.ats-results__summary h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: .5rem; }
.ats-results__summary p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: .75rem; }
.ats-grade {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ats-grade--excellent { background: #DCFCE7; color: #15803D; }
.ats-grade--good { background: #FEF9C3; color: #A16207; }
.ats-grade--fair { background: #FFEDD5; color: #C2410C; }
.ats-grade--poor { background: #FEE2E2; color: #B91C1C; }

.ats-criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.ats-criterion {
  background: var(--ivory);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.ats-criterion__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.ats-criterion__top strong { font-size: .82rem; font-weight: 700; }
.ats-criterion__score { font-size: .82rem; font-weight: 900; color: var(--gold-dark); }
.ats-criterion__bar {
  height: 6px;
  background: rgba(201,168,76,.12);
  border-radius: 3px;
  overflow: hidden;
}
.ats-criterion__bar > div { height: 100%; border-radius: 3px; transition: width .6s ease; }
.ats-criterion__bar--high > div { background: #22C55E; }
.ats-criterion__bar--mid > div { background: #F59E0B; }
.ats-criterion__bar--low > div { background: #EF4444; }
.ats-criterion__tip { font-size: .72rem; color: var(--text-muted); margin-top: .4rem; line-height: 1.4; }

.ats-tips {
  background: linear-gradient(135deg, #1A1A2E, #0D0D1A);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.ats-tips h3 { color: #E8C96A; font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.ats-tips ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.ats-tips li {
  color: rgba(255,255,255,.75);
  font-size: .86rem;
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}
.ats-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-weight: 700;
}

.ats-cta {
  text-align: center;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.ats-cta h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: .5rem; }
.ats-cta p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.ats-cta__btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.ats-rescan { display: block; margin: 0 auto; }

.ats-how { background: #fff; }
.ats-how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ats-how__card {
  background: var(--ivory);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.ats-how__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(201,168,76,.25);
  line-height: 1;
  margin-bottom: .75rem;
}
.ats-how__card h3 { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.ats-how__card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 1024px) {
  .ats-hero__inner { grid-template-columns: 1fr; }
  .ats-hero__score-preview { display: none; }
  .ats-how__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ats-criteria { grid-template-columns: 1fr; }
  .ats-how__grid { grid-template-columns: 1fr; }
  .ats-results__header { flex-direction: column; text-align: center; }
}
