/* ============================================================
   FreelanceSV — Phong cách Viecoday
   Màu chủ đạo: Vàng #FFB800 + Trắng
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --yellow:     #FFB800;
  --yellow-dark:#E6A500;
  --yellow-light:#FFF3CC;
  --yellow-pale: #FFFAED;
  --text-dark:  #1A1A2E;
  --text-mid:   #444;
  --text-light: #888;
  --border:     #E8E8E8;
  --bg:         #F7F7F7;
  --white:      #FFFFFF;
  --red:        #E74C3C;
  --green:      #27AE60;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 70px; /* space for mobile bottom nav */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.5px;
}

/* Header search */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 8px;
}

.header-search input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}

.header-search input:focus {
  border-color: var(--yellow);
  background: var(--white);
}

.header-search .search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-light);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 18px;
  color: var(--text-mid);
  transition: background .2s;
  position: relative;
}

.btn-icon:hover { background: var(--yellow-light); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.btn-login-header {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  transition: all .2s;
}

.btn-login-header:hover {
  background: var(--yellow);
  color: var(--white);
}

.btn-register-header {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--yellow);
  color: var(--white);
  transition: all .2s;
}

.btn-register-header:hover { background: var(--yellow-dark); }

/* User avatar in header */
.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}

.user-chip:hover { border-color: var(--yellow); }

.user-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip span { font-size: 13px; font-weight: 500; }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar-wrap {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

/* Fade gradient edges */
.filter-bar-wrap::before,
.filter-bar-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s;
}
.filter-bar-wrap::before {
  left: 40px;
  background: linear-gradient(to right, var(--white), transparent);
}
.filter-bar-wrap::after {
  right: 40px;
  background: linear-gradient(to left, var(--white), transparent);
}

/* Arrow buttons */
.filter-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all .15s;
  margin: 8px 4px;
  flex-shrink: 0;
}
.filter-arrow:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-pale);
}
.filter-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.filter-bar {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  cursor: grab;
  user-select: none;
}
.filter-bar:active { cursor: grabbing; }
.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  white-space: nowrap;
}


.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--yellow);
  color: var(--text-dark);
}

.filter-chip.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--white);
  font-weight: 600;
}

.filter-chip .chip-icon {
  font-size: 14px;
}

/* ── Alert Banner ─────────────────────────────────────────── */
.alert-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-banner-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.alert-banner-text p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--yellow);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title .badge-new {
  background: var(--yellow);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .5px;
}

.see-all {
  font-size: 13px;
  color: var(--yellow);
  font-weight: 500;
  transition: color .2s;
}

.see-all:hover { color: var(--yellow-dark); }

/* ── Featured Employers ──────────────────────────────────── */
.employers-section {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.employers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.employer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
}

.employer-card:hover {
  border-color: var(--yellow);
  background: var(--yellow-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.employer-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg);
}

.employer-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.employer-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--yellow);
  font-weight: 600;
}

/* ── Job Cards ───────────────────────────────────────────── */
.jobs-section {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.jobs-section-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
  position: relative;
}

.job-card:last-child { border-bottom: none; }

.job-card:hover { background: var(--yellow-pale); }

.job-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.job-body {
  flex: 1;
  min-width: 0;
}

.job-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.job-company {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.job-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.job-meta-row span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badges */
.badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #FFF0EE;
  color: var(--red);
  border: 1px solid #FFD5CF;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-type.part-time { background: #EEF5FF; color: #2563EB; }
.badge-type.full-time { background: #EDFAF3; color: var(--green); }
.badge-type.freelance { background: var(--yellow-light); color: #92600A; }

.badge-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--yellow-light);
  color: #92600A;
}

/* ── Category Grid ───────────────────────────────────────── */
.category-section {
  margin-bottom: 16px;
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 80px;
}

.cat-chip:hover, .cat-chip.active {
  border-color: var(--yellow);
  background: var(--yellow-pale);
}

.cat-chip.active .cat-chip-label { color: var(--yellow); font-weight: 700; }

.cat-chip-icon { font-size: 22px; }
.cat-chip-label { font-size: 11px; font-weight: 500; color: var(--text-mid); text-align: center; line-height: 1.2; }
.cat-chip-count { font-size: 10px; color: var(--text-light); }

/* ── Sidebar ─────────────────────────────────────────────── */
.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Category list in sidebar */
.cat-list { list-style: none; }

.cat-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  font-size: 13px;
  color: var(--text-mid);
}

