/* ─── Reset & CSS Variables ──────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds — true black + deep navy */
  --bg-base:      #000000;
  --bg-surface:   #070b12;
  --bg-elevated:  #0b1220;
  --bg-input:     #080e18;
  --bg-hover:     #111a2c;

  /* Borders */
  --border:        #162033;
  --border-warm:   #1a2a40;
  --border-accent: #2d6fd4;

  /* Text */
  --text-1: #eef4ff;
  --text-2: #8aa4c8;
  --text-3: #5a7394;

  /* Accent palette — jinn blue + lamp fire */
  --blue:         #4da3ff;
  --blue-light:   #8fd0ff;
  --blue-deep:    #1a56d4;
  --blue-glow:    rgba(77, 163, 255, 0.22);
  --orange:       #e86a1a;
  --orange-light: #ff9a52;
  --orange-dark:  #b8440c;
  --orange-deep:  #b8440c;
  --orange-glow:  rgba(232, 106, 26, 0.24);

  /* Danger (flags, bans, errors) */
  --red:          #e05252;
  --red-dark:     #c23a3a;

  /* Gradients */
  --grad-cta:    linear-gradient(135deg, #5eb0ff 0%, #1a56d4 100%);
  --grad-ember:  linear-gradient(135deg, #ff8a3d 0%, #c2410c 100%);
  --grad-hero:   linear-gradient(165deg, #000000 0%, #04101f 42%, #000000 100%);
  --grad-header: linear-gradient(180deg, #05080f 0%, #000000 100%);
  --grad-yearly: linear-gradient(135deg, #ff8a3d 0%, #c2410c 100%);
  --grad-aurora: linear-gradient(90deg, transparent 4%, #4da3ff 38%, #e86a1a 62%, transparent 96%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.55);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.65);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.80);
  --shadow-cta: 0 4px 22px rgba(77, 163, 255, 0.32);
  --shadow-ember: 0 4px 22px rgba(232, 106, 26, 0.32);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-full: 999px;
}

html { color-scheme: dark; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(26, 86, 212, 0.26), transparent 58%),
    radial-gradient(ellipse 40% 28% at 95% 8%, rgba(143, 208, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 48% 34% at 6% 100%, rgba(232, 106, 26, 0.11), transparent 60%),
    radial-gradient(ellipse 30% 22% at 92% 86%, rgba(184, 68, 12, 0.08), transparent 55%);
  background-attachment: fixed;
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(77, 163, 255, 0.38);
  color: #fff;
}

/* ─── Custom Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-accent); }

/* ─── Brand ──────────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(77, 163, 255, 0.34), 0 0 28px rgba(232, 106, 26, 0.20);
}

/* ─── Dashboard Header ───────────────────────────────────────────────────── */
header {
  background: var(--grad-header);
  color: var(--text-1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-warm);
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  position: relative;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-aurora);
  opacity: 0.75;
}
.header-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-1);
  text-shadow: 0 0 28px rgba(77, 163, 255, 0.38), 0 0 44px rgba(232, 106, 26, 0.14);
  letter-spacing: -0.5px;
}
.header-content h1 .header-emoji {
  font-size: 3rem;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  margin-right: 0.1em;
}
.subtitle { font-size: 0.875rem; color: var(--text-2); margin-top: 0.2rem; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--bg-elevated);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-primary:hover {
  background: var(--bg-hover);
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(143, 208, 255, 0.28);
  color: var(--text-1);
}
.btn-outline:hover {
  background: rgba(77, 163, 255, 0.08);
  border-color: var(--blue);
  color: var(--blue-light);
}
.btn-cta {
  background: var(--grad-cta);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(77, 163, 255, 0.46), 0 0 18px rgba(232, 106, 26, 0.18);
  filter: brightness(1.08);
}
.btn-lg  { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-2);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn-link:hover { color: var(--blue-light); }
.btn-danger {
  background: var(--red);
  color: white;
  font-weight: 600;
  border: none;
}
.btn-danger:hover { background: var(--red-dark); }

/* Yearly / secondary CTA — lamp ember */
.btn-primary-dark {
  background: var(--grad-ember);
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-ember);
}
.btn-primary-dark:hover {
  filter: brightness(1.10);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(232, 106, 26, 0.50);
}
.btn-primary-dark.btn-lg   { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-primary-dark.btn-full { width: 100%; text-align: center; }

/* ─── Landing Header ─────────────────────────────────────────────────────── */
.landing-header {
  background: var(--grad-header);
  color: var(--text-1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-warm);
  position: relative;
}
.landing-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-aurora);
  opacity: 0.7;
}
.landing-header .header-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-1);
  text-shadow: 0 0 28px rgba(77, 163, 255, 0.38), 0 0 44px rgba(232, 106, 26, 0.14);
  letter-spacing: -0.5px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  color: var(--text-1);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 780px; height: 520px;
  background: radial-gradient(ellipse at center,
    rgba(77, 163, 255, 0.16) 0%,
    rgba(26, 86, 212, 0.08) 45%,
    transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 74% 18%, rgba(143, 208, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 48% 42% at 16% 86%, rgba(232, 106, 26, 0.11), transparent 62%);
  pointer-events: none;
}
.hero-content { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  background: linear-gradient(125deg, #f4f8ff 0%, #8fd0ff 58%, #ffb07a 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { margin-top: 2rem; }
.hero-note { font-size: 0.82rem; color: var(--text-3); margin-top: 1rem; }

/* ─── Features Section ───────────────────────────────────────────────────── */
.features {
  padding: 5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.features h3 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-1);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), 0 0 28px rgba(26, 86, 212, 0.18), var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.feature-card h4 { font-size: 1.05rem; color: var(--text-1); margin-bottom: 0.5rem; font-weight: 600; }
.feature-card p  { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; }

/* ─── Pricing Section ────────────────────────────────────────────────────── */
.pricing {
  padding: 5rem 2rem;
  background: var(--bg-surface);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing h3 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-1); }

