/**
 * Jobpuri – Indeed-clone frontend styles
 * Matches Indeed.com design as closely as possible
 */

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --jp-blue:         #2557a7;
  --jp-blue-dark:    #1a3f80;
  --jp-blue-light:   #e8f0fb;
  --jp-green:        #2d7a3a;
  --jp-red:          #c0392b;
  --jp-orange:       #d9730d;
  --jp-bg:           #f3f2f1;
  --jp-white:        #ffffff;
  --jp-border:       #d4d2d0;
  --jp-border-light: #e4e2e0;
  --jp-text:         #2d2d2d;
  --jp-text-muted:   #767676;
  --jp-text-light:   #595959;
  --jp-radius:       8px;
  --jp-radius-sm:    4px;
  --jp-shadow:       0 2px 8px rgba(0,0,0,.08);
  --jp-shadow-md:    0 4px 16px rgba(0,0,0,.12);
  --jp-font:         -apple-system, "Noto Sans", Helvetica, Arial, sans-serif;
}

body.jp-body {
  font-family: var(--jp-font);
  font-size: 14px;
  color: var(--jp-text);
  background: var(--jp-bg);
  margin: 0;
  line-height: 1.5;
}

.jp-main { min-height: 60vh; }

a { color: var(--jp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--jp-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--jp-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.jp-btn--primary {
  background: var(--jp-blue);
  color: #fff;
  border-color: var(--jp-blue);
}
.jp-btn--primary:hover { background: var(--jp-blue-dark); border-color: var(--jp-blue-dark); color: #fff; text-decoration: none; }
.jp-btn--outline {
  background: #fff;
  color: var(--jp-blue);
  border-color: var(--jp-blue);
}
.jp-btn--outline:hover { background: var(--jp-blue-light); text-decoration: none; }
.jp-btn--ghost {
  background: transparent;
  color: var(--jp-text-muted);
  border-color: transparent;
}
.jp-btn--ghost:hover { background: var(--jp-bg); color: var(--jp-text); }
.jp-btn--sm  { font-size: 13px; padding: 8px 14px; }
.jp-btn--lg  { font-size: 16px; padding: 14px 28px; }
.jp-btn--full { width: 100%; }
.jp-btn--icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  background: #fff;
  color: var(--jp-text-muted);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.jp-btn--icon:hover { background: var(--jp-bg); color: var(--jp-text); border-color: var(--jp-text-muted); }
.jp-btn--icon.is-saved { color: var(--jp-blue); border-color: var(--jp-blue); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.jp-header {
  background: #fff;
  border-bottom: 1px solid var(--jp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
}
.jp-header__inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.jp-header__logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--jp-blue);
  font-style: italic;
  letter-spacing: -1px;
  margin-right: 32px;
  text-decoration: none;
  flex-shrink: 0;
}
.jp-header__logo:hover { text-decoration: none; color: var(--jp-blue); }
.jp-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.jp-header__nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--jp-text);
  padding: 18px 16px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  display: block;
  transition: border-color .15s;
}
.jp-header__nav-link:hover,
.jp-header__nav-link.is-active {
  color: var(--jp-blue);
  border-bottom-color: var(--jp-blue);
  text-decoration: none;
}
.jp-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.jp-header__icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--jp-text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  position: relative;
  transition: background .15s;
}
.jp-header__icon-btn:hover { background: var(--jp-bg); color: var(--jp-text); text-decoration: none; }
.jp-header__badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.jp-header__divider {
  width: 1px;
  height: 24px;
  background: var(--jp-border);
  margin: 0 12px;
}
.jp-header__employers-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--jp-text);
  white-space: nowrap;
  text-decoration: none;
}
.jp-header__employers-link:hover { color: var(--jp-blue); text-decoration: underline; }

