/* ===============================
   JOBS APP | CLEAN PRODUCTION CSS
   Responsive, edge-to-edge mobile, no overflow
=============================== */

.page-jobs {
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #fcfcfd;
  --surface-3: #f4f6f8;

  --text: #111111;
  --muted: #6b7280;
  --muted-2: #9ca3af;

  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);

  --shadow: 0 14px 40px rgba(17, 17, 17, 0.06);
  --shadow-soft: 0 8px 20px rgba(17, 17, 17, 0.04);
  --shadow-hover: 0 18px 48px rgba(17, 17, 17, 0.09);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --accent: #111111;
  --accent-2: #1f2937;
  --transition: 220ms cubic-bezier(.2,.8,.2,1);

  margin: 0;
  min-height: 100vh;
  width: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.03), transparent 28%),
    radial-gradient(circle at bottom right, rgba(17, 17, 17, 0.025), transparent 26%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.page-jobs *,
.page-jobs *::before,
.page-jobs *::after {
  box-sizing: border-box;
  min-width: 0;
}

.page-jobs html,
.page-jobs body {
  width: 100%;
  height: 100%;
}

.page-jobs img,
.page-jobs svg {
  display: block;
  max-width: 100%;
}

.page-jobs button,
.page-jobs input {
  font: inherit;
}

.page-jobs button {
  cursor: pointer;
}

.page-jobs button,
.page-jobs input {
  outline: none;
}

.page-jobs button:focus-visible,
.page-jobs input:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.12);
  outline-offset: 2px;
}

.page-jobs.modal-open {
  overflow: hidden;
}

/* ===============================
   APP SHELL
=============================== */

.page-jobs .app-shell,
.page-jobs .shell,
.page-jobs .content,
.page-jobs .page,
.page-jobs #app {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.page-jobs .shell {
  display: block;
  min-height: 100vh;
}

.page-jobs .content {
  padding: 14px 16px 20px;
}

.page-jobs .page {
  margin: 0;
  max-width: none;
}

/* ===============================
   TOPBAR
=============================== */

.page-jobs .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 20;
  animation: rise 640ms ease both;
}

.page-jobs .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.page-jobs .brand-copy,
.page-jobs .brand > div {
  min-width: 0;
}

.page-jobs .brand-copy h1,
.page-jobs .brand h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-jobs .brand-copy p,
.page-jobs .brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-jobs .logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(180deg, #111111, #1f1f1f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.05em;
  flex: 0 0 auto;
  box-shadow: var(--shadow-soft);
}

.page-jobs .top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* ===============================
   BUTTONS / CHIPS
=============================== */

.page-jobs .icon-btn,
.page-jobs .chip,
.page-jobs .ghost-btn,
.page-jobs .primary-btn,
.page-jobs .view-all,
.page-jobs .tiny-btn,
.page-jobs .details-btn,
.page-jobs .thumb-card,
.page-jobs .thumb-action,
.page-jobs .filter-pill,
.page-jobs .sort-pill,
.page-jobs .modal-btn,
.page-jobs .modal-tab,
.page-jobs .meta-pill {
  border: 0;
  outline: 0;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    opacity var(--transition),
    color var(--transition);
}

.page-jobs .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.page-jobs .chip,
.page-jobs .filter-pill,
.page-jobs .sort-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #202733;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.page-jobs .chip.active,
.page-jobs .filter-pill.active,
.page-jobs .sort-pill.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.page-jobs .primary-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 14px 24px rgba(10, 102, 194, 0.18);
}

.page-jobs .ghost-btn,
.page-jobs .view-all {
  padding: 12px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 750;
}

.page-jobs .tiny-btn,
.page-jobs .thumb-action,
.page-jobs .bookmark,
.page-jobs .modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: #111827;
}

