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

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --info: #06b6d4;
  --info-light: #ecfeff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.04);
  --transition: 150ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img, svg { max-width: 100%; display: block; }

/* ── Navigation ── */
nav {
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
}
.logo:hover { color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .875rem;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--primary); }
.nav-email {
  color: var(--text-muted);
  font-size: .8rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Layout ── */
main {
  flex: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  width: 100%;
  animation: fadeIn .3s ease;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

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

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  font-size: .825rem;
  color: var(--text-secondary);
}
.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border);
}
.btn-danger-ghost:hover { border-color: var(--danger); background: var(--danger-light); color: var(--danger); }

.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 56px 0 36px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ── Search ── */
.search-bar {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .975rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .btn {
  padding: 13px 28px;
  font-size: .95rem;
}

/* ── Filters ── */
.filters {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 12px auto 0;
  align-items: center;
}
.filters select, .filters input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  background: var(--surface);
  outline: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.filters select:focus, .filters input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ── Location combobox ── */
.location-search { flex: 1; position: relative; }
.location-search input {
  width: 100%;
  padding: 10px 34px 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.location-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.location-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.location-clear:hover { color: var(--text); background: var(--bg); }
.location-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.location-dropdown.open { display: block; }
.loc-option {
  padding: 9px 12px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition);
  border-radius: 4px;
  margin: 2px 4px;
}
.loc-option:hover, .loc-option.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Toggle ── */
.cph-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.cph-toggle:hover { background: var(--bg); }
.cph-toggle input { accent-color: var(--primary); cursor: pointer; width: 15px; height: 15px; }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  margin-top: 40px;
  color: #fff;
}
.cta-section h2 { font-size: 1.35rem; margin-bottom: 8px; font-weight: 700; }
.cta-section p { opacity: .9; margin-bottom: 20px; font-size: .95rem; line-height: 1.6; }
.cta-section .btn { background: #fff; color: var(--primary); }
.cta-section .btn:hover { background: #f1f5f9; color: var(--primary-hover); }

/* ── Alerts suggestion ── */
.alerts-suggestion {
  margin: 24px auto;
  max-width: 580px;
}
.alerts-suggestion-inner {
  background: var(--info-light);
  border: 1px solid #a5f3fc;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.alerts-suggestion-content strong {
  font-size: .9rem;
  color: var(--text);
}
.alerts-suggestion-content p {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Stats bar ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.stats strong { color: var(--text); }

.create-alert-link {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.create-alert-link:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: var(--primary);
}
.create-alert-link strong { color: var(--primary); }

/* ── Job list ── */
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.job-card h3 {
  font-size: 1.05rem;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.job-card .company {
  color: var(--primary);
  font-weight: 500;
  font-size: .875rem;
}
.job-card .meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: .825rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  align-items: center;
}
.job-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.job-card .tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .725rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.job-card .source-badge {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
}
.job-card .fresh-badge {
  font-size: .7rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Save button ── */
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.save-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.save-btn.saved {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Job detail ── */
.job-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.job-detail .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.job-detail .back:hover { color: var(--primary); text-decoration: none; }
.job-detail h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.job-detail .detail-company {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.job-detail .detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: .875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  align-items: center;
}
.job-detail .detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-detail .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.job-detail .detail-tags .tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.job-detail .description {
  line-height: 1.75;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: .95rem;
}
.job-detail .description p { margin-bottom: 12px; }
.job-detail .description ul, .job-detail .description ol { margin: 8px 0 12px 20px; }
.job-detail .description li { margin-bottom: 4px; }
.job-detail .description a { color: var(--primary); }
.job-detail .description strong { font-weight: 600; color: var(--text); }
.job-detail .apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.job-detail .apply-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── About page ── */
.about-page { max-width: 640px; margin: 0 auto; }
.about-page h1 { font-size: 2rem; margin-bottom: 16px; letter-spacing: -.02em; }
.about-page h2 { font-size: 1.2rem; margin: 24px 0 12px; }
.about-page p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.about-page ul { color: var(--text-secondary); margin-left: 20px; margin-bottom: 16px; }
.about-page ul li { margin-bottom: 6px; line-height: 1.6; }

/* ── States ── */
.loading, .empty-state, .error-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-secondary);
}
.loading p, .empty-state p, .error-state p { margin-top: 12px; }

.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: .9rem; max-width: 360px; margin: 0 auto 16px; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin: 0 auto 12px;
}

/* ── Skeleton ── */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.skeleton-line {
  height: 14px;
  background: var(--bg);
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.title { width: 55%; height: 18px; margin-bottom: 8px; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.pagination button {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .875rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination .page-info {
  font-size: .875rem;
  color: var(--text-secondary);
  padding: 0 8px;
}

/* ── Auth pages ── */
.auth-page {
  max-width: 420px;
  margin: 40px auto;
}
.auth-page h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.auth-page .subtitle {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-group { margin-bottom: 0; }
.auth-form .btn { width: 100%; padding: 13px; font-size: .975rem; }
.auth-form .divider {
  text-align: center;
  font-size: .825rem;
  color: var(--text-muted);
}
.auth-msg {
  font-size: .875rem;
  text-align: center;
  min-height: 1.4em;
  padding: 4px 0;
}
.auth-msg.error { color: var(--danger); }
.auth-msg.info { color: var(--text-secondary); }

/* ── Profile page ── */
.profile-page { max-width: 680px; margin: 0 auto; }
.profile-page h1 { font-size: 2rem; margin-bottom: 6px; letter-spacing: -.02em; }
.profile-page .subtitle { color: var(--text-secondary); margin-bottom: 28px; }
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.profile-section h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 5px;
  color: var(--text);
}
.form-group .hint {
  font-size: .775rem;
  color: var(--text-muted);
  margin-bottom: 7px;
  line-height: 1.4;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .925rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 110px; resize: vertical; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
}
.toggle-row label { margin-bottom: 0; cursor: pointer; }
.toggle {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle.active { background: var(--primary); }
.toggle::after {
  content: '';
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle.active::after { transform: translateX(22px); }

.salary-row { display: flex; gap: 14px; }
.salary-row .form-group { flex: 1; }

.profile-msg {
  margin-top: 14px;
  font-size: .875rem;
  text-align: center;
  min-height: 1.5em;
  padding: 4px 0;
}
.profile-msg.success { color: var(--accent); font-weight: 500; }
.profile-msg.error { color: var(--danger); font-weight: 500; }

/* ── Alert preview ── */
.alert-preview {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-hover);
  overflow: hidden;
}
.preview-header {
  padding: 12px 16px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}
.preview-list { padding: 8px; }
.preview-job {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.preview-job:hover { background: var(--bg); }
.preview-job-title {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 3px;
}
.preview-job-meta {
  font-size: .78rem;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: .85rem;
}
.preview-footer {
  padding: 10px 16px;
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  margin: 0;
}
.btn-row {
  display: flex;
  gap: 8px;
}
.btn-row .btn { flex: 1; }

/* ── Onboarding CTA ── */
.onboarding-cta {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
}
.onboarding-cta .icon { font-size: 3.5rem; margin-bottom: 16px; }
.onboarding-cta h1 { font-size: 1.75rem; margin-bottom: 8px; letter-spacing: -.02em; }
.onboarding-cta p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.onboarding-cta .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .5;
}
.onboarding-step.done { opacity: 1; }
.os-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.onboarding-step.done .os-number {
  background: var(--accent);
  color: #fff;
}
.os-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.onboarding-step.done .os-label { color: var(--accent); }

.onboarding-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

/* ── Alerts page ── */
.alerts-page { max-width: 680px; margin: 0 auto; }
.alerts-page h1 { font-size: 2rem; margin-bottom: 6px; letter-spacing: -.02em; }
.alerts-page .subtitle { color: var(--text-secondary); margin-bottom: 28px; }

.alert-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.alert-step {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: .4;
  transition: opacity var(--transition);
}
.alert-step.active { opacity: 1; }
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.alert-step.active .step-number {
  background: var(--primary);
  color: #fff;
}
.step-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.alert-step.active .step-label { color: var(--text); }
.step-arrow {
  color: var(--text-muted);
  font-size: .85rem;
  opacity: .4;
}

.preview-count {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.alert-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.alert-section h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.alert-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.alert-info h3 { font-size: .95rem; margin-bottom: 4px; font-weight: 600; }
.alert-meta {
  display: flex;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  align-items: center;
}
.alert-meta .source-badge {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.alert-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--danger);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  flex-shrink: 0;
}
.alert-delete:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
  max-width: 360px;
}
.toast.success { background: var(--accent); }
.toast.error { background: var(--danger); }

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

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: .95rem; }
  .search-bar { flex-direction: column; }
  .filters { flex-direction: column; }
  .filters .cph-toggle { justify-content: center; padding: 8px; }
  .job-card { padding: 16px 18px; }
  .job-detail { padding: 24px; }
  .job-detail h1 { font-size: 1.3rem; }
  .job-detail .detail-meta { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .8rem; }
  .cta-section { padding: 28px 20px; }
  .pagination { gap: 8px; }
  .salary-row { flex-direction: column; gap: 0; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 420px) {
  main { padding: 24px 14px 48px; }
  .hero { padding: 36px 0 24px; }
  .logo { font-size: 1.15rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .75rem; }
  .nav-email { max-width: 100px; }
}
