@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS — Light mode (default)
   ============================================================ */
:root {
  /* Palette */
  --primary:    #0ea5e9;
  --primary-d:  #0284c7;
  --primary-l:  #38bdf8;
  --primary-10: #e0f2fe;
  --primary-20: #bae6fd;

  /* Semantic aliases (legacy --purple kept for compat) */
  --purple:    var(--primary);
  --purple-l:  var(--primary-l);
  --purple-d:  var(--primary-d);
  --purple-10: var(--primary-10);
  --purple-20: var(--primary-20);

  --cyan:    #06b6d4;
  --cyan-d:  #0891b2;
  --cyan-10: #cffafe;

  --green:    #10b981;
  --green-10: #d1fae5;

  --red:    #ef4444;
  --red-10: #fee2e2;

  --amber:    #f59e0b;
  --amber-10: #fef3c7;

  /* Surfaces — Frosted Blue light mode */
  --bg:      #e8f0f7;
  --bg2:     #eef4fb;
  --bg3:     #dce8f5;
  --card:    #ffffff;
  --card-h:  #f4f8fd;
  --sidebar: #dce8f5;

  /* Borders */
  --border:   #c5d8ef;
  --border-h: #0ea5e9;

  /* Text */
  --text:  #0f172a;
  --text2: #334155;
  --text3: #64748b;

  /* Elevation */
  --shadow:   0 1px 3px rgba(14,100,180,0.1), 0 1px 2px rgba(14,100,180,0.07);
  --shadow-md:0 4px 12px rgba(14,100,180,0.1), 0 2px 4px rgba(14,100,180,0.06);
  --shadow-lg:0 12px 32px rgba(14,100,180,0.12), 0 4px 8px rgba(14,100,180,0.06);
  --shadow-p: 0 0 0 3px rgba(14,165,233,0.2);

  /* Radius */
  --r-sm:   6px;
  --r:      8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;

  /* Layout */
  --sidebar-w: 240px;
  --header-h:  64px;

  color-scheme: light;
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  /* Dark Teal mode */
  --bg:      #0d1b1e;
  --bg2:     #0a1416;
  --bg3:     #0a1a1d;
  --card:    #162427;
  --card-h:  #1e3033;
  --sidebar: #091416;
  --border:   #1e3438;
  --border-h: #0ea5e9;
  --text:  #e2f0f1;
  --text2: #90b5b8;
  --text3: #4a7a80;
  --shadow:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-md:0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:0 16px 48px rgba(0,0,0,0.6);
  --shadow-p: 0 0 0 3px rgba(14,165,233,0.25);
  color-scheme: dark;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
option { background-color: var(--bg2); color: var(--text); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.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; }
.text-6xl    { font-size: 3.75rem; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.text-muted   { color: var(--text2); }
.text-faint   { color: var(--text3); }
.text-purple  { color: var(--primary); }
.text-cyan    { color: var(--cyan); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-amber   { color: var(--amber); }
.text-center  { text-align: center; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.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; }
.justify-end   { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid    { display: grid; }
.w-full  { width: 100%; }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrink-0{ flex-shrink: 0; }
.grow    { flex-grow: 1; }
.relative{ position: relative; }
.hidden  { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: all 0.15s ease; cursor: pointer; border: none; white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14,165,233,0.3);
}
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 4px 12px rgba(14,165,233,0.3); transform: translateY(-1px); }

.btn-secondary {
  background: var(--card); color: var(--text2);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--border-h); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary-20);
}
.btn-outline:hover { background: var(--primary-10); border-color: var(--primary); }

.btn-danger { background: var(--red-10); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.15); }

.btn-success { background: var(--green-10); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }

