/* ==========================================================================
   赤桃求职 (MomoJob) - 极简清爽浅红风格样式表
   Design Language: Soft blush pale-rose background, pure white cards,
   gentle warm shadows, generous rounded corners, refined typography.
   ========================================================================== */

:root {
  /* Canvas & Surfaces */
  --bg-page: #FFF7F6;
  --bg-page-alt: #FFF2F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDFC;
  --bg-subtle: #FFF1F0;
  --bg-subtle-hover: #FFE4E2;

  /* Primary & Brand Tones (Soft elegant rose-coral red) */
  --primary: #E11D48;
  --primary-hover: #BE123C;
  --primary-active: #9F1239;
  --primary-light: #FFF1F2;
  --primary-subtle: #FFE4E6;
  --primary-border: #FECDD3;
  --primary-gradient: linear-gradient(135deg, #E11D48 0%, #F43F5E 100%);

  /* Secondary / Accent */
  --accent-warm: #FB7185;
  --accent-peach: #FDA4AF;
  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;

  /* Text & Contrast */
  --text-main: #1E293B;      /* High-readability slate-800 */
  --text-secondary: #475569; /* Slate-600 */
  --text-muted: #64748B;     /* Slate-500 */
  --text-light: #94A3B8;     /* Slate-400 */
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-light: #FDE8E6;
  --border-card: #FCE6E4;
  --border-focus: #F43F5E;

  /* Shadows - Soft warm multi-layer glow */
  --shadow-sm: 0 2px 8px -1px rgba(225, 29, 72, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 8px 24px -4px rgba(225, 29, 72, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 16px 36px -6px rgba(225, 29, 72, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(225, 29, 72, 0.12), 0 8px 20px -4px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 72px;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(254, 226, 226, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(255, 241, 242, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(254, 205, 211, 0.25) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation (Zero-Pill, Clean 3-Zone Contract)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(225, 29, 72, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

/* Zone 1: Brand Wordmark */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: transform 0.2s ease;
}

.brand-lockup:hover .brand-icon {
  transform: scale(1.05);
}

.brand-name {
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--primary);
  font-weight: 800;
}

/* Zone 2: Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Zone 3: Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* User avatar dropdown pill in header */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu-btn:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Hero Section & Search Console
   ========================================================================== */
.hero-section {
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto 16px;
  text-wrap: balance;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Search Console Card */
.search-console-wrapper {
  max-width: 880px;
  margin: 0 auto 28px;
}

.search-console-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  box-shadow: 0 12px 36px -4px rgba(225, 29, 72, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.search-console-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 16px 40px -4px rgba(225, 29, 72, 0.12), 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 8px 12px;
}

.search-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-main);
}

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

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
  flex-shrink: 0;
}

.city-select-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.city-select-trigger:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.search-submit-btn {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hot Search Keywords */
.hot-keywords {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.875rem;
}

.hot-label {
  color: var(--text-muted);
  font-weight: 500;
}

.hot-link {
  color: var(--text-secondary);
  background: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.hot-link:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
}

/* ==========================================================================
   Section Headers & Grids
   ========================================================================== */
.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.section-title-wrap {
  max-width: 650px;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.section-action-link:hover {
  gap: 9px;
  color: var(--primary-hover);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.category-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.category-card:hover .category-icon-box {
  background: var(--primary);
  color: #FFFFFF;
}

.category-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Job Cards & Job Listings
   ========================================================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.job-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.job-card:hover .job-title {
  color: var(--primary);
}

.job-salary {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Clean Unboxed Metadata without pills */
.job-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.meta-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.job-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.job-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9F1239;
  background: #FFF1F2;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.job-card-divider {
  height: 1px;
  background: var(--border-light);
  margin-top: auto;
  margin-bottom: 16px;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-mini-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.company-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #FFF;
  flex-shrink: 0;
}

.company-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.company-mini-info {
  min-width: 0;
}

.company-mini-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-mini-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon-ghost {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.btn-icon-ghost:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-icon-ghost.bookmarked {
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================================
   Company Showcase Grid
   ========================================================================== */
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.company-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.company-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.company-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.company-title-info {
  min-width: 0;
}

.company-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-submeta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.company-desc-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.company-perk-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.company-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.company-hiring-count {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Trust / Stats Strip
   ========================================================================== */
.stats-strip {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  box-shadow: var(--shadow-card);
  margin: 40px 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Jobs Filter Bar & Listing Page
   ========================================================================== */
.filter-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-row:first-child {
  padding-top: 0;
}

.filter-label {
  width: 72px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  flex: 1;
}

.filter-btn {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.filter-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-color: var(--primary-border);
}

/* Sorting & Toolbar */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.sort-btn {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sort-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.results-count-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.results-count-text strong {
  color: var(--primary);
}

/* Two column layout for Jobs & Sidebar */
.jobs-layout-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.jobs-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* List Item Horizontal Card */
.job-item-horizontal {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  text-decoration: none;
}

.job-item-horizontal:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.job-main-col {
  min-width: 0;
}

.job-sub-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-light);
}

.page-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-job-mini {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: block;
}

.sidebar-job-mini:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-job-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-job-title:hover {
  color: var(--primary);
}

.sidebar-job-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Job Detail Page
   ========================================================================== */
.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.detail-main-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.detail-header-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-title-wrap {
  min-width: 0;
}

.detail-salary-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.detail-job-h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.detail-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.detail-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.detail-block-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-prose {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.detail-prose ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-top: 8px;
}

.detail-prose li {
  margin-bottom: 6px;
}

/* Recruiter HR Card */
.hr-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
}

.hr-avatar-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid #FFF;
  box-shadow: var(--shadow-sm);
}

.hr-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.hr-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hr-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  font-size: 0.8125rem;
}

.hr-stat-val {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   Auth Pages (Login & Register - Minimalist Elegance)
   ========================================================================== */
.auth-page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-role-tabs {
  display: flex;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.auth-role-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-role-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-input-code-btn {
  position: absolute;
  right: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  transition: all 0.2s ease;
}

.form-input-code-btn:hover:not(:disabled) {
  background: var(--primary-subtle);
}

.form-input-code-btn:disabled {
  color: var(--text-light);
  background: var(--bg-page);
  cursor: not-allowed;
}

.form-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 22px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-link {
  color: var(--primary);
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.demo-account-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  text-align: center;
}

.demo-account-label {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-btns-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.demo-fill-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: #FFFFFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.demo-fill-btn:hover {
  background: var(--primary-light);
}

/* ==========================================================================
   Modal Dialog & Toast Notifications
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 540px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-page);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-message.success {
  border-left: 4px solid var(--primary);
}

.toast-message.info {
  border-left: 4px solid #3B82F6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 56px 0 28px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col {
  max-width: 320px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jobs-layout-split,
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .detail-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .job-item-horizontal {
    grid-template-columns: 1fr;
  }
  .job-sub-col {
    text-align: left;
    align-items: flex-start;
  }
}
