/* ========================================
   HARDCORE JOBS — X.com Aesthetic
   Near-black, minimal, typographic
   ======================================== */

:root {
  --bg: #000000;
  --bg-card: #16181c;
  --text-primary: #e7e9ea;
  --text-secondary: #71767b;
  --text-muted: #536471;
  --border: #2f3336;
  --border-light: #eff3f4;
  --accent: #1d9bf0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 53px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.97);
  z-index: 100;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-primary); }

/* Outline button (X.com style) */
.nav-btn {
  display: inline-block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.nav-btn:hover { background: rgba(231,233,234,0.08); border-color: var(--text-secondary); }

/* ---- LANDING ---- */
.landing-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

.landing-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.landing-eyebrow {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.landing-headline {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.landing-headline-accent { color: var(--text-primary); }

.landing-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 20px;
  font-weight: 400;
}

.landing-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(231,233,234,0.08); }

/* ---- MANIFESTO ---- */
.manifesto-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.manifesto-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.manifesto-col { margin-bottom: 20px; }
.manifesto-col p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
  font-weight: 400;
}
.manifesto-col strong { color: var(--text-primary); font-weight: 600; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- PLEDGE SECTION ---- */
.pledge-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.pledge-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.pledge-doc {
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}

.pledge-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.pledge-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.pledge-terms {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.pledge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  flex-shrink: 0;
}

.pledge-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 20px;
}

/* ---- STATS ---- */
.stats-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stat-item { display: flex; flex-direction: column; gap: 6px; }

.stat-number {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1.5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 400;
}

/* ---- CLOSING ---- */
.closing-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.closing-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.closing-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 12px;
}

.closing-body-accent { color: var(--text-primary); }

/* ---- FOOTER ---- */
.footer {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--border);
}

.page-header-inner { max-width: 640px; }

.page-headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* ---- JOBS LIST ---- */
.jobs-list-section {
  padding: 32px 24px;
  min-height: 400px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.job-card {
  border: 1px solid var(--border);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s;
  border-radius: 12px;
}
.job-card:hover { background: var(--bg-card); }

.job-industry {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.job-company {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.job-location {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.job-salary {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  letter-spacing: -0.3px;
}

.job-card-arrow {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 16px;
  font-weight: 500;
}

.jobs-cta-strip {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.jobs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.jobs-cta-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* ---- JOB DETAIL ---- */
.job-detail-header {
  padding: 32px 24px 28px;
  border-bottom: 1px solid var(--border);
}

.job-detail-header-inner { max-width: 680px; }

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text-secondary); }

.job-detail-meta { margin-bottom: 12px; }

.job-detail-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.job-detail-company {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.job-detail-attrs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.job-detail-attr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.job-detail-salary { color: var(--text-primary); font-weight: 600; }

.job-detail-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  align-items: start;
}

.job-detail-content {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.job-section { margin-bottom: 40px; }

.job-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}

.job-section-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
  font-weight: 400;
}

.job-detail-sidebar {
  padding: 24px;
  position: sticky;
  top: 53px;
}

.sidebar-card {
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.sidebar-salary {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}

.sidebar-salary-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 400;
}

.sidebar-divider {
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.sidebar-pledge-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}

.sidebar-small {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  font-weight: 400;
}

.sidebar-pledge-box {
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  padding: 16px 20px;
}

.sidebar-pledge-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-pledge-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  font-weight: 400;
}

/* ---- SIGNUP ---- */
.signup-section {
  padding: 48px 24px;
}

.signup-inner { max-width: 520px; }

.signup-headline {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}

.signup-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--text-secondary); }

.form-check-group { margin-bottom: 24px; }

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--text-primary);
  cursor: pointer;
}

.form-check-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

.form-error {
  background: rgba(244, 33, 46, 0.1);
  border: 1px solid rgba(244, 33, 46, 0.3);
  color: #f4212e;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.form-fine-print {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  font-weight: 400;
}

/* ---- CANDIDATE PROFILE ---- */
.profile-section {
  padding: 48px 24px;
}

.profile-inner { max-width: 560px; }

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  border-radius: 12px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--text-muted);
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pledge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 5px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
}