.btn-sm  { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg  { padding: 12px 24px; font-size: 0.95rem; }
.btn-xl  { padding: 14px 32px; font-size: 1rem; }
.btn-icon{ width: 36px; height: 36px; padding: 0; border-radius: var(--r); }
.btn-icon.btn-lg { width: 44px; height: 44px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-hover { transition: all 0.15s ease; }
.card-hover:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-purple { background: var(--primary-10); border-color: var(--primary-20); }
.card-cyan   { background: var(--cyan-10);    border-color: rgba(6,182,212,0.25); }
.card-green  { background: var(--green-10);   border-color: rgba(16,185,129,0.25); }
.card-amber  { background: var(--amber-10);   border-color: rgba(245,158,11,0.25); }
.card-red    { background: var(--red-10);     border-color: rgba(239,68,68,0.25); }

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.input-group  { display: flex; flex-direction: column; gap: 5px; }
.input-label  { font-size: 0.825rem; font-weight: 500; color: var(--text2); }

.input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 13px;
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.15s ease;
  width: 100%;
  outline: none;
}
.input::placeholder { color: var(--text3); }
.input:focus { border-color: var(--primary); box-shadow: var(--shadow-p); }
.input-icon { position: relative; }
.input-icon .input { padding-left: 38px; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; width: 16px; height: 16px; }
select.input { appearance: none; }
textarea.input { resize: vertical; min-height: 80px; }
.input-error { border-color: var(--red) !important; }
.form-error   { font-size: 0.78rem; color: var(--red); margin-top: 3px; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}
.badge-purple { background: var(--primary-10); color: var(--primary-d); }
.badge-cyan   { background: var(--cyan-10);    color: var(--cyan-d); }
.badge-green  { background: var(--green-10);   color: #059669; }
.badge-amber  { background: var(--amber-10);   color: #d97706; }
.badge-red    { background: var(--red-10);     color: #dc2626; }
.badge-gray   { background: var(--bg3);        color: var(--text2); border: 1px solid var(--border); }

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); transition: all 0.15s;
}
.tag:hover { background: var(--primary-10); border-color: var(--primary-20); color: var(--primary-d); }
.tag-active  { background: var(--primary-10); border-color: var(--primary-20); color: var(--primary-d); }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-saved       { background: var(--bg3);        color: var(--text2);  border: 1px solid var(--border); }
.status-saved::before { background: var(--text3); }
.status-preparing   { background: var(--amber-10);   color: #d97706; }
.status-preparing::before { background: #f59e0b; animation: pulse 1.5s infinite; }
.status-applied     { background: var(--primary-10); color: var(--primary-d); }
.status-applied::before { background: var(--primary); }
.status-assessment  { background: var(--cyan-10);    color: var(--cyan-d); }
.status-assessment::before { background: var(--cyan); }
.status-interview   { background: rgba(99,102,241,0.1); color: #4f46e5; }
.status-interview::before { background: #6366f1; animation: pulse 1.5s infinite; }
.status-rejected    { background: var(--red-10);     color: #dc2626; }
.status-rejected::before { background: var(--red); }
.status-offered     { background: var(--green-10);   color: #059669; }
.status-offered::before { background: var(--green); animation: pulse 1.5s infinite; }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress-bar  { background: var(--bg3); border-radius: var(--r-full); overflow: hidden; height: 6px; }
.progress-fill { height: 100%; border-radius: var(--r-full); background: var(--primary); transition: width 0.8s ease; }
.progress-fill.cyan  { background: var(--cyan); }
.progress-fill.green { background: var(--green); }

/* ============================================================
   LANDING NAV — always true-blue, regardless of theme
   ============================================================ */
.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  background: #1a56db;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 16px rgba(26,86,219,0.25);
  transition: all 0.25s ease;
}
.land-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 24px;
}
.land-nav.scrolled { box-shadow: 0 4px 24px rgba(26,86,219,0.35); }

.land-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: #ffffff; text-decoration: none;
}
.land-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
/* Override gradient on logo text — white on blue bg */
.land-logo .text-gradient {
  background: none; -webkit-text-fill-color: #ffffff; color: #ffffff;
}

.land-nav-links { display: flex; align-items: center; gap: 24px; }
.land-nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.75); transition: color 0.15s;
  text-decoration: none;
}
.land-nav-links a:hover { color: #ffffff; }

.land-nav-actions { display: flex; align-items: center; gap: 8px; }
/* Buttons inside the blue nav */
.land-nav-actions .btn-ghost {
  color: rgba(255,255,255,0.85);
}
.land-nav-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.12); color: #ffffff;
}
.land-nav-actions .btn-primary {
  background: #ffffff; color: #1a56db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.land-nav-actions .btn-primary:hover {
  background: #f0f6ff; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Theme toggle inside nav */
#landThemeToggle {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 100px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(14,165,233,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(6,182,212,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(26,86,219,0.07) 0%, transparent 60%);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(14,165,233,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(6,182,212,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(14,165,233,0.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.045;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-10); border: 1px solid var(--primary-20);
  border-radius: var(--r-full); padding: 5px 14px; margin-bottom: 20px;
  font-size: 0.78rem; font-weight: 600; color: var(--primary-d);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 18px; color: var(--text); }
/* Hero gradient text — deep blue so it's always visible on light bg */
.hero h1 .text-gradient,
.hero h1 .text-gradient-animated,
.text-gradient-animated {
  background: linear-gradient(135deg, #1a56db 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .hero h1 .text-gradient,
[data-theme="dark"] .hero h1 .text-gradient-animated,
[data-theme="dark"] .text-gradient-animated {
  background: linear-gradient(135deg, #60a5fa 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.05rem; color: var(--text2); margin-bottom: 32px; max-width: 480px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }

/* Hero dashboard image */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.hero-img-wrap {
  position: relative; width: 100%; max-width: 580px;
  animation: float 7s ease-in-out infinite;
}
.hero-img-glow {
  position: absolute; inset: -24px; border-radius: 28px; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(14,165,233,0.22) 0%, transparent 70%);
  filter: blur(24px);
}
.hero-img {
  position: relative; z-index: 1; width: 100%; border-radius: 18px;
  border: 2px solid rgba(14,165,233,0.25);
  box-shadow: 0 24px 64px rgba(14,100,180,0.22), 0 4px 16px rgba(14,100,180,0.12);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-img-wrap:hover .hero-img { transform: perspective(1200px) rotateY(-1deg) rotateX(1deg); }
[data-theme="dark"] .hero-img { border-color: rgba(125,211,252,0.2); box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(125,211,252,0.1); }
.hero-img-badge {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  background: rgba(4,18,31,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(125,211,252,0.3); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; color: #e2f0f1;
  letter-spacing: 0.02em;
}
/* keep old hero-card class for any pages still referencing it */
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow-lg); }

/* ============================================================
   LANDING SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 16px; height: 2px; background: var(--primary); border-radius: 2px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section .subtitle { font-size: 1.05rem; color: var(--text2); max-width: 540px; line-height: 1.75; }

/* Problem grid */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.pain-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 24px; transition: all 0.2s; box-shadow: var(--shadow);
  border-left: 3px solid var(--red);
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pain-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.pain-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pain-card p  { font-size: 0.85rem; color: var(--text2); line-height: 1.7; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 24px 24px; position: relative; overflow: hidden;
  transition: all 0.2s; box-shadow: var(--shadow);
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #06b6d4 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-h); box-shadow: var(--shadow-lg); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
  color: #fff; font-size: 0.9rem; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}
.step-icon { font-size: 1.8rem; margin-bottom: 10px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 0.835rem; color: var(--text2); line-height: 1.7; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 24px; transition: all 0.2s; box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-h); box-shadow: var(--shadow-md); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--r); background: var(--primary-10); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p  { font-size: 0.835rem; color: var(--text2); line-height: 1.65; }

/* GenZ section */
.genz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.genz-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow);
}
.genz-card:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--primary-10); }
.genz-card .emoji { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.genz-card p { font-size: 0.8rem; font-weight: 600; color: var(--text2); }

/* Trust section */
.trust-section { background: var(--bg3); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.trust-icon { width: 40px; height: 40px; border-radius: var(--r); background: var(--primary-10); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.trust-item h4 { font-size: 0.9rem; margin-bottom: 3px; }
.trust-item p  { font-size: 0.825rem; color: var(--text2); line-height: 1.6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; position: relative; transition: all 0.2s; box-shadow: var(--shadow);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 14px; border-radius: var(--r-full);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-name  { font-size: 0.8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.pricing-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 0.95rem; font-weight: 400; color: var(--text2); }
.pricing-desc  { font-size: 0.85rem; color: var(--text2); margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text2); }
.pricing-feature .check { color: var(--green); }
.pricing-feature .cross { color: var(--text3); }

/* CTA section */
.cta-section {
  background: #1a56db; text-align: center; padding: 88px 0;
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; color: #fff; }
.cta-section p  { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.cta-actions    { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: #fff; color: #1a56db; }
.cta-section .btn-primary:hover { background: #f0f6ff; transform: translateY(-1px); }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
/* All gradient text inside CTA must be white — no blue-on-blue */
.cta-section .text-gradient,
.cta-section .text-gradient-animated {
  background: none; -webkit-text-fill-color: #ffffff; color: #ffffff;
}
/* Hero stat numbers using text-gradient on blue hero-bg patch */
.hero-stats .text-gradient {
  background: linear-gradient(135deg, #1a56db 0%, #0891b2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .hero-stats .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #67e8f9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Footer */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: var(--text2); margin-top: 10px; max-width: 220px; line-height: 1.6; }
.footer-col h5  { font-size: 0.825rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.footer-col a   { display: block; font-size: 0.835rem; color: var(--text2); margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom  { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p{ font-size: 0.78rem; color: var(--text3); }

/* ============================================================
   APP LAYOUT — SIDEBAR
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; background: var(--bg); }
#sidebarToggle { display: none; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; }
.sidebar-overlay.open { display: block; }

.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
  transition: transform 0.25s ease;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .sidebar {
  background: var(--sidebar);
  border-color: var(--border);
}

.sidebar-logo {
  padding: 18px 18px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.sidebar-logo .logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); }

.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-section {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); padding: 10px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: var(--r); font-size: 0.85rem; font-weight: 500; color: var(--text2);
  transition: all 0.12s ease; cursor: pointer; text-decoration: none;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--primary-10); color: var(--primary-d); font-weight: 600; }
[data-theme="dark"] .nav-item.active { background: rgba(14,165,233,0.15); color: var(--primary-l); }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: var(--r-full);
  min-width: 20px; text-align: center;
}

.sidebar-user {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0; color: #fff;
}
.user-name { font-size: 0.825rem; font-weight: 600; color: var(--text); }
.user-role { font-size: 0.72rem; color: var(--text3); }

.app-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================================
   APP HEADER
   ============================================================ */
.app-header {
  height: var(--header-h);
  background: #1a56db;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 12px rgba(26,86,219,0.2);
}
.app-header-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: #ffffff; }
.app-header-right .btn-ghost { color: rgba(255,255,255,0.8); }
.app-header-right .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.app-header-right .notif-btn { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }
.app-header-right .notif-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); color: #fff; }
.app-header-right { display: flex; align-items: center; gap: 10px; }
.notif-btn {
  width: 34px; height: 34px; border-radius: var(--r); background: var(--bg3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all 0.15s; color: var(--text2);
}
.notif-btn:hover { border-color: var(--border-h); color: var(--primary); }
.notif-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; border: 2px solid var(--card); }

.page-content { padding: 24px; flex: 1; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.stat-label { font-size: 0.78rem; color: var(--text3); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ============================================================
   JOB CARDS
   ============================================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.job-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; cursor: pointer; transition: all 0.15s ease; position: relative;
  box-shadow: var(--shadow);
}
.job-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.company-logo {
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--primary-10); border: 1px solid var(--primary-20);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0; color: var(--primary-d);
}
.job-title   { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; color: var(--text); }
.job-company { font-size: 0.825rem; color: var(--text2); }
.job-meta    { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.job-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text3); }
.job-skills  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; }
.job-actions { display: flex; gap: 6px; }
.save-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; font-size: 0.9rem;
}
.save-btn:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-10); }
.save-btn.saved { background: var(--amber-10); border-color: var(--amber); color: var(--amber); }

/* Job card glass variant */
.job-card-glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow);
}
.job-card-glass:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Card company logo */
.card-company-logo {
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--primary-10); border: 1px solid var(--primary-20);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0; color: var(--primary-d);
}

/* Match score pill */
.match-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700; }
.match-high { background: var(--green-10); color: #059669; }
.match-mid  { background: var(--amber-10); color: #d97706; }
.match-low  { background: var(--red-10);   color: #dc2626; }
.match-pill.good { background: var(--green-10); color: #059669; }
.match-pill.ok   { background: var(--amber-10); color: #d97706; }
.match-pill.low  { background: var(--red-10);   color: #dc2626; }

/* Source tag */
.source-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--r-full); font-size: 0.68rem; font-weight: 600; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }

/* Sort bar */
.sort-bar { border-color: var(--border); }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 4px 4px 4px 14px;
  transition: all 0.15s; box-shadow: var(--shadow);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: var(--shadow-p); }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 0.875rem; flex: 1; }
.search-bar input::placeholder { color: var(--text3); }

.notes-area { background: var(--card); border-color: var(--border); color: var(--text); }

.filters-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; min-width: 210px; box-shadow: var(--shadow); }
.filter-section { margin-bottom: 20px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: 0.775rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.filter-option input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; }
.filter-option label { font-size: 0.85rem; color: var(--text2); cursor: pointer; }
.filter-option:hover label { color: var(--text); }
.filter-range input[type=range] { accent-color: var(--primary); }

/* ============================================================
   TABS
   ============================================================ */
.tab-row { border-color: var(--border); }
.tabs { display: flex; gap: 2px; background: var(--bg3); border-radius: var(--r); padding: 3px; }
.tab { padding: 7px 14px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 500; color: var(--text2); cursor: pointer; transition: all 0.15s; }
.tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.tab:hover:not(.active) { color: var(--text); }

/* ============================================================
   RESUME SECTIONS
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-xl);
  padding: 44px; text-align: center; cursor: pointer;
  background: var(--bg3); transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-10); }
.upload-zone.dragover { border-color: var(--cyan); background: var(--cyan-10); }
.upload-icon { font-size: 2.5rem; margin-bottom: 14px; }
.upload-zone h3 { font-size: 1.05rem; margin-bottom: 6px; }
.upload-zone p  { font-size: 0.85rem; color: var(--text2); }

.ats-score-ring {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 130px; height: 130px;
}
.ats-score-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.ats-score-inner  { text-align: center; }
.ats-score-num    { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.ats-score-label  { font-size: 0.72rem; color: var(--text3); }

.diff-block  { border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.diff-before { background: var(--red-10); border: 1px solid rgba(239,68,68,0.2); padding: 10px 14px; }
.diff-after  { background: var(--green-10); border: 1px solid rgba(16,185,129,0.2); padding: 10px 14px; }
.diff-label  { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 5px; }
.diff-before .diff-label { color: var(--red); }
.diff-after  .diff-label { color: var(--green); }
.diff-text { font-size: 0.85rem; line-height: 1.6; color: var(--text); }

/* ============================================================
   TRACKER
   ============================================================ */
.tracker-list { display: flex; flex-direction: column; gap: 10px; }
.tracker-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 18px; display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px;
  align-items: center; transition: all 0.15s; box-shadow: var(--shadow);
}
.tracker-item:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); }
.tracker-company-logo { width: 40px; height: 40px; border-radius: var(--r); background: var(--primary-10); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Space Grotesk', sans-serif; flex-shrink: 0; color: var(--primary-d); }
.tracker-job-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.tracker-company   { font-size: 0.8rem; color: var(--text2); margin-top: 2px; }
.tracker-date      { font-size: 0.75rem; color: var(--text3); margin-top: 3px; }
.tracker-actions   { display: flex; gap: 6px; }

/* Pipeline */
.pipeline-col { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.pipeline-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer; transition: all 0.15s; }
.pipeline-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); }
.pc-title   { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.pc-company { font-size: 0.775rem; color: var(--text2); margin-top: 2px; }
.pc-meta    { font-size: 0.72rem; color: var(--text3); margin-top: 4px; }

/* ============================================================
   INTERVIEW PREP
   ============================================================ */
.qa-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow); }
.qa-question { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 500; font-size: 0.875rem; gap: 10px; color: var(--text); }
.qa-question:hover { background: var(--bg3); }
.qa-answer  { padding: 0 18px 14px; font-size: 0.85rem; color: var(--text2); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 12px; }
.qa-expand  { width: 22px; height: 22px; border-radius: 6px; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; font-size: 0.65rem; color: var(--text3); }
.qa-item.open .qa-expand { transform: rotate(180deg); }
.qa-answer-hidden { display: none; }
.prep-tip   { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; color: var(--text2); font-size: 0.85rem; box-shadow: var(--shadow); }

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding-layout { min-height: 100vh; display: flex; }
.onboarding-sidebar {
  width: 260px; background: var(--card); border-right: 1px solid var(--border);
  padding: 28px; display: flex; flex-direction: column; gap: 28px; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.onboarding-main { flex: 1; padding: 44px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; background: var(--bg); }
.onboarding-form { width: 100%; max-width: 580px; }
.step-indicator  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; border: 2px solid var(--border); color: var(--text3); background: var(--bg3); }
.step-dot.completed { background: var(--green); border-color: var(--green); color: #fff; }
.step-dot.active    { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-p); }
.step-name { font-size: 0.825rem; font-weight: 600; color: var(--text2); }
.step-name.active    { color: var(--primary); }
.step-name.completed { color: var(--green); }
.step-name.inactive  { color: var(--text3); }
.step-desc { font-size: 0.72rem; color: var(--text3); }