.page-jobs .details-btn {
  padding: 11px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.page-jobs .icon-btn:hover,
.page-jobs .chip:hover,
.page-jobs .ghost-btn:hover,
.page-jobs .view-all:hover,
.page-jobs .tiny-btn:hover,
.page-jobs .details-btn:hover,
.page-jobs .thumb-card:hover,
.page-jobs .thumb-action:hover,
.page-jobs .job-item:hover,
.page-jobs .job-card:hover,
.page-jobs .filter-pill:hover,
.page-jobs .sort-pill:hover,
.page-jobs .modal-btn:hover,
.page-jobs .modal-tab:hover {
  transform: translateY(-2px);
}

/* ===============================
   HERO
=============================== */

.page-jobs .hero {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-jobs .hero-inner {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.page-jobs .hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.page-jobs .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.page-jobs .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e8edf3, #dfe6ef);
  border: 1px solid #d7dce3;
}

.page-jobs .avatar svg {
  width: 100%;
  height: 100%;
}

.page-jobs .profile h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 850;
}

.page-jobs .profile span {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  color: var(--muted);
}

.page-jobs .hero-copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
  animation: rise 650ms ease both;
}

.page-jobs .hero-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #0f172a;
  text-wrap: balance;
}

.page-jobs .hero-copy p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-jobs .search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  animation: rise 700ms ease both;
}

.page-jobs .search {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-jobs .search:focus-within {
  border-color: rgba(10,102,194,0.28);
  box-shadow: 0 0 0 4px rgba(10,102,194,0.08);
  transform: translateY(-1px);
}

.page-jobs .search input,
.page-jobs .search-mini input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.page-jobs .search input::placeholder,
.page-jobs .search-mini input::placeholder {
  color: #8b94a3;
}

.page-jobs .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: rise 760ms ease both;
  min-width: 0;
}

/* ===============================
   MAIN GRID
=============================== */

.page-jobs .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.page-jobs .panel,
.page-jobs .job-card,
.page-jobs .section-card,
.page-jobs .sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.page-jobs .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
  min-width: 0;
}

.page-jobs .panel-head h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* ===============================
   JOB LIST
=============================== */

.page-jobs .job-list {
  padding: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-jobs .job-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  animation: rise 700ms ease both;
  min-width: 0;
}

.page-jobs .job-item:hover {
  box-shadow: var(--shadow);
  border-color: #dbe2ea;
  background: #fcfdff;
}

.page-jobs .job-item.hidden,
.page-jobs .thumb-card.hidden {
  display: none;
}

.page-jobs .job-logo {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f6f8fb);
  font-weight: 900;
  color: #1d2430;
}

.page-jobs .job-meta {
  min-width: 0;
  overflow: hidden;
}

.page-jobs .job-meta .company {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.81rem;
}

.page-jobs .job-meta .title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-jobs .job-meta .sub {
  margin: 4px 0 0;
  color: #7d8592;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-jobs .job-card {
  padding: 18px;
  border-radius: 24px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  animation: rise 740ms ease both;
}

.page-jobs .job-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d9e0e8;
}

.page-jobs .job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.page-jobs .job-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.page-jobs .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f5f7fa;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.page-jobs .job-brand p {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.page-jobs .job-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-jobs .job-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  min-width: 0;
}

.page-jobs .job-role h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-jobs .salary {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.page-jobs .desc {
  margin: 0;
  color: #56606f;
  line-height: 1.6;
  font-size: 0.92rem;
}

.page-jobs .job-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.page-jobs .job-info {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  min-width: 0;
}

/* ===============================
   THUMB GRID
=============================== */

.page-jobs .thumb-section {
  margin-top: 18px;
  min-width: 0;
}

.page-jobs .thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.page-jobs .thumb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  animation: rise 720ms ease both;
  min-width: 0;
}

.page-jobs .thumb-card:hover {
  border-color: #d3dbe4;
  box-shadow: var(--shadow);
}

.page-jobs .thumb-cover {
  aspect-ratio: 3 / 4;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.02)),
    linear-gradient(135deg, #eef3f8, #f9fbfd);
}

.page-jobs .thumb-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.page-jobs .thumb-card:hover .thumb-cover img {
  transform: scale(1.05);
  filter: saturate(1.03) contrast(1.02);
}