.cat-list-item:hover { background: var(--bg); }
.cat-list-item.active { background: var(--yellow-light); color: var(--yellow-dark); font-weight: 600; }
.cat-list-item.active .cat-list-icon { color: var(--yellow); }

.cat-list-icon { font-size: 16px; width: 20px; text-align: center; }
.cat-list-name { flex: 1; }
.cat-list-count {
  background: var(--bg);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.cat-list-item.active .cat-list-count {
  background: var(--yellow);
  color: var(--white);
}

/* City filter */
.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.city-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.city-tag:hover { border-color: var(--yellow); color: var(--text-dark); }

.city-tag.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--white);
  font-weight: 600;
}

.city-tag.clear {
  border-color: var(--red);
  color: var(--red);
}

.city-tag.clear:hover { background: var(--red); color: var(--white); }

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  color: var(--white);
  text-align: center;
}

.sidebar-cta h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sidebar-cta p {
  font-size: 12px;
  opacity: .85;
  margin-bottom: 14px;
}

.btn-cta-white {
  display: block;
  padding: 9px 20px;
  background: var(--white);
  color: var(--yellow-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}

.btn-cta-white:hover { background: var(--yellow-pale); }

/* ── Jobs Toolbar ────────────────────────────────────────── */
.jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.results-count { font-size: 13px; color: var(--text-light); }
.results-count strong { color: var(--text-dark); }

.sort-select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
}

.sort-select:focus { border-color: var(--yellow); }

/* Active filters */
.active-filters {
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--yellow-light);
  color: #92600A;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.chip-remove {
  font-size: 14px;
  line-height: 1;
  color: #92600A;
  font-weight: 700;
  opacity: .7;
}

.chip-remove:hover { opacity: 1; }

.clear-all-btn {
  font-size: 12px;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--yellow);
  color: var(--white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.btn-primary:hover { background: var(--yellow-dark); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  transition: all .15s;
  text-decoration: none;
  padding: 0 8px;
}

.page-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.page-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--white); }

/* ── Bottom Mobile Navigation ────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text-light);
  transition: color .15s;
  min-width: 60px;
}

.bottom-nav-item.active { color: var(--yellow); }
.bottom-nav-item:hover { color: var(--yellow); }

.bottom-nav-icon { font-size: 22px; line-height: 1; }
.bottom-nav-label { font-size: 10px; font-weight: 500; }

/* ── Floating Button ─────────────────────────────────────── */
.floating-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--yellow);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,184,0,.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  z-index: 150;
}

.floating-btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,184,0,.5);
}

/* ── Job Detail Page ─────────────────────────────────────── */
.job-detail-wrap {
  max-width: 780px;
  margin: 24px auto;
  padding: 0 16px;
}

.job-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.job-detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.job-detail-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.job-detail-info h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.job-detail-company {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

.job-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}

.job-highlight-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-highlight-label { font-size: 11px; color: var(--text-light); }
.job-highlight-value { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.job-highlight-value.salary-value { color: var(--green); }

.job-description-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 16px;
}

.job-description-content {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  white-space: pre-line;
}

.job-skills-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.skill-tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--yellow-light);
  color: #92600A;
}

.apply-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-apply {
  flex: 1;
  padding: 13px 24px;
  background: var(--yellow);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}

.btn-apply:hover { background: var(--yellow-dark); }

.btn-save {
  padding: 13px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}

.btn-save:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo .logo-text { font-size: 28px; }

.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
}

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

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

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--bg);
}

.form-input:focus {
  border-color: var(--yellow);
  background: var(--white);
}

.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  cursor: pointer;
}

.form-select:focus { border-color: var(--yellow); }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--yellow);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}

.btn-submit:hover { background: var(--yellow-dark); }

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.auth-link a { color: var(--yellow); font-weight: 600; }