.form-section-title    { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-section-subtitle { font-size: 0.875rem; color: var(--text2); margin-bottom: 28px; }
.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-divider { height: 1px; background: var(--border); margin: 20px 0; }
.form-nav     { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }

/* ============================================================
   AI PROCESSING
   ============================================================ */
.ai-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px; text-align: center; }
.ai-spinner { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin 0.8s linear infinite; margin-bottom: 20px; }
.ai-dots { display: flex; gap: 5px; margin-top: 10px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: bounce 1.2s infinite; }
.ai-dot:nth-child(2) { animation-delay: 0.2s; background: var(--primary-l); }
.ai-dot:nth-child(3) { animation-delay: 0.4s; background: var(--cyan); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); }
.skeleton-text  { height: 13px; width: 100%; }
.skeleton-title { height: 18px; width: 60%; }
.skeleton-box   { height: 75px; }

.shimmer { background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); max-width: 340px; animation: slideIn 0.25s ease;
  font-size: 0.85rem; color: var(--text);
}
.toast-icon  { font-size: 1rem; flex-shrink: 0; }
.toast-close { margin-left: auto; color: var(--text3); cursor: pointer; padding: 2px; }
.toast-close:hover { color: var(--text); }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--primary); }
.toast.warning { border-left: 3px solid var(--amber); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform 0.25s ease; }
.modal-overlay.open .modal-panel { transform: translateY(0); }
.modal-header { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; color: var(--text); }
.modal-body   { padding: 20px 22px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   PROFILE STRENGTH
   ============================================================ */
.profile-strength { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; }
.strength-ring    { position: relative; width: 96px; height: 96px; }
.strength-ring svg { transform: rotate(-90deg); }
.strength-num     { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: var(--text); }

/* Match circle */
.match-circle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; }
.match-circle svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.match-circle .score { font-size: 0.9rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--text); }
.match-sm .match-circle { width: 44px; height: 44px; }
.match-sm .score { font-size: 0.75rem; }

