* { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.font-mono, [class*="font-mono"] { font-family: 'JetBrains Mono', monospace !important; }

body {
  background-color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: #c7d2fe;
}

.sec-icon {
  width: 28px; height: 28px;
  background: #eef2ff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: '';
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-left: auto;
  display: inline-block;
  transition: transform 0.2s ease;
}
details[open] > summary::after { transform: rotate(180deg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#results > div { animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.count-pop { animation: countPop 0.3s ease; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

.pill-checkbox:checked + div {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79,70,229,0.2);
}

.premium-input:focus-within {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px #eef2ff;
}

.blur-job {
  filter: blur(5px); opacity: 0.4;
  pointer-events: none; user-select: none;
}

body.internship-mode .glass-header {
  background: rgba(240, 253, 250, 0.85);
  border-bottom-color: rgba(20, 184, 166, 0.2);
}
body.internship-mode .pill-checkbox:checked + div {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13,148,136,0.2);
}
body.internship-mode {
  background-color: #f0fdfa;
}

.skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

aside::-webkit-scrollbar { width: 6px; }
aside::-webkit-scrollbar-track { background: transparent; }
aside::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
aside::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

#resume {
  resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#resume:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px #eef2ff;
}

#locationResults {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
#locationResults::-webkit-scrollbar { width: 3px; }
#locationResults::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.soon-badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 4px;
}

#searchBtn { transition: all 0.18s; }
#extractBtn { transition: all 0.18s; }


/* ===== Step Progress ===== */
.timeline-active::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: #3b82f6;
  animation: timeline-pulse 1.2s ease-in-out infinite;
}
@keyframes timeline-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}
@keyframes fadeOutUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.step-progress-exit {
  animation: fadeOutUp 0.35s ease forwards;
}

/* Splash */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-overlay.splash-hidden {
  animation: splashFadeOut 0.4s ease forwards;
}
.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: splashContentIn 0.5s ease-out;
}
@keyframes splashContentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-tagline {
  color: #64748b;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0;
  animation: splashTaglineIn 0.6s ease 0.4s forwards;
}
@keyframes splashFadeOut {
  from { opacity: 1; pointer-events: auto; }
  to   { opacity: 0; pointer-events: none; }
}
@keyframes splashTaglineIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.employment-pill {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.employment-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.employment-pill.active-pill {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79,70,229,0.2);
}
.employment-pill.active-pill:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  border-color: #4338ca;
}