/* ── Search bar ──────────────────────────────────────────────────────────── */
.jp-search-hero {
  background: #fff;
  padding: 16px 0 0;
  border-bottom: 1px solid var(--jp-border);
}
.jp-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  background: #fff;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.jp-search-bar:focus-within { border-color: var(--jp-blue); box-shadow: 0 0 0 2px rgba(37,87,167,.2); }
.jp-search-bar__field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid var(--jp-border);
}
.jp-search-bar__field:last-of-type { border-right: none; }
.jp-search-bar__icon {
  color: var(--jp-text-muted);
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 10px;
}
.jp-search-bar__input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--jp-font);
  color: var(--jp-text);
  width: 100%;
  padding: 12px 0;
  background: transparent;
}
.jp-search-bar__input::placeholder { color: var(--jp-text-muted); }
.jp-search-bar__clear {
  background: none; border: none; cursor: pointer;
  color: var(--jp-text-muted); font-size: 14px; padding: 4px;
}
.jp-search-bar .jp-btn--primary {
  border-radius: 0;
  padding: 0 24px;
  height: 48px;
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Archive split-view layout ───────────────────────────────────────────── */
.jp-archive-hero {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--jp-border);
}
.jp-archive-hero .jp-search-bar {
  max-width: 800px;
}

.jp-split-layout {
  display: flex;
  max-width: 1220px;
  margin: 0 auto;
  height: calc(100vh - 57px - 65px); /* header + search bar height */
  overflow: hidden;
}

.jp-jobs-panel {
  width: 440px;
  min-width: 320px;
  flex-shrink: 0;
  background: var(--jp-bg);
  overflow-y: auto;
  border-right: 1px solid var(--jp-border);
  padding: 12px 0;
}

.jp-jobs-panel__header {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jp-jobs-panel__count {
  font-size: 14px;
  color: var(--jp-text-muted);
}
.jp-sort-select {
  font-size: 13px;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  padding: 4px 8px;
  background: #fff;
  color: var(--jp-text);
  cursor: pointer;
  outline: none;
  font-family: var(--jp-font);
}

.jp-detail-panel {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  padding: 24px 32px;
  min-width: 0;
}

/* ── Job card ─────────────────────────────────────────────────────────────── */
.jp-job-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-left: 4px solid transparent;
  border-radius: var(--jp-radius-sm);
  padding: 16px 16px 16px 12px;
  margin: 0 8px 8px;
  cursor: pointer;
  position: relative;
  transition: border-left-color .15s, box-shadow .15s;
}
.jp-job-card:hover {
  box-shadow: var(--jp-shadow);
  border-left-color: var(--jp-border);
}
.jp-job-card.is-active {
  border-left-color: var(--jp-blue);
  box-shadow: 0 2px 12px rgba(37,87,167,.15);
}
.jp-job-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.jp-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.5;
  display: inline-block;
}
.jp-badge--apply  { background: #e7f3e8; color: #2d7a3a; }
.jp-badge--reply  { background: #fff7e6; color: #a85400; border: 1px solid #f0d09a; }
.jp-badge--new    { background: #e8f0fb; color: var(--jp-blue); }
.jp-badge--urgent { background: #fde8e8; color: #c0392b; }
.jp-badge--remote { background: #edf4ff; color: #1a5276; }

.jp-job-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--jp-blue);
  margin: 0 0 2px;
  line-height: 1.3;
  padding-right: 40px;
}
.jp-job-card__title:hover { text-decoration: underline; }
.jp-job-card__company { font-size: 14px; color: var(--jp-text); margin: 0 0 1px; }
.jp-job-card__location { font-size: 14px; color: var(--jp-text-light); margin: 0 0 8px; }

/* Job card tags – clearly dark text, not white */
.jp-job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.jp-tag {
  font-size: 12px;
  color: var(--jp-text-light) !important;
  background: #f3f2f1;
  border: 1px solid var(--jp-border);
  border-radius: 3px;
  padding: 3px 10px;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}

.jp-job-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.jp-card-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--jp-text-muted);
  font-size: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
  line-height: 1;
}
.jp-card-action-btn:hover { background: var(--jp-bg); color: var(--jp-text); }
.jp-card-action-btn.is-saved { color: var(--jp-blue); }

/* ── Job detail panel ─────────────────────────────────────────────────────── */
.jp-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--jp-text-muted);
  text-align: center;
  padding: 40px;
}
.jp-detail-empty i { font-size: 48px; margin-bottom: 16px; }