.pricing-subtitle {
  color: var(--text-2);
  margin: 0 0 2.5rem;
  font-size: 1rem;
}
.pricing-grid {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  flex: 1; min-width: 280px; max-width: 380px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Monthly — light jinn blue */
.pricing-grid .pricing-card:not(.pricing-card-yearly) {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(77,163,255,0.22), inset 0 0 50px rgba(77,163,255,0.04);
}
/* Yearly — deep sapphire */
.pricing-card-yearly {
  border-color: var(--blue-deep) !important;
  box-shadow: 0 0 0 1px rgba(26,86,212,0.35), inset 0 0 50px rgba(26,86,212,0.08) !important;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-yearly);
  color: white; padding: 0.3rem 1.25rem;
  border-radius: var(--r-full); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 12px rgba(26,86,212,0.50);
}
.pricing-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-1); }
.price { font-size: 3.2rem; font-weight: 800; color: var(--blue); margin: 1rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-2); }
.pricing-card-yearly .price { color: var(--blue-light); }
.price-equiv { font-size: 0.88rem; color: var(--blue-light); font-weight: 600; margin: -0.5rem 0 1rem; }
.pricing-card ul { list-style: none; text-align: left; margin: 1.5rem 0; }
.pricing-card li { padding: 0.4rem 0; color: var(--text-2); font-size: 0.93rem; }
.pricing-note { font-size: 0.78rem; color: var(--text-3); margin-top: 0.75rem; }

/* ─── Centered Cards — Verification & Paywall ───────────────────────────── */
#verification-page, #paywall-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
  background: var(--bg-base);
}
.centered-card {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 3rem;
  max-width: 480px; width: 100%; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(26, 86, 212, 0.12);
}
.card-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.centered-card h2 { color: var(--text-1); margin-bottom: 0.75rem; font-size: 1.6rem; font-weight: 700; }
.centered-card p   { color: var(--text-2); margin-bottom: 0.5rem; }
.card-actions      { display: flex; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; }
.text-muted { color: var(--text-3); }
.text-small { font-size: 0.8rem; }

