:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #5a6c80;
  --line: #dbe4ef;
  --brand-1: #123d6a;
  --brand-2: #1f5a93;
  --ok: #1f8b4c;
  --warn: #b06a00;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.57;
  color: var(--text);
  background: var(--bg);
}

/* Typography theo ngôn ngữ (đồng bộ chuẩn iikanzi) */
html:lang(ja) body {
  font-family: "Noto Sans JP", "Noto Sans", Inter, sans-serif;
}

html:lang(en) body,
html:lang(vi) body {
  font-family: "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Đồng bộ font hiển thị cho khối tiêu đề */
.hero h1,
.section-title,
.job-card h3,
.job-block h3,
.modal-card .section-title {
  font-family: Inter, "Noto Sans", Arial, sans-serif;
  font-synthesis: none;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: transform .22s ease;
}

.topbar--hidden {
  transform: translateY(-100%);
}
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  letter-spacing: .4px;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
}
.nav a {
  color: #dce9f7;
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav a.active,
.nav a:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Guest home tab: giữ phẳng như các tab thường (không nền xám) */
body[data-nav="home-guest"] .nav a[data-nav-link="home-guest"].active,
body[data-nav="home-guest"] .nav a[data-nav-link="home-guest"].active:hover {
  background: transparent;
  color: #dce9f7;
}

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

.nav-my-jobs-home {
  color: #fff;
  font-size: 14px;
  padding: 2px 0;
  border: none;
  background: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d96a32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-avatar--initial {
  background: #d96a32;
}

.nav-login {
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}

.nav-sep {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.nav-post-job {
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.2);
  white-space: nowrap;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  color: #dce9f7;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.lang-chip__icon {
  font-size: 12px;
  line-height: 1;
  opacity: .95;
}

.lang {
  border: none;
  color: #fff;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.lang--compact {
  min-width: 0;
}

.lang option {
  color: #1f2d3d;
}

/* ===== Seeker app header (chỉ áp dụng trong trang seeker) ===== */
body[data-header-mode="seeker-app"] .topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "left toolbar tools avatar";
  align-items: center;
  column-gap: 16px;
}

body[data-header-mode="seeker-app"] .seeker-topbar-left {
  grid-area: left;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

body[data-header-mode="seeker-app"] .seeker-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .65px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

body[data-header-mode="seeker-app"] .seeker-topbar-search {
  width: min(220px, 100%);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

body[data-header-mode="seeker-app"] .seeker-topbar-search__btn {
  width: 26px;
  height: 22px;
  border: none;
  background: transparent;
  color: #dce9f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body[data-header-mode="seeker-app"] .seeker-topbar-search__btn:hover {
  color: #fff;
}

body[data-header-mode="seeker-app"] .seeker-topbar-search__input {
  flex: 1;
  min-width: 0;
  height: 22px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 8px 0 2px;
  font-size: 11px;
}

body[data-header-mode="seeker-app"] .seeker-topbar-search__input::placeholder {
  color: rgba(220,233,247,.84);
}

body[data-header-mode="seeker-app"] .seeker-topbar-search__input:focus {
  outline: none;
}

body[data-header-mode="seeker-app"] .seeker-toolbar {
  grid-area: toolbar;
  justify-self: stretch;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
}

body[data-header-mode="seeker-app"] .seeker-toolbar .seeker-tool-btn {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #dce9f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body[data-header-mode="seeker-app"] .seeker-toolbar .seeker-tool-btn:hover,
body[data-header-mode="seeker-app"] .seeker-toolbar .seeker-tool-btn.active {
  color: #fff;
  background: transparent;
}

body[data-header-mode="seeker-app"] .seeker-toolbar .icon-svg {
  width: 22px;
  height: 22px;
}

body[data-header-mode="seeker-app"] .seeker-toolbar-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #dce9f7;
  padding: 0;
  border: none;
  background: transparent;
}

body[data-header-mode="seeker-app"] .seeker-toolbar-lang .lang {
  font-size: 12px;
  border: none;
  background: transparent;
  color: #dce9f7;
}

body[data-header-mode="seeker-app"] .seeker-tool-btn__icon {
  font-size: 12px;
  line-height: 1;
}

body[data-header-mode="seeker-app"] .seeker-user-tools {
  grid-area: tools;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-width: 0;
}

body[data-header-mode="seeker-app"] .seeker-user-tools .seeker-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce9f7;
  padding: 0;
}

body[data-header-mode="seeker-app"] .seeker-user-tools .seeker-tool-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.18);
}