.page-jobs .thumb-cover::before {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,102,194,0.16), transparent 70%);
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

.page-jobs .thumb-cover::after {
  content: attr(data-company);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827;
  backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none;
}

.page-jobs .thumb-body {
  padding: 14px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.page-jobs .thumb-body h5 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-jobs .thumb-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.page-jobs .thumb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  min-width: 0;
}

.page-jobs .thumb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.page-jobs .mini-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #344054;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

/* ===============================
   SMALL SECTIONS / FILTERS
=============================== */

.page-jobs .section-card {
  margin-top: 18px;
  min-width: 0;
}

.page-jobs .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.page-jobs .search-mini {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 0;
}

.page-jobs .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.page-jobs .stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}

.page-jobs .stat strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.page-jobs .stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.page-jobs .mini-list {
  display: grid;
  gap: 10px;
  padding: 12px 18px 18px;
  min-width: 0;
}

.page-jobs .mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.page-jobs .mini-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-jobs .mini-row h5 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 850;
}

.page-jobs .mini-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-jobs .mini-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 750;
  color: #202733;
  white-space: nowrap;
}

.page-jobs .filter-block {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  min-width: 0;
}

.page-jobs .filter-title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 850;
  color: #101828;
}

.page-jobs .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.page-jobs .results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  min-width: 0;
}

.page-jobs .empty-state {
  display: none;
  padding: 24px 18px 28px;
  text-align: center;
  color: var(--muted);
}

.page-jobs .empty-state strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 6px;
}

.page-jobs .footer-note {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ===============================
   MODAL
=============================== */

.page-jobs .modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.page-jobs .modal.open {
  display: flex;
}

.page-jobs .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  animation: modalBackdropIn 220ms ease both;
}

.page-jobs .modal-panel {
  position: relative;
  width: min(1480px, 100%);
  max-height: min(94vh, 1000px);
  height: min(94vh, 1000px);
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(229, 231, 235, 0.95);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  animation: modalPanelIn 280ms cubic-bezier(.2,.8,.2,1) both;
}

.page-jobs .modal-left,
.page-jobs .modal-right {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-jobs .modal-left {
  padding: 0 20px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.page-jobs .modal-right {
  padding: 22px;
  background: #fcfdff;
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-jobs .modal-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 20px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.92) 100%);
  backdrop-filter: blur(6px);
}

.page-jobs .modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.page-jobs .modal-close:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 20px rgba(16,24,40,0.08);
}

.page-jobs .modal-hero {
  display: grid;
  gap: 14px;
}

.page-jobs .modal-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-jobs .modal-brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(16,24,40,0.05);
}

.page-jobs .modal-company h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 900;
}

.page-jobs .modal-company span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-jobs .modal-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-jobs .modal-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
  color: #0f172a;
}

.page-jobs .modal-salary {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.page-jobs .modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.page-jobs .meta-pill {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.page-jobs .poster-card {
  margin-top: 14px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: 0 14px 28px rgba(16,24,40,0.08);
}

.page-jobs .poster-visual {
  min-height: 540px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.18), rgba(15,23,42,0.08)),
    linear-gradient(135deg, #eef3f8, #ffffff 55%, #f8fbff);
}

.page-jobs .poster-visual::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,102,194,0.18), transparent 68%);
}

.page-jobs .poster-visual::after {
  content: attr(data-cta);
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(229,231,235,0.95);
  font-size: 0.76rem;
  font-weight: 800;
  color: #111827;
}

.page-jobs .poster-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.03);
}

.page-jobs .poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.42));
}

.page-jobs .poster-toprow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-jobs .poster-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(16,24,40,0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.page-jobs .poster-copy {
  max-width: 330px;
  color: #fff;
  min-width: 0;
}

.page-jobs .poster-copy h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 900;
}

.page-jobs .poster-copy p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  line-height: 1.55;
}

.page-jobs .poster-stats {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 1;
}

