/**
 * Kedami Jobs UI Modern — scoped under .ej-modern
 * Brand colors from kedamijobs.net: green #4BBC88 (primary CTA), blue #3677CB (header, search, links).
 */

/* ---- Google-style top progress bar (like NProgress / kedamijobs) ---- */
#ej-progress.ej-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: #4BBC88;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.2s ease-out;
}

#ej-progress.ej-progress-bar.ej-progress-running {
  opacity: 1;
  transform: scaleX(0);
  animation: ej-progress-grow 0.6s ease-out forwards;
}

#ej-progress.ej-progress-bar.ej-progress-done {
  transform: scaleX(1);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.4s ease-out 0.35s;
}

@keyframes ej-progress-grow {
  0% {
    transform: scaleX(0);
  }

  60% {
    transform: scaleX(0.7);
  }

  100% {
    transform: scaleX(0.85);
  }
}

.ej-modern {
  /* ---- Kedami Jobs.net brand tokens ---- */
  --ej-primary: #4BBC88;
  --ej-primary-light: #5fc997;
  --ej-primary-dark: #3da876;
  --ej-blue: #3677CB;
  --ej-blue-light: #4d8ad4;
  --ej-blue-dark: #2a5fa0;
  --ej-accent: #3677CB;
  --ej-accent-hover: #2d62a8;
  --ej-hero-bg: #f8fafc;
  --ej-page-bg: #f1f5f9;
  /* Extracted from kedamijobs.net/jobs (Playwright) ---- */
  --ej-hero-jobs-bg-extracted: rgb(243, 244, 248);
  --ej-job-card-shadow-extracted: rgba(0, 0, 0, 0.08) 0px 2px 17px 1px;
  --ej-job-card-radius-extracted: 15px;
  --ej-job-card-padding-extracted: 25px;
  --ej-dark: #272a33;
  --ej-text: #1a1d24;
  --ej-text-muted: #5c6370;
  --ej-border: rgba(54, 119, 203, 0.15);
  --ej-radius-sm: 8px;
  --ej-radius-md: 12px;
  --ej-radius-lg: 16px;
  --ej-radius-pill: 9999px;
  --ej-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --ej-shadow-card-extracted: rgba(0, 0, 0, 0.08) 0px 2px 17px 1px;
  --ej-spacing-xs: 0.25rem;
  --ej-spacing-sm: 0.5rem;
  --ej-spacing-md: 1rem;
  --ej-spacing-lg: 1.5rem;
  --ej-spacing-xl: 2rem;
  --ej-spacing-2xl: 2.5rem;
  --ej-focus-ring: 0 0 0 3px rgba(75, 188, 136, 0.4);
  --ej-focus-ring-blue: 0 0 0 3px rgba(54, 119, 203, 0.35);
}

/* ---- Hero ---- */
.ej-modern .ej-hero {
  background: var(--ej-hero-bg);
  padding: var(--ej-spacing-2xl) var(--ej-spacing-lg);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.ej-modern .ej-hero-home {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(0,0,0,0.15)'/%3E%3C/svg%3E"), linear-gradient(180deg, var(--ej-hero-bg) 0%, #fff 100%);
  background-size: 20px 20px, 100% 100%;
}

.ej-modern .ej-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--ej-text);
  line-height: 1.2;
  margin-bottom: var(--ej-spacing-sm);
}

.ej-modern .ej-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ej-text-muted);
  margin-bottom: var(--ej-spacing-lg);
}

.ej-modern .ej-hero-cta {
  margin-bottom: 1rem;
}

.ej-modern .ej-hero-cta .ej-btn-primary {
  font-size: 1.1rem;
  padding: 0.65rem 1.75rem;
}

