/* ================================================================
   ClearHire — SBERT + XGBoost Resume Screener
   Complete Design System v4.0
   Professional · Vibrant · Responsive · Animated
   ================================================================ */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand palette */
  --primary:       #2563EB;
  --primary-light: #3B82F6;
  --primary-dark:  #1D4ED8;
  --primary-glow:  rgba(37, 99, 235, 0.25);
  --primary-soft:  #EFF6FF;

  --accent-teal:    #0D9488;
  --accent-purple:  #7C3AED;
  --accent-cyan:    #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber:   #F59E0B;
  --accent-rose:    #F43F5E;

  /* Neutrals */
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantic */
  --success:       #10B981;
  --success-light: #D1FAE5;
  --warning:       #F59E0B;
  --warning-light: #FEF3C7;
  --error:         #EF4444;
  --error-light:   #FEE2E2;

  /* Surface */
  --bg-body:   #F8FAFC;
  --bg-card:   #FFFFFF;
  --border:    #E2E8F0;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 2px 8px -1px rgb(0 0 0 / 0.08), 0 1px 3px -1px rgb(0 0 0 / 0.05);
  --shadow:    0 8px 24px -4px rgb(0 0 0 / 0.1), 0 3px 8px -3px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 20px 40px -8px rgb(0 0 0 / 0.12), 0 8px 16px -6px rgb(0 0 0 / 0.08);

  /* Radii */
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Transitions */
  --t:        220ms ease;
  --t-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: var(--gray-800);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--t); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── Animated Mesh Background ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(37,99,235,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(16,185,129,0.045) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(124,58,237,0.03) 0%, transparent 70%),
    #F8FAFC;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent-teal)); border-radius: 99px; }

/* ── Focus ─────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── Utilities ─────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-1         { flex: 1; }
.flex-wrap      { flex-wrap: wrap; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-xs     { font-size: 0.75rem; }
.text-sm     { font-size: 0.875rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.text-2xl    { font-size: 1.5rem; }
.text-3xl    { font-size: 1.875rem; }
.text-4xl    { font-size: 2.25rem; }
.text-5xl    { font-size: 3rem; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-mono     { font-family: var(--font-mono); }

.text-primary   { color: var(--primary); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-error     { color: var(--error); }
.text-muted     { color: var(--gray-500); }
.text-gray-400  { color: var(--gray-400); }
.text-gray-500  { color: var(--gray-500); }
.text-gray-600  { color: var(--gray-600); }
.text-gray-700  { color: var(--gray-700); }
.text-gray-800  { color: var(--gray-800); }
.text-gray-900  { color: var(--gray-900); }
.text-white     { color: white; }
.text-green-600 { color: #16a34a; }
.text-yellow-600{ color: #ca8a04; }
.text-red-600   { color: #dc2626; }
.text-blue-600  { color: var(--primary); }
.text-amber-600 { color: var(--accent-amber); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-full  { width: 100%; }
.w-4 { width: 1rem; }  .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }  .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }    .h-8 { height: 2rem; }
.w-10{ width: 2.5rem; }  .h-10{ height: 2.5rem; }
.w-12{ width: 3rem; }    .h-12{ height: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }

.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12{ padding-top: 3rem; padding-bottom: 3rem; }
.py-16{ padding-top: 4rem; padding-bottom: 4rem; }

.rounded    { border-radius: var(--r); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: 99px; }

.border   { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.overflow-x-auto  { overflow-x: auto; }
.overflow-hidden  { overflow: hidden; }
.min-w-full       { min-width: 100%; }
.whitespace-nowrap{ white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-screen-lg { max-width: 1200px; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.divide-y > * + * { border-top: 1px solid var(--border); }

.bg-white       { background-color: white; }
.bg-gray-50     { background-color: var(--gray-50); }
.bg-green-50    { background-color: #f0fdf4; }
.bg-yellow-50   { background-color: #fefce8; }
.bg-red-50      { background-color: #fef2f2; }
.bg-blue-50     { background-color: #eff6ff; }
.border-green-200 { border-color: #bbf7d0; }
.border-yellow-200{ border-color: #fde68a; }
.border-red-200   { border-color: #fecaca; }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { inset: 0; }
.z-10     { z-index: 10; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.box-border     { box-sizing: border-box; }
.block   { display: block; }
.inline-flex { display: inline-flex; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider{ letter-spacing: 0.08em; }
.uppercase     { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-snug  { line-height: 1.375; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-2  { grid-column: span 2; }
.col-span-full { grid-column: 1 / -1; }
.auto-rows-auto { grid-auto-rows: auto; }

/* ── Container ─────────────────────────────────────────────── */
.container { width: 100%; padding: 0 1.25rem; margin: 0 auto; }