.jp-detail__header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--jp-border-light);
}
.jp-detail__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--jp-text);
  margin: 0 0 8px;
  line-height: 1.2;
}
.jp-detail__company {
  font-size: 15px;
  color: var(--jp-blue);
  margin: 0 0 4px;
  font-weight: 400;
}
.jp-detail__company a { color: var(--jp-blue); }
.jp-detail__company .fa-external-link-alt { font-size: 11px; }
.jp-detail__location { font-size: 15px; color: var(--jp-text); margin: 0 0 4px; }
.jp-detail__salary   { font-size: 15px; color: var(--jp-text); margin: 0 0 16px; }

.jp-detail__apply-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jp-detail__apply-row .jp-btn--primary {
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--jp-radius-sm);
}

/* ── Job details section (inside panel) ───────────────────────────────────── */
.jp-detail-section {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--jp-border-light);
}
.jp-detail-section__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.jp-detail-section__sub {
  font-size: 13px;
  color: var(--jp-text-muted);
  margin: 0 0 16px;
}
.jp-detail-section__sub a { color: var(--jp-blue); }

.jp-detail-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.jp-detail-meta-row__icon {
  font-size: 16px;
  color: var(--jp-text-light);
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}
.jp-detail-meta-row__body {}
.jp-detail-meta-row__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--jp-text);
  margin: 0 0 8px;
}

.jp-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jp-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--jp-text) !important;
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 20px;
  padding: 6px 14px;
  line-height: 1.3;
}
.jp-detail-tag .fa-chevron-down { font-size: 10px; color: var(--jp-text-muted); }

/* ── Location section ─────────────────────────────────────────────────────── */
.jp-location-section {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--jp-border-light);
}
.jp-location-section__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.jp-location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.jp-location-row i { color: var(--jp-text-muted); }

/* ── Job description content ─────────────────────────────────────────────── */
.jp-job-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--jp-text);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--jp-border-light);
}
.jp-job-content h2, .jp-job-content h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }
.jp-job-content ul { padding-left: 20px; margin: 8px 0; list-style: disc; }
.jp-job-content li { margin-bottom: 4px; }
.jp-job-content p  { margin: 0 0 12px; }

/* ── Single job full page ─────────────────────────────────────────────────── */
.jp-single-job {
  padding: 24px 0;
}
.jp-single-job .container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.jp-apply-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 24px;
  position: sticky;
  top: 72px;
}
.jp-apply-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.jp-apply-card__company { font-size: 15px; color: var(--jp-blue); margin: 0 0 4px; }
.jp-apply-card__location { font-size: 14px; color: var(--jp-text); margin: 0 0 4px; }
.jp-apply-card__salary   { font-size: 15px; color: var(--jp-text); margin: 0 0 16px; }