/* Profile tip */
.profile-tip { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--primary-10); border: 1px solid var(--primary-20); border-radius: var(--r); font-size: 0.8rem; color: var(--text2); margin-bottom: 7px; cursor: pointer; transition: background 0.15s; }
.profile-tip:hover { background: var(--primary-20); color: var(--text); }
.profile-tip .tip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* Skill tag */
.skill-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 500; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); }

/* Toggle */
.toggle { width: 38px; height: 22px; background: var(--border); border-radius: 11px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--primary); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.on::after { transform: translateX(16px); }

/* ============================================================
   INSIGHT & MISC CARDS
   ============================================================ */
.insight-card { background: var(--primary-10); border: 1px solid var(--primary-20); border-radius: var(--r-xl); padding: 20px; }
.glass-card   { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); transition: all 0.15s; }
.glass-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); }

/* Live dot */
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 4px; animation: live-pulse 2s ease-in-out infinite; }

/* Badge neon (simplified) */
.badge-neon        { background: var(--green-10); border: 1px solid rgba(16,185,129,0.3); color: #059669; padding: 2px 9px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; }
.badge-neon-purple { background: var(--primary-10); border: 1px solid var(--primary-20); color: var(--primary-d); padding: 2px 9px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; }

/* ============================================================
   CLICKABLE CLARITY — ensures every interactive element is
   visually bounded in both light and dark mode
   ============================================================ */

/* btn-ghost: invisible without a border in light mode */
.btn-ghost { border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-h); }
/* exception: inside blue navbar / app-header, no border needed */
.land-nav-actions .btn-ghost,
.app-header-right .btn-ghost { border-color: rgba(255,255,255,0.3); }
.land-nav-actions .btn-ghost:hover,
.app-header-right .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* Sidebar links — give active/hover state a left accent */
.sidebar-link {
  border-left: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sidebar-link.active { border-left-color: var(--primary); }
.sidebar-link:hover:not(.active) { border-left-color: var(--border-h); }

/* GenZ / feature grid cards — slightly stronger border */
.genz-card { border: 1px solid var(--border); }
.genz-card:hover { border-color: var(--primary); }

/* Step cards already have top stripe; ensure border visible */
.step-card { border: 1px solid var(--border); }
.step-card:hover { border-color: var(--border-h); }

/* Tracker pipeline cards */
.pipeline-card { border: 1px solid var(--border); }
.pipeline-card:hover { border-color: var(--border-h); }

/* QA item expand */
.qa-expand { border: 1px solid var(--border); }

/* Tab row pill — individual active tab gets a ring */
.tab.active { box-shadow: 0 0 0 1.5px var(--primary-20), var(--shadow); }

/* Select dropdowns — make the arrow visible */
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Pricing cards — popular one needs strong ring */
.pricing-card { border: 1px solid var(--border); }

/* Landing page section cards — feature/pain/step all get hover ring */
.feature-card:hover,
.pain-card:hover,
.trust-item:hover { box-shadow: 0 0 0 1.5px var(--primary-20), var(--shadow-md); }

/* Save btn & small icon buttons need visible outline */
.save-btn,
.notif-btn { border: 1px solid var(--border); }

/* Focus ring for keyboard accessibility */
.btn:focus-visible,
.input:focus-visible,
select.input:focus-visible,
.tag:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes bounce   { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
@keyframes shimmer  { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes slideIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }

.fade-in   { animation: fadeInUp 0.4s ease both; }
.fade-in-2 { animation: fadeInUp 0.4s ease 0.08s both; }
.fade-in-3 { animation: fadeInUp 0.4s ease 0.16s both; }
.fade-in-4 { animation: fadeInUp 0.4s ease 0.24s both; }

.float-slow { animation: float 5s ease-in-out infinite; }
.float-mid  { animation: float 4s ease-in-out infinite 0.8s; }
.float-fast { animation: float 3.5s ease-in-out infinite 1.6s; }

.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal-stagger.visible > *:nth-child(1) { opacity:1;transform:translateY(0);transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1;transform:translateY(0);transition-delay:0.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1;transform:translateY(0);transition-delay:0.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1;transform:translateY(0);transition-delay:0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .genz-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .land-nav-links { display: none; }
  .hero-inner     { grid-template-columns: 1fr; text-align: center; }
  .hero-visual    { display: none; }
  .hero-actions   { justify-content: center; }
  .hero-stats     { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero h1        { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .problem-grid   { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .genz-grid      { grid-template-columns: repeat(2, 1fr); }
  .trust-grid     { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .sidebar        { position: fixed; left: -100%; top: 0; height: 100vh; z-index: 999; transition: left 0.25s; width: 240px; }
  .sidebar.open   { left: 0; box-shadow: var(--shadow-lg); }
  .app-main       { margin-left: 0 !important; }
  #sidebarToggle  { display: flex !important; }
  .sidebar-overlay{ display: block !important; }
  .dashboard-grid, [style*="grid-template-columns:1fr 340px"] { display: flex !important; flex-direction: column !important; }
  .resume-layout  { grid-template-columns: 1fr !important; }
  .settings-layout{ grid-template-columns: 1fr !important; }
  .settings-nav   { display: flex; flex-wrap: wrap; gap: 4px; position: static; }
  .jobs-layout    { flex-direction: column; }
  .jobs-sidebar   { width: 100% !important; position: static !important; }
  .auth-left      { display: none !important; }
  .auth-right     { width: 100% !important; padding: 28px 18px !important; }
  .tracker-item   { grid-template-columns: 40px 1fr !important; gap: 8px; }
  .suggest-card   { max-width: 95vw !important; }
  .page-content   { padding: 14px !important; }
  .app-header     { padding: 0 14px !important; }
  .footer-grid    { grid-template-columns: 1fr !important; gap: 22px; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr) !important; }
  .ob-sidebar     { display: none !important; }
  .ob-form        { padding: 0 !important; }
  .form-grid      { grid-template-columns: 1fr; }
  .onboarding-sidebar { display: none; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr !important; }
  .genz-grid    { grid-template-columns: 1fr !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr !important; }
}
