/* =============================================
   easyoffer — Design System
   Dark Landing + Light App
   ============================================= */

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

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --accent: #171717;
  --accent-hover: #262626;
  --green: #10B981;
  --green-bg: #ECFDF5;
  --green-border: #A7F3D0;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.02);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.06), 0 2px 4px rgb(0 0 0 / 0.03);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
  --font: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.hidden { display: none !important; }

/* =============================================
   LANDING PAGE — Dark Theme
   ============================================= */

.landing {
  background: #09090B;
  color: #FAFAFA;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- Nav ---- */
.lp-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FAFAFA;
}

.lp-nav-btn {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  background: transparent;
  color: #A1A1AA;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.lp-nav-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: #FAFAFA;
  background: rgba(255,255,255,0.04);
}

/* ---- Hero ---- */
.lp-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 24px 140px;
  text-align: center;
}

.lp-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: #71717A;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.03);
}

.lp-hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #FAFAFA;
  margin-bottom: 24px;
}

.lp-hero-label {
  display: block;
  margin-bottom: 4px;
}

/* ---- Animated hero words ---- */
.hero-words {
  position: relative;
  display: inline-block;
  width: 4.5em;
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-weight: 800;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.55s var(--spring);
  white-space: nowrap;
  color: #A1A1AA;
}

.hero-word.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-word.exit {
  opacity: 0;
  transform: translateY(-120%);
}

.lp-hero-desc {
  font-size: 1.15rem;
  color: #71717A;
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.6;
  font-weight: 400;
}

.lp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-full);
  background: #FAFAFA;
  color: #09090B;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: -0.01em;
}

.lp-hero-cta:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.lp-hero-cta:active {
  transform: translateY(0);
}

.lp-arrow {
  transition: transform var(--dur) var(--ease);
}

.lp-hero-cta:hover .lp-arrow {
  transform: translateX(3px);
}

/* ---- Features ---- */
.lp-features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lp-feature {
  padding: 40px 32px;
  background: #09090B;
}

.lp-feature-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #3F3F46;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.lp-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FAFAFA;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.lp-feature-desc {
  font-size: 0.88rem;
  color: #71717A;
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.lp-cta {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 1080px;
  margin: 0 auto;
}

.lp-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FAFAFA;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.lp-cta-desc {
  font-size: 1rem;
  color: #71717A;
  margin-bottom: 36px;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  background: transparent;
  color: #FAFAFA;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.lp-cta-btn:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* ---- Footer ---- */
.lp-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-footer-brand {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3F3F46;
  letter-spacing: -0.02em;
}

.lp-footer-copy {
  font-size: 0.75rem;
  color: #3F3F46;
}

/* =============================================
   ONBOARDING — Light, Clean
   ============================================= */

.onboarding {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}

.onboarding-inner {
  max-width: 460px;
  width: 100%;
}

.ob-brand {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}

.ob-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ---- Form ---- */
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 9px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
  white-space: nowrap;
}

.pill:hover {
  border-color: #A1A1AA;
  color: var(--text);
}

.pill-active {
  background: var(--text);
  color: #FFF;
  border-color: var(--text);
}

.pill-active:hover {
  background: var(--accent-hover);
  color: #FFF;
  border-color: var(--accent-hover);
}

.btn-go {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-radius: var(--radius);
  background: var(--text);
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-go:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-go:active:not(:disabled) {
  transform: translateY(0);
}

.btn-go:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

/* =============================================
   TOPBAR
   ============================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-sm {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tracked {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-tracked:hover {
  border-color: #A1A1AA;
  color: var(--text);
}

.btn-tracked.active {
  background: var(--text);
  color: #FFF;
  border-color: var(--text);
}

.btn-back {
  padding: 7px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-back:hover {
  background: var(--border-light);
  color: var(--text-secondary);
}

/* =============================================
   FILTERS
   ============================================= */

.filters {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border-light);
}

.filters-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-input {
  flex: 1 1 200px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: all var(--dur) var(--ease);
}

.search-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-row {
  display: flex;
  gap: 6px;
}

.filter-select {
  padding: 8px 30px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-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='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all var(--dur) var(--ease);
}

.filter-select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* =============================================
   JOB LIST — Desktop
   ============================================= */

.list-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.list-header {
  display: flex;
  align-items: center;
  padding: 18px 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.header-hint { opacity: 0.5; font-weight: 400; }

/* Column widths */
.col-company  { width: 20%; min-width: 100px; padding-right: 12px; }
.col-city     { width: 9%; padding-right: 12px; }
.col-position { width: 18%; padding-right: 12px; }
.col-tags     { width: 13%; padding-right: 12px; }
.col-progress { width: 13%; padding-right: 12px; }
.col-action   { width: 27%; text-align: right; }

.job-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--dur) var(--ease);
}

.job-row:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* ---- Company ---- */
.company-link {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.company-link:hover .company-name {
  color: var(--text-secondary);
}

.company-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--dur) var(--ease);
}

