/* ═══════════════════════════════════════════════════════════════
   FNBMASTER Jobs — Brand stylesheet
   Colors: blue #0066F5, deep dark #090218, white #FFFFFF
   Font: Poppins
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue: #0066F5;
  --blue-dark: #0047B3;
  --blue-50: #EDF3FF;
  --blue-100: #DBE7FF;
  --dark: #090218;
  --ink-900: #090218;
  --ink-800: #1A1030;
  --ink-700: #2A2040;
  --ink-600: #4A4060;
  --ink-500: #6A6080;
  --ink-400: #8A8098;
  --ink-300: #B0A8BC;
  --ink-200: #D8D0E0;
  --ink-100: #EBE5F0;
  --ink-50: #F5F0F8;
  --white: #FFFFFF;
  --gold: #F4B300;
  --green: #22C55E;
  --red: #EF4444;
  --border: #E8ECEA;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --shadow-sm: 0 1px 3px rgba(9,2,24,0.06);
  --shadow: 0 4px 16px rgba(9,2,24,0.08);
  --shadow-lg: 0 12px 32px rgba(9,2,24,0.12);
  --transition: 0.2s cubic-bezier(0.32,0.72,0,1);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  padding-bottom: 76px; /* space for bottom nav */
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 821px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.jb-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.jb-header__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 24px;
}
.jb-header__logo { display: flex; align-items: center; gap: 8px; color: var(--ink-900); }
.jb-header__logo img { height: 32px; width: auto; }
.jb-header__badge {
  background: var(--blue); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.jb-header__nav { display: none; gap: 28px; }
.jb-header__nav a { color: var(--ink-600); font-size: 14px; font-weight: 500; }
.jb-header__nav a:hover { color: var(--blue); }
.jb-header__actions { display: flex; gap: 8px; align-items: center; }
@media (min-width: 821px) {
  .jb-header__nav { display: flex; }
}

/* ── Buttons ── */
.jb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.jb-btn--primary { background: var(--blue); color: white; }
.jb-btn--primary:hover { background: var(--blue-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,102,245,0.3); }
.jb-btn--secondary { background: var(--ink-900); color: white; }
.jb-btn--secondary:hover { background: var(--ink-800); color: white; }
.jb-btn--ghost { background: transparent; color: var(--ink-700); border: 1.5px solid var(--border); }
.jb-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.jb-btn--sm { padding: 8px 16px; font-size: 13px; }
.jb-btn--lg { padding: 15px 32px; font-size: 16px; }

/* ── Main layout ── */
.jb-main { min-height: calc(100vh - 200px); }

/* ── Cards ── */
.jb-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
}
.jb-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Mobile bottom nav ── */
.jb-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 4px max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(9,2,24,0.12);
}
@media (max-width: 820px) { .jb-nav { display: flex !important; } }

.jb-nav__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; color: var(--ink-500); text-decoration: none;
  border-radius: 10px; position: relative;
  transition: color var(--transition);
}
.jb-nav__item svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.jb-nav__item span { font-size: 10.5px; font-weight: 600; }
.jb-nav__item.is-active { color: var(--blue); }
.jb-nav__item.is-active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 20px; height: 3px;
  background: var(--blue); border-radius: 0 0 3px 3px;
}

/* ── Footer ── */
.jb-footer {
  background: var(--dark); color: var(--ink-300);
  padding: 56px 20px 24px; margin-top: 80px;
}
.jb-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 721px) {
  .jb-footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}
.jb-footer__logo { display: inline-block; margin-bottom: 12px; }
.jb-footer__logo img { height: 28px; filter: brightness(0) invert(1); }
.jb-footer__col p { font-size: 13px; color: var(--ink-400); line-height: 1.6; }
.jb-footer__col h4 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.jb-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.jb-footer__col a { color: var(--ink-400); font-size: 14px; }
.jb-footer__col a:hover { color: var(--white); }
.jb-footer__bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--ink-500);
}