.pledge-badge-icon { color: var(--text-primary); font-size: 13px; }
.pledge-badge-text {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.profile-pledge-signed {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-pledge-block {
  padding: 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  margin-bottom: 24px;
  border-radius: 12px;
}

.profile-pledge-quote {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.profile-share-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- ERROR ---- */
.error-section { padding: 64px 24px; }
.error-inner { max-width: 480px; }
.error-headline {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.error-message { font-size: 16px; color: var(--text-secondary); }

/* ---- EMPTY STATE ---- */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: calc(100vh - 53px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-header { margin-bottom: 28px; }

.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}

.auth-switch {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.auth-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.auth-small {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ---- FORM EXTRAS ---- */
.form-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.15s;
  line-height: 1.5;
}
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea:focus { border-color: var(--text-secondary); }

.form-hint {
  font-weight: 400;
  color: var(--text-muted);
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ---- BUTTONS ---- */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }

.btn-danger { color: #f4212e; border-color: rgba(244,33,46,0.3); }
.btn-danger:hover { background: rgba(244,33,46,0.1); }

/* ---- DASHBOARD ---- */
.dashboard-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dashboard-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-jobs-list { display: flex; flex-direction: column; gap: 12px; }

.dashboard-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 16px;
  flex-wrap: wrap;
  transition: background 0.15s;
}
.dashboard-job-row:hover { background: var(--bg-card); }

.dashboard-job-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.dashboard-job-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-job-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.empty-dashboard {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.empty-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 360px;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 4px;
}

/* ---- APPLICATIONS LIST ---- */
.applications-list { display: flex; flex-direction: column; gap: 12px; }

.application-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 16px;
  flex-wrap: wrap;
}

.application-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.application-name:hover { text-decoration: underline; }

.application-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.application-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}

.application-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.application-status-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.status-applied { background: rgba(29,155,240,0.15); color: #1d9bf0; }
.status-reviewed { background: rgba(255,212,0,0.15); color: #f5a623; }
.status-shortlisted { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-rejected { background: rgba(244,33,46,0.1); color: #f4212e; }

.status-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font);
  cursor: pointer;
}

/* ---- CANDIDATES GRID ---- */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.candidate-card {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
}
.candidate-card:hover { background: var(--bg-card); }

.candidate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.candidate-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.candidate-card-name:hover { text-decoration: underline; }

.pledge-badge-small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.candidate-card-location {
  font-size: 13px;
  color: var(--text-muted);
}

.candidate-card-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.candidate-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-search { max-width: 240px; }

/* ---- MESSAGING ---- */
.inbox-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.inbox-thread {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.inbox-thread:last-child { border-bottom: none; }
.inbox-thread:hover { background: var(--bg-card); }
.inbox-thread-unread { background: rgba(29,155,240,0.05); }

.inbox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.inbox-content { flex: 1; min-width: 0; }

.inbox-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-preview {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.inbox-time {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.thread-messages {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.thread-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 32px 0;
}

.thread-message {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thread-message-mine { align-self: flex-end; align-items: flex-end; }
.thread-message-theirs { align-self: flex-start; align-items: flex-start; }

.thread-message-body {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.thread-message-mine .thread-message-body { background: var(--text-primary); color: var(--bg); }
.thread-message-theirs .thread-message-body { background: var(--bg-card); color: var(--text-primary); }

.thread-message-time {
  font-size: 11px;
  color: var(--text-muted);
}

.thread-compose { }

.thread-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.thread-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  border-radius: 12px;
  resize: none;
  transition: border-color 0.15s;
}
.thread-input::placeholder { color: var(--text-muted); }
.thread-input:focus { border-color: var(--text-secondary); }

/* ---- PROFILE EXTRAS ---- */
.profile-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-bio-block {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
}

.profile-bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.profile-work-history {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.work-item { margin-bottom: 16px; }
.work-item:last-child { margin-bottom: 0; }

.work-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.work-role { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.work-period { font-size: 13px; color: var(--text-muted); }
.work-company { font-size: 14px; color: var(--text-secondary); }
.work-notes { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; }

.already-applied-badge {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  padding: 12px;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .manifesto-section,
  .pledge-section,
  .stats-section,
  .closing-section { padding: 36px 16px; }
  .landing-hero { padding: 40px 16px 36px; }
  .page-header { padding: 32px 16px 24px; }
  .jobs-list-section { padding: 24px 16px; }
  .jobs-cta-strip { padding: 24px 16px; }
  .signup-section { padding: 40px 16px; }
  .profile-section { padding: 40px 16px; }
  .job-detail-body { grid-template-columns: 1fr; }
  .job-detail-content { padding: 24px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .job-detail-sidebar { padding: 24px 16px; position: static; }
  .job-detail-header { padding: 24px 16px 20px; }
  .profile-card { flex-direction: column; gap: 16px; }
  .jobs-cta-inner { flex-direction: column; align-items: flex-start; }
  .nav { padding: 0 16px; }
  .footer { padding: 20px 16px; }
  .stats-grid { gap: 24px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .dashboard-page { padding: 24px 16px 48px; }
  .dashboard-header { flex-direction: column; gap: 16px; }
  .dashboard-header-actions { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-search { max-width: 100%; }
  .candidates-grid { grid-template-columns: 1fr; }
  .thread-message { max-width: 85%; }
  .auth-page { padding: 32px 16px 48px; }
}