.company-name-plain {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.company-industry {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- City ---- */
.city-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ---- Position ---- */
.position-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Tags ---- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--border-light);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.tag-exam-free {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

/* ---- Progress ---- */
.progress-select {
  padding: 5px 22px 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.72rem;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: all var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  max-width: 100%;
}

.progress-select:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.progress-select[data-status="待投递"]  { border-color: var(--border); color: var(--text-secondary); }
.progress-select[data-status="已投递"]  { border-color: #818CF8; color: #6366F1; background-color: rgba(99,102,241,0.04); }
.progress-select[data-status="待笔试"],
.progress-select[data-status="待测评"]  { border-color: #FBBF24; color: #D97706; }
.progress-select[data-status="已笔试"],
.progress-select[data-status="已测评"]  { border-color: #C4B5FD; color: #7C3AED; }
.progress-select[data-status="一面二面"] { border-color: #F9A8D4; color: #DB2777; }
.progress-select[data-status="有offer"]  { border-color: #6EE7B7; color: var(--green); background-color: rgba(16,185,129,0.04); }
.progress-select[data-status="未通过"]   { border-color: #FCA5A5; color: #EF4444; }

/* ---- Action ---- */
.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--text);
  color: #FFF;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-apply:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-apply-disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-apply-arrow {
  font-size: 0.82rem;
  transition: transform var(--dur) var(--ease);
}

.btn-apply:hover .btn-apply-arrow {
  transform: translateX(2px);
}

.btn-ai {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-ai:hover {
  border-color: #A1A1AA;
  color: var(--text);
  transform: translateY(-1px);
}

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgb(0 0 0 / 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgb(0 0 0 / 0.12), 0 0 0 1px rgba(0,0,0,0.04);
  animation: slideUp 0.3s var(--spring);
}

@keyframes slideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--border-light);
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

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

.modal-body { padding: 20px 24px 28px; }

.ai-company {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.ai-section { margin-bottom: 14px; }

.ai-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ai-section-content {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.7;
}

.ai-section-content p { margin: 4px 0; }
.ai-section-content ul, .ai-section-content ol { margin: 6px 0; padding-left: 18px; }
.ai-section-content li { margin: 2px 0; }
.ai-section-content strong { font-weight: 600; color: var(--text); }
.ai-section-content code {
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ai-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

.ai-tag {
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--border-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.ai-tip {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: #92400E;
  line-height: 1.5;
}

.ai-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ai-loading .loader { margin-bottom: 12px; }

/* =============================================
   STATES
   ============================================= */

.loading-state, .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.loader {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.results-count {
  padding: 14px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */

@media (max-width: 768px) {
  /* ---- Landing ---- */
  .lp-hero {
    padding: 60px 20px 80px;
  }

  .lp-hero-title {
    font-size: 2.6rem;
  }

  .hero-words {
    width: 4em;
    height: 1.15em;
  }

  .lp-hero-desc {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-feature {
    padding: 28px 24px;
  }

  .lp-cta-title {
    font-size: 1.6rem;
  }

  .lp-nav { padding: 16px 20px; }
  .lp-footer { padding: 20px 20px 28px; }

  /* ---- Onboarding ---- */
  .ob-brand { font-size: 2.2rem; }
  .ob-sub { font-size: 0.9rem; margin-bottom: 36px; }
  .onboarding { padding: 32px 20px; align-items: flex-start; padding-top: 12vh; }

  /* ---- Topbar ---- */
  .topbar-inner { padding: 12px 16px; }
  .brand-sm { font-size: 0.95rem; }

  /* ---- Filters ---- */
  .filters-inner { padding: 10px 16px; }
  .search-input { font-size: 16px; flex: 1 1 100%; }
  .filter-row { flex: 1 1 100%; }
  .filter-select { flex: 1; min-width: 0; }

  /* ---- Hide table header ---- */
  .list-header { display: none; }

  /* ---- Card container ---- */
  .list-container { padding: 0 12px 80px; }
  .results-count { padding: 12px 4px 0; }

  .job-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
  }

  /* ---- Card ---- */
  .job-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "company  company"
      "position position"
      "city     tags"
      "progress action";
    gap: 6px 10px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    transition: all var(--dur) var(--ease);
  }

  .job-row:hover { background: var(--surface); }

  .col-company {
    grid-area: company;
    width: 100%; min-width: 0; padding-right: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2px;
  }

  .col-position { grid-area: position; width: 100%; padding-right: 0; }
  .col-city { grid-area: city; width: auto; padding-right: 0; }
  .col-tags { grid-area: tags; width: auto; padding-right: 0; justify-self: end; }

  .col-progress {
    grid-area: progress; width: auto; padding-right: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    margin-top: 2px;
  }

  .col-action {
    grid-area: action; width: auto; text-align: right; justify-self: end;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    margin-top: 2px;
  }

  /* ---- Card text ---- */
  .company-name, .company-name-plain { font-size: 0.9rem; }
  .company-industry { white-space: normal; font-size: 0.68rem; }

  .city-text { white-space: nowrap; font-size: 0.72rem; color: var(--text-muted); }

  .position-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .tag { font-size: 0.62rem; padding: 1px 7px; }

  /* ---- Card bottom ---- */
  .progress-select { font-size: 0.7rem; padding: 5px 20px 5px 6px; }
  .action-group { gap: 5px; justify-content: flex-end; }
  .btn-ai { padding: 5px 9px; font-size: 0.65rem; }
  .btn-apply { padding: 6px 14px; font-size: 0.72rem; }

  /* ---- Modal ---- */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-height: 88vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUpMobile 0.3s var(--spring);
  }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-header { padding: 18px 20px 0; }
  .modal-body { padding: 16px 20px 36px; }
}

/* ---- Extra small ---- */
@media (max-width: 380px) {
  .lp-hero-title { font-size: 2rem; }

  .job-row {
    grid-template-columns: 1fr;
    grid-template-areas: "company" "position" "city" "tags" "progress" "action";
    padding: 12px 14px;
  }
  .col-tags { justify-self: start; }
  .col-action { justify-self: start; width: 100%; border-top: none; }
  .col-progress { border-top: 1px solid var(--border-light); }
  .action-group { justify-content: flex-start; }
  .btn-apply { flex: 1; justify-content: center; }
  .pill { padding: 8px 16px; font-size: 0.82rem; }
  .onboarding { padding-top: 8vh; }
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