/* ── Utilities ── */
.jb-placeholder { padding: 80px 20px; text-align: center; }
.jb-placeholder h1 { margin-bottom: 16px; color: var(--ink-900); }
.jb-placeholder p { color: var(--ink-500); font-size: 16px; max-width: 560px; margin: 0 auto 32px; }
.jb-placeholder .jb-btn { margin: 0 6px; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.jb-hero {
  padding: clamp(40px, 8vw, 80px) 0 clamp(60px, 10vw, 100px);
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF3FF 100%);
  position: relative;
  overflow: hidden;
}
.jb-hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,102,245,0.1), transparent 65%);
  pointer-events: none;
}
.jb-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.jb-hero__eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(0,102,245,0.08); color: var(--blue);
  border-radius: 100px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.jb-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: var(--ink-900);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.jb-hero__lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.jb-search {
  display: flex; flex-direction: column; gap: 10px;
  background: white; padding: 10px;
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(9,2,24,0.12);
  max-width: 820px; margin: 0 auto 28px;
}
@media (min-width: 721px) {
  .jb-search { flex-direction: row; align-items: center; }
}
.jb-search__field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; flex: 1; min-width: 0;
  border-radius: 100px;
}
.jb-search__field svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: var(--ink-400); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.jb-search__field input {
  border: 0; outline: 0; width: 100%;
  font-family: var(--font); font-size: 15px;
  color: var(--ink-900); background: transparent;
}
.jb-search__field input::placeholder { color: var(--ink-400); }
.jb-search__field:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
@media (min-width: 721px) {
  .jb-search__field:not(:last-child) {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}
.jb-search .jb-btn { flex-shrink: 0; }
.jb-hero__stats {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; font-size: 14px; color: var(--ink-500);
}
.jb-hero__stats strong { color: var(--ink-900); font-weight: 700; }
.jb-hero__divider { color: var(--ink-300); }

/* ── Sections ── */
.jb-section { padding: clamp(48px, 8vw, 80px) 0; }
.jb-section--alt { background: #F8FAFC; }
.jb-section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.jb-section__head h2 { margin-bottom: 12px; color: var(--ink-900); }
.jb-section__head p { color: var(--ink-500); font-size: 16px; }

/* ── Categories grid ── */
.jb-categories {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 641px) { .jb-categories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .jb-categories { grid-template-columns: repeat(4, 1fr); } }
.jb-category {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink-900);
  transition: all var(--transition);
}
.jb-category:hover {
  border-color: var(--blue); color: var(--ink-900);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.jb-category__icon {
  width: 48px; height: 48px;
  background: var(--blue-50); color: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.jb-category__icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.jb-category h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.jb-category__count { font-size: 13px; color: var(--ink-500); }

/* ── Job cards grid ── */
.jb-jobs {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 721px) { .jb-jobs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1101px) { .jb-jobs { grid-template-columns: repeat(3, 1fr); } }

.jb-job {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink-900);
  transition: all var(--transition);
}
.jb-job:hover {
  border-color: var(--blue); color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.jb-job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.jb-job__company { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.jb-job__company img,
.jb-job__company-fallback {
  width: 44px; height: 44px; border-radius: 10px;
  flex-shrink: 0;
}
.jb-job__company img { object-fit: cover; }
.jb-job__company-fallback {
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.jb-job__company > div { min-width: 0; }
.jb-job__company-name {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jb-job__category { display: block; font-size: 12px; color: var(--ink-400); }
.jb-job__badge {
  background: var(--gold); color: var(--ink-900);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em;
  flex-shrink: 0;
}
.jb-job__title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink-900); }
.jb-job__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-500); }
.jb-job__meta-item { display: inline-flex; align-items: center; gap: 5px; }
.jb-job__meta-item svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.jb-job__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.jb-job__salary { font-weight: 700; color: var(--ink-900); font-size: 14px; }
.jb-job__posted { font-size: 12px; color: var(--ink-400); }

/* ── Steps ── */
.jb-steps {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1000px; margin: 0 auto;
}
@media (min-width: 721px) { .jb-steps { grid-template-columns: repeat(3, 1fr); } }
.jb-step { text-align: center; padding: 24px; }
.jb-step__num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--blue); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.jb-step h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink-900); }
.jb-step p { font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ── CTA ── */
.jb-cta { background: var(--dark); color: white; }
.jb-cta__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.jb-cta h2 { color: white; margin-bottom: 16px; }
.jb-cta p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH / JOB DETAIL / CATEGORY PAGES
   ═══════════════════════════════════════════════════════════════ */

/* ── Search header (compact) ── */
.jb-search-header { padding: 32px 0; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.jb-search--compact { box-shadow: 0 4px 16px rgba(9,2,24,0.08); margin: 0; max-width: 100%; }
.jb-search--compact .jb-search__field input { font-size: 15px; }

/* ── Search layout ── */
.jb-search-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 901px) {
  .jb-search-layout { grid-template-columns: 260px 1fr; }
}
.jb-filters { position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) {
  .jb-filters { position: static; }
}
.jb-filter-group { margin-bottom: 24px; }
.jb-filter-group h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-500); margin-bottom: 10px;
}
.jb-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: 14px;
  background: white; cursor: pointer;
}
.jb-select:focus { outline: 0; border-color: var(--blue); }

.jb-results__head {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.jb-results__head h2 { font-size: 20px; }
.jb-results__meta { color: var(--ink-500); font-size: 14px; }
.jb-empty {
  text-align: center; padding: 80px 20px;
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.jb-empty h3 { font-size: 20px; margin-bottom: 12px; }
.jb-empty p { color: var(--ink-500); }
.jb-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 40px; flex-wrap: wrap;
}
.jb-pagination span { color: var(--ink-500); font-size: 14px; }

/* ── Job detail page ── */
.jb-back-link {
  display: inline-block; font-size: 14px; color: var(--ink-500);
  margin-bottom: 24px;
}
.jb-back-link:hover { color: var(--blue); }

.jb-job-hero { padding: 40px 0; border-bottom: 1px solid var(--border); background: #F8FAFC; }
.jb-job-hero__inner {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 901px) {
  .jb-job-hero__inner { grid-template-columns: 1fr 300px; }
}
.jb-job-hero__company {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 20px;
}
.jb-job-hero__company img,
.jb-job-hero__company-fallback {
  width: 64px; height: 64px; border-radius: 14px;
  flex-shrink: 0;
}
.jb-job-hero__company img { object-fit: cover; }
.jb-job-hero__company-fallback {
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.jb-job-hero__company-name { font-size: 16px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.jb-job-hero__category { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.jb-job-hero__title {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
  line-height: 1.2;
}
.jb-job-hero__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--ink-600);
  margin-bottom: 20px;
}
.jb-job-hero__salary {
  font-size: 22px; font-weight: 800;
  color: var(--ink-900);
  padding: 12px 20px;
  background: white; border-radius: 12px;
  display: inline-block;
  border: 1px solid var(--border);
}
.jb-job-hero__actions { display: flex; flex-direction: column; }
.jb-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--blue); color: white;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}

.jb-job-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 901px) {
  .jb-job-layout { grid-template-columns: 1fr 340px; }
}
.jb-job-section { margin-bottom: 40px; }
.jb-job-section h2 {
  font-size: 20px; margin-bottom: 16px; color: var(--ink-900);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.jb-job-description { font-size: 15px; line-height: 1.75; color: var(--ink-700); }
.jb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--blue-50); color: var(--blue);
  border-radius: 100px; font-size: 13px; font-weight: 600;
}
.jb-chip--link { text-decoration: none; transition: all var(--transition); }
.jb-chip--link:hover { background: var(--blue); color: white; }
.jb-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jb-list li {
  padding-left: 24px; position: relative;
  font-size: 15px; color: var(--ink-700); line-height: 1.5;
}
.jb-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.jb-job-sidebar { position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) { .jb-job-sidebar { position: static; } }

