/* SkillFetch Custom Premium Design System */

:root {
  /* Colors */
  --bg-color: #070a13;
  --card-bg: rgba(13, 20, 38, 0.45);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(139, 92, 246, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.3);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.3);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Dimensions */
  --header-height: 80px;
  --container-max-width: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Glow Background Effects */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

.bg-glow-1 {
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.bg-glow-2 {
  background: var(--accent);
  top: 30%;
  right: -10%;
  animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
  background: #ec4899;
  bottom: -10%;
  left: 20%;
  opacity: 0.08;
  animation: floatGlow 18s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 40px) scale(1.15);
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Common UI Components */
.text-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45), 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.btn-tertiary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-full-width {
  width: 100%;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 10, 19, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* simple responsive header for demo */
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-signin {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-signin:hover {
  color: var(--text-primary);
}

/* Layout Container */
.content-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Hero / Matcher Section */
.matcher-section {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-top: 8px;
}

.hero-text p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  max-width: 580px;
}

/* Upload Card Container */
.upload-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.upload-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* AI Scanning Overlay Styling */
.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.upload-card.scanning .scan-overlay {
  opacity: 1;
  pointer-events: all;
}

.scan-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), var(--accent), transparent);
  box-shadow: 0 0 15px 4px var(--accent-glow);
  position: absolute;
  top: 0;
  animation: scanSweep 2s infinite linear;
}

.scan-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes scanSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Drag and Drop Zone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-normal);
  margin-bottom: 24px;
}

.upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hidden-input {
  display: none;
}

.upload-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.upload-dropzone:hover .upload-icon-container {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.upload-icon {
  width: 24px;
  height: 24px;
}

.upload-main-text {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.highlight-text {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.upload-sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dropzone File Info View */
.file-info-view {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: 10px;
}

.file-icon-container {
  color: var(--primary);
  width: 40px;
  height: 40px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-icon {
  width: 20px;
  height: 20px;
}

.file-details {
  flex-grow: 1;
  overflow: hidden;
}

.file-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text-primary);
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-remove-file:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.btn-remove-file svg {
  width: 18px;
  height: 18px;
}

/* Subscription Form Fields */
.subscription-section {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.checkbox-container:hover input ~ .custom-checkmark {
  border-color: var(--primary);
  background-color: rgba(139, 92, 246, 0.05);
}

.checkbox-container input:checked ~ .custom-checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.custom-checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .custom-checkmark::after {
  display: block;
}

.checkbox-container .custom-checkmark::after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  user-select: none;
}

/* Collapsible email field animation using CSS grid-rows trick */
.email-input-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows var(--transition-normal) ease-out, opacity var(--transition-normal) ease-out, visibility var(--transition-normal);
}

.email-input-collapse.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  margin-top: 6px;
}

.email-input-wrapper {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.email-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.email-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.email-input-wrapper input:focus + .input-icon {
  color: var(--accent);
}

.error-text {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

/* Action button arrow hover */
.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Jobs Grid Section */
.jobs-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-header {
  text-align: left;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Jobs Grid Layout */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* Job Card Styling */
.job-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.12), 0 0 20px rgba(0, 0, 0, 0.4);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo svg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.company-info {
  flex-grow: 1;
  overflow: hidden;
  padding-right: 8px;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Match Score Badge */
.match-badge {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.badge-high {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.badge-mid {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.1);
}

.badge-normal {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.1);
}

/* Job Metadata Tags */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-icon {
  width: 14px;
  height: 14px;
}

/* Job Description & Skills */
.job-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.job-card:hover .skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Card CTA Buttons */
.job-card-footer {
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.job-card-footer .btn {
  flex: 1;
}

/* Card Reveal / Scan Animations */
.job-card {
  opacity: 1; /* Normal state */
  transform: translateY(0);
}

/* Added dynamically during Scanning Reveal */
.job-card.reveal-matching {
  animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--card-index) * 0.15s);
  opacity: 0;
  transform: translateY(20px);
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlight matching scan state */
.job-card.highlight-match {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
  animation: pulseCardHighlight 2s infinite alternate ease-in-out;
}

@keyframes pulseCardHighlight {
  0% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
  100% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.3); }
}

/* Footer Section */
.main-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 10, 19, 0.8);
  padding: 40px 24px;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
  padding-top: 20px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-brand {
    max-width: 320px;
  }
  
  .footer-links {
    margin-left: auto;
  }
  
  .footer-copy {
    text-align: center;
  }
}

/* Resume Profile Rundown View */
.profile-rundown {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rundownFadeIn 0.5s ease-out forwards;
}

@keyframes rundownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rundown-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.success-indicator {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--success-glow);
}

.success-indicator svg {
  width: 22px;
  height: 22px;
}

.rundown-title-group h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.uploaded-filename {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rundown-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rundown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rundown-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.rundown-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rundown-skill-badge {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c084fc;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.05);
  animation: badgeScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--badge-index) * 0.1s);
  opacity: 0;
  transform: scale(0.9);
}

@keyframes badgeScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rundown-roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rundown-role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.rundown-role-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(6, 182, 212, 0.15);
  transform: translateX(4px);
}

.role-bullet {
  color: var(--accent);
  font-size: 1rem;
}

.role-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-grow: 1;
}

.role-match-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.reset-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-normal);
}

#btn-reset-upload:hover .reset-icon {
  transform: rotate(-180deg);
}