.page-jobs .poster-stat {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(229,231,235,0.95);
  box-shadow: 0 8px 16px rgba(16,24,40,0.06);
  min-width: 112px;
}

.page-jobs .poster-stat strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.page-jobs .poster-stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.page-jobs .modal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
  min-width: 0;
}

.page-jobs .modal-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-weight: 750;
  white-space: nowrap;
}

.page-jobs .modal-tab.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.page-jobs .modal-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  min-width: 0;
}

.page-jobs .modal-section h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.page-jobs .modal-section p,
.page-jobs .modal-section li {
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-jobs .bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.page-jobs .timeline {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.page-jobs .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}

.page-jobs .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--accent);
  font-weight: 900;
}

.page-jobs .step h5 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 850;
}

.page-jobs .step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.page-jobs .detail-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-jobs .detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  min-width: 0;
}

.page-jobs .detail-card h5 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 850;
}

.page-jobs .detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.page-jobs .action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  min-width: 0;
}

.page-jobs .modal-btn {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.page-jobs .modal-btn.primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17,24,39,0.12);
}

.page-jobs .modal-btn.secondary {
  background: #fff;
  color: #111827;
  border: 1px solid var(--line);
}

.page-jobs .modal-btn.share {
  background: #f8fafc;
  color: #111827;
  border: 1px solid var(--line);
}

.page-jobs .pay-box {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(16,24,40,0.05);
  min-width: 0;
}

.page-jobs .pay-box h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
}

.page-jobs .pay-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.page-jobs .pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.page-jobs .pay-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-jobs .pay-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-jobs .pay-row strong {
  font-size: 0.95rem;
}

.page-jobs .applied-state {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 800;
  font-size: 0.9rem;
}

.page-jobs .applied-state.show {
  display: inline-flex;
}

.page-jobs .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-jobs .feature-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
}

.page-jobs .feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  font-weight: 850;
}

.page-jobs .feature-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.page-jobs .similar-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-jobs .similar-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}

.page-jobs .similar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #1d2430;
  flex: 0 0 auto;
}

.page-jobs .similar-item h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-jobs .similar-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-jobs .similar-item strong {
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ===============================
   HELPERS
=============================== */

.page-jobs .mobile-sidebar {
  display: none;
}

.page-jobs .hidden {
  display: none !important;
}

.page-jobs .results-list-wrap,
.page-jobs #resultsList {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-jobs #resultsList {
  opacity: 1;
  transform: translateY(0);
}

.page-jobs .item {
  animation: resultIn 0.16s ease both;
}

.page-jobs .empty {
  animation: resultIn 0.16s ease both;
  max-width: 100%;
}

/* ===============================
   DESKTOP SIDEBAR
=============================== */

.page-jobs .sidebar {
  display: none;
}

@media (min-width: 992px) {
  .page-jobs .app-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
  }

  .page-jobs .sidebar {
    display: flex;
    flex: 0 0 88px;
    width: 88px;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
    z-index: 30;
    background: rgba(255,255,255,0.94);
    border-right: 1px solid rgba(229,231,235,0.9);
    box-shadow: 0 2px 20px rgba(16,24,40,0.03);
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .page-jobs .sidebar .logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #0a66c2, #004182);
    box-shadow: 0 10px 18px rgba(10,102,194,0.22);
    margin-bottom: 16px;
    flex: 0 0 auto;
  }

  .page-jobs .side-nav,
  .page-jobs .sidebar-bottom {
    width: 100%;
    display: grid;
    gap: 10px;
  }

  .page-jobs .side-nav {
    flex: 1;
    align-content: start;
    margin-top: 6px;
  }

  .page-jobs .nav-btn,
  .page-jobs .side-mini {
    position: relative;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #344054;
    cursor: pointer;
    outline: 0;
    transition:
      transform .22s ease,
      background .22s ease,
      border-color .22s ease,
      box-shadow .22s ease,
      color .22s ease;
  }

  .page-jobs .nav-btn {
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
  }

  .page-jobs .nav-btn:hover,
  .page-jobs .nav-btn.active,
  .page-jobs .side-mini:hover,
  .page-jobs .side-mini.active {
    background: #f3f7fb;
    border-color: #e1e7ef;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(16,24,40,0.05);
  }

  .page-jobs .nav-btn svg,
  .page-jobs .side-mini svg {
    width: 20px;
    height: 20px;
  }

  .page-jobs .nav-btn::after,
  .page-jobs .side-mini::after {
    content: attr(data-label);
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: #101828;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 12px 28px rgba(16,24,40,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .page-jobs .nav-btn:hover::after,
  .page-jobs .side-mini:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .page-jobs .side-mini {
    aspect-ratio: 1;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #475467;
  }

  .page-jobs #app {
    flex: 1 1 auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
  }
}