/* ── Category page ── */
.jb-breadcrumb {
  font-size: 13px; color: var(--ink-500);
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}
.jb-breadcrumb a { color: var(--ink-600); }
.jb-breadcrumb a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   SEARCH GRID OVERFLOW FIX (v2)
   Problem: grid children were pushing parent wider than viewport
   Fix: min-width:0 + auto-fill responsive columns
   ═══════════════════════════════════════════════════════════════ */

/* Prevent body horizontal scroll globally */
html, body { overflow-x: hidden; max-width: 100%; }

/* Search layout — ensure children don't overflow */
.jb-search-layout { min-width: 0; }
.jb-results { min-width: 0; overflow-x: hidden; }

/* Job grid — truly responsive, no fixed column counts */
.jb-jobs {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
  min-width: 0 !important;
}

/* Job card — never exceed its grid cell */
.jb-job {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

/* Force long text to wrap instead of expanding */
.jb-job__title,
.jb-job__company-name,
.jb-job__meta,
.jb-job__meta-item {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* On mobile, single column */
@media (max-width: 640px) {
  .jb-jobs {
    grid-template-columns: 1fr !important;
  }
}

/* Filter sidebar on tablet */
@media (max-width: 900px) {
  .jb-search-layout { grid-template-columns: 1fr !important; }
}

/* Prevent filter form inputs from overflowing */
.jb-filters form { max-width: 100%; }
.jb-select { max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   AUTH FORMS + DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.jb-auth-page {
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF3FF 100%);
  display: flex; align-items: center; justify-content: center;
}
.jb-auth-card {
  max-width: 460px; width: 100%;
  background: white; border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 12px 40px rgba(9,2,24,0.08);
}
.jb-auth-card__head { text-align: center; margin-bottom: 32px; }
.jb-auth-card__head h1 {
  font-size: 26px; font-weight: 800; margin-bottom: 8px;
  color: var(--ink-900);
}
.jb-auth-card__head p { color: var(--ink-500); font-size: 14px; }

.jb-form { display: flex; flex-direction: column; gap: 18px; }
.jb-form-group { display: flex; flex-direction: column; }
.jb-form-group label {
  font-size: 13px; font-weight: 600; margin-bottom: 6px;
  color: var(--ink-700);
}
.jb-form-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font); font-size: 15px;
  color: var(--ink-900); background: white;
  transition: border-color 0.2s;
}
.jb-form-group input:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,245,0.1);
}
.jb-form-group input::placeholder { color: var(--ink-400); }

/* Input with +91 prefix */
.jb-input-with-prefix { display: flex; }
.jb-input-prefix {
  display: flex; align-items: center;
  padding: 12px 14px;
  background: var(--ink-50); border: 1.5px solid var(--border);
  border-right: 0; border-radius: 10px 0 0 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-600);
}
.jb-input-with-prefix input {
  flex: 1; border-radius: 0 10px 10px 0; min-width: 0;
}

/* Password input with toggle */
.jb-input-wrapper { position: relative; }
.jb-input-wrapper input { width: 100%; padding-right: 48px; }
.jb-toggle-pass {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  padding: 6px; color: var(--ink-500);
  border-radius: 6px;
}
.jb-toggle-pass:hover { color: var(--blue); background: var(--ink-50); }
.jb-toggle-pass svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.jb-auth-toggle {
  text-align: center; font-size: 14px;
  color: var(--ink-500); margin-top: 8px;
}
.jb-auth-toggle a { font-weight: 600; color: var(--blue); }

.jb-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
}
.jb-auth-divider::before, .jb-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.jb-auth-divider span {
  font-size: 11px; font-weight: 700; color: var(--ink-400);
  letter-spacing: 0.1em;
}

/* Alerts */
.jb-alert {
  padding: 14px 18px; border-radius: 10px;
  margin-bottom: 20px; font-size: 14px;
}
.jb-alert--error {
  background: #FEE2E2; color: #991B1B;
  border-left: 4px solid #DC2626;
}
.jb-alert--error ul { margin: 8px 0 0 20px; padding: 0; }
.jb-alert--success {
  background: #D1FAE5; color: #065F46;
  border-left: 4px solid #10B981;
}

/* Dashboard */
.jb-dashboard-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.jb-dashboard-head h1 { font-size: 28px; margin-bottom: 4px; }
.jb-dashboard-head p { color: var(--ink-500); font-size: 15px; }

