/* GLOBAL RESET */
*, *::before, *::after { box-sizing: border-box !important; }

:root {
  --primary: #8a50fd;
  --primary-hover: #743fd5;
  --text-dark: #101828;
  --text-gray: #667085;
  --bg-light: #F8F9FC;
  --border-light: #EAECF0;
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-xl: 0 20px 24px -4px rgba(16, 24, 40, 0.1), 0 8px 8px -4px rgba(16, 24, 40, 0.04);
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Heebo', sans-serif !important;
}
input, button, select, textarea { font-family: 'Heebo', sans-serif !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#jobs-results { scroll-margin-top: 100px; }

/* HERO */
.jobs-page-hero { position: relative; margin: 0 16px; padding: 80px 20px; border-radius: 40px; background-color: #F1F3FF; }
.jobs-page-hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.jobs-page-card { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.jobs-page-title { font-size: 48px; font-weight: 800; color: var(--text-dark); margin: 0 0 48px 0; letter-spacing: -0.02em; line-height: 1.2; }

/* SEARCH BAR DESKTOP */
.jobs-page-search-bar {
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  padding: 6px;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 24px;
  position: relative;
  z-index: 50;
}
.jobs-custom-field { flex: 1; height: 100%; position: relative; min-width: 0; }

.jobs-keyword-wrapper { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 100px; width: 100%; }
.jobs-custom-field:hover .jobs-keyword-wrapper { background-color: #F9FAFB; }

/* keyword input always LTR */
.jobs-keyword-input {
  width: 100%; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text-dark); font-weight: 500;
  text-align: left !important;
  direction: ltr !important;
}
.jobs-keyword-input::-moz-placeholder { color: #98A2B3; }
.jobs-keyword-input::placeholder { color: #98A2B3; }

.jobs-custom-trigger {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px;
  cursor: pointer; border-radius: 100px; transition: background-color 0.2s;
  width: 100%; background: transparent; border: none;
}
.jobs-custom-trigger:hover { background-color: #F9FAFB; }
.jobs-custom-field.active .jobs-custom-trigger { background-color: #F4EEFF; }

.jobs-icon-box { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-gray); flex-shrink: 0; margin-left: 8px; }
.jobs-custom-field.active .jobs-icon-box { color: var(--primary); }

.jobs-single-text { flex: 1; font-size: 15px; font-weight: 500; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.jobs-chevron { margin-right: 8px; display: flex; align-items: center; color: #98A2B3; flex-shrink: 0; }
.jobs-custom-field.active .jobs-chevron svg { transform: rotate(180deg); }

.jobs-divider { width: 1px; height: 24px; background: #EAECF0; margin: 0 2px; }

.jobs-page-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  height: 48px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 800;
  margin-right: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(137, 89, 231, 0.3);
  transition: all 0.2s;
  flex-shrink: 0;
}
.jobs-page-search-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Dropdown content */
.jobs-custom-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; width: 100%; min-width: 260px;
  background: #FFFFFF; border-radius: 16px; box-shadow: var(--shadow-xl);
  padding: 0; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column; border: 1px solid #EAECF0; overflow: hidden;
}
.jobs-custom-field.active .jobs-custom-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.jobs-search-container { padding: 12px; border-bottom: 1px solid #F2F4F7; background: #FFFFFF; }
.jobs-inner-search {
  width: 100%; padding: 10px 14px; border: 1px solid #EAECF0; border-radius: 10px;
  font-size: 14px; outline: none; background: #F9FAFB; transition: 0.2s;
}
.jobs-inner-search:focus { border-color: var(--primary); background: #FFF; box-shadow: 0 0 0 3px rgba(138, 80, 253, 0.1); }

.jobs-options-list { max-height: 280px; overflow-y: auto; padding: 0; }
.jobs-option {
  padding: 12px 16px; font-size: 14px; color: #344054; cursor: pointer;
  transition: all 0.15s; width: 100%; display: flex; justify-content: flex-start;
  border: none; background: #FFFFFF; border-bottom: 1px solid #F2F4F7;
}
.jobs-option:last-child { border-bottom: none; }
.jobs-option:hover { background: #F4F8FF; color: var(--text-dark); font-weight: 600; }
.jobs-option.selected { background: #F4EEFF; color: var(--primary); font-weight: 800; }

/* Desktop autocomplete dropdown */
.jobs-search-dropdown-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #FFFFFF; border: 1px solid #EAECF0; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-top: 8px; padding: 0; list-style: none; z-index: 9999;
  max-height: 250px; overflow-y: auto; display: none;
  text-align: left !important;
  direction: ltr !important;
}
.jobs-search-dropdown-results.active { display: block; }

.jobs-search-result-item {
  padding: 12px 16px; border-bottom: 1px solid #F2F4F7; font-size: 14px; color: #101828;
  cursor: pointer; transition: background 0.15s; display: flex; align-items: center; gap: 10px;
}
.jobs-search-result-item:last-child { border-bottom: none; }
.jobs-search-result-item:hover { background-color: #F9FAFB; color: var(--primary); font-weight: 800; }
.search-item-icon { color: #98A2B3; font-size: 12px; }

/* Clear button */
.search-clear-btn { display:none; background:transparent; border:none; color:#98A2B3; padding:0 8px; font-size: 16px; cursor: pointer; z-index: 10; }
.search-clear-btn:hover { color: #101828; }

/* Work model pills */
.jobs-page-options { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 48px; }
.jobs-page-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 16px; border-radius: 100px; transition: 0.2s; }
.jobs-page-option:hover { background-color: rgba(255,255,255,0.6); }
.jobs-page-option-input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; cursor: pointer; }
.radio-label { font-size: 15px; font-weight: 500; color: #344054; }

/* Active tags */
.active-filters-box { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; justify-content:center; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background-color: #FFFFFF; color: var(--primary);
  padding: 6px 14px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 6px -1px rgba(138, 80, 253, 0.15);
}
.filter-tag-label { opacity: 0.7; font-weight: 500; }
.filter-tag-remove { background: rgba(255,255,255,0.5); border:none; cursor:pointer; width:20px; height:20px; border-radius:50%; color:var(--primary); font-size:12px; }
.filter-tag-remove:hover { color:#ef4444; }

/* Upload */
.jobs-upload-section { display:flex; flex-direction:column; align-items:center; gap: 20px; }
.jobs-page-upload-text { font-size: 15px; color: var(--text-gray); margin: 0; }
.jobs-page-upload-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 24px; border-radius:100px; background-color:#ffffff;
  border:1.5px solid var(--primary); color:var(--primary);
  font-size:15px; font-weight:800; box-shadow:var(--shadow-sm);
  transition: all .2s ease; cursor:pointer;
}
.jobs-page-upload-btn:hover { background-color:#F9F5FF; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Job list */
.jobs-list-section { background-color: #F8F9FC; padding: 80px 0; }
.section-title { font-size: 36px; font-weight: 800; color: var(--text-dark); margin: 0; }

.jobs-status-slider-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  position: relative;
  z-index: 20; 
}

.jobs-status-track { background-color:#EAECF0; border-radius:100px; padding:4px; display:inline-flex; gap:4px; align-items:center; }
.status-pill { 
  background:transparent; 
  border:none; 
  cursor:pointer; 
  font-size:14px; 
  font-weight:700; 
  color:#475467; 
  padding:8px 20px; 
  border-radius:100px; 
  transition:.2s; 
  position: relative;
  z-index: 21;
}
.status-pill.active { background-color: var(--primary); color:#fff; box-shadow: var(--shadow-sm); }

.jobs-cards { display:grid; gap:24px; width:100%; grid-template-columns: repeat(3, 1fr); direction:ltr; }
.job-card-clean { background:#fff; border:1px solid #EAECF0; border-radius:20px; padding:24px; transition:.25s; display:flex; flex-direction:column; min-height:240px; }
.job-card-clean:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color:#D6BBFB; }

.job-title-clean { font-size: 18px; font-weight: 900; color: var(--text-dark); margin: 0; }
.job-title-clean a { text-decoration:none; color:inherit; }
.job-title-clean a:hover { color: var(--primary); }
.job-company-clean { font-size: 14px; color: var(--text-gray); margin: 0; font-weight: 600; text-align:left; }

.status-badge { font-size: 12px; padding: 4px 10px; border-radius: 100px; font-weight: 800; display:inline-flex; align-items:center; white-space:nowrap; }
.status-open { background-color:#ECFDF3; color:#027A48; }
.status-closed { background-color:#FEF3F2; color:#B42318; }
.status-hot { background-color:#FFFAEB; color:#B54708; }
.status-hold { background-color:#EEF4FF; color:#3538CD; }

.job-tags-clean { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; margin-bottom:auto; padding-bottom:24px; }
.job-tag { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; background:#F9FAFB; border:1px solid #EAECF0; border-radius:8px; font-size:12px; color:#344054; font-weight:700; white-space:nowrap; }
.job-tag svg, .job-tag img { width:14px; height:14px; color:#98A2B3; }

.btn-job-apply {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:10px 0; border:1.5px solid var(--primary);
  border-radius:100px; color:var(--primary); font-size:14px; font-weight:900;
  text-decoration:none; transition:.2s; background:transparent;
}
.btn-job-apply:hover { background: var(--primary); color:#fff; box-shadow: var(--shadow-md); }

/* empty state */
.jobs-empty-state { text-align:center; width:100%; grid-column: 1 / -1; padding:40px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.jobs-empty-cta { max-width: 220px; justify-content:center; }

/* Pagination */
.pagination-container { display:flex; justify-content:space-between; align-items:center; margin-top:60px; padding-top:24px; border-top:1px solid #EAECF0; width:100%; }
.pagination-btn { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid #D0D5DD; border-radius:8px; background:#fff; color:#344054; text-decoration:none; font-weight:800; font-size:14px; box-shadow: var(--shadow-sm); transition:.2s; }
.pagination-btn.disabled { opacity:.6; cursor:not-allowed; background:#F2F4F7; }
.pagination-numbers { display:flex; gap:4px; align-items:center; justify-content:center; }
.pagination-num { width:40px; height:40px; display:flex; align-items:center; justify-content:center; color: var(--text-gray); text-decoration:none; font-weight:800; font-size:14px; border-radius:8px; }
.pagination-num.active { background:#F9F5FF; color: var(--primary); }

/* Modal */
.modern-modal { display:none; position:fixed; inset:0; z-index:9999; }
.modal-overlay { position:absolute; inset:0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display:flex; justify-content:center; align-items:center; padding:20px; }
.modal-content { width:100%; max-width:600px; background:#fff; border-radius:24px; box-shadow: var(--shadow-xl); position:relative; display:flex; flex-direction:column; max-height:90vh; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:24px 32px; border-bottom:1px solid #EAECF0; }
.modal-close-btn { border:none; background:transparent; cursor:pointer; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color: var(--text-gray); font-size: 24px; }
.modal-close-btn:hover { background:#F2F4F7; color: var(--text-dark); }
.modal-body-scroll { padding: 32px; overflow-y:auto; }
.modern-form { display:flex; flex-direction:column; gap:20px; }
.form-row { display:flex; gap:16px; }
.form-row .form-group { flex:1; }
.modern-form input, .modern-form textarea { width:100%; border:1px solid #D0D5DD; border-radius:8px; padding:10px 14px; background:#fff; font-size:15px; }
.upload-area { border:1.5px dashed #D0D5DD; border-radius:12px; padding:24px; text-align:center; background:#F9FAFB; display:flex; flex-direction:column; align-items:center; gap:8px; }
.btn-upload-trigger { margin-top:8px; display:inline-flex; align-items:center; justify-content:center; padding:8px 16px; border-radius:100px; border:1px solid var(--primary); color: var(--primary); font-size:13px; font-weight:900; cursor:pointer; background:#fff; }
.btn-submit-app { background: var(--primary); color:#fff; border:none; border-radius:100px; height:48px; font-size:16px; font-weight:900; cursor:pointer; }
.consent-error { display:none; color:#ef4444; font-size:12px; margin-top:4px; }

/* MOBILE */
.jobs-mobile-actions { display:none; }

@media (max-width: 1024px) {
  .jobs-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .jobs-page-hero { padding: 40px 16px; margin: 0; border-radius: 0 0 32px 32px; }
  .jobs-page-title { font-size: 30px; margin-bottom: 18px; }
  .jobs-search-group { display:none !important; }
  .jobs-page-options { display:none !important; }

  .jobs-mobile-actions {
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    margin: 10px 0 18px 0;
    width:100%;
    max-width:960px;
  }

  .jobs-mobile-filters-btn {
    flex:0 0 auto;
    padding:0 16px;
    height:48px;
    border-radius:16px;
    border:1px solid rgba(138,80,253,0.28);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 32px rgba(15,23,42,0.08);
    font-weight:900;
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
  }
  .jobs-mobile-pill-icon {
    width: 24px; height: 24px; border-radius: 999px;
    display: grid; place-items: center; background: rgba(244,238,255,0.95);
  }

  .jobs-mobile-search-wrapper { position:relative; flex:1; min-width:0; }
  .jobs-mobile-keyword {
    height:48px;
    border-radius:16px;
    border:1px solid rgba(138,80,253,0.22);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 18px 32px rgba(15,23,42,0.08);
    display:flex;
    align-items:center;
    gap:8px;
    padding: 0 6px 0 12px;
    width:100%;
  }
  .jobs-mobile-keyword-icon { width:24px; height:24px; display:grid; place-items:center; color: #6B46FF; flex-shrink:0; }
  .jobs-mobile-keyword input {
    flex:1; border:none; outline:none; background:transparent;
    font-size:14px; font-weight:800; color:#101828; min-width:0;
    text-align:left !important;
    direction:ltr !important;
  }

  /* ✅ Go button: "סגול חלש" אבל בולט */
  .jobs-mobile-keyword-submit {
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(138,80,253,0.30);
    background: rgba(138,80,253,0.12);
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
    flex-shrink:0;
    font-size: 13px;
  }

  .jobs-mobile-autocomplete-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #667085;
    text-align: left;
    direction: ltr;
    padding-left: 6px;
    min-height: 16px;
  }

  .jobs-cards { grid-template-columns: 1fr; gap: 16px; }
}

/* Bottom sheet */
.jobs-sheet{ position: fixed; inset: 0; z-index: 99999; display: none; touch-action: none; }
.jobs-sheet.is-open{ display:block; }
.jobs-sheet-overlay{ position:absolute; inset:0; background: rgba(15,23,42,0.55); backdrop-filter: blur(10px); opacity: 0; transition: opacity .22s ease; }
.jobs-sheet.is-open .jobs-sheet-overlay{ opacity: 1; }
.jobs-sheet-panel{
  position:absolute; left:0; right:0; bottom:0;
  background:#fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -26px 70px rgba(15,23,42,0.24);
  transform: translateY(18px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  max-height: 90vh; display:flex; flex-direction: column; overflow: hidden;
}
.jobs-sheet.is-open .jobs-sheet-panel{ transform: translateY(0); opacity: 1; }

.jobs-sheet-header{ padding: 10px 16px 12px 16px; border-bottom: 1px solid #EAECF0; }
.jobs-sheet-handle{ width: 52px; height: 5px; border-radius: 999px; background: #EAECF0; margin: 6px auto 10px auto; }
.jobs-sheet-title-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.jobs-sheet-title{ margin: 0; font-size: 16px; font-weight: 900; color:#101828; }
.jobs-sheet-subtitle{ margin: 0; font-size: 12px; color:#667085; }
.jobs-sheet-header-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.jobs-sheet-close{ width: 38px; height: 38px; border-radius: 999px; border: 1px solid #EAECF0; background: rgba(255,255,255,0.95); cursor:pointer; display:grid; place-items:center; font-size: 16px; color: #344054; }
.jobs-sheet-clear{ height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(138,80,253,0.28); background: rgba(244,238,255,0.75); color: #6B46FF; cursor:pointer; font-weight: 900; font-size: 12px; }

.jobs-sheet-body{ padding: 14px 16px 18px 16px; overflow-y:auto; touch-action: pan-y; }
.jobs-sheet-footer{ padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #EAECF0; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); }
.jobs-sheet-cta{ width:100%; height: 52px; border:none; border-radius: 16px; background: var(--primary); color:#fff; font-weight: 900; font-size: 15px; cursor:pointer; box-shadow: 0 18px 34px rgba(138,80,253,0.28); }

/* =========================
   BOTTOM CTA SECTION (NEW)
   ========================= */
.jobs-bottom-cta {
  padding: 80px 0;
  background-color: transparent;
  margin-top: 40px;
}

.jobs-bottom-cta-card {
  background: var(--primary); /* סגול של המותג */
  background: linear-gradient(135deg, #8a50fd 0%, #6835c9 100%);
  border-radius: 32px;
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* אפקט עדין ברקע */
.jobs-bottom-cta-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.jobs-bottom-cta-text {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.jobs-bottom-cta-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: #fff;
  line-height: 1.2;
}

.jobs-bottom-cta-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.jobs-bottom-cta-actions {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background-color: #F9FAFB;
}

/* התאמה למובייל */
@media (max-width: 900px) {
  .jobs-bottom-cta { padding: 40px 0; }

  .jobs-bottom-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .jobs-bottom-cta-title { font-size: 26px; }
  .jobs-bottom-cta-subtitle { font-size: 16px; }

  .jobs-bottom-cta-actions { width: 100%; }
  .btn-primary-cta { width: 100%; }
}

/* =========================================
   TIKUN MOBILE FIXES (Search Height + Slider)
   ========================================= */

@media (max-width: 900px) {
  /* 1. גובה אחיד לתיבת החיפוש ולכפתור הפילטרים */
  .jobs-mobile-actions {
    align-items: stretch; /* מוודא ששני האלמנטים נמתחים לאותו גובה */
  }

  .jobs-mobile-filters-btn,
  .jobs-mobile-keyword {
    height: 48px !important;       /* גובה אחיד כפוי */
    min-height: 48px !important;
    box-sizing: border-box !important; /* מוודא שהבורדר נחשב בתוך הגובה */
    display: flex;
    align-items: center;
  }

  /* 2. עידון הסליידר (Status Slider) שיהיה דק יותר */
  .jobs-status-track {
    padding: 3px !important; /* הקטנת הריפוד של המסגרת האפורה */
  }

  .status-pill {
    padding: 6px 14px !important; /* הקטנת הכפתורים עצמם */
    font-size: 13px !important;   /* הקטנת הפונט מעט למראה עדין */
    height: auto !important;
    min-height: 0 !important;
  }
}

/* ============================================================
   🚀 MOBILE SHEET UI OVERHAUL (Top Tier Design)
   Transforms the filter sheet into a clean vertical list.
   ============================================================ */

@media (max-width: 900px) {

  /* 1. איפוס הקונטיינר של הטופס */
  .jobs-sheet-body .jobs-page-search-bar {
    flex-direction: column !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* ✅ 2. הסתרת שורת החיפוש החופשי (כי יש בחוץ) */
  .jobs-sheet-body .jobs-custom-field[data-field-keyword] {
    display: none !important;
  }

  /* ✅ 3. הסתרת החץ מכפתור החיפוש למטה */
  .jobs-sheet-cta span {
    display: none !important;
  }

  /* 4. עיצוב כל שדה ככרטיס */
  .jobs-sheet-body .jobs-custom-field {
    width: 100% !important;
    background: #F9FAFB !important; /* אפור בהיר מאוד */
    border: 1px solid #EAECF0 !important;
    border-radius: 16px !important;
    height: 64px !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0 4px !important;
  }

  .jobs-sheet-body .jobs-custom-field.active {
    background: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(138, 80, 253, 0.08) !important;
    height: auto !important; /* לאפשר פתיחה */
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* 5. העלמת המפרידים */
  .jobs-sheet-body .jobs-divider {
    display: none !important;
  }

  /* 6. הסתרת כפתור חיפוש פנימי */
  .jobs-sheet-body .jobs-page-search-btn {
    display: none !important;
  }

  /* 7. טריגר */
  .jobs-sheet-body .jobs-custom-trigger {
    height: 64px !important; /* גובה הכרטיס הסגור */
    width: 100% !important;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .jobs-sheet-body .jobs-icon-box {
    color: var(--primary) !important;
    background: rgba(138, 80, 253, 0.08);
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
    margin-left: 12px !important; /* LTR default */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  [dir="rtl"] .jobs-sheet-body .jobs-icon-box {
    margin-left: 0 !important;
    margin-right: 12px !important;
  }

  .jobs-sheet-body .jobs-single-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #101828 !important;
  }

  /* ✅ 8. Work Model Chips (עדינים ומעוגלים מלא) */
  .jobs-sheet-body .jobs-page-options {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important; /* רווח קטן יותר */
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .jobs-sheet-body .jobs-page-option {
    background: #FFFFFF !important;
    border: 1px solid #D0D5DD !important; /* גבול ברור יותר */
    border-radius: 999px !important; /* צורת גלולה מלאה */
    padding: 0 !important;
    justify-content: center !important;
    height: 42px !important; /* נמוך יותר וקומפקטי */
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
  }

  .jobs-sheet-body .jobs-page-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
  }

  .jobs-sheet-body .radio-label {
    font-size: 13px !important; /* פונט קטן ועדין */
    font-weight: 600 !important;
    color: #344054;
    z-index: 1;
  }

  .jobs-sheet-body .jobs-page-option:has(input:checked) {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(138, 80, 253, 0.2);
  }

  .jobs-sheet-body .jobs-page-option:has(input:checked) .radio-label {
    color: #FFFFFF !important;
  }

  /* 9. Dropdown Body Styling */
  .jobs-sheet-body .jobs-custom-dropdown {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #EAECF0 !important;
    border-radius: 0 0 16px 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none; 
    background: #FFFFFF !important;
  }

  .jobs-sheet-body .jobs-custom-field.active .jobs-custom-dropdown {
    display: block !important;
  }
}

  /* ✅ Loading Spinner Styles */
  .btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    display: none; /* מוסתר כברירת מחדל */
  }

  @keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* מצב טעינה לכפתור */
  .btn-submit-tier.is-loading {
    background-color: #9ea5b5 !important; /* אפור/סגול בהיר */
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none; /* חוסם לחיצות נוספות! */
  }

  /* =========================================
   🚀 JOB COUNT BADGE & EMPTY STATE (Top Tier)
   ========================================= */

/* 1. Job Count Badge */
.jobs-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #F4EEFF 0%, #F9F5FF 100%);
  color: var(--primary);
  border: 1px solid rgba(138, 80, 253, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(138, 80, 253, 0.05);
  transition: all 0.3s ease;
}

.jobs-count-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 80, 253, 0.1);
  border-color: rgba(138, 80, 253, 0.4);
}

/* 2. Top Tier Empty State */
.jobs-empty-state-modern {
  grid-column: 1 / -1; /* תופס את כל הרוחב */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px dashed #EAECF0;
  margin-top: 20px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: #F4F3FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 30px;
  color: var(--primary);
  box-shadow: 0 0 0 8px #F9F5FF; /* אפקט טבעות */
}

.empty-state-title {
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  margin: 0 0 8px 0;
}

.empty-state-desc {
  font-size: 15px;
  color: #667085;
  margin: 0 0 32px 0;
  max-width: 400px;
  line-height: 1.5;
}

/* Clear Filters Button */
/* אפשרות 1: Ghost Button (מסגרת סגולה) */
.btn-empty-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 32px;
  
  /* רקע שקוף, מסגרת וטקסט בסגול המותגי */
  background: transparent;
  border: 2px solid #8A50FD; /* הסגול שלך */
  color: #8A50FD;
  
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* אפקט ריחוף: מילוי סגול עדין מאוד */
.btn-empty-clear:hover {
  background: #F4EEFF; /* סגול בהיר מאוד */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 80, 253, 0.15);
}

/* "Upload CV" Text Link */
.empty-state-footer {
  margin-top: 24px;
  font-size: 14px;
  color: #667085;
}

.link-trigger-upload {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.link-trigger-upload:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

/* ✅ SVG Sizing for included icons (Added Fix) */
.jobs-mobile-keyword-icon svg { width: 18px; height: 18px; }
.jobs-icon-box svg { width: 20px; height: 20px; }
.jobs-chevron svg { width: 12px; height: 12px; }
.job-tag svg { width: 14px; height: 14px; }
.btn-job-apply svg { width: 16px; height: 16px; }
.jobs-page-upload-icon svg { width: 18px; height: 18px; }