/* Paywall two-plan layout */
.paywall-plans {
  display: flex; gap: 1rem; justify-content: center;
  margin: 1.5rem 0 1rem; flex-wrap: wrap;
}
.paywall-plan {
  flex: 1; min-width: 130px; max-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1rem; text-align: center;
  position: relative;
  transition: all 0.2s;
}
.paywall-plan:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(77,163,255,0.25);
}
.paywall-plan-best {
  border-color: var(--blue-deep) !important;
  background: #07101f;
}
.paywall-plan-best:hover {
  box-shadow: 0 0 0 1px rgba(26,86,212,0.4) !important;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-yearly);
  color: white; padding: 0.2rem 0.75rem;
  border-radius: var(--r-full); font-size: 0.68rem; font-weight: 700; white-space: nowrap;
}
.plan-name {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 0.4rem;
}
.plan-price  { font-size: 1.8rem; font-weight: 800; color: var(--blue); margin-bottom: 0.75rem; }
.paywall-plan-best .plan-price { color: var(--blue-light); }
.plan-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-2); }
.plan-note   { font-size: 0.7rem; color: var(--blue-light); font-weight: 600; margin: -0.5rem 0 0.75rem; }
.paywall-features {
  list-style: none; text-align: left;
  margin: 1.25rem auto; max-width: 300px;
}
.paywall-features li { padding: 0.35rem 0; color: var(--text-2); font-size: 0.9rem; }
.paywall-note { font-size: 0.78rem; color: var(--text-3); margin-top: 0.75rem; }
#paywall-admin-link { margin: 0.75rem auto 0; }

/* ─── Trial Badge ────────────────────────────────────────────────────────── */
.trial-badge {
  background: rgba(77, 163, 255, 0.1);
  color: var(--blue-light);
  border: 1px solid rgba(77, 163, 255, 0.32);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600;
}

/* ─── Auth Modal ─────────────────────────────────────────────────────────── */
.auth-modal { max-width: 420px; position: relative; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-3); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-1); }
.auth-subtitle { color: var(--text-2); font-size: 0.88rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.83rem; color: var(--text-2); margin-bottom: 0.35rem; }
.form-group input {
  width: 100%; padding: 0.6rem 0.75rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-1); font-size: 0.9rem;
}
.form-group input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.auth-switch { font-size: 0.82rem; color: var(--text-3); text-align: center; margin-top: 1rem; }
.auth-switch a { color: var(--blue); text-decoration: none; }
.auth-switch a:hover { color: var(--blue-light); }
.auth-error {
  background: rgba(224,82,82,0.1); color: #ff7a7a;
  border: 1px solid rgba(224,82,82,0.3);
  padding: 0.6rem 0.75rem; border-radius: var(--r-sm);
  font-size: 0.84rem; margin-top: 0.75rem;
}

/* ─── Dashboard shell ────────────────────────────────────────────────────── */
.dashboard-shell {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 0; flex-wrap: wrap;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  flex: 1; min-width: 90px;
  padding: 0.95rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-value {
  display: block;
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-cta);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.66rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; }

/* ─── Filters ────────────────────────────────────────────────────────────── */
.filters {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 2.2fr) repeat(3, minmax(128px, 0.85fr)) auto;
  gap: 0.5rem;
  align-items: center;
}
.filter-row input[type="text"],
.filter-row select {
  width: 100%;
  padding: 0.52rem 0.75rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-1); font-size: 0.84rem;
  font-family: inherit;
}
.filter-row input[type="text"]:focus,
.filter-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.filter-row select { cursor: pointer; }
.checkbox-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-2); cursor: pointer; white-space: nowrap;
  padding: 0 0.15rem;
}
.checkbox-label input[type="checkbox"] { cursor: pointer; accent-color: var(--blue); }
.filter-info {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-3); margin-top: 0.55rem;
  padding: 0 0.1rem;
}