.jb-dashboard-stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 40px;
}
.jb-stat-card {
  background: white; padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center;
}
.jb-stat-card__value { font-size: 32px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.jb-stat-card__label { font-size: 13px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.jb-dashboard-section { margin-bottom: 40px; }
.jb-dashboard-section h2 { font-size: 20px; margin-bottom: 16px; }

.jb-applications-list { display: flex; flex-direction: column; gap: 10px; }
.jb-app-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 20px;
  background: white; border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none;
  transition: all 0.2s;
}
.jb-app-row:hover { border-color: var(--blue); color: inherit; }
.jb-app-row__title { font-weight: 700; font-size: 15px; margin-bottom: 2px; color: var(--ink-900); }
.jb-app-row__meta { font-size: 13px; color: var(--ink-500); }

.jb-status {
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
}
.jb-status--applied { background: #DBEAFE; color: #1E40AF; }
.jb-status--under_review { background: #FEF3C7; color: #92400E; }
.jb-status--shortlisted { background: #D1FAE5; color: #065F46; }
.jb-status--interview { background: #E0E7FF; color: #3730A3; }
.jb-status--offered { background: #D1FAE5; color: #065F46; }
.jb-status--hired { background: #10B981; color: white; }
.jb-status--rejected { background: #FEE2E2; color: #991B1B; }
.jb-status--withdrawn { background: var(--ink-100); color: var(--ink-500); }

/* ═══════════════════════════════════════════════════════════════
   APPLY FORM
   ═══════════════════════════════════════════════════════════════ */

.jb-apply-head { margin-bottom: 32px; }
.jb-apply-head h1 { font-size: 28px; margin-bottom: 6px; }
.jb-apply-head p { color: var(--ink-500); font-size: 15px; }

.jb-apply-form { background: white; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
@media (max-width: 640px) { .jb-apply-form { padding: 20px; } }

.jb-resume-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.jb-resume-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all 0.2s;
}
.jb-resume-option:hover { border-color: var(--blue-100); background: var(--blue-50); }
.jb-resume-option:has(input:checked) {
  border-color: var(--blue); background: var(--blue-50);
}
.jb-resume-option input[type="radio"] { margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.jb-resume-option__body { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.jb-resume-option__body svg { flex-shrink: 0; stroke: var(--blue); fill: none; stroke-width: 2; }
.jb-resume-option__name { font-weight: 600; font-size: 14px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-resume-option__meta { font-size: 12px; color: var(--ink-500); }

.jb-upload-box {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 20px; text-align: center; transition: all 0.2s;
}
.jb-upload-box:hover { border-color: var(--blue); background: var(--blue-50); }
.jb-upload-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue);
}
.jb-upload-trigger svg { stroke: currentColor; fill: none; stroke-width: 2; }

.jb-apply-actions {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
.jb-apply-actions .jb-btn { flex: 1; min-width: 200px; }

.jb-applied-banner {
  text-align: center; padding: 20px;
  background: #F0FDF4; border: 1.5px solid #BBF7D0; border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   EMPLOYER DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.jb-employer-jobs { display: flex; flex-direction: column; gap: 10px; }
.jb-employer-job-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 24px;
  background: white; border: 1px solid var(--border); border-radius: 12px;
  transition: all 0.2s;
}
.jb-employer-job-row:hover { border-color: var(--blue); }
.jb-employer-job-row__main { flex: 1; min-width: 0; }
.jb-employer-job-row__title { font-weight: 700; font-size: 16px; color: var(--ink-900); margin-bottom: 6px; }
.jb-employer-job-row__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-500); align-items: center;
}
.jb-employer-job-row__actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
@media (max-width: 720px) {
  .jb-employer-job-row { flex-direction: column; align-items: stretch; }
  .jb-employer-job-row__actions { justify-content: flex-start; }
}

.jb-alert--warning {
  background: #FEF3C7; color: #92400E; border-left-color: #F59E0B;
}
.jb-alert--info {
  background: #DBEAFE; color: #1E40AF; border-left-color: #3B82F6;
}


/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE
   Search-first layout with job list and employer sidebar.
   ═══════════════════════════════════════════════════════════════════ */

.hp-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ═══ HERO ═══ */
.hp-hero {
  background: linear-gradient(180deg, #EEF4FF 0%, #F8FAFC 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hp-hero__h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 12px;
  max-width: 720px;
  margin-inline: auto;
}
.hp-hero__sub {
  font-size: clamp(14.5px, 1.4vw, 17px);
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Search bar */
.hp-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(9,2,24,0.10);
  padding: 6px;
  max-width: 900px;
  margin: 0 auto 24px;
  border: 1px solid rgba(0,102,245,0.08);
}
.hp-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  flex: 1;
  min-width: 0;
}
.hp-search__field--loc { flex: 0.75; }
.hp-search__field svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: var(--ink-400); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hp-search__field input {
  border: 0; outline: 0; background: transparent;
  width: 100%; min-width: 0;
  font-family: var(--font); font-size: 15px;
  color: var(--ink-900);
}
.hp-search__field input::placeholder { color: var(--ink-400); }
.hp-search__field + .hp-search__field {
  border-left: 1px solid var(--border);
}
.hp-search__btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 0 32px;
  background: var(--blue); color: #FFFFFF;
  border: 0; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.hp-search__btn:hover { background: var(--blue-dark); }
.hp-search__btn svg { stroke: currentColor; fill: none; stroke-width: 2.2; }

@media (max-width: 720px) {
  .hp-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
  }
  .hp-search__field--loc { flex: 1; }
  .hp-search__field + .hp-search__field {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .hp-search__btn {
    padding: 16px 32px;
    border-radius: 12px;
  }
}

/* Quick links */
.hp-quicklinks {
  display: flex; flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
}
.hp-quicklinks__label {
  font-weight: 600;
  color: var(--ink-600);
}
.hp-quicklinks a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,102,245,0.12);
  transition: all 0.2s;
}
.hp-quicklinks a:hover {
  background: var(--blue-50);
  border-color: var(--blue);
}

/* ═══ STATS ═══ */
.hp-stats {
  background: #FFFFFF;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.hp-stats__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (min-width: 721px) {
  .hp-stats__inner { grid-template-columns: repeat(4, 1fr); }
}
.hp-stat { display: flex; flex-direction: column; gap: 4px; }
.hp-stat__num {
  font-size: 28px; font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hp-stat__label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══ SECTIONS ═══ */
.hp-section { padding: clamp(48px, 6vw, 80px) 0; }
.hp-section--tinted { background: #F8FAFC; }
.hp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hp-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}
.hp-head p {
  font-size: 15px; color: var(--ink-500);
  margin: 4px 0 0;
}
.hp-head--center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}
.hp-head__link {
  font-size: 14px; font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.hp-head__link:hover { border-bottom-color: var(--blue); }

/* ═══ CATEGORIES ═══ */
.hp-cats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 641px) { .hp-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 961px) { .hp-cats { grid-template-columns: repeat(4, 1fr); } }
.hp-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-900);
  transition: all 0.2s;
}
.hp-cat:hover {
  border-color: var(--blue);
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,245,0.10);
}
.hp-cat__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hp-cat__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hp-cat__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.hp-cat__count { font-size: 12px; color: var(--ink-500); }

/* ═══ COMPANIES ═══ */
.hp-companies {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 561px) { .hp-companies { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 961px) { .hp-companies { grid-template-columns: repeat(4, 1fr); } }
.hp-company {
  display: flex; align-items: center; justify-content: center;
  min-height: 88px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.hp-company:hover { border-color: var(--blue); }
.hp-company img { max-height: 40px; max-width: 130px; object-fit: contain; }
.hp-company__name {
  font-size: 14px; font-weight: 700;
  color: var(--ink-700);
  text-align: center;
}

/* ═══ CITY CHIPS ═══ */
.hp-city-chips {
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.hp-city-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  transition: all 0.2s;
}
.hp-city-chip:hover { border-color: var(--blue); color: var(--blue); }
.hp-city-chip__count {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  background: var(--blue-50);
  color: var(--blue);
  border-radius: 100px;
}

/* ═══ LATEST JOBS ═══ */
.hp-jobs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 901px) {
  .hp-jobs-layout { grid-template-columns: 1fr 320px; }
}
.hp-job-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.hp-job-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-900);
  transition: all 0.2s;
}
.hp-job-row:hover {
  border-color: var(--blue);
  color: var(--ink-900);
  box-shadow: 0 4px 16px rgba(0,102,245,0.08);
}
.hp-job-row__logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.hp-job-row__logo img { width: 100%; height: 100%; object-fit: cover; }
.hp-job-row__logo-fallback {
  width: 100%; height: 100%;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.hp-job-row__body { min-width: 0; }
.hp-job-row__title {
  font-size: 15.5px; font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-job-row__company {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-600);
  margin: 0 0 6px;
}
.hp-job-row__meta {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.hp-job-row__right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
  flex-shrink: 0;
}
.hp-job-row__time { font-size: 11.5px; color: var(--ink-400); }
.hp-job-row__btn {
  padding: 8px 18px;
  background: var(--blue); color: #FFFFFF;
  border-radius: 100px;
  font-size: 12.5px; font-weight: 700;
  transition: background 0.2s;
}
.hp-job-row:hover .hp-job-row__btn { background: var(--blue-dark); }

@media (max-width: 640px) {
  .hp-job-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .hp-job-row__logo { width: 48px; height: 48px; }
  .hp-job-row__right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .hp-job-row__title { font-size: 14.5px; }
  .hp-job-row__meta { gap: 8px; }
}

/* Sidebar */
.hp-sidebar {
  display: flex; flex-direction: column;
  gap: 16px;
}
@media (min-width: 901px) {
  .hp-sidebar { position: sticky; top: 90px; align-self: start; }
}
.hp-sidebar__card {
  padding: 24px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.hp-sidebar__card--muted { background: #F8FAFC; }
.hp-sidebar__card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--ink-900); margin: 0 0 10px;
}
.hp-sidebar__card h4 {
  font-size: 13px; font-weight: 700;
  color: var(--ink-900); margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hp-sidebar__card p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-500); margin: 0 0 16px;
}
.hp-sidebar__btn {
  display: block; text-align: center;
  padding: 12px 20px;
  background: var(--blue); color: #FFFFFF;
  border-radius: 100px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.hp-sidebar__btn:hover { background: var(--blue-dark); color: #FFFFFF; }
.hp-sidebar__link {
  display: block; text-align: center;
  margin-top: 10px;
  font-size: 12.5px; color: var(--ink-500);
  text-decoration: none;
}
.hp-sidebar__link:hover { color: var(--blue); }
.hp-sidebar__card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.hp-sidebar__card ul li a {
  font-size: 13.5px; color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.hp-sidebar__card ul li a:hover { text-decoration: underline; }

/* ═══ STEPS ═══ */
.hp-steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 721px) { .hp-steps { grid-template-columns: repeat(3, 1fr); } }
.hp-step {
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.hp-step__num {
  display: inline-block;
  font-size: 32px; font-weight: 800;
  color: var(--blue);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hp-step h3 {
  font-size: 17px; font-weight: 700;
  color: var(--ink-900); margin: 0 0 8px;
}
.hp-step p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-500); margin: 0;
}

/* ═══ EMPLOYER STRIP ═══ */
.hp-employer-strip {
  background: var(--ink-900);
  padding: 48px 0;
  color: #FFFFFF;
}
.hp-employer-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hp-employer-strip h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.hp-employer-strip p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.hp-employer-strip__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #FFFFFF; color: var(--ink-900);
  border-radius: 100px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.hp-employer-strip__btn:hover { background: var(--blue-50); color: var(--ink-900); }

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY THUMBNAIL UPDATES (Phase 4.1)
   White hero, 5-column categories with thumbnails.
   ═══════════════════════════════════════════════════════════════════ */

/* Pure white hero */
.hp-hero {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border);
}

/* Ensure page background is white */
body.jb-main,
main.jb-main {
  background: #FFFFFF;
}

/* 5-column category grid */
.hp-cats {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 561px) {
  .hp-cats { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 861px) {
  .hp-cats { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 1101px) {
  .hp-cats { grid-template-columns: repeat(5, 1fr) !important; }
}

/* Category tile — vertical with thumbnail on top */
.hp-cat {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: var(--ink-900) !important;
  transition: all 0.2s !important;
}
.hp-cat:hover {
  border-color: var(--blue) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,102,245,0.12) !important;
}

/* Thumbnail area — 4:3 aspect, image or icon fallback */
.hp-cat__thumb {
  aspect-ratio: 4 / 3;
  background: var(--blue-50);
  overflow: hidden;
  position: relative;
}
.hp-cat__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.hp-cat:hover .hp-cat__thumb img {
  transform: scale(1.05);
}

/* Icon fallback when no thumbnail uploaded */
.hp-cat__icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue-50) 0%, #E0EAFF 100%);
}
.hp-cat__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Body — text below thumbnail */
.hp-cat__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.hp-cat__name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--ink-900) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-cat__count {
  font-size: 11.5px !important;
  color: var(--ink-500) !important;
  font-weight: 500 !important;
}

/* ═══ Admin categories page ═══ */
@media (max-width: 640px) {
  /* Ensure admin table is scrollable on mobile */
  .hp-container table { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   EMPLOYER FORMS + APPLICANT CARDS (Phase 4.2)
   ═══════════════════════════════════════════════════════════════════ */

.ep-head { margin-bottom: 24px; }
.ep-head h1 { font-size: 28px; margin: 0 0 6px; }
.ep-head p { color: var(--ink-500); margin: 0; }

.ep-alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.ep-alert--error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.ep-alert--warning { background: #FEF3C7; color: #92400E; border-left: 4px solid #F59E0B; }
.ep-alert--info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }
.ep-alert ul { margin: 8px 0 0 20px; padding: 0; }

.ep-form { display: flex; flex-direction: column; gap: 24px; }

.ep-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #FFFFFF;
}
.ep-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 0 8px;
}

.ep-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.ep-row:last-child { margin-bottom: 0; }
@media (min-width: 721px) {
  .ep-row.ep-row--2 { grid-template-columns: 1fr 1fr; }
  .ep-row.ep-row--3 { grid-template-columns: repeat(3, 1fr); }
}

.ep-row label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  gap: 6px;
}
.ep-row input[type="text"],
.ep-row input[type="number"],
.ep-row input[type="date"],
.ep-row textarea,
.ep-row select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink-900);
  background: #FFFFFF;
  transition: border-color 0.15s;
  font-weight: 400;
}
.ep-row input:focus,
.ep-row textarea:focus,
.ep-row select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,245,0.08);
}
.ep-row small {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 4px;
}