/* ===============================
   TABLET / MOBILE
=============================== */

@media (max-width: 991px) {
  .page-jobs .app-shell {
    display: block;
  }

  .page-jobs .sidebar {
    display: none !important;
  }

  .page-jobs .content,
  .page-jobs .page,
  .page-jobs #app {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .page-jobs,
  .page-jobs .shell,
  .page-jobs .content,
  .page-jobs .page,
  .page-jobs #app {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
  }

  .page-jobs .topbar,
  .page-jobs .hero,
  .page-jobs .section-card,
  .page-jobs .thumb-section,
  .page-jobs .panel,
  .page-jobs .job-card,
  .page-jobs .sidebar-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  .page-jobs .topbar {
    top: 0;
    padding: 12px 14px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .page-jobs .hero {
    margin-top: 0 !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .page-jobs .hero-inner {
    padding: 12px 14px 14px;
    gap: 14px;
  }

  .page-jobs .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-jobs .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-jobs .search {
    width: 100%;
    max-height: 50px;
    padding: 12px 12px;
    border-radius: 16px;
  }

  .page-jobs .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-jobs .chip-row {
    margin-top: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-jobs .chip-row::-webkit-scrollbar {
    display: none;
  }

  .page-jobs .panel {
    padding: 14px;
    border-radius: 20px;
  }

  .page-jobs .thumb-section {
    margin-top: 14px;
  }

  .page-jobs .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
  }

  .page-jobs .thumb-cover {
    min-height: 200px;
  }

  .page-jobs .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-jobs .feature-grid {
    grid-template-columns: 1fr;
  }

  .page-jobs .modal {
    padding: 0;
  }

  .page-jobs .modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .page-jobs .modal-left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-jobs .modal-right {
    padding: 18px;
  }

  .page-jobs .poster-visual {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .page-jobs .topbar {
    padding: 12px 12px;
  }

  .page-jobs .brand p {
    white-space: normal;
    line-height: 1.35;
  }

  .page-jobs .hero-copy h3 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .page-jobs .job-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-jobs .job-item .tiny-btn {
    grid-column: 2;
    justify-self: end;
    margin-top: 8px;
  }

  .page-jobs .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-jobs .thumb-cover {
    min-height: 180px;
  }

  .page-jobs .poster-stats {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .page-jobs .modal-right {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .page-jobs .thumb-grid {
    grid-template-columns: 1fr;
  }

  .page-jobs .hero,
  .page-jobs .panel,
  .page-jobs .job-card,
  .page-jobs .section-card,
  .page-jobs .sidebar-card {
    border-left: 0;
    border-right: 0;
  }

  .page-jobs .search {
    padding: 11px 12px;
  }
}

/* ===============================
   ANIMATIONS
=============================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modalPanelOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(3px);
  }
}

.page-jobs .modal.closing .modal-backdrop {
  animation: modalBackdropOut 180ms ease both;
}

.page-jobs .modal.closing .modal-panel {
  animation: modalPanelOut 180ms ease both;
}

/* ===============================
   REDUCED MOTION
=============================== */

@media (prefers-reduced-motion: reduce) {
  .page-jobs *,
  .page-jobs *::before,
  .page-jobs *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}