/* ─── Job List ───────────────────────────────────────────────────────────── */
.job-list { padding: 0.85rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.loading { text-align: center; padding: 2.5rem 1rem; color: var(--text-3); font-size: 0.88rem; }
.empty-state { text-align: center; padding: 3.25rem 1.25rem; color: var(--text-3); }
.empty-state h3 { color: var(--text-1); margin-bottom: 0.4rem; font-weight: 650; }
.empty-state p { max-width: 360px; margin: 0 auto; line-height: 1.55; }

/* ─── Job Card ───────────────────────────────────────────────────────────── */
.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem 0.9rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.2s ease;
}
.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.18s ease;
}
.job-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(45, 111, 212, 0.18), var(--shadow-sm);
}
.job-card.status-interested::before { background: #7eb6e8; }
.job-card.status-applied::before { background: #50c878; }
.job-card.status-interviewing::before { background: var(--blue); }
.job-card.status-archived::before { background: #5a7394; }
.job-card.status-archived { opacity: 0.78; }
.job-card.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.job-card.is-saving .status-pills { opacity: 0.62; }

.job-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) 156px;
  gap: 0.35rem 1.15rem;
  align-items: start;
}
.job-identity { min-width: 0; }
.job-title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: flex;
  align-items: baseline;
  gap: 0.45rem 0.55rem;
  flex-wrap: wrap;
  margin: 0;
}
.job-title a { color: var(--text-1); text-decoration: none; }
.job-title a:hover { color: var(--blue-light); }
.job-company {
  margin: 0.22rem 0 0;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-pay {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.86rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  padding-top: 0.12rem;
  white-space: nowrap;
}
.job-pay.is-muted { color: var(--text-3); font-weight: 500; }
.job-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  padding-top: 0.12rem;
}
.job-date {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.job-warning {
  margin: 0.45rem 0 0;
  padding: 0;
  background: none;
  border: none;
  color: #d2b07a;
  font-size: 0.74rem;
  line-height: 1.4;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.status-pills {
  display: inline-flex;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.status-pills button {
  appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-3);
  padding: 0.4rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.status-pills button:last-child { border-right: none; }
.status-pills button:hover { color: var(--text-1); background: var(--bg-hover); }
.status-pills button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  z-index: 1;
}
.status-pills button.active[data-status="interested"] {
  background: rgba(143, 208, 255, 0.16);
  color: #d4eeff;
}
.status-pills button.active[data-status="applied"] {
  background: rgba(80, 200, 120, 0.16);
  color: #8ee0b0;
}
.status-pills button.active[data-status="interviewing"] {
  background: rgba(77, 163, 255, 0.22);
  color: #fff;
}

.job-tools {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tool-btn, .tool-link {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.tool-btn:hover, .tool-link:hover {
  color: var(--text-1);
  background: var(--bg-hover);
}
.tool-btn:focus-visible, .tool-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.tool-btn.active, .tool-btn.has-notes { color: var(--blue-light); }
.tool-btn.tool-flag:hover { color: #f09090; background: rgba(224,82,82,0.08); }
.tool-link {
  color: var(--blue);
  margin-left: 0.15rem;
}
.tool-link:hover { color: var(--blue-light); background: rgba(77,163,255,0.08); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.1rem 0.4rem;
  border-radius: var(--r-full); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-new        { background: rgba(77,163,255,0.15); color: var(--blue-light); border: 1px solid rgba(77,163,255,0.32); }
.badge-interested { background: rgba(143,208,255,0.1);  color: #b8e0ff;          border: 1px solid rgba(143,208,255,0.25); }
.badge-applied    { background: rgba(80,200,120,0.1);  color: #50c878;          border: 1px solid rgba(80,200,120,0.25); }
.badge-interviewing { background: rgba(77,163,255,0.12); color: #8fd0ff;        border: 1px solid rgba(77,163,255,0.28); }
.badge-archived   { background: rgba(100,100,100,0.08); color: #666;            border: 1px solid rgba(100,100,100,0.18); }
.badge-rejected   { background: rgba(224,82,82,0.08);  color: #e08080;         border: 1px solid rgba(224,82,82,0.2); }

/* ─── Source Badges ──────────────────────────────────────────────────────── */
.source-badge {
  display: inline-flex; align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: var(--r-full); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.source-remotive  { background: rgba(77,163,255,0.1); color: var(--blue-light); border: 1px solid rgba(77,163,255,0.24); }
.source-jobicy    { background: rgba(80,200,120,0.1); color: #50c878;          border: 1px solid rgba(80,200,120,0.22); }
.source-wwr       { background: rgba(26,86,212,0.16); color: #7eb0ff;          border: 1px solid rgba(26,86,212,0.32); }
.source-himalayas { background: rgba(94,176,255,0.12); color: #9fd4ff;         border: 1px solid rgba(94,176,255,0.28); }
.source-muse      { background: rgba(143,208,255,0.12); color: #b8e0ff;        border: 1px solid rgba(143,208,255,0.28); }
.source-arbeitnow { background: rgba(26,86,212,0.14); color: #8eb6ff;          border: 1px solid rgba(26,86,212,0.30); }
.source-remoteok  { background: rgba(77,163,255,0.14); color: #7ec8ff;         border: 1px solid rgba(77,163,255,0.30); }
.source-nomads    { background: rgba(56,120,220,0.14); color: #8ec0ff;         border: 1px solid rgba(56,120,220,0.30); }
.source-authentic { background: rgba(120,170,255,0.12); color: #a8c8ff;        border: 1px solid rgba(120,170,255,0.26); }
.source-careers   { background: rgba(26,86,212,0.20); color: #c5dcff;          border: 1px solid rgba(77,163,255,0.36); }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex; gap: 0.4rem; justify-content: center;
  padding: 1rem 1.5rem; flex-wrap: wrap;
}
.pagination button {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-2); padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm); cursor: pointer; font-size: 0.85rem;
  transition: all 0.15s;
}
.pagination button:hover  { border-color: var(--blue); color: var(--blue-light); }
.pagination button.active { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }

/* ─── Modal Overlay ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 2rem;
  width: 100%; max-width: 480px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(26, 86, 212, 0.12);
  position: relative;
}
.modal h3 { color: var(--text-1); margin-bottom: 0.4rem; font-size: 1.1rem; }
.modal-lead { color: var(--text-2); font-size: 0.85rem; margin-bottom: 1rem; }
.flag-select {
  width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 0.75rem;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-1);
  font-family: inherit; font-size: 0.9rem;
}
.flag-select:focus { outline: none; border-color: var(--blue); }
.flag-msg { padding: 0.55rem 0.7rem; border-radius: 8px; margin-bottom: 0.75rem; font-size: 0.85rem; }
.flag-msg-error { color: #ff7a7a; background: rgba(255,85,85,0.1); border: 1px solid rgba(255,85,85,0.2); }
.flag-msg-success { color: #50c878; background: rgba(80,200,120,0.1); border: 1px solid rgba(80,200,120,0.2); }
.modal textarea {
  width: 100%; padding: 0.75rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-1); font-size: 0.9rem;
  resize: vertical; font-family: inherit;
}
.modal textarea:focus { outline: none; border-color: var(--blue); }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }

/* ─── Downsell Modal ─────────────────────────────────────────────────────── */
.downsell { max-width: 460px; }
.downsell-header { margin-bottom: 1rem; }
.downsell-header h3 { font-size: 1.2rem; color: var(--text-1); }
.downsell-body p { color: var(--text-2); margin-bottom: 0.75rem; font-size: 0.92rem; }
.downsell-offer {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center; margin: 1rem 0;
  box-shadow: inset 0 0 40px rgba(26, 86, 212, 0.10);
}
.downsell-price { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.old-price { font-size: 1.5rem; color: var(--text-3); text-decoration: line-through; }
.new-price { font-size: 3rem; font-weight: 800; color: var(--blue-light); }
.price-label { font-size: 0.85rem; color: var(--text-2); }
.downsell-note { font-size: 0.8rem; color: var(--text-3); }
.downsell-pitch { color: var(--text-2); font-size: 0.88rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  color: var(--text-3);
  font-size: 0.82rem;
}
.footer-brand { color: var(--blue); font-weight: 700; }
.footer-tagline { color: var(--text-3); font-size: 0.75rem; display: block; margin-top: 0.25rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .filter-row input[type="text"] { grid-column: 1 / -1; }
  .checkbox-label { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  header { flex-direction: column; gap: 0.75rem; text-align: center; }
  .header-content h1 { font-size: 1.8rem; }
  .brand { justify-content: center; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero h2 { font-size: 2rem; }
  .dashboard-shell { padding: 0.75rem 0.85rem 2rem; }
  .stat { min-width: 70px; padding: 0.65rem 0.4rem; }
  .stat-value { font-size: 1.15rem; }
  .job-card-top { grid-template-columns: 1fr auto; }
  .job-pay { text-align: right; }
  .job-card-footer { flex-direction: column; align-items: stretch; }
  .status-pills { width: 100%; }
  .status-pills button { flex: 1; padding: 0.45rem 0.4rem; }
  .job-tools { justify-content: space-between; }
  .landing-header { flex-direction: column; gap: 0.75rem; }
  .landing-header .header-content h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .job-card, .status-pills button, .tool-btn, .tool-link { transition: none; }
  .job-card.is-leaving { transform: none; }
}

@media (max-width: 480px) {
  .pricing-grid { flex-direction: column; }
  .paywall-plans { flex-direction: column; align-items: center; }
  .paywall-plan { max-width: 100%; }
  .job-card-top { grid-template-columns: 1fr; }
  .job-pay, .job-end { align-items: flex-start; text-align: left; }
  .job-end { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}