.ep-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 641px) {
  .ep-checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}
.ep-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ep-checkbox:hover { border-color: var(--blue-100); background: var(--blue-50); }
.ep-checkbox input:checked + span { font-weight: 700; color: var(--blue); }
.ep-checkbox:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.ep-checkbox input { margin: 0; accent-color: var(--blue); }

.ep-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Applicant cards */
.apps-list { display: flex; flex-direction: column; gap: 16px; }
.app-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.15s;
}
.app-card:hover { border-color: var(--blue-100); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }

.app-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.app-card__identity { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.app-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.app-card__avatar--fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue);
  font-weight: 800; font-size: 18px;
}
.app-card__name { font-weight: 700; font-size: 16px; color: var(--ink-900); }
.app-card__headline { font-size: 13px; color: var(--ink-600); margin: 2px 0 6px; }
.app-card__meta {
  display: flex; flex-wrap: wrap;
  gap: 10px; font-size: 12px; color: var(--ink-500);
}
.app-card__actions { flex-shrink: 0; }
.app-status-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s;
}
.app-status-select:focus { outline: 0; border-color: var(--blue); }

.app-card__contact {
  display: flex; flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 13px;
}
.app-card__contact a { color: var(--ink-700); text-decoration: none; font-weight: 500; }
.app-card__contact a:hover { color: var(--blue); }
.app-card__resume { color: var(--blue) !important; font-weight: 700 !important; }