/* --- See More matches button container --- */
.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  animation: rundownFadeIn 0.5s ease-out forwards;
}

/* --- Google Authentication Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  padding: 40px 32px;
  text-align: center;
  animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.text-accent-auth {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
}

/* --- Sign In with Google Button --- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #3c4043;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
  transform: translateY(-1px);
}

.btn-google:active {
  background: #eeeeee;
  transform: translateY(0);
}

.google-icon {
  width: 18px;
  height: 18px;
}

/* --- Auth Spinner --- */
.auth-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.auth-spinner-container p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Header User Profile Dropdown --- */
.user-profile-menu-container {
  position: relative;
  display: inline-block;
}

.profile-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  user-select: none;
  padding: 0;
}

.profile-avatar-circle:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: rgba(10, 13, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 10px 12px 8px 12px;
  text-align: left;
}

.dropdown-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-family: var(--font-body);
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.dropdown-item:hover .dropdown-icon {
  color: var(--text-primary);
}

/* --- Unauthenticated Explorer Lock View --- */
.lock-view {
  max-width: 520px;
  margin: 100px auto;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.lock-icon {
  width: 26px;
  height: 26px;
}

.lock-view h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.lock-view p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.lock-view .btn-google {
  max-width: 280px;
}

/* --- Explore Page View & Search/Filter Controls --- */
.explorer-main {
  padding-top: 120px;
  padding-bottom: 80px;
}

.explorer-header-section {
  text-align: left;
  margin-bottom: 32px;
}

.explorer-header-section h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.explorer-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.explorer-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Search Filters bar layout */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

#job-search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

#job-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

#job-search-input:focus + .search-icon {
  color: var(--primary);
}

.filters-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.select-wrapper {
  position: relative;
  flex: 1;
  min-width: 180px;
}

/* Select styles */
.select-wrapper select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(156, 163, 175, 0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.explorer-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .filters-bar {
    flex-direction: row;
    align-items: center;
    padding: 16px 24px;
  }
  
  .filters-group {
    flex-grow: 0;
  }
  
  .select-wrapper {
    width: 200px;
    flex: none;
  }
}

/* --- Slide-Out Job Details Drawer Panel --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1200;
  transition: opacity 0.3s ease;
}

.drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.details-drawer {
  position: fixed;
  top: 0;
  right: -520px; /* Hidden state */
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: rgba(10, 13, 24, 0.95);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1300;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-radius: 0; /* Reset border radius for drawer */
  padding: 0;
}

.details-drawer.active {
  transform: translateX(-520px); /* Slide in */
}

.drawer-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 80px 32px 40px 32px; /* Extra padding top to avoid close button overlay */
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.drawer-header-info {
  flex-grow: 1;
  overflow: hidden;
}

.drawer-header-info h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.drawer-header-info p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-left: 2px solid var(--primary);
  padding-left: 8px;
  margin-bottom: 4px;
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px 20px;
}

.drawer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-meta-item:nth-child(4) {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
  margin-top: 4px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.drawer-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px 20px;
  white-space: pre-wrap;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-full-width {
  width: 100%;
}

/* Explore page grid overrides */
.explorer-grid {
  margin-top: 8px;
}

@media (max-width: 576px) {
  .details-drawer {
    max-width: 100%;
    right: -100%;
  }
  .details-drawer.active {
    transform: translateX(-100%);
  }
  .drawer-content {
    padding: 80px 20px 30px 20px;
  }
  .drawer-meta-grid {
    grid-template-columns: 1fr;
  }
  .drawer-meta-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
  }
}

/* --- Matched vs Missing Skills inside Details Drawer --- */
.skills-analysis-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px 20px;
}

.skills-analysis-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-analysis-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-analysis-header.matched {
  color: #34d399; /* Green check */
}

.skills-analysis-header.missing {
  color: #fb923c; /* Orange warning */
}

.skills-analysis-header .bullet {
  font-size: 1rem;
}

.skill-tag.matched-tag {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

.skill-tag.missing-tag {
  background: rgba(251, 146, 60, 0.06) !important;
  border-color: rgba(251, 146, 60, 0.2) !important;
  color: #fb923c !important;
}

.no-skills-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Dynamic job description styling inside drawer --- */
.drawer-snippet-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 8px;
}

.drawer-snippet-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.drawer-desc-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desc-section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  border-left: 2px solid var(--primary);
  padding-left: 8px;
}

.desc-bullet-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  list-style-type: disc;
}

@media (max-width: 576px) {
  .skills-analysis-container {
    grid-template-columns: 1fr;
  }
}

/* --- Drawer Notice Banner --- */
.drawer-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.notice-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.notice-text-content strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notice-text-content span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --- Resume Rundown Qualification Profile --- */
.rundown-qualification-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 8px;
}

.qualification-badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.experience-years-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Details Drawer Match Analysis Summary --- */
.match-analysis-card {
  background: rgba(6, 182, 212, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
}

.match-analysis-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.match-analysis-text strong {
  color: var(--text-primary);
}

/* --- Real Company Logo Styles --- */
.company-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 4px;
}

/* --- Programmatic SEO Landing Page Styles --- */
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Subscription Alert Widget Styles --- */
.subscription-input {
  transition: all var(--transition-fast);
}

.subscription-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
  background: rgba(0, 0, 0, 0.3) !important;
}

#btn-subscribe-alerts:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscription-status-msg {
  animation: fadeIn 0.3s ease-out;
}