.ej-modern .ej-hero-search.input-group {
  border-radius: var(--ej-radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ej-modern .ej-hero-search.input-group .form-control {
  border-radius: var(--ej-radius-pill) 0 0 var(--ej-radius-pill);
  border-right: none;
}

.ej-modern .ej-hero-search.input-group .btn,
.ej-modern .ej-hero-search.input-group .ej-btn-accent {
  border-radius: 0 var(--ej-radius-pill) var(--ej-radius-pill) 0;
}

.ej-modern .ej-popular-label {
  font-size: 0.875rem;
  color: var(--ej-text-muted);
  font-weight: 500;
}

.ej-modern .ej-popular-searches {
  gap: 0.5rem;
}

.ej-modern .ej-popular-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ej-blue);
  background: rgba(54, 119, 203, 0.08);
  border: 1px solid var(--ej-border);
  border-radius: var(--ej-radius-pill);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ej-modern .ej-popular-tag:hover {
  background: rgba(54, 119, 203, 0.15);
  color: var(--ej-blue-dark);
  border-color: var(--ej-blue);
}

.ej-modern .ej-hero .form-control,
.ej-modern .ej-hero .input-group {
  border-radius: var(--ej-radius-pill);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.ej-modern .ej-hero .form-control {
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--ej-border);
}

.ej-modern .ej-hero .form-control:focus {
  border-color: var(--ej-blue);
  box-shadow: var(--ej-focus-ring-blue);
  outline: none;
}

/* Primary CTA: pill, min touch target */
.ej-modern .ej-btn-primary {
  background-color: var(--ej-primary);
  color: #fff;
  border: none;
  border-radius: var(--ej-radius-pill);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.ej-modern .ej-btn-primary:hover {
  background-color: var(--ej-primary-light);
  color: #fff;
}

.ej-modern .ej-btn-primary:focus-visible {
  box-shadow: var(--ej-focus-ring);
  outline: none;
}

/* Search / secondary CTA — Kedami Jobs blue */
.ej-modern .ej-btn-accent {
  background-color: var(--ej-blue);
  color: #fff;
  border: none;
  border-radius: var(--ej-radius-pill);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
}

.ej-modern .ej-btn-accent:hover {
  background-color: var(--ej-accent-hover);
  color: #fff;
}

.ej-modern .ej-btn-accent:focus-visible {
  box-shadow: var(--ej-focus-ring-blue);
  outline: none;
}

/* ---- Cards (job list, etc.) ---- */
.ej-modern .ej-card,
.ej-modern .card.ej-card {
  background: #fff;
  border-radius: var(--ej-radius-md);
  box-shadow: var(--ej-shadow-card);
  border: none;
  margin-bottom: var(--ej-spacing-lg);
}

.ej-modern .ej-card .card-body {
  padding: var(--ej-spacing-md);
}

.ej-modern .ej-card .card-footer {
  background: rgba(54, 119, 203, 0.03);
  border-top: 1px solid var(--ej-border);
  border-radius: 0 0 var(--ej-radius-md) var(--ej-radius-md);
  padding: var(--ej-spacing-md) var(--ej-spacing-lg);
}

.ej-modern .ej-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--ej-spacing-sm);
}

.ej-modern .ej-card-title a {
  color: var(--ej-blue);
  text-decoration: none;
}

.ej-modern .ej-card-title a:hover {
  color: var(--ej-blue-dark);
  text-decoration: underline;
}

.ej-modern .ej-card-meta {
  font-size: 0.875rem;
  color: var(--ej-text-muted);
  margin-bottom: 0.25rem;
}

.ej-modern .ej-card .btn-primary,
.ej-modern .ej-card .ej-btn-primary {
  border-radius: var(--ej-radius-pill);
  padding: 0.4rem 1.25rem;
  font-weight: 500;
}

/* Global primary button — Kedami Jobs green */
.ej-modern .btn-primary {
  background-color: var(--ej-primary);
  border-color: var(--ej-primary);
  color: #fff;
  border-radius: var(--ej-radius-pill);
  font-weight: 500;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
}

.ej-modern .btn-primary:hover {
  background-color: var(--ej-primary-light);
  border-color: var(--ej-primary-light);
  color: #fff;
}

.ej-modern .btn-primary:focus-visible {
  box-shadow: var(--ej-focus-ring);
  outline: none;
}

.ej-modern a.btn-primary:focus-visible {
  box-shadow: var(--ej-focus-ring);
  outline: none;
}

/* ---- Page sections ---- */
.ej-modern .ej-section {
  padding: var(--ej-spacing-2xl) 0;
}

.ej-modern .ej-section-categories {
  background: #fff;
  border-top: 1px solid var(--ej-border);
}

.ej-modern .ej-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ej-text);
  margin-bottom: var(--ej-spacing-lg);
}