.app-card__cover,
.app-card__notes {
  margin-top: 8px;
  font-size: 14px;
}
.app-card__cover summary,
.app-card__notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 0;
  user-select: none;
}
.app-card__cover summary:hover,
.app-card__notes summary:hover { color: var(--blue); }
.app-card__cover div {
  padding: 12px;
  background: var(--ink-50);
  border-radius: 8px;
  margin-top: 8px;
  line-height: 1.6;
  color: var(--ink-700);
}
.app-notes-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  margin-top: 8px;
  resize: vertical;
}
.app-notes-input:focus { outline: 0; border-color: var(--blue); }
.app-save-notes { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   FORM IMPROVEMENTS (Phase 4.3)
   Skills grid, languages grid, clean alignment
   ═══════════════════════════════════════════════════════════════════ */

/* Skills grid — proper alignment instead of flex-wrap */
.ep-skill-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 4px;
}
@media (min-width: 641px) {
  .ep-skill-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 961px) {
  .ep-skill-list { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.ep-skill-list .ep-checkbox {
  min-width: 0 !important;
  justify-content: flex-start !important;
  overflow: hidden;
}
.ep-skill-list .ep-checkbox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
}

/* Languages grid — same treatment */
.ep-checkbox-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
@media (min-width: 561px) {
  .ep-checkbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 961px) {
  .ep-checkbox-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.ep-checkbox-grid .ep-checkbox {
  min-width: 0 !important;
  justify-content: flex-start !important;
}
.ep-checkbox-grid .ep-checkbox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
}

/* Section label alignment */
.ep-row > label > select.ep-select,
.ep-row > label > input {
  width: 100%;
}

/* Better visual hierarchy for the form fieldsets */
.ep-fieldset {
  padding: 24px 28px !important;
}
@media (max-width: 640px) {
  .ep-fieldset { padding: 20px 18px !important; }
}

.ep-fieldset legend {
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  color: var(--blue) !important;
}

/* Subheadings within sections */
.ep-row > label > div.ep-checkbox-grid,
.ep-row > label > div.ep-skill-list {
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   City cascade + hot city chips
   ═══════════════════════════════════════════════════════════════════ */
.ep-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ep-city-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d5dbe6;
  background: #fff;
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #3b4a63;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.4;
  font-family: inherit;
}
.ep-city-chip:hover {
  border-color: var(--blue, #2563eb);
  color: var(--blue, #2563eb);
  background: #f0f6ff;
}
.ep-city-chip.active {
  background: var(--blue, #2563eb);
  border-color: var(--blue, #2563eb);
  color: #fff;
}
#citySel:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f7f8fa;
}

/* ═══════════════════════════════════════════════════════════════════
   Multi-Select Dropdowns (Languages & Skills)
   ═══════════════════════════════════════════════════════════════════ */
select.ep-select[multiple] {
  height: auto !important;
  min-height: 140px;
  padding: 8px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow-y: auto;
}
select.ep-select[multiple] optgroup {
  font-weight: 700;
  color: #1e293b;
  padding: 4px;
  font-size: 13px;
}
select.ep-select[multiple] option {
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 2px;
  cursor: pointer;
  font-size: 14px;
}
select.ep-select[multiple] option:checked {
  background-color: #2563eb !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Custom Multi-Select Checkbox Dropdowns
   ═══════════════════════════════════════════════════════════════════ */
.ep-multiselect {
  position: relative;
  width: 100%;
  margin-top: 4px;
}
.ep-multiselect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-multiselect.is-open .ep-multiselect-header,
.ep-multiselect-header:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ep-ms-arrow {
  transition: transform 0.2s;
  color: #64748b;
}
.ep-multiselect.is-open .ep-ms-arrow {
  transform: rotate(180deg);
}
.ep-multiselect-body {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: 350px;
  overflow-y: auto;
  padding: 16px;
}
.ep-multiselect.is-open .ep-multiselect-body {
  display: block;
}
.ep-ms-group {
  margin-bottom: 20px;
}
.ep-ms-group:last-child {
  margin-bottom: 0;
}
.ep-ms-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}
.ep-checkbox-grid--compact {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 8px !important;
}
.ep-checkbox-grid--compact .ep-checkbox {
  padding: 6px 10px !important;
  font-size: 13px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  transition: background 0.1s;
}
.ep-checkbox-grid--compact .ep-checkbox:hover {
  background: #f1f5f9;
}
.ep-checkbox-grid--compact .ep-checkbox input {
  margin: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   Side-by-Side Multi-selects (Languages & Skills)
   ═══════════════════════════════════════════════════════════════════ */
.ep-row--2 .ep-multiselect-body {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
}
.ep-row--2 label {
  min-width: 0; /* Prevents flex/grid blowout */
  position: relative;
}

/* Fix Multiselect Overlap */
.ep-multiselect { position: relative; width: 100%; }
.ep-multiselect-body {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999 !important; /* Force on top of everything */
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2) !important;
}
.ep-row--2 .ep-multiselect-body {
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL FIX: Multiselect Grids & Overlaps
   ═══════════════════════════════════════════════════════════════════ */

/* Force exactly 2 columns inside the multiselect dropdowns */
.ep-multiselect-body .ep-checkbox-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important; /* Strict 2 columns */
  gap: 8px !important;
}

/* Ensure the labels don't wrap or overflow */
.ep-multiselect-body .ep-checkbox {
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fix the dropdown overlapping the next section */
.ep-multiselect {
  position: relative !important;
}
.ep-multiselect.is-open {
  z-index: 9999 !important; /* Force above everything */
}
.ep-multiselect-body {
  z-index: 9999 !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 100% !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2) !important;
}

/* Ensure the fieldset doesn't clip the dropdown */
.ep-fieldset {
  position: relative;
  overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL LAYOUT FIXES: Multiselect Headers & Grid
   ═══════════════════════════════════════════════════════════════════ */

/* Make the multiselect header look exactly like a standard ep-select */
.ep-multiselect-header {
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important; /* matching border */
  border-radius: 8px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
}
.ep-multiselect.is-open .ep-multiselect-header {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Force exactly 2 columns inside the dropdown */
.ep-multiselect-body .ep-checkbox-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

/* Fix dropdown overlap and z-index */
.ep-multiselect {
  position: relative !important;
}
.ep-multiselect-body {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2) !important;
  max-height: 350px !important;
  overflow-y: auto !important;
  padding: 16px !important;
}
.ep-fieldset {
  position: relative !important;
  overflow: visible !important;
}

/* Fix the Location section from stretching out of the box */
.ep-fieldset {
  overflow: hidden !important; /* Ensures it doesn't stretch past the container */
  box-sizing: border-box !important;
}
.ep-row {
  box-sizing: border-box !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL LAYOUT LOCK: Prevents fieldsets and rows from stretching
   ═══════════════════════════════════════════════════════════════════ */
.ep-fieldset {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important; /* Allows dropdowns to open */
  padding: 24px !important;
}

.ep-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Crucial fix: Forces flex items to shrink instead of pushing the container */
.ep-row > label {
  flex: 1 1 0% !important;
  min-width: 0 !important; 
  box-sizing: border-box !important;
}

/* Specific widths for 2 and 3 column layouts */
.ep-row--2 > label { flex-basis: calc(50% - 8px) !important; }
.ep-row--3 > label { flex-basis: calc(33.333% - 11px) !important; }

/* Ensure inputs and selects don't overflow their columns */
.ep-row select.ep-select,
.ep-row input.ep-input,
.ep-row .ep-multiselect {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ep-row--2 > label, .ep-row--3 > label {
    flex-basis: 100% !important;
  }
}

/* Lock the fieldset to the page width */
.ep-fieldset {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

/* Force the grid items to stay inside the fieldset */
.ep-row {
  display: grid;
  gap: 16px;
  width: 100%;
}

.ep-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .ep-row--2, .ep-row--3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   GODMODE FORM LAYOUT LOCK
   ═══════════════════════════════════════════════════════════════════ */

/* 1. Force the form container to never exceed the page width */
form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 2. The Fieldset Box */
.ep-fieldset {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

/* 3. CSS Grid for Rows (No stretching, perfectly contained) */
.ep-row {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.ep-row--1 { grid-template-columns: 1fr; }
.ep-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .ep-row--2, .ep-row--3 { grid-template-columns: 1fr; }
}

/* 4. Force inputs to stay inside the grid cell */
.ep-input, .ep-select {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 5. Multiselect Dropdown positioning */
.ep-multiselect {
  position: relative;
  width: 100%;
}
.ep-multiselect-body {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  padding: 16px;
  margin-top: 4px;
}

/* Ensure the homepage category grid handles 20+ items perfectly */
.hp-cats {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM CATEGORIES PAGE (Stripe/Naukri/Apple Inspired)
   ═══════════════════════════════════════════════════════════════════ */
.premium-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.premium-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-color: #cbd5e1;
}

.premium-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.premium-tag:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

.premium-tag--muted {
  background: transparent;
  border-style: dashed;
  color: #64748b;
  cursor: default;
}
.premium-tag--muted:hover {
  background: transparent;
  border-color: #e2e8f0;
  color: #64748b;
}

@media (max-width: 640px) {
  .premium-cat-card { padding: 20px; }
  h1 { font-size: 32px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   BILLION-DOLLAR UI UPGRADE
   ═══════════════════════════════════════════════════════════════════ */

/* HEADER & MEGA MENU */
.pro-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; height: 72px;
}
.pro-header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.pro-logo img { height: 32px; }
.pro-nav { display: flex; gap: 32px; align-items: center; height: 100%; }
.pro-nav-item {
  font-size: 15px; font-weight: 500; color: #475569; text-decoration: none; display: flex; align-items: center; gap: 4px; height: 100%; position: relative; transition: color 0.2s;
}
.pro-nav-item:hover, .pro-nav-item.active { color: #2563eb; }
.pro-nav-item svg { color: #94a3b8; transition: transform 0.2s; }
.pro-nav-item:hover svg { color: #2563eb; transform: rotate(180deg); }

/* Mega Menu Dropdown */
.pro-mega-menu {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%) translateY(10px); background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; padding: 32px; width: 800px; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
}
.has-mega:hover .pro-mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.pro-mega-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.pro-mega-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 16px; }
.pro-mega-col a { display: block; font-size: 14px; font-weight: 500; color: #334155; text-decoration: none; padding: 8px 0; transition: color 0.2s; }
.pro-mega-col a:hover { color: #2563eb; }

/* Header Buttons */
.pro-actions { display: flex; gap: 12px; align-items: center; }
.pro-btn { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.pro-btn--ghost { color: #475569; border: 1px solid #e2e8f0; background: #fff; }
.pro-btn--ghost:hover { background: #f8fafc; color: #0f172a; }
.pro-btn--primary { color: #fff; background: #2563eb; border: 1px solid #2563eb; }
.pro-btn--primary:hover { background: #1d4ed8; }

/* MOBILE HEADER */
.pro-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.pro-mobile-toggle span { display: block; width: 24px; height: 2px; background: #0f172a; transition: all 0.3s; }
.pro-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pro-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.pro-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .pro-mobile-toggle { display: flex; }
  .pro-nav {
    position: absolute; top: 72px; left: 0; width: 100%; background: #fff; flex-direction: column; gap: 0; padding: 24px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); display: none;
  }
  .pro-nav.show { display: flex; }
  .pro-nav-item { width: 100%; padding: 16px 0; justify-content: space-between; border-bottom: 1px solid #f1f5f9; }
  .pro-mega-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 16px 0; width: 100%; pointer-events: auto; display: none; border: none; }
  .has-mega:hover .pro-mega-menu { display: block; }
  .pro-mega-content { grid-template-columns: 1fr; gap: 16px; }
  .pro-actions { display: none; }
}

/* MONSTER TABS */
.pro-tab {
  padding: 12px 32px; border-radius: 100px; font-size: 15px; font-weight: 600; color: #64748b; background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.pro-tab:hover { color: #0f172a; background: #f1f5f9; }
.pro-tab.active {
  color: #2563eb; background: #eff6ff; border-color: #bfdbfe;
}
.pro-link-grid {
  display: block; padding: 16px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #475569; text-decoration: none; transition: all 0.2s;
}
.pro-link-grid:hover { background: #f8fafc; color: #2563eb; transform: translateX(4px); }

@media (max-width: 768px) {
  .pro-tab-content div { grid-template-columns: 1fr !important; }
  h1 { font-size: 32px !important; }
}