/* ── Keyframe Animations ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
@keyframes shimmer {
  0%   { background-position: -400% center; }
  100% { background-position:  400% center; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animation utilities */
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out both; }
.animate-fadeIn   { animation: fadeIn   0.4s ease-out both; }
.animate-scaleIn  { animation: scaleIn  0.5s ease-out both; }
.animate-spin     { animation: spin 0.8s linear infinite; }
.animate-float    { animation: floatY 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
  transition: var(--t-spring);
  flex-shrink: 0;
}
.logo-mark:hover { transform: rotate(-8deg) scale(1.1); }
.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r);
  transition: var(--t-smooth);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}
.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: 99px;
}

.nav-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: white;
  color: var(--gray-600);
  transition: var(--t);
}
.nav-mobile-btn:hover { background: var(--gray-50); color: var(--primary); }

/* Mobile menu drawer */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  animation: fadeIn 0.2s ease;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: white;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu-panel.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--gray-500);
  transition: var(--t);
}
.mobile-menu-close:hover { background: #fef2f2; color: var(--error); border-color: #fca5a5; }

.mobile-nav { display: flex; flex-direction: column; padding: 0.75rem; flex: 1; gap: 0.25rem; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--r);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--t);
  text-decoration: none;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}
.mobile-menu-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); text-align: center; }

/* ── Main ───────────────────────────────────────────────────── */
main {
  min-height: calc(100vh - 4rem - 5rem);
  padding-bottom: 3rem;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f0f7ff 50%, #f5f3ff 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.09) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatY 8s ease-in-out infinite;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatY 10s ease-in-out infinite reverse;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 1.125rem;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 50%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: var(--shadow-xs);
  transition: var(--t-smooth);
}
.hero-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Feature row cards */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: left;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: var(--t-smooth);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(37,99,235,0.2);
}
.feature-icon-wrap {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.25rem; }
.feature-card p  { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--t-smooth);
}
.card:hover { box-shadow: var(--shadow); }

.card-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.card-description { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }
.card-body { padding: 1.5rem 1.75rem; }

/* ── Form Elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: white;
  transition: var(--t-smooth);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-400); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #FAFCFF;
}
.form-textarea { min-height: 10rem; resize: vertical; }
.form-help { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.375rem; }

/* File drop zone */
.file-drop-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--t-smooth);
  background: var(--gray-50);
  cursor: pointer;
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--primary-light);
  background: #EFF6FF;
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop-icon {
  width: 3rem; height: 3rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.1));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
  transition: var(--t-spring);
}
.file-drop-zone:hover .file-drop-icon { transform: scale(1.15) translateY(-2px); }
.file-drop-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.25rem; }
.file-drop-sub   { font-size: 0.78rem; color: var(--gray-400); }

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  margin-top: 0.75rem;
}

/* JD toggle */
.jd-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--r);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 0.875rem;
}
.jd-toggle-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: calc(var(--r) - 2px);
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--gray-500);
  transition: var(--t);
}
.jd-toggle-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--t);
}
.btn:hover::after { opacity: 1; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--gray-800); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: var(--r); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--r-xl); }