.ej-modern .ej-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--ej-hero-bg);
  border-radius: var(--ej-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ej-text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ej-modern .ej-category-card:hover {
  background: rgba(75, 188, 136, 0.1);
  border-color: rgba(75, 188, 136, 0.3);
  color: var(--ej-primary-dark);
}

.ej-modern .ej-category-name {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ej-modern .ej-category-count {
  font-size: 0.8rem;
  color: var(--ej-text-muted);
  background: rgba(54, 119, 203, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--ej-radius-sm);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Companies list + legacy company page: match legacy layout */
.ej-modern .page-wrapper {
  margin: 0;
  padding: 0;
}

.ej-modern .page-wrapper .page .page-body {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.ej-modern .ej-company-card {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ej-modern .ej-company-card:hover {
  border-color: rgba(54, 119, 203, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: var(--ej-text);
}

/* ---- Companies page: company-header + company-title (extracted via Playwright from kedamijobs.net/companies) ---- */
/* Computed: backgroundImage url(companyheader.svg), borderRadius 42px, margin 50px 142.5px 0, title 28px/500/white */
.ej-modern .company-header {
  position: relative;
  margin: 50px 1rem 0;
  padding: 1.5rem 1.5rem;
  border-radius: 42px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background-color: transparent;
  background-image: url("../img/companyheader.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

@media (min-width: 768px) {
  .ej-modern .company-header {
    margin-left: 142.5px;
    margin-right: 142.5px;
    margin-top: 50px;
    padding: 2rem 2rem;
    border-radius: 42px;
  }
}

.ej-modern .company-header .company-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 28px);
  font-weight: 500;
  color: rgb(255, 255, 255);
  letter-spacing: normal;
  line-height: normal;
  text-align: center;
}

.ej-modern .company-header-sub {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.ej-modern .company-header-cta {
  position: relative;
  z-index: 1;
  margin-top: 0.875rem;
  background: #10b981;
  color: #fff !important;
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ej-modern .company-header-cta:hover {
  background: #059669;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ej-modern .ej-companies-tabs .nav-link {
  color: var(--ej-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.ej-modern .ej-companies-tabs .nav-link:hover {
  color: var(--ej-text);
}

.ej-modern .ej-companies-tabs .nav-link.active {
  color: var(--ej-text);
  border-bottom-color: var(--ej-text);
  background: transparent;
}

.ej-modern .ej-companies-search-wrap .input-group {
  min-width: 220px;
}

.ej-modern .ej-companies-search .form-control {
  border-start-start-radius: 0;
}

.ej-modern .ej-companies-search .input-group-text {
  border-end-end-radius: 0;
}

.ej-modern .ej-company-card .ej-company-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ej-text);
  line-height: 1.3;
}

.ej-modern .ej-company-card .ej-company-card-industry {
  font-size: 0.875rem;
  line-height: 1.3;
}

/* ---- Contact page: exact CSS from kedamijobs.net/contact-us (Playwright-extracted) + clean-up ---- */
.ej-modern .contact-container {
  padding-top: 0;
}

.ej-modern .contact-banner-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(78, 198, 126), rgb(51, 109, 212) 99.99%);
  position: relative;
  z-index: 0;
}

.ej-modern .contact-banner-container .contact-banner-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.ej-modern .contact-banner-wrapper {
  width: 100%;
  height: 280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.ej-modern .contact-banner-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  row-gap: 20px;
}

.ej-modern .contact-banner-content h1 {
  color: rgb(255, 255, 255);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 120.023%;
}

.ej-modern .contact-banner-content h6 {
  color: rgb(255, 255, 255);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.ej-modern .contact-banner-image-container {
  width: 50%;
  position: relative;
  height: 280px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ej-modern .contact-banner-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  object-position: bottom center;
}

.ej-modern .contact-green {
  position: absolute;
  bottom: 0px;
  margin-left: 15px;
  z-index: -1;
}

.ej-modern .contact-blue,
.ej-modern .contact-purple {
  position: absolute;
  right: 0px;
  bottom: 0px;
}

.ej-modern .contact-blue {
  z-index: 1;
}

.ej-modern .contact-purple {
  z-index: 0;
}

/* Contact banner: hide person + vectors on phone; single-column layout */
@media (max-width: 767.98px) {
  .ej-modern .contact-banner-container {
    height: auto;
    min-height: 200px;
  }

  .ej-modern .contact-banner-container .contact-banner-inner {
    height: auto;
    min-height: 200px;
  }

  .ej-modern .contact-banner-wrapper {
    width: 100%;
    height: auto;
    min-height: 200px;
    padding: 1.5rem 1rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ej-modern .contact-banner-content {
    width: 100%;
    align-items: center;
  }

  .ej-modern .contact-banner-image-container {
    display: none;
  }

  .ej-modern .contact-banner-wrapper .contact-blue,
  .ej-modern .contact-banner-wrapper .contact-purple {
    display: none;
  }
}

.ej-modern .contact-wrapper {
  padding: 2.5rem 0 3rem;
}

.ej-modern .contact-form-container .contact-input {
  border-radius: 8px;
}

.ej-modern .contact-info-card .card-body {
  padding: 1.25rem;
}

.ej-modern .ej-cta-block {
  background: var(--ej-page-bg);
  padding: var(--ej-spacing-xl) var(--ej-spacing-lg);
  border-radius: var(--ej-radius-md);
}

/* ---- Jobs page (match Kedami Jobs.net/jobs — .headerpage from Playwright) ---- */
/* .headerpage: background rgb(243,244,248) + optional SVG (local: assets/dist/img/jobheader.svg) */
.ej-modern .headerpage,
.ej-hero-jobs {
  background-color: rgb(243, 244, 248);
  background-image: url("../img/jobheader.svg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: var(--ej-text);
  text-align: center;
  margin-bottom: 0;
  border-bottom: none;
  box-shadow: none;
}

.ej-hero-jobs-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.ej-hero-jobs-sub {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.ej-hero-jobs-form {
  max-width: 36rem;
  margin: 0 auto;
}

.ej-hero-jobs-form .input-group {
  border-radius: var(--ej-radius-pill);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  align-items: stretch;
  min-height: 48px;
}

.ej-hero-jobs-form .input-group-text {
  border: none;
  align-self: stretch;
  border-radius: var(--ej-radius-pill) 0 0 var(--ej-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  background: #fff;
}

.ej-hero-jobs-form .input-group .form-control {
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0;
  min-height: 48px;
  align-self: stretch;
}

.ej-hero-jobs-form .form-control:focus {
  box-shadow: none;
  outline: none;
}

.ej-hero-nav-buttons {
  margin-top: 0.5rem;
}

.ej-hero-jobs .ej-hero-nav-btn,
.ej-modern .headerpage .ej-hero-nav-btn {
  padding: 0.45rem 1.1rem;
  font-weight: 500;
  border-radius: var(--ej-radius-pill);
  border-width: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ej-hero-jobs .ej-hero-nav-btn.btn-outline-primary,
.ej-modern .headerpage .ej-hero-nav-btn.btn-outline-primary {
  border-color: var(--ej-blue);
  color: var(--ej-blue);
  background: #fff;
}

.ej-hero-jobs .ej-hero-nav-btn.btn-outline-primary:hover,
.ej-modern .headerpage .ej-hero-nav-btn.btn-outline-primary:hover {
  background: var(--ej-blue);
  color: #fff;
  border-color: var(--ej-blue);
}

.ej-btn-jobs-search {
  background: var(--ej-blue) !important;
  color: #fff !important;
  border: none;
  border-radius: 0 var(--ej-radius-pill) var(--ej-radius-pill) 0;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.ej-btn-jobs-search:hover {
  background: var(--ej-blue-dark) !important;
  color: #fff !important;
}

.ej-jobs-filters {
  margin-top: 1rem;
}

.ej-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.85rem;
  background: #fff;
  color: var(--ej-text);
  border: 1px solid var(--ej-border);
  border-radius: var(--ej-radius-sm);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-family: inherit;
}

button.ej-filter-pill {
  appearance: none;
  -webkit-appearance: none;
}

.ej-filter-pill:hover {
  background: rgba(54, 119, 203, 0.06);
  border-color: var(--ej-blue);
  color: var(--ej-blue);
}

.ej-filter-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
}

.ej-filter-clear {
  color: var(--ej-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.ej-filter-clear:hover {
  color: var(--ej-blue);
}

/* Filter modal (kedamijobs-style) */
.ej-modern .ej-filter-modal .modal-content {
  border-radius: var(--ej-radius-lg);
  box-shadow: var(--ej-shadow-card-extracted);
  border: none;
}

.ej-modern .ej-filter-modal .modal-header .modal-title {
  color: var(--ej-text);
  font-weight: 600;
}

.ej-modern .ej-filter-modal .btn-close {
  opacity: 0.7;
}

.ej-jobs-body {
  background: rgb(243, 244, 248);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: none;
}

.ej-jobs-tabs-row {
  gap: 0.5rem;
}

.ej-jobs-tabs .nav-link {
  color: var(--ej-text);
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 0.75rem;
  margin-bottom: -1px;
}

.ej-jobs-tabs .nav-link:hover {
  color: var(--ej-primary);
}

.ej-jobs-tabs .nav-link.active {
  color: var(--ej-primary);
  border-bottom-color: var(--ej-primary);
  background: transparent;
}

.ej-jobs-sort {
  font-size: 0.875rem;
}

.ej-sidebar-card {
  box-shadow: var(--ej-shadow-card-extracted);
  border-radius: var(--ej-job-card-radius-extracted);
  border: none;
}

.ej-sidebar-card .ej-card-title {
  font-size: 1rem;
}

.ej-link-teal {
  color: var(--ej-primary);
  text-decoration: none;
}

.ej-link-teal:hover {
  color: var(--ej-primary-dark);
  text-decoration: underline;
}

/* Job cards: use extracted shadow, radius, padding from kedamijobs.net/jobs */
.ej-job-card {
  box-shadow: var(--ej-shadow-card-extracted);
  border-radius: var(--ej-job-card-radius-extracted);
  border: none;
}

.ej-job-card .card-body {
  padding: var(--ej-job-card-padding-extracted);
}

.ej-job-card-footer {
  margin-top: 0;
}

.ej-job-logo {
  display: block;
  margin-left: auto;
}

/* ---- Nav — white background, black text, bottom shadow, more height ---- */
.ej-nav-wrapper {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ej-nav-simple.navbar {
  background-color: #fff !important;
  min-height: 56px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.ej-nav-simple.navbar .container-xl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Only show collapse as flex when expanded at xl+ (desktop). Below 1200px Bootstrap shows toggler and collapse. */
@media (min-width: 1200px) {
  .ej-nav-simple .navbar-collapse.ej-nav-center {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.ej-nav-simple .ej-nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ej-nav-simple .ej-nav-auth {
  margin-left: 3rem;
  gap: 0.6rem;
  align-items: center;
}

.ej-nav-simple .ej-nav-auth .nav-item {
  display: flex;
  align-items: center;
}

.ej-nav-simple .ej-nav-auth .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  line-height: 1.25;
}

.ej-nav-simple .navbar-brand,
.ej-nav-simple .navbar-brand:hover {
  color: var(--ej-text) !important;
  margin-right: 3rem;
  flex-shrink: 0;
  min-height: 44px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.ej-nav-simple .navbar-brand-image {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.ej-nav-simple .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--ej-text);
}

.ej-nav-simple .navbar-toggler-icon {
  filter: invert(1);
}

.ej-nav-simple.navbar-light .navbar-toggler-icon {
  filter: none;
  opacity: 0.8;
}

.ej-modern .navbar .nav-link {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: var(--ej-text) !important;
}

.ej-modern .navbar .nav-link:hover {
  color: var(--ej-blue) !important;
  background: transparent !important;
}

.ej-modern .navbar .nav-link:focus-visible {
  outline: none;
  box-shadow: var(--ej-focus-ring-blue);
  border-radius: var(--ej-radius-sm);
}

.ej-modern .navbar .nav-link.active {
  color: var(--ej-primary) !important;
  background: transparent !important;
  border-radius: 0;
  border-bottom: 2px solid var(--ej-primary);
  margin-bottom: -2px;
  padding-bottom: calc(0.5rem - 2px);
}

/* Simple nav — text only, Sign Up = blue button with radius */
.ej-nav-simple .navbar-nav .nav-link {
  font-size: 0.9375rem;
  padding: 0.5rem 0.65rem;
}

.ej-nav-simple .ej-nav-links .nav-link {
  color: var(--ej-text) !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding-bottom: calc(0.5rem - 2px);
  white-space: nowrap;
}

.ej-nav-simple .ej-nav-links .nav-link:hover {
  color: var(--ej-blue) !important;
  background: transparent !important;
  border-bottom-color: transparent;
}

.ej-nav-simple .ej-nav-links .nav-link.active {
  color: var(--ej-primary) !important;
  background: transparent !important;
  border-bottom-color: var(--ej-primary);
}

.ej-nav-simple .ej-nav-auth .nav-link {
  border-radius: 9999px;
}

.ej-nav-simple .ej-nav-signup,
.ej-modern .ej-nav-simple .ej-nav-auth .nav-link.ej-nav-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1.35rem !important;
  margin-left: 0.35rem;
  background: var(--ej-blue) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(54, 119, 203, 0.2);
}

.ej-nav-simple .ej-nav-signup:hover,
.ej-modern .ej-nav-simple .ej-nav-auth .nav-link.ej-nav-signup:hover {
  background: var(--ej-blue-dark) !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(54, 119, 203, 0.25);
}

.ej-nav-simple .ej-nav-signup:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 119, 203, 0.35);
}

.ej-nav-simple .ej-nav-auth .nav-link:not(.ej-nav-signup) {
  border: 1px solid var(--ej-blue);
  padding: 0.5rem 1.1rem !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ej-nav-simple .ej-nav-auth .nav-link:not(.ej-nav-signup):hover {
  background: rgba(54, 119, 203, 0.08);
  color: var(--ej-blue) !important;
}

/* Tablet and mobile: collapsed menu (hamburger). Matches navbar-expand-xl breakpoint. */
@media (max-width: 1199.98px) {
  .ej-nav-simple .navbar-collapse.ej-nav-center {
    flex: none;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  .ej-nav-simple .ej-nav-links,
  .ej-nav-simple .ej-nav-auth {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ej-nav-simple .ej-nav-links {
    flex: none;
    justify-content: flex-start;
  }

  .ej-nav-simple .ej-nav-links .nav-link {
    width: fit-content;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0 !important;
  }

  .ej-nav-simple .ej-nav-links .nav-link.active {
    border-bottom: none !important;
    color: var(--ej-primary) !important;
  }

  .ej-nav-simple .ej-nav-auth {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .ej-nav-simple .ej-nav-auth .nav-item {
    flex: 1;
    min-width: 0;
  }

  /* Equal-width outlined buttons side by side */
  .ej-nav-simple .ej-nav-auth .nav-link,
  .ej-nav-simple .ej-nav-auth .nav-link:not(.ej-nav-signup),
  .ej-nav-simple .ej-nav-auth .nav-link.ej-nav-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0.75rem !important;
    margin-left: 0 !important;
    min-height: 42px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 9999px !important;
    box-shadow: none !important;
    text-align: center;
  }

  .ej-nav-simple .ej-nav-auth .nav-link:not(.ej-nav-signup) {
    background: transparent !important;
    border: 1.5px solid var(--ej-blue) !important;
    color: var(--ej-blue) !important;
  }

  .ej-nav-simple .ej-nav-auth .nav-link.ej-nav-signup {
    background: var(--ej-blue) !important;
    border: 1.5px solid var(--ej-blue) !important;
    color: #fff !important;
    font-weight: 600;
  }

  .ej-nav-simple.navbar {
    min-height: 52px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

/* ---- Footer — Kedami Jobs blue (flush with content, no white gap) ---- */
.ej-modern main {
  margin-bottom: 0;
}

.ej-modern .ej-footer-top {
  margin-top: 0;
  margin-bottom: 0;
  border-top: none;
  background-color: var(--ej-primary);
  color: #fff;
  padding: var(--ej-spacing-xl) 0;
}

.ej-modern .ej-footer-top h5,
.ej-modern .ej-footer-top .h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--ej-spacing-md);
}

.ej-modern .ej-footer-top a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
}

.ej-modern .ej-footer-top a:hover {
  color: #fff;
  opacity: 0.95;
}

.ej-modern .ej-footer-bottom {
  background-color: var(--ej-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--ej-spacing-md) 0;
  font-size: 0.875rem;
}

/* Footer column headings */
.ej-modern .ej-footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.875rem;
}

/* Footer link lists */
.ej-modern .ej-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ej-modern .ej-footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.ej-modern .ej-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.ej-modern .ej-footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Email links — underline on hover to signal clickability */
.ej-modern .ej-footer-links .ej-footer-email {
  color: rgba(255, 255, 255, 0.8);
}

.ej-modern .ej-footer-links .ej-footer-email:hover {
  color: #fff;
  text-decoration: underline;
}

/* Telegram / social icon button */
.ej-modern .ej-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
  text-decoration: none;
}

.ej-modern .ej-footer-social:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---- Auth (signin/signup) — match legacy layout ---- */
.ej-modern .border-md {
  border-width: 2px;
}

.ej-modern .page-center .container-tight {
  max-width: 28rem;
}

/* ---- Forms & inputs ---- */
.ej-modern .form-control:focus,
.ej-modern .form-select:focus {
  border-color: var(--ej-primary);
  box-shadow: var(--ej-focus-ring);
  outline: none;
}

.ej-modern .input-group .btn:focus-visible {
  outline: none;
  box-shadow: var(--ej-focus-ring);
}

/* ---- Utilities & legacy overrides ---- */
.ej-modern .ej-text-primary {
  color: var(--ej-blue);
}

.ej-modern .ej-bg-hero {
  background: var(--ej-hero-bg);
}

.ej-modern .ej-bg-page {
  background: var(--ej-page-bg);
}

.ej-modern .find-job-title {
  color: var(--ej-text) !important;
}

.ej-modern .brand-text {
  color: var(--ej-blue) !important;
}

/* ---- Dashboard navbar — overrides layered on top of ej-nav-simple ---- */
/* Dash nav wrapper — same shadow/border as public nav */
.ej-dash-nav-wrapper {
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Nav links: left-aligned (ej-nav-simple centres them) */
header.ej-dash-nav .ej-nav-links {
  justify-content: flex-start;
  flex: none;
}

/* Active: green instead of public nav blue */
header.ej-dash-nav .ej-nav-links .nav-link.active {
  color: var(--ej-primary) !important;
  border-bottom-color: var(--ej-primary) !important;
}

/* Kill Tabler ::after active indicator (safety net) */
header.ej-dash-nav .nav-item.active::after,
header.ej-dash-nav .nav-item.active:after {
  display: none !important;
}

/* Home back link — muted plain text, no underline accent */
header.ej-dash-nav .ej-dash-back-link {
  color: var(--ej-text-muted) !important;
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

header.ej-dash-nav .ej-dash-back-link:hover {
  color: var(--ej-text) !important;
  border-bottom-color: transparent !important;
}

/* Vertical divider + account section on desktop */
header.ej-dash-nav .ej-dash-auth {
  margin-left: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Avatar circle */
.ej-dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ej-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

header.ej-dash-nav .ej-dash-user-name {
  font-size: 0.875rem;
  color: var(--ej-text);
  line-height: 1.25;
}

header.ej-dash-nav .ej-dash-user-email {
  font-size: 0.75rem;
  color: var(--ej-text-muted);
  line-height: 1.2;
}

/* Dropdown */
header.ej-dash-nav .dropdown-menu {
  border-radius: var(--ej-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 190px;
}

header.ej-dash-nav .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  color: var(--ej-text);
}

header.ej-dash-nav .dropdown-item:hover {
  background: rgba(54, 119, 203, 0.07);
  color: var(--ej-blue);
}

header.ej-dash-nav .dropdown-item.text-danger {
  color: #dc3545 !important;
}

header.ej-dash-nav .dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.06);
}

/* Mobile — same breakpoint as ej-nav-simple (navbar-expand-xl = 1199.98px) */
@media (max-width: 1199.98px) {

  /* Remove vertical divider on mobile */
  header.ej-dash-nav .ej-dash-auth {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-top: 0.25rem;
    width: 100%;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  header.ej-dash-nav .ej-dash-user-email {
    display: block !important;
  }

  /* Mobile active: text color only, no pill/background */
  header.ej-dash-nav .ej-nav-links .nav-link.active {
    border-bottom: none !important;
    background: none !important;
    border-radius: 0 !important;
    color: var(--ej-primary) !important;
  }

  /* Remove hover/active background on all nav links in mobile */
  header.ej-dash-nav .ej-nav-links .nav-link:hover,
  header.ej-dash-nav .ej-nav-links .nav-link:active,
  header.ej-dash-nav .ej-nav-links .nav-link:focus {
    background: none !important;
    box-shadow: none !important;
  }

  /* Mobile account block — no card background */
  header.ej-dash-nav .ej-dash-mobile-user {
    width: 100%;
    background: none;
    border-radius: 0;
    padding: 0.5rem 0 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  header.ej-dash-nav .ej-dash-mobile-action {
    padding: 0.45rem 0 !important;
    font-size: 0.9rem;
    border-bottom: none !important;
    background: none !important;
    box-shadow: none !important;
    width: 100%;
    color: var(--ej-text) !important;
  }

  header.ej-dash-nav .ej-dash-mobile-action:hover,
  header.ej-dash-nav .ej-dash-mobile-action:active,
  header.ej-dash-nav .ej-dash-mobile-action:focus {
    background: none !important;
    box-shadow: none !important;
  }

  header.ej-dash-nav .ej-dash-mobile-action.text-danger {
    color: #dc3545 !important;
  }

  header.ej-dash-nav .ej-dash-mobile-action.text-danger:hover {
    color: #b02a37 !important;
  }
}

/* Chevron on desktop dropdown */
.ej-dash-chevron {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-left: 3px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.show>.nav-link .ej-dash-chevron {
  transform: rotate(180deg);
}

/* Trigger hover pill */
header.ej-dash-nav .ej-dash-trigger {
  border-radius: var(--ej-radius-md);
  transition: background 0.15s;
}

header.ej-dash-nav .ej-dash-trigger:hover,
header.ej-dash-nav .ej-dash-trigger:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown user header */
.ej-dash-dropdown-user {
  line-height: 1.3;
}

/* Dashboard stat icon */
.ej-dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ej-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Dashboard page layout ---- */
.ej-dash-page {
  background: #f5f6f8;
  min-height: calc(100vh - 64px);
  padding-bottom: 3rem;
}

/* ---- Page header ---- */
.ej-page-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 1.5rem 0 1.25rem;
  margin-bottom: 2rem;
}

.ej-page-header .ej-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ej-text);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.ej-page-header .ej-page-desc {
  font-size: 0.9rem;
  color: var(--ej-text-muted);
  margin-bottom: 0;
}

/* ---- Empty state ---- */
.ej-empty-state {
  padding: 2.75rem 2rem;
  text-align: center;
}

.ej-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(75, 188, 136, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--ej-primary);
}

.ej-empty-state h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ej-text);
  margin-bottom: 0.65rem;
}

.ej-empty-state p {
  color: var(--ej-text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* ---- Profile completion banner ---- */
.ej-profile-progress-banner {
  background: linear-gradient(135deg, rgba(75, 188, 136, 0.08) 0%, rgba(75, 188, 136, 0.03) 100%);
  border: 1px solid rgba(75, 188, 136, 0.2);
  border-radius: var(--ej-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.ej-profile-progress-banner .ej-progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ej-text);
  margin-bottom: 0.4rem;
}

.ej-profile-progress-banner .progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(75, 188, 136, 0.15);
}

.ej-profile-progress-banner .progress-bar {
  background: var(--ej-primary);
  border-radius: 3px;
}

.ej-profile-progress-banner .ej-progress-hint {
  font-size: 0.78rem;
  color: var(--ej-text-muted);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* ---- Quick actions row ---- */
.ej-quick-action-card {
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--ej-radius-lg) !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none !important;
  display: block;
}

.ej-quick-action-card:hover {
  border-color: var(--ej-primary) !important;
  box-shadow: 0 4px 16px rgba(75, 188, 136, 0.13) !important;
  transform: translateY(-2px);
}

.ej-quick-action-card .ej-qa-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ej-radius-md);
  background: rgba(75, 188, 136, 0.1);
  color: var(--ej-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 0.6rem;
}

.ej-quick-action-card .ej-qa-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ej-text);
  display: block;
  margin-bottom: 0.1rem;
}

.ej-quick-action-card .ej-qa-sub {
  font-size: 0.78rem;
  color: var(--ej-text-muted);
}

/* ---- Email verification card ---- */
.ej-verify-card {
  background: #FFF8ED;
  border-radius: var(--ej-radius-lg);
  border-left: 4px solid #f59e0b;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.08);
}

/* Step indicator */
.ej-verify-steps {
  display: flex;
  align-items: center;
}

.ej-verify-step-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.4;
}

.ej-verify-step-item.active {
  opacity: 1;
}

.ej-verify-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  background: #fff;
  flex-shrink: 0;
}

.ej-verify-step-item.active .ej-verify-step-dot {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.ej-verify-step-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

.ej-verify-step-line {
  min-width: 28px;
  max-width: 48px;
  height: 2px;
  background: #f59e0b;
  opacity: 0.3;
  margin: 0 0.5rem;
}

/* Animated envelope icon */
.ej-verify-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ej-verify-pulse 2.4s ease-in-out infinite;
}

.ej-verify-icon {
  font-size: 1.4rem;
  color: #d97706;
}

@keyframes ej-verify-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

/* Content */
.ej-verify-title {
  font-size: 1rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 0.35rem;
}

.ej-verify-body {
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.ej-verify-email {
  color: #78350f;
}

.ej-verify-hint {
  font-size: 0.8rem;
  color: #b45309;
  margin-bottom: 1rem;
}

/* Button */
.ej-verify-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--ej-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: background 0.15s, transform 0.1s;
}

.ej-verify-btn:hover {
  background: #d97706;
  color: #fff;
  transform: translateY(-1px);
}

.ej-verify-btn:active {
  transform: translateY(0);
}

.ej-verify-btn:disabled {
  opacity: 0.7;
  transform: none;
}

/* Countdown hint */
.ej-verify-countdown {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #b45309;
  font-weight: 500;
}

/* ---- Toast / snackbar ---- */
.ej-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 9999;
  min-width: 240px;
  max-width: 420px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--ej-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  text-align: center;
}

.ej-toast.ej-toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ej-toast.ej-toast-success {
  background: #065f46;
  color: #ecfdf5;
}

.ej-toast.ej-toast-error {
  background: #7f1d1d;
  color: #fef2f2;
}

.ej-toast.ej-toast-info {
  background: #1e3a5f;
  color: #eff6ff;
}

/* ---- Profile header (my-profile page) ---- */
.ej-profile-header-card {
  border-radius: var(--ej-radius-lg) !important;
}

.ej-profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ej-primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* ---- CV upload zone ---- */
.ej-upload-zone {
  border: 2px dashed rgba(75, 188, 136, 0.4);
  border-radius: var(--ej-radius-lg);
  background: rgba(75, 188, 136, 0.03);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.ej-upload-zone:hover,
.ej-upload-zone.drag-over {
  border-color: var(--ej-primary);
  background: rgba(75, 188, 136, 0.07);
}

.ej-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.ej-upload-zone .ej-upload-icon {
  font-size: 2rem;
  color: var(--ej-primary);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.ej-upload-zone .ej-upload-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ej-text);
  margin-bottom: 0.25rem;
}

.ej-upload-zone .ej-upload-hint {
  font-size: 0.8rem;
  color: var(--ej-text-muted);
}

.ej-upload-zone .ej-upload-filename {
  font-size: 0.85rem;
  color: var(--ej-primary);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ---- CV card ---- */
.ej-cv-card {
  border-radius: var(--ej-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ej-cv-card:hover {
  border-color: rgba(75, 188, 136, 0.35) !important;
  box-shadow: 0 2px 10px rgba(75, 188, 136, 0.1) !important;
}

/* ---- Sticky save bar ---- */
.ej-sticky-save-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  padding: 0.9rem 1.5rem;
  z-index: 100;
  border-radius: 0 0 var(--ej-radius-lg) var(--ej-radius-lg);
}

/* ---- Section label ---- */
.ej-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ej-text-muted);
  margin-bottom: 1rem;
}

/* ====================================================
   Auth pages — mobile UX improvements
   Strictly scoped to @media (max-width: 768px).
   Desktop layout is untouched.
   ==================================================== */
@media (max-width: 768px) {

  /* Fix 1 — Tighten vertical whitespace above content */
  .ej-auth-signin>.row,
  .ej-auth-signup>.row,
  .ej-auth-forgot>.row {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
    margin-top: 0 !important;
  }

  /* Fix 2 — Reduce field gap on signup form to ~12 px */
  .ej-auth-signup form .mb-4 {
    margin-bottom: 0.75rem !important;
  }

  /* Fix 3 — Center headings and subtitles in the left column */
  .ej-auth-signin .col-md-5,
  .ej-auth-signup .col-md-5,
  .ej-auth-forgot .col-md-5 {
    text-align: center;
  }

  /* Fix 5 — Vertically center forgot-password content within viewport */
  .ej-auth-forgot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 68px);
  }

  /* Fix 6 — Match Google button border-radius to pill-shaped primary buttons */
  .ej-auth-signin .btn-outline-secondary,
  .ej-auth-signup .btn-outline-secondary {
    border-radius: var(--ej-radius-pill) !important;
  }

  /* Fix 7 — Center "← Back to sign in" link on forgot-password page */
  .ej-back-signin {
    display: block;
    text-align: center;
  }

  /* Fix 8 — Visual divider between footer COMPANY / LEGAL columns */
  .ej-modern .ej-footer-top .col-6+.col-6 {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem !important;
  }

  .ej-modern .ej-card,
  .ej-modern .card.ej-card {
    margin-bottom: var(--ej-spacing-md) !important;
  }

  .ej-modern .ej-card .card-body {
    padding: 12px !important;
  }
}