/* ── Company reviews page ─────────────────────────────────────────────────── */
.jp-company-reviews-hero {
  padding: 40px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--jp-border);
}
.jp-company-reviews-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
}
.jp-company-reviews-hero p {
  font-size: 16px;
  color: var(--jp-text-muted);
  margin: 0 0 20px;
}
.jp-company-search {
  display: flex;
  gap: 0;
  max-width: 660px;
}
.jp-company-search__input-wrap {
  flex: 1;
  position: relative;
  border: 1px solid var(--jp-border);
  border-right: none;
  border-radius: var(--jp-radius-sm) 0 0 var(--jp-radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.jp-company-search__input-wrap i { color: var(--jp-text-muted); margin-right: 10px; }
.jp-company-search__input {
  border: none; outline: none;
  font-size: 15px; font-family: var(--jp-font);
  width: 100%; padding: 13px 0;
  background: transparent; color: var(--jp-text);
}
.jp-company-search .jp-btn {
  border-radius: 0 var(--jp-radius-sm) var(--jp-radius-sm) 0;
  font-size: 15px;
  padding: 0 24px;
}

.jp-popular-companies { padding: 32px 0; }
.jp-popular-companies h2 { font-size: 24px; font-weight: 700; margin: 0 0 24px; }
.jp-companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.jp-company-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--jp-border-light);
  text-decoration: none;
  color: var(--jp-text);
}
.jp-company-grid-item:hover .jp-company-grid-item__name { text-decoration: underline; color: var(--jp-blue); }
.jp-company-grid-item__logo {
  width: 56px; height: 56px;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--jp-text-muted);
  overflow: hidden;
}
.jp-company-grid-item__logo img { width: 100%; height: 100%; object-fit: contain; }
.jp-company-grid-item__info {}
.jp-company-grid-item__name { font-size: 15px; font-weight: 400; margin: 0 0 3px; color: var(--jp-text); }
.jp-company-grid-item__stars { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.jp-star { color: #f5a623; font-size: 14px; }
.jp-star--half { position: relative; display: inline-block; color: var(--jp-border); }
.jp-star--half::before { content: '\f089'; font-family: 'Font Awesome 5 Free'; color: #f5a623; position: absolute; left: 0; overflow: hidden; width: 50%; }
.jp-company-grid-item__reviews { font-size: 13px; color: var(--jp-blue); }
.jp-company-grid-item__links { display: flex; gap: 10px; font-size: 13px; margin-top: 4px; }
.jp-company-grid-item__links a { color: var(--jp-text-muted); }
.jp-company-grid-item__links a:hover { color: var(--jp-blue); }

/* ── Company profile page ─────────────────────────────────────────────────── */
.jp-company-header {
  background: #fff;
  border-bottom: 1px solid var(--jp-border);
  padding: 24px 0 0;
}
.jp-company-header__inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.jp-company-header__logo {
  width: 80px; height: 80px;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--jp-text-muted);
  flex-shrink: 0; overflow: hidden;
}
.jp-company-header__logo img { width: 100%; height: 100%; object-fit: contain; }
.jp-company-header__info { flex: 1; }
.jp-company-header__name { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.jp-company-header__rating { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.jp-company-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.jp-company-header__follow-btn {
  background: var(--jp-text);
  color: #fff;
  border: 2px solid var(--jp-text);
  border-radius: var(--jp-radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--jp-font);
  transition: background .15s;
}
.jp-company-header__follow-btn:hover { background: #444; border-color: #444; }
.jp-company-header__review-btn {
  font-size: 14px;
  font-weight: 700;
  color: var(--jp-text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--jp-font);
  text-decoration: none;
}
.jp-company-header__review-btn:hover { color: var(--jp-blue); text-decoration: underline; }

.jp-company-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--jp-border-light);
  overflow-x: auto;
}
.jp-company-tab {
  font-size: 14px;
  font-weight: 400;
  color: var(--jp-text);
  padding: 14px 20px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  transition: border-color .15s, color .15s;
}
.jp-company-tab:hover { color: var(--jp-blue); text-decoration: none; }
.jp-company-tab.is-active { border-bottom-color: var(--jp-blue); font-weight: 700; color: var(--jp-text); }
.jp-company-tab__count { font-size: 12px; color: var(--jp-text-muted); margin-left: 3px; }

/* ── Alert banner ─────────────────────────────────────────────────────────── */
.jp-alert-banner {
  background: #fdf6ec;
  border: 1px solid #f0d09a;
  border-radius: var(--jp-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--jp-text);
  position: relative;
}
.jp-alert-banner i { color: var(--jp-orange); margin-top: 2px; flex-shrink: 0; }
.jp-alert-banner__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--jp-text-muted); font-size: 18px; line-height: 1;
}

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.jp-auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--jp-bg);
}
.jp-auth-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 40px;
  width: 100%;
  max-width: 460px;
}
.jp-auth-card__title { font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.jp-auth-card__subtitle { font-size: 14px; color: var(--jp-text-muted); margin: 0 0 24px; }
.jp-auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--jp-text-muted); }
.jp-auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--jp-border); }
.jp-auth-tab {
  flex: 1; padding: 10px 16px; text-align: center;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: none; border: none; font-family: var(--jp-font);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  color: var(--jp-text-muted);
  transition: color .15s, border-color .15s;
}
.jp-auth-tab.is-active { color: var(--jp-blue); border-bottom-color: var(--jp-blue); }

/* ── Form elements ────────────────────────────────────────────────────────── */
.jp-form-group { margin-bottom: 16px; }
.jp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jp-label { display: block; font-size: 14px; font-weight: 700; color: var(--jp-text); margin-bottom: 6px; }
.jp-input, .jp-select, .jp-textarea {
  width: 100%;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--jp-font);
  color: var(--jp-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  line-height: 1.4;
}
.jp-input:focus, .jp-select:focus, .jp-textarea:focus {
  border-color: var(--jp-blue);
  box-shadow: 0 0 0 2px rgba(37,87,167,.2);
}
.jp-field-hint { font-size: 12px; color: var(--jp-text-muted); margin-top: 4px; display: block; }
.required { color: var(--jp-red); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.jp-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.jp-dashboard__sidebar {
  background: #fff;
  border-right: 1px solid var(--jp-border);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.jp-dashboard__sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--jp-border);
}
.jp-logo-text {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--jp-blue);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.jp-dashboard__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--jp-text);
  text-decoration: none;
  transition: background .12s, color .12s;
  border-left: 3px solid transparent;
}
.jp-dashboard__nav-item:hover { background: var(--jp-bg); color: var(--jp-blue); text-decoration: none; }
.jp-dashboard__nav-item.is-active { color: var(--jp-blue); border-left-color: var(--jp-blue); font-weight: 700; background: var(--jp-blue-light); }
.jp-dashboard__nav-item i { width: 18px; text-align: center; }

.jp-dashboard__main { padding: 32px; background: var(--jp-bg); }
.jp-dashboard__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.jp-dashboard__title { font-size: 28px; font-weight: 700; margin: 0; }
.jp-dashboard__subtitle { font-size: 14px; color: var(--jp-text-muted); margin: 4px 0 0; }

.jp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.jp-stat-card { background: #fff; border: 1px solid var(--jp-border); border-radius: var(--jp-radius); padding: 20px; text-align: center; }
.jp-stat-card__value { font-size: 32px; font-weight: 700; color: var(--jp-blue); margin-bottom: 4px; }
.jp-stat-card__label { font-size: 13px; color: var(--jp-text-muted); }

.jp-panel { background: #fff; border: 1px solid var(--jp-border); border-radius: var(--jp-radius); overflow: hidden; margin-bottom: 24px; }
.jp-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--jp-border-light); }
.jp-panel__title { font-size: 18px; font-weight: 700; margin: 0; }
.jp-panel__body { padding: 20px; }
.jp-link-more { font-size: 13px; color: var(--jp-blue); text-decoration: none; }
.jp-link-more:hover { text-decoration: underline; }