.alert-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-msg.error { background: #FFF0EE; color: var(--red); border: 1px solid #FFD5CF; }
.alert-msg.success { background: #EDFAF3; color: var(--green); border: 1px solid #A7E9C0; }

/* Role tabs */
.role-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.role-tab {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
  color: var(--text-light);
  border: none;
  font-family: inherit;
}

.role-tab.active {
  background: var(--yellow);
  color: var(--white);
}

/* ── Post Job Page ────────────────────────────────────────── */
.post-page {
  max-width: 700px;
  margin: 24px auto;
  padding: 0 16px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.post-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

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

.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color .2s;
}

.form-textarea:focus { border-color: var(--yellow); }

.salary-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.salary-input-group .form-input {
  flex: 1;
}

.salary-sep { font-size: 13px; color: var(--text-light); flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 24px;
  display: none; /* Hidden on mobile, show on desktop */
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-light);
  transition: color .15s;
}

.footer-links a:hover { color: var(--yellow); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-bottom: 80px; }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  .sidebar { display: none; }

  .bottom-nav { display: block; }

  .header-search { display: none; }

  .employers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .employer-logo { width: 44px; height: 44px; font-size: 22px; }
  .employer-name { font-size: 10px; }

  .job-detail-header { flex-direction: column; }
  .job-highlight-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer { display: none; }
}

@media (min-width: 769px) {
  .footer { display: block; }
  .floating-btn { bottom: 24px; }
}

@media (max-width: 480px) {
  .employer-verified { display: none; }
  .job-meta-row { gap: 8px; }
}

/* ── SVG / Image Icons ───────────────────────────────────── */
/* Icon image used in categories, employers, filter chips */
.cat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* Constrain inline category icons by default in text wrappers */
.active-chip .cat-icon-img,
.badge-cat .cat-icon-img,
td .cat-icon-img,
.job-meta-row .cat-icon-img,
.job-detail-info .cat-icon-img,
.job-company .cat-icon-img,
div[style*="font-size:12px"] .cat-icon-img,
div[style*="margin-top:4px"] .cat-icon-img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

/* Employer logo box: show SVG image properly */
.employer-logo {
  font-size: 0; /* hide fallback text */
  overflow: hidden;
  padding: 6px;
}
.employer-logo .cat-icon-img {
  border-radius: 8px;
}

/* Job card company logo: image-ready */
.job-company-logo {
  font-size: 0;
  overflow: hidden;
  padding: 6px;
}
.job-company-logo .cat-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

/* Sidebar category list icon */
.cat-list-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  overflow: hidden;
}
.cat-list-icon .cat-icon-img {
  width: 28px;
  height: 28px;
}

/* Filter bar chip icon */
.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0;
  flex-shrink: 0;
  vertical-align: middle;
}
.chip-icon .cat-icon-img {
  width: 20px;
  height: 20px;
}

/* Badge category icon */
.badge-cat .cat-icon-img {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

/* Employer emoji fallback */
.emp-emoji-logo {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Icon placeholder khi chưa upload */
.cat-icon-placeholder {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* ── Unified sidebar filter styles ── */
.filter-group {
  margin-bottom: 12px;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-select-premium {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  border: 1.5px solid var(--border, #E8E8E8);
  background: var(--white, #FFF);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.filter-select-premium:hover {
  border-color: #CCCCCC;
}
.filter-select-premium:focus {
  border-color: var(--yellow, #FFB800);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.15);
}

/* ── Employer Dashboard & Applicant cards ── */
.applicant-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.applicant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ── Filter Dropdown Button & Popover ── */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-filter:hover {
  border-color: #ccc;
  background: var(--bg);
}

.btn-filter.active {
  border-color: var(--yellow);
  background: var(--yellow-pale);
  color: var(--yellow-dark);
}

.filter-badge {
  background: var(--yellow-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  width: 260px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: dropFadeIn 0.15s ease;
}

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

.filter-popover-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-popover-select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-popover-select:focus {
  border-color: var(--yellow);
}

.filter-popover-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.filter-popover-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.filter-popover-btn.reset {
  background: #f1f1f1;
  color: var(--text-mid);
  border: 1px solid #e0e0e0;
}

.filter-popover-btn.reset:hover {
  background: #e5e5e5;
}

.filter-popover-btn.apply {
  background: var(--yellow);
  color: var(--white);
  border: 1px solid var(--yellow-dark);
}

.filter-popover-btn.apply:hover {
  background: var(--yellow-dark);
}