/* Loading shimmer button state */
.btn-shimmer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 50%, var(--primary) 100%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  color: white;
}

/* ── Classification Badges ───────────────────────────────────── */
.cls-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cls-authentic  { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.cls-suspicious { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.cls-fake       { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.cls-invalid    { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }

/* ── Score Cards ────────────────────────────────────────────── */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.score-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--t-smooth);
  position: relative;
  overflow: hidden;
}
.score-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--t-smooth);
}
.score-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.score-card:hover::after { transform: scaleX(1); }
.score-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.score-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); font-family: var(--font-mono); }

/* ── Confidence Meter ────────────────────────────────────────── */
.confidence-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.confidence-ring {
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.confidence-ring svg { transform: rotate(-90deg); display: block; }
.ring-bg   { fill: none; stroke: var(--gray-200); stroke-width: 5; }
.ring-fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1); }
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ── Validation Feature Grid ─────────────────────────────────── */
.val-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.75rem;
}
.val-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.875rem;
  transition: var(--t-smooth);
}
.val-item:hover { border-color: rgba(37,99,235,0.3); box-shadow: var(--shadow-xs); }
.val-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}
.val-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--gray-800);
}

/* ── Skill Chips ─────────────────────────────────────────────── */
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.625rem;
  border-radius: 99px;
  transition: var(--t);
}
.skill-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.chip-match   { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.chip-missing { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.chip-extra   { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }

/* ── Probability Bar ─────────────────────────────────────────── */
.prob-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.prob-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.prob-label { width: 110px; flex-shrink: 0; font-weight: 500; color: var(--gray-600); }
.prob-bar-track {
  flex: 1; height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.prob-value { width: 40px; text-align: right; font-weight: 700; font-family: var(--font-mono); }

/* ── Results Table ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.results-table thead th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: background var(--t);
}
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: rgba(37,99,235,0.02); }
.results-table td { padding: 0.875rem 1rem; color: var(--gray-700); }
.results-table .rank-cell { font-weight: 700; color: var(--gray-300); width: 40px; }

/* ── Summary Stats ───────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  text-align: center;
  transition: var(--t-smooth);
}
.summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.summary-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.625rem;
  font-size: 1rem;
}
.summary-number { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.summary-label  { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; }
.summary-card.total   { } .summary-card.total .summary-number   { color: var(--primary); }
.summary-card.good    { } .summary-card.good  .summary-number   { color: var(--success); }
.summary-card.warn    { } .summary-card.warn  .summary-number   { color: var(--warning); }
.summary-card.danger  { } .summary-card.danger .summary-number  { color: var(--error); }
.summary-card.total .summary-icon  { background: #EFF6FF; }
.summary-card.good  .summary-icon  { background: #dcfce7; }
.summary-card.warn  .summary-icon  { background: #fef9c3; }
.summary-card.danger .summary-icon { background: #fee2e2; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.alert-success { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.alert-warning { background: #fefce8; border-color: #fde047; color: #a16207; }
.alert-error   { background: #fff1f2; border-color: #fca5a5; color: #b91c1c; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: var(--primary-dark); }

/* ── Loading Panel ───────────────────────────────────────────── */
.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 2rem;
  text-align: center;
}
.loading-spinner {
  width: 3rem; height: 3rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.loading-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
}
.loading-sub {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ── Section heading ─────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-400);
  margin-bottom: 0.875rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Resume preview */
.resume-preview {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: white;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand-name { font-size: 0.9rem; font-weight: 700; color: var(--gray-700); }
.footer-meta { font-size: 0.78rem; color: var(--gray-400); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-tag {
  font-size: 0.72rem;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .nav-links      { display: none; }
  .nav-mobile-btn { display: flex !important; }
  .card-body, .card-header { padding: 1.125rem; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  body::before { display: none; }
  header, footer { display: none; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  .btn { display: none; }
}