body[data-header-mode="seeker-app"] .seeker-user-tools .icon-svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-grid] .icon-svg,
body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-msg] .icon-svg {
  width: 18px;
  height: 18px;
}

body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-bell] .icon-svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.05;
}

body[data-header-mode="seeker-app"] .seeker-user-avatar {
  grid-area: avatar;
  justify-self: end;
}

body[data-header-mode="seeker-app"] .nav-my-jobs-home {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-header-mode="seeker-app"] .nav-user-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  font-weight: 800;
}

body[data-header-mode="seeker-app"] .nav-profile-name {
  display: none;
}

body[data-header-mode="seeker-app"] .icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* Guest quick block: nổi ở góc phải phía trên (không nằm trong header) */
.guest-cv-float {
  position: fixed;
  top: 78px;
  right: max(14px, calc((100vw - 1100px) / 2 + 12px));
  width: min(320px, calc(100vw - 28px));
  z-index: 21;
  background: #ffffff;
  border: 1px solid #cfe0f3;
  box-shadow: 0 10px 26px rgba(12, 45, 76, .14);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.guest-cv-float__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #123d6a;
}

.guest-cv-float__desc {
  margin: 0;
  font-size: 12px;
  color: #4a617b;
}

.guest-cv-float .button {
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #ff6a2b, #e24a17);
  border-color: #db4311;
  color: #fff;
  animation: guest-cv-cta-pulse 1.8s ease-in-out infinite;
}

.guest-cv-float .button:hover {
  background: linear-gradient(180deg, #ff7638, #ec5622);
  border-color: #e24a17;
}

@keyframes guest-cv-cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 43, .16);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 106, 43, .06);
    transform: translateY(-1px);
  }
}

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

/* Dashboard seeker content layout */
.seeker-profile-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.seeker-profile-panel__avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: #ea6b24;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5px;
  overflow: hidden;
}

.seeker-profile-panel__avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seeker-profile-panel__name {
  margin-bottom: 6px;
}

.seeker-profile-panel__meta {
  margin: 0;
  font-size: 13px;
  color: #385673;
}

.seeker-dashboard-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seeker-summary-card .job-info-grid {
  grid-template-columns: 1fr;
}

.seeker-summary-card--status .job-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seeker-cv-mini {
  border: 1px solid #d7e3f1;
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px;
}

.seeker-cv-mini__head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.seeker-cv-mini__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #ea6b24;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
}

.seeker-cv-mini__avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seeker-cv-mini__name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #123a61;
}

.seeker-cv-mini__meta {
  margin: 0;
  font-size: 12px;
  color: #4a617a;
}

.seeker-cv-mini__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seeker-cv-mini__grid div {
  border: 1px solid #e1eaf5;
  border-radius: 8px;
  background: #fff;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.seeker-cv-mini__grid b {
  font-size: 11px;
  color: #43607c;
}

.seeker-cv-mini__grid span {
  font-size: 12px;
  color: #123a61;
  font-weight: 600;
}

.seeker-summary-card__actions .button {
  min-width: 150px;
}

.hero {
  background: linear-gradient(135deg, #1a4f85, #2f6dac);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: #e7f1ff;
  line-height: 1.57;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.1vw, 28px);
  text-transform: uppercase;
  letter-spacing: .25px;
  line-height: 1.25;
  font-weight: 700;
  color: #163a60;
}

.grid {
  display: grid;
  gap: 10px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.filters__actions {
  display: flex;
  gap: 6px;
  grid-column: span 2;
}

.filters__actions .button {
  flex: 1;
}

/* Bộ lọc trang chủ: thu gọn tối đa để giảm chiều cao màn hình */
.filters .input,
.filters .select,
.filters .button {
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 12.5px;
}

.input,
.select,
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  font: inherit;
}

/* ===== Button system =====
   - Primary: hành động chính của màn hình
   - Secondary: hành động hỗ trợ
   - Success/Warning/Danger: hành động trạng thái/nhạy cảm
*/
.button {
  background: linear-gradient(180deg, #2f6dac, #22588f);
  color: #fff;
  border-color: #2c659f;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}

.button:hover {
  background: linear-gradient(180deg, #3b79b8, #2a6299);
  border-color: #2f6dac;
}

.button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .16);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.button.is-loading {
  position: relative;
  pointer-events: none;
}

.button.is-loading::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: btn-spin .6s linear infinite;
}

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

.button.secondary {
  background: #fff;
  color: #1c4168;
  border-color: #b8cbe0;
}

.button.secondary:hover {
  background: #f4f9ff;
  border-color: #88acd1;
}

.button.success {
  background: linear-gradient(180deg, #25a05b, #1f8b4c);
  border-color: #1f8b4c;
}

.button.warning {
  background: linear-gradient(180deg, #d08a1b, #b06a00);
  border-color: #b06a00;
}

.button.danger {
  background: linear-gradient(180deg, #d65252, #b73939);
  border-color: #b73939;
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: #2f5f8f;
  padding-inline: 6px;
}

.job-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.job-card h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .18px;
  line-height: 1.35;
  font-weight: 700;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.job-info-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.job-info-item b {
  font-size: 12px;
  color: #345a81;
}

.job-info-item span {
  font-size: 14px;
}

.job-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

.job-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .18px;
  line-height: 1.35;
  font-weight: 700;
  color: #163a60;
}

.job-list {
  margin: 0;
  padding-left: 18px;
}

.job-list li {
  margin: 4px 0;
}
.tag {
  font-size: 12px;
  background: #eef4fb;
  color: #2b4f74;
  border-radius: 999px;
  padding: 4px 9px;
}
.tag--ok { background: #e8f7ef; color: #1b6b3f; }
.tag--warn { background: #fff3df; color: #8c5700; }
.tag--err { background: #ffe8e8; color: #9a2323; }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.row--start { justify-content: flex-start; }
.row--wrap { flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }

/* Utility class dùng cho các màn public/auth mới */
.container--sm { max-width: 720px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.w-max-240 { max-width: 240px; }
.w-max-260 { max-width: 260px; }
.col-span-full { grid-column: 1 / -1; }

.label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #2a4d72;
}

.notice {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  background: #f7fbff;
}
.notice.ok {
  border-color: #bfe4cf;
  background: #f2fbf6;
  color: #16653a;
}
.notice.warn {
  border-color: #ead2a7;
  background: #fff8eb;
  color: #8c5700;
}
.notice.err {
  border-color: #efc4c4;
  background: #fff4f4;
  color: #9a2323;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 9px 6px;
  font-size: 14px;
}
.table th { color: #2a4d72; }

.kpi {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.kpi .value { font-size: 24px; font-weight: 800; color: #123d6a; }

.jobs-actions {
  margin-top: 10px;
  display: grid;
  justify-items: center;
  gap: 4px;
  align-self: end;
}

.jobs-actions__buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.jobs-actions .button {
  min-width: 110px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.jobs-nav-btn {
  min-width: 40px !important;
  width: 40px;
  padding: 0;
}

.jobs-nav-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.jobs-nav-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jobs-actions .muted {
  margin: 0;
  font-size: 12px;
}

/* Desktop split view cho khu việc làm: trái danh sách, phải chi tiết nhanh */
.jobs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.jobs-mobile-hint {
  display: none;
}

.jobs-split__left {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: start;
}

.jobs-list-grid {
  gap: 8px;
}

.job-list-item {
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.job-list-item:hover {
  border-color: #9bbce0;
}

.job-list-item:active {
  transform: translateY(1px);
}

.job-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.job-list-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.job-list-save {
  width: 32px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.job-list-save-icon {
  width: 13px;
  height: 16px;
  background: #9fb3cf;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  border-radius: 2px 2px 0 0;
  transition: background .15s ease;
}

.job-list-save.is-saved .job-list-save-icon {
  background: #0f5bd8;
}

.job-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
  align-items: start;
}

.job-list-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.job-list-avatar {
  width: 148px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: end;
  margin-top: 12px;
}

.job-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-list-avatar span {
  font-size: 24px;
  font-weight: 700;
  color: #36597f;
}

.job-list-line {
  margin: 0;
  font-size: 13px;
  color: #355a80;
  line-height: 1.35;
}

.job-list-line--role {
  font-weight: 600;
  color: #274c72;
}

.job-list-salary {
  margin: 0;
  font-size: 16px;
  color: #173f66;
  letter-spacing: .1px;
}

.job-list-desc {
  margin: 0;
  color: #5a6c80;
  font-size: 13px;
  line-height: 1.4;
  padding: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.job-list-foot {
  margin-top: 6px;
  border-top: 1px solid #edf2f8;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-list-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 96px;
}

.job-star {
  font-size: 15px;
  line-height: 1;
}

.job-star--full {
  color: #f5b400;
}

.job-star--empty {
  color: #cfd6df;
}

.job-star--half {
  background: linear-gradient(90deg, #f5b400 50%, #cfd6df 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.job-list-meta-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  color: #4f6781;
}

.job-list-status {
  white-space: nowrap;
}

.job-list-age {
  white-space: nowrap;
}

.job-list-detail-mobile {
  display: none;
}

.jobs-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.jobs-preview__frame {
  min-height: 460px;
  display: grid;
  grid-template-rows: 1fr 2fr;
  gap: 8px;
}

.jobs-preview__top,
.jobs-preview__bottom {
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.jobs-preview__top {
  background: #f8fbff;
}

.jobs-preview__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.jobs-preview__head-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jobs-preview__head-right {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.jobs-preview-avatar {
  width: 108px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jobs-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jobs-preview-avatar span {
  font-size: 26px;
  font-weight: 700;
  color: #36597f;
}

.jobs-preview-save {
  width: 20px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jobs-preview-save.is-saved .job-list-save-icon {
  background: #0f5bd8;
}

.jobs-preview__bottom {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 0;
}

.jobs-preview__scroll {
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

@media (max-width: 980px) {
  .jobs-split__left {
    display: block;
  }

  /* Mobile homepage: bỏ hoàn toàn panel chi tiết, chỉ giữ danh sách việc */
  .jobs-preview {
    display: none;
  }

  .jobs-preview__frame {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .jobs-preview__bottom {
    overflow: visible;
    grid-template-rows: auto auto;
  }

  .jobs-preview__scroll {
    overflow: visible;
  }
}

.jobs-preview__title {
  margin: 0 0 8px;
  font-size: 17px;
  text-transform: uppercase;
  color: #163a60;
}

.jobs-preview__desc {
  margin: 0;
}

.jobs-preview__summary {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fff;
}

.jobs-preview__summary--inline {
  gap: 6px;
  padding: 2px 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.jobs-preview__summary-row {
  margin: 0;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: #355a80;
  line-height: 1.4;
}

.jobs-preview__summary-row b {
  color: #274c72;
}

.jobs-preview__summary-row span {
  overflow-wrap: anywhere;
}

.jobs-preview__foot {
  margin-top: 6px;
  border-top: 1px solid #e6edf6;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jobs-preview__rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 96px;
}

.jobs-preview__meta-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  color: #4f6781;
}

.jobs-preview__content-item {
  border: 1px solid #e6edf6;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.jobs-preview__content-item h4 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #2b4f74;
}

.jobs-preview__actions {
  margin-top: 0;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e6edf6;
  padding-top: 8px;
}

@media (min-width: 981px) {
  #jobs-section .section-title {
    display: none;
  }

  #jobs-section .filters {
    grid-template-columns: repeat(3, minmax(150px, 188px));
    justify-content: start;
    gap: 6px;
    margin-bottom: 8px;
  }

  #jobs-section .filters .input,
  #jobs-section .filters .select,
  #jobs-section .filters .button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* Desktop order theo yêu cầu:
     Hàng 1: Visa - Khu vực - Mức lương
     Hàng 2: Trình độ tiếng Nhật - Loại công việc - Bộ lọc thêm
     Hàng 3: Tìm kiếm - Xóa lọc */
  #visaFilter { grid-column: 1; grid-row: 1; }
  #regionFilter { grid-column: 2; grid-row: 1; }
  #salaryFilter { grid-column: 3; grid-row: 1; }

  #jpLevelFilter { grid-column: 1; grid-row: 2; }
  #jobTypeFilter { grid-column: 2; grid-row: 2; }
  #moreFilter { grid-column: 3; grid-row: 2; }

  #jobs-section .filters__actions {
    grid-column: 1 / span 3;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    justify-content: flex-start;
  }

  #jobs-section .filters__actions .button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    justify-content: center;
  }

  .jobs-split {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: start;
  }

  .job-list-layout {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .job-list-avatar,
  .job-list-save,
  .job-list-detail-mobile {
    display: none;
  }

  .job-list-main {
    gap: 2px;
  }

  .job-list-line,
  .job-list-desc {
    font-size: 12px;
  }

  .jobs-preview {
    position: sticky;
    top: 58px;
    align-self: start;
  }

  .jobs-preview__frame {
    height: auto;
    max-height: calc(100vh - 76px);
  }
}

.seeker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #23496f;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.tab-btn.active {
  background: #1f5a93;
  color: #fff;
  border-color: #1f5a93;
}

.seeker-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.job-card--active {
  border-color: #7aa4d0;
  box-shadow: 0 0 0 2px rgba(47,109,172,.15);
}

.status-pill {
  background: #edf4ff;
  color: #274f77;
}

.recruiter-cards {
  display: grid;
  gap: 10px;
}

.recruiter-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 34, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(15, 35, 62, .24);
  padding: 16px;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 10px;
}

.conversation-list {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.conversation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.conversation-card.active {
  border-color: #7aa4d0;
  box-shadow: 0 0 0 2px rgba(47,109,172,.15);
}

.thread-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  min-height: 460px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.thread-list {
  border: 1px solid #e2edf7;
  border-radius: 10px;
  background: #f9fcff;
  padding: 10px;
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.msg {
  display: inline-block;
  max-width: min(78%, 620px);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
}

.msg.candidate {
  background: #fff;
  border: 1px solid #d7e4f2;
}

.msg.recruiter {
  background: #e8f2ff;
  border: 1px solid #b9d3f0;
  margin-left: auto;
}

.msg-meta {
  font-size: 11px;
  color: #58708b;
  margin-top: 4px;
}

.thread-compose {
  display: grid;
  gap: 8px;
}

.footer {
  margin-top: 16px;
  font-size: 13px;
  color: #64788e;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 22px;
}

.footer-links a {
  color: #36597f;
  font-size: 13px;
}

.footer-admin {
  margin-right: auto;
  font-weight: 700;
  color: #123d6a !important;
}

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .seeker-filters { grid-template-columns: 1fr 1fr; }
  .recruiter-filters { grid-template-columns: 1fr 1fr; }
  .message-layout { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .job-info-grid { grid-template-columns: 1fr; }

  .seeker-profile-panel {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .seeker-profile-panel__avatar {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .seeker-profile-panel__meta {
    font-size: 12px;
  }

  .seeker-dashboard-summaries {
    grid-template-columns: 1fr;
  }

  .seeker-summary-card--status .job-info-grid,
  .seeker-cv-mini__grid {
    grid-template-columns: 1fr;
  }

  .seeker-cv-mini__head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .seeker-cv-mini__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .jobs-preview__head {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .jobs-preview-avatar {
    width: 88px;
  }

  .jobs-preview__summary-row {
    grid-template-columns: 92px minmax(0, 1fr);
    font-size: 12px;
  }

  .hero {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: clamp(17px, 5.2vw, 22px);
    letter-spacing: .3px;
    margin-bottom: 4px;
  }

  .hero p {
    font-size: 12px;
    line-height: 1.4;
  }

  .section-title { font-size: 17px; letter-spacing: .22px; }
  #jobs-section .section-title { font-size: 16px; }
  .job-card h3 { font-size: 14px; letter-spacing: .2px; }

  .job-list-layout {
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 8px;
  }

  .job-list-avatar {
    width: 114px;
    margin-top: 8px;
  }

  .job-list-save {
    width: 18px;
    height: 20px;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .job-list-save-icon {
    width: 12px;
    height: 15px;
  }

  .job-list-desc {
    font-size: 12px;
    padding: 0;
  }

  .job-list-detail-mobile {
    display: none;
  }

  .job-list-foot {
    margin-top: 5px;
    padding-top: 5px;
  }

  .job-list-rating {
    min-width: 82px;
  }

  .job-star {
    font-size: 13px;
  }

  .job-list-meta-right {
    font-size: 11.5px;
    gap: 6px;
  }

  /* Seeker app header mobile: cân đều 8 nút dòng 2 (5 trái + 3 phải) */
  body[data-header-mode="seeker-app"] .topbar__inner {
    grid-template-columns: 2fr 3fr 3fr;
    grid-template-areas:
      "left left avatar"
      "toolbar toolbar tools";
    row-gap: 6px;
    column-gap: 8px;
    padding: 7px 10px;
  }

  body[data-header-mode="seeker-app"] .seeker-topbar-left {
    grid-area: left;
    gap: 6px;
  }

  body[data-header-mode="seeker-app"] .seeker-brand {
    font-size: 18px;
  }

  body[data-header-mode="seeker-app"] .seeker-topbar-search {
    width: min(100%, 186px);
  }

  body[data-header-mode="seeker-app"] .seeker-topbar-search__btn {
    width: 24px;
    height: 22px;
  }

  body[data-header-mode="seeker-app"] .seeker-topbar-search__input {
    font-size: 10.5px;
    height: 22px;
  }

  body[data-header-mode="seeker-app"] .seeker-user-avatar {
    grid-area: avatar;
    justify-self: end;
    display: inline-flex;
  }

  body[data-header-mode="seeker-app"] .seeker-toolbar {
    grid-area: toolbar;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 0 2px;
  }

  body[data-header-mode="seeker-app"] .seeker-user-tools {
    grid-area: tools;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 0 2px;
    justify-self: stretch;
  }

  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-msg] { order: 1; }
  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-bell] { order: 2; }
  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-grid] { order: 3; }

  body[data-header-mode="seeker-app"] .seeker-toolbar .seeker-tool-btn,
  body[data-header-mode="seeker-app"] .seeker-toolbar-lang,
  body[data-header-mode="seeker-app"] .seeker-user-tools .seeker-tool-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body[data-header-mode="seeker-app"] .seeker-toolbar .icon-svg,
  body[data-header-mode="seeker-app"] .seeker-user-tools .icon-svg {
    width: 20px;
    height: 20px;
  }

  /* Ghi đè rule desktop theo đúng selector để đồng bộ kích thước 3 icon phải trên mobile */
  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-msg] .icon-svg,
  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-bell] .icon-svg,
  body[data-header-mode="seeker-app"] .seeker-user-tools [data-auth-grid] .icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
  }

  body[data-header-mode="seeker-app"] .seeker-toolbar-lang {
    gap: 2px;
  }

  body[data-header-mode="seeker-app"] .seeker-toolbar-lang .lang {
    font-size: 11px;
  }

  /* Mobile header: áp dụng chung cho guest + logged-in */
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand . actions"
      "nav nav lang";
    align-items: center;
    column-gap: 4px;
    row-gap: 2px;
    padding: 6px 10px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .brand {
    grid-area: brand;
    font-size: 14px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .topbar-user-actions,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .topbar-auth-actions {
    grid-area: actions;
    justify-self: end;
    gap: 2px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .lang-chip { grid-area: lang; justify-self: end; margin-left: 0; }
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav-sep {
    display: inline-block;
    font-size: 12px;
    color: rgba(220, 233, 247, .82);
    margin: 0 1px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav {
    grid-area: nav;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 4px;
    padding-bottom: 0;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav-login,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav-post-job,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav-my-jobs-home,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .lang-chip,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav a {
    background: transparent !important;
    border: none !important;
    color: #dce9f7;
    border-radius: 0;
    padding: 2px 3px;
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav-user-avatar {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .lang-chip {
    padding: 0;
    gap: 2px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .lang-chip__icon {
    font-size: 10px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .lang {
    font-size: 12px;
  }

  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav a.active,
  body[data-user-mode]:not([data-header-mode="seeker-app"]) .nav a:hover {
    background: transparent;
    color: #fff;
  }

  #jobs-section.card {
    padding: 10px;
  }

  #jobs-section .section-title {
    display: none;
  }

  .jobs-mobile-hint {
    display: block;
    margin: 6px 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2b4f74;
  }

  #jobs-section .filters {
    gap: 4px;
    margin-bottom: 4px;
  }

  #jobs-section .filters .input,
  #jobs-section .filters .select,
  #jobs-section .filters .button {
    min-height: 30px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
  }

  #jobs-section .filters__actions {
    gap: 4px;
  }

  .guest-cv-float {
    top: auto;
    bottom: 12px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
    padding: 9px;
  }

  .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== Admin layout ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.admin-sidebar__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #23496f;
  text-transform: uppercase;
}

.admin-sidebar a,
.admin-sidebar button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #1f3f62;
  padding: 9px 10px;
  font: inherit;
  cursor: pointer;
}

.admin-sidebar a.active {
  background: #1f5a93;
  color: #fff;
  border-color: #1f5a93;
}

.admin-content {
  display: grid;
  gap: 10px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.admin-list li {
  font-size: 14px;
  color: #2c4d6f;
}

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-grid-2,
  .admin-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== UX states + toast ===== */
.state-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #fff;
}

.state-card__icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.state-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.toast-host {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(16, 42, 67, .24);
  transition: transform .22s ease, opacity .22s ease;
}

.toast--info { background: #2f5f9e; }
.toast--ok { background: #1e8449; }
.toast--warn { background: #b9770e; }
.toast--err { background: #c0392b; }

.toast--hide {
  opacity: 0;
  transform: translateY(8px);
}