.jp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jp-table th, .jp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--jp-border-light); }
.jp-table th { font-weight: 700; font-size: 13px; color: var(--jp-text-muted); text-transform: uppercase; letter-spacing: .4px; background: var(--jp-bg); }
.jp-table tr:last-child td { border-bottom: none; }
.jp-table tr:hover td { background: #fafafa; }

.jp-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.jp-status--active  { background: #e7f3e8; color: #2d7a3a; }
.jp-status--closed  { background: #f3f2f1; color: var(--jp-text-muted); }
.jp-status--pending { background: #fff7e6; color: #a85400; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.jp-alert { padding: 12px 16px; border-radius: var(--jp-radius-sm); font-size: 14px; margin-bottom: 16px; }
.jp-alert--success { background: #e7f3e8; color: #2d7a3a; border: 1px solid #b7e0bc; }
.jp-alert--error   { background: #fde8e8; color: #c0392b; border: 1px solid #f5c0c0; }
.jp-alert--info    { background: #e8f0fb; color: #1a3f80; border: 1px solid #c0d3f5; }

#jp-alerts-container { margin-bottom: 16px; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.jp-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.jp-modal-overlay.is-open { display: flex; }
.jp-modal {
  background: #fff;
  border-radius: var(--jp-radius);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}
.jp-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--jp-border); }
.jp-modal__title  { font-size: 18px; font-weight: 700; margin: 0; }
.jp-modal__close  { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--jp-text-muted); line-height: 1; padding: 4px; }
.jp-modal__close:hover { color: var(--jp-text); }
.jp-modal .jp-panel__body, .jp-modal form { padding: 24px; }

/* ── Apply Steps Modal ────────────────────────────────────────────────────── */
.jp-apply-steps { padding: 0 24px 24px; }
.jp-apply-step { display: none; }
.jp-apply-step.is-active { display: block; }
.jp-apply-step__title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.jp-apply-step__subtitle { font-size: 14px; color: var(--jp-text-muted); margin: 0 0 20px; }
.jp-apply-progress {
  display: flex; gap: 4px; padding: 16px 24px;
  border-bottom: 1px solid var(--jp-border);
  margin-bottom: 0;
}
.jp-apply-progress__step {
  flex: 1; height: 3px; border-radius: 3px;
  background: var(--jp-border);
  transition: background .2s;
}
.jp-apply-progress__step.is-done { background: var(--jp-blue); }
.jp-apply-review-box {
  background: var(--jp-bg);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.jp-apply-review-box h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.jp-apply-review-box p { font-size: 14px; color: var(--jp-text-muted); margin: 0; }
.jp-apply-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── CV upload area ───────────────────────────────────────────────────────── */
.jp-cv-upload-area {
  border: 2px dashed var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.jp-cv-upload-area:hover, .jp-cv-upload-area.is-dragover { border-color: var(--jp-blue); background: var(--jp-blue-light); }
.jp-cv-upload-area i { font-size: 36px; color: var(--jp-text-muted); margin-bottom: 12px; display: block; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.jp-pagination ul {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 24px 0; justify-content: center;
}
.jp-pagination li { list-style: none; }
.jp-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-sm);
  font-size: 14px;
  color: var(--jp-text);
  text-decoration: none;
  padding: 0 8px;
  transition: background .12s, border-color .12s, color .12s;
  background: #fff;
}
.jp-pagination .page-numbers:hover { border-color: var(--jp-blue); color: var(--jp-blue); }
.jp-pagination .page-numbers.current { background: var(--jp-blue); color: #fff; border-color: var(--jp-blue); }

/* ── My Jobs page ─────────────────────────────────────────────────────────── */
.jp-my-jobs-page { padding: 32px 0; background: var(--jp-bg); min-height: 70vh; }
.jp-my-jobs-page .container { max-width: 900px; }
.jp-my-jobs-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.jp-my-jobs-tabs { display: flex; border-bottom: 2px solid var(--jp-border); margin-bottom: 24px; }
.jp-my-jobs-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--jp-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.jp-my-jobs-tab.is-active { color: var(--jp-text); border-bottom-color: var(--jp-text); }
.jp-my-jobs-tab .count { font-size: 13px; color: var(--jp-text-muted); margin-left: 2px; }

/* ── Profile Page ─────────────────────────────────────────────────────────── */
.jp-profile-page {
  padding: 32px 0;
  background: var(--jp-bg);
  min-height: 80vh;
}
.jp-profile-page .container {
  max-width: 780px;
}
.jp-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.jp-profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--jp-bg);
  border: 1px solid var(--jp-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; overflow: hidden;
  transition: border-color .15s;
}
.jp-profile-avatar:hover { border-color: var(--jp-blue); }
.jp-profile-avatar i { font-size: 36px; color: var(--jp-text-muted); }
.jp-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jp-profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--jp-text-muted);
  margin: 0 0 4px;
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: pointer;
}
.jp-profile-name.has-name { color: var(--jp-text); text-decoration: none; }

.jp-profile-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jp-border-light);
  font-size: 14px;
}
.jp-profile-info-row i { width: 18px; color: var(--jp-text-muted); text-align: center; }
.jp-profile-info-row a { color: var(--jp-blue); font-weight: 600; }
.jp-profile-info-row .jp-add-link { color: var(--jp-blue); font-weight: 600; cursor: pointer; }
.jp-profile-info-row .jp-arrow { margin-left: auto; color: var(--jp-text-muted); }

.jp-profile-visibility-banner {
  background: #fdf6ec;
  border: 1px solid #f0d09a;
  border-radius: var(--jp-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 700;
  color: #a85400;
  cursor: pointer;
}
.jp-profile-visibility-banner i { color: #a85400; }

.jp-profile-notice {
  background: #f7f0ff;
  border: 1px solid #d4baff;
  border-radius: var(--jp-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--jp-text);
  position: relative;
}
.jp-profile-notice i { color: #7c3aed; flex-shrink: 0; margin-top: 2px; }
.jp-profile-notice__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--jp-text-muted); font-size: 18px; line-height: 1;
}

.jp-profile-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.jp-resume-actions {
  display: flex;
  gap: 12px;
  margin: 12px 0 8px;
}
.jp-resume-actions .jp-btn {
  flex: 1;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}
.jp-resume-disclaimer {
  font-size: 12px;
  color: var(--jp-text-muted);
  margin: 4px 0 24px;
}

.jp-improve-section-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.jp-improve-divider { border: none; border-top: 1px solid var(--jp-border-light); margin: 0 0 8px; }

.jp-qual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--jp-border-light);
  cursor: pointer;
  text-decoration: none;
  color: var(--jp-text);
}
.jp-qual-row:hover .jp-qual-row__label { color: var(--jp-blue); text-decoration: underline; }
.jp-qual-row i.jp-qual-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--jp-text-muted);
  flex-shrink: 0;
}
.jp-qual-row__body { flex: 1; }
.jp-qual-row__label { font-size: 15px; font-weight: 600; color: var(--jp-blue); margin: 0 0 2px; }
.jp-qual-row__sub { font-size: 13px; color: var(--jp-text-muted); }
.jp-qual-row__actions { display: flex; align-items: center; gap: 8px; }
.jp-qual-row__add {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  background: #fff;
  color: var(--jp-text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .12s, color .12s, border-color .12s;
}
.jp-qual-row__add:hover { background: var(--jp-blue); color: #fff; border-color: var(--jp-blue); }

/* ── Qualifications Page ─────────────────────────────────────────────────── */
.jp-qual-page { padding: 32px 0; background: var(--jp-bg); min-height: 80vh; }
.jp-qual-page .container { max-width: 780px; }
.jp-qual-page__back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--jp-text);
  text-decoration: none; margin-bottom: 16px;
}
.jp-qual-page__back:hover { color: var(--jp-blue); text-decoration: none; }
.jp-qual-page__title { font-size: 32px; font-weight: 700; margin: 0 0 6px; }
.jp-qual-page__sub { font-size: 14px; color: var(--jp-text-muted); margin: 0 0 20px; }
.jp-qual-info-box {
  background: #eef3fb;
  border-radius: var(--jp-radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--jp-text);
  margin-bottom: 24px;
}
.jp-qual-info-box i { color: var(--jp-blue); flex-shrink: 0; margin-top: 2px; }
.jp-qual-expandable {
  padding: 18px 0;
  border-bottom: 1px solid var(--jp-border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.jp-qual-expandable:hover { background: transparent; }
.jp-qual-expandable i.jp-qual-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--jp-text-muted); flex-shrink: 0;
}
.jp-qual-expandable__label { font-size: 16px; font-weight: 600; color: var(--jp-blue); flex: 1; }
.jp-qual-expandable__label:hover { text-decoration: underline; }
.jp-qual-expandable__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  background: #fff;
  color: var(--jp-text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .12s, color .12s, border-color .12s;
  flex-shrink: 0;
}
.jp-qual-expandable__plus:hover { background: var(--jp-blue); color: #fff; border-color: var(--jp-blue); }
.jp-qual-expandable__items { display: none; padding-left: 50px; }
.jp-qual-expandable__items.is-open { display: block; }
.jp-qual-item-card {
  background: #fff;
  border: 1px solid var(--jp-border-light);
  border-radius: var(--jp-radius-sm);
  padding: 14px 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jp-qual-item-card__name { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.jp-qual-item-card__sub { font-size: 13px; color: var(--jp-text-muted); }
.jp-qual-item-card__actions { display: flex; gap: 6px; }

/* ── Notifications page ───────────────────────────────────────────────────── */
.jp-notifications-page { padding: 32px 0; background: var(--jp-bg); min-height: 70vh; }
.jp-notifications-page .container { max-width: 900px; }
.jp-notifications-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 20px; }
.jp-notif-item {
  background: #fff;
  border: 1px solid var(--jp-border-light);
  border-radius: var(--jp-radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.jp-notif-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: #fff;
}
.jp-notif-icon--green   { background: #2d7a3a; }
.jp-notif-icon--orange  { background: #d9730d; }
.jp-notif-icon--blue    { background: var(--jp-blue); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.jp-footer {
  background: #fff;
  border-top: 1px solid var(--jp-border);
  padding: 28px 0;
  font-size: 13px;
  color: var(--jp-text-muted);
}
.jp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.jp-footer__links a { color: var(--jp-text-muted); text-decoration: none; }
.jp-footer__links a:hover { text-decoration: underline; color: var(--jp-text); }
.jp-footer__copy { color: var(--jp-text-muted); font-size: 12px; }

/* ── Loading spinner ──────────────────────────────────────────────────────── */
.jp-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--jp-text-muted);
}
.jp-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--jp-border);
  border-top-color: var(--jp-blue);
  border-radius: 50%;
  animation: jp-spin 0.8s linear infinite;
}
@keyframes jp-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .jp-split-layout { flex-direction: column; height: auto; overflow: visible; }
  .jp-jobs-panel { width: 100%; height: auto; min-height: auto; border-right: none; border-bottom: 1px solid var(--jp-border); }
  .jp-detail-panel { padding: 16px; }
  .jp-companies-grid { grid-template-columns: 1fr 1fr; }
  .jp-about-cards { grid-template-columns: 1fr 1fr; }
  .jp-company-body .container, .jp-reviews-layout { grid-template-columns: 1fr; }
  .jp-single-job .container { grid-template-columns: 1fr; }
  .jp-stats-grid { grid-template-columns: 1fr 1fr; }
  .jp-dashboard { grid-template-columns: 1fr; }
  .jp-dashboard__sidebar { display: none; }
}
@media (max-width: 600px) {
  .jp-companies-grid { grid-template-columns: 1fr; }
  .jp-form-row { grid-template-columns: 1fr; }
  .jp-auth-card { padding: 24px 16px; }
  .jp-detail__apply-row { flex-direction: column; align-items: stretch; }
  .jp-profile-header { flex-direction: column; align-items: center; text-align: center; }
  .jp-resume-actions { flex-direction: column; }
}
