/* ============================================================
   KERALA JOBS – Premium CSS
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #F59E0B;
  --accent-dark: #d97706;
  --success: #22C55E;
  --error: #EF4444;
  --bg: #F8FAFC;
  --white: #ffffff;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* --- RESET --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;overflow-x:hidden}
body{font-family:'Inter',sans-serif;color:var(--text);background:var(--bg);min-height:100vh;padding-bottom:80px;overflow-x:hidden;max-width:100vw}
a{text-decoration:none;color:inherit}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,select,textarea{font-family:inherit;outline:none}
img{max-width:100%;display:block}

/* --- VIEWS (SPA ROUTING) --- */
.view{display:none}
.view.active{display:block}

/* ============================================================
   NAVBAR
============================================================ */
.navbar{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm)}
.navbar-inner{max-width:1280px;margin:0 auto;padding:0 24px;height:90px;display:flex;align-items:center;gap:16px}
.nav-logo{display:flex;align-items:center;gap:10px;cursor:pointer;flex-shrink:0}
.logo-icon{width:40px;height:40px;background:var(--primary);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff}
.logo-icon.large{width:56px;height:56px;border-radius:14px}
.logo-icon svg{width:22px;height:22px;stroke:#fff}
.logo-text{font-family:'Poppins',sans-serif;font-size:22px;font-weight:700;line-height:1}
.logo-primary{color:var(--primary)}
.logo-accent{color:var(--accent)}

.nav-search{flex:1;max-width:500px}
.search-wrap{display:flex;align-items:center;background:var(--bg);border:1.5px solid var(--border);border-radius:50px;overflow:hidden;transition:border var(--transition),box-shadow var(--transition)}
.search-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.search-icon{width:18px;height:18px;margin:0 12px;color:var(--text-muted);flex-shrink:0;stroke:currentColor}
.search-input{flex:1;border:none;background:transparent;font-size:14px;padding:12px 0;color:var(--text)}
.search-input::placeholder{color:var(--text-muted)}
.search-btn{padding:10px 20px;margin:4px;background:var(--primary);color:#fff;border-radius:50px;font-size:14px;font-weight:600;transition:background var(--transition)}
.search-btn:hover{background:var(--primary-dark)}

.nav-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.location-selector{display:flex;align-items:center;gap:6px;background:var(--bg);border:1.5px solid var(--border);border-radius:50px;padding:8px 14px;cursor:pointer}
.loc-icon{width:16px;height:16px;color:var(--primary);flex-shrink:0;stroke:currentColor}
.loc-select{border:none;background:transparent;font-size:13px;color:var(--text);cursor:pointer;font-weight:500}

.btn-ghost{display:flex;align-items:center;gap:6px;padding:8px 16px;border-radius:50px;font-size:14px;font-weight:500;color:var(--text);border:1.5px solid var(--border);transition:all var(--transition)}
.btn-ghost:hover{background:var(--bg);border-color:var(--primary);color:var(--primary)}
.btn-ghost svg{width:16px;height:16px;stroke:currentColor}
.btn-post-job{display:flex;align-items:center;gap:6px;padding:10px 22px;background:var(--accent);color:#fff;border-radius:50px;font-size:14px;font-weight:700;box-shadow:0 4px 14px rgba(245,158,11,.35);transition:all var(--transition)}
.btn-post-job:hover{background:var(--accent-dark);transform:translateY(-1px);box-shadow:0 6px 20px rgba(245,158,11,.4)}
.btn-post-job svg{width:16px;height:16px;stroke:#fff}

.nav-hamburger{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1.5px solid var(--border)}
.nav-hamburger svg{width:20px;height:20px;stroke:var(--text)}
.mobile-nav-menu{display:none;padding:12px 24px 16px;border-top:1px solid var(--border);gap:12px;flex-direction:column}
.mobile-nav-menu.open{display:flex}
.mobile-search-wrap{display:flex;align-items:center;gap:8px;background:var(--bg);border:1.5px solid var(--border);border-radius:12px;padding:10px 14px}
.mobile-search-wrap svg{width:16px;height:16px;stroke:var(--text-muted);flex-shrink:0}
.mobile-search-wrap input{flex:1;border:none;background:transparent;font-size:14px;color:var(--text)}
.mobile-location{display:flex;align-items:center;gap:8px;background:var(--bg);border:1.5px solid var(--border);border-radius:12px;padding:10px 14px}
.mobile-location svg{width:16px;height:16px;stroke:var(--primary);flex-shrink:0}

/* ============================================================
   HERO
============================================================ */
.hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 50%,#1d4ed8 100%);padding:44px 24px 52px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-content{max-width:1280px;margin:0 auto;position:relative;z-index:1;max-width:620px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.9);padding:6px 16px;border-radius:50px;font-size:13px;font-weight:500;margin-bottom:24px}
.hero-badge svg{width:14px;height:14px;stroke:var(--accent)}
.hero-title{font-family:'Poppins',sans-serif;font-size:clamp(32px,5vw,54px);font-weight:800;color:#fff;line-height:1.15;margin-bottom:16px}
.text-accent{color:var(--accent)}
.text-primary{color:var(--primary)}
.hero-subtitle{font-size:18px;color:rgba(255,255,255,.75);margin-bottom:36px;line-height:1.6}

.hero-search-box{display:flex;align-items:center;background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);padding:6px 6px 6px 20px;gap:0;margin-bottom:28px;max-width:680px}
.hero-search-field{display:flex;align-items:center;gap:10px;flex:1}
.hero-search-field svg{width:18px;height:18px;stroke:var(--primary);flex-shrink:0}
.hero-search-field input{flex:1;border:none;font-size:15px;color:var(--text);padding:10px 0}
.hero-search-field input::placeholder{color:var(--text-muted)}
.hero-divider{width:1px;height:32px;background:var(--border);margin:0 8px;flex-shrink:0}
.hero-location-field{display:flex;align-items:center;gap:8px;padding:0 12px}
.hero-location-field svg{width:16px;height:16px;stroke:var(--text-muted);flex-shrink:0}
.hero-location-field select{border:none;font-size:14px;color:var(--text);min-width:160px}
.hero-search-btn{display:flex;align-items:center;gap:8px;padding:14px 28px;background:var(--primary);color:#fff;border-radius:var(--radius-lg);font-size:15px;font-weight:700;white-space:nowrap;transition:all var(--transition);flex-shrink:0}
.hero-search-btn:hover{background:var(--primary-dark);transform:translateY(-1px)}
.hero-search-btn svg{width:16px;height:16px;stroke:#fff}

.hero-stats{display:flex;gap:12px;flex-wrap:wrap}
.stat-pill{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);color:rgba(255,255,255,.85);padding:8px 16px;border-radius:50px;font-size:13px;font-weight:500}
.stat-pill svg{width:14px;height:14px;stroke:var(--accent)}

/* Hire Stories Ticker Column */
@keyframes tickerScroll{0%{transform:translateY(0)}100%{transform:translateY(-50%)}}
.hire-ticker-col{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:230px;height:380px;overflow:hidden;-webkit-mask:linear-gradient(to bottom,transparent 0%,#000 12%,#000 88%,transparent 100%);mask:linear-gradient(to bottom,transparent 0%,#000 12%,#000 88%,transparent 100%)}
.hire-ticker-inner{display:flex;flex-direction:column;gap:10px;animation:tickerScroll 14s linear infinite}
.hire-ticker-inner:hover{animation-play-state:paused}
.hire-card{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.97);border-radius:14px;padding:11px 14px;box-shadow:0 4px 20px rgba(0,0,0,.13);flex-shrink:0;transition:transform .2s}
.hire-card:hover{transform:scale(1.03)}
.hire-card.salary{background:linear-gradient(135deg,#fff9f0,#fff)}
.hire-icon{font-size:22px;flex-shrink:0;line-height:1}
.hire-title{font-size:13px;font-weight:700;color:#111827;line-height:1.3}
.hire-sub{font-size:11px;color:#6b7280;margin-top:2px;font-weight:500}

@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* ============================================================
   HIRE ME PROMO BANNER
============================================================ */
@keyframes hmPbFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(1deg)}}
@keyframes hmPbPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.8);opacity:0}}
@keyframes hmPbOrb{0%,100%{transform:scale(1) translate(0,0)}50%{transform:scale(1.15) translate(10px,-12px)}}

.hm-promo-banner{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#1a0a3c 0%,#5b21b6 45%,#1d4ed8 100%);
  padding:48px 24px 44px;
}
.hm-pb-orb{position:absolute;border-radius:50%;filter:blur(55px);pointer-events:none;animation:hmPbOrb 8s ease-in-out infinite alternate}
.hm-pb-orb1{width:280px;height:280px;background:#7c3aed;opacity:.35;top:-80px;left:-60px}
.hm-pb-orb2{width:220px;height:220px;background:#2563eb;opacity:.3;bottom:-60px;right:5%;animation-delay:4s}

.hm-pb-inner{
  max-width:1100px;margin:0 auto;position:relative;z-index:2;
  display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;
}
.hm-pb-left{display:flex;flex-direction:column;gap:14px}
.hm-pb-label{
  display:inline-block;align-self:flex-start;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);
  color:#e9d5ff;font-size:11px;font-weight:700;letter-spacing:.5px;
  padding:5px 14px;border-radius:50px;text-transform:uppercase;
}
.hm-pb-title{
  font-family:'Poppins',sans-serif;font-size:clamp(22px,3.5vw,36px);
  font-weight:900;color:#fff;line-height:1.2;margin:0;
}
.hm-pb-accent{
  background:linear-gradient(90deg,#fde68a,#fb923c);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.hm-pb-sub{font-size:14px;color:rgba(255,255,255,.75);line-height:1.65;margin:0;max-width:560px}
.hm-pb-bullets{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.hm-pb-bullets li{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.87)}
.hm-pb-check{width:20px;height:20px;border-radius:50%;background:#22c55e;color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hm-pb-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hm-pb-btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  background:#fff;color:#5b21b6;
  font-size:14px;font-weight:800;padding:12px 26px;border-radius:50px;border:none;cursor:pointer;
  box-shadow:0 6px 22px rgba(0,0,0,.25);transition:all .22s;white-space:nowrap;
}
.hm-pb-btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 32px rgba(0,0,0,.3)}
.hm-pb-btn-secondary{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.12);color:#fff;border:1.5px solid rgba(255,255,255,.3);
  font-size:13px;font-weight:700;padding:11px 20px;border-radius:50px;cursor:pointer;
  transition:all .22s;white-space:nowrap;
}
.hm-pb-btn-secondary:hover{background:rgba(255,255,255,.22)}
.hm-pb-trust{display:flex;flex-wrap:wrap;gap:10px}
.hm-pb-trust span{
  font-size:11px;font-weight:600;color:rgba(255,255,255,.6);
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
  padding:4px 12px;border-radius:50px;
}

/* Right column — card mockup */
.hm-pb-right{position:relative;width:240px;flex-shrink:0}
.hm-pb-card{
  background:#fff;border-radius:20px;padding:20px;
  box-shadow:0 20px 56px rgba(0,0,0,.3);
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  animation:hmPbFloat 4s ease-in-out infinite;
}
.hm-pb-card-back{
  position:absolute;bottom:-24px;right:-20px;width:180px;
  opacity:.65;animation-delay:2s;z-index:-1;transform:rotate(5deg);
  padding:14px;gap:5px;
}
.hm-pb-avatar-pulse{position:relative;width:54px;height:54px;flex-shrink:0}
.hm-pb-avatar{
  width:54px;height:54px;border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#4f46e5);
  color:#fff;font-size:18px;font-weight:900;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(124,58,237,.5);position:relative;z-index:1;
}
.hm-pb-pulse-ring{
  position:absolute;inset:-6px;border-radius:50%;
  border:2.5px solid #7c3aed;
  animation:hmPbPulse 2s ease-out infinite;
}
.hm-pb-card-name{font-size:14px;font-weight:800;color:#1e293b}
.hm-pb-card-role{font-size:11px;color:#64748b;font-weight:600}
.hm-pb-card-pills{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.hm-pb-card-pills span{font-size:10px;font-weight:600;color:#475569;background:#f1f5f9;padding:3px 8px;border-radius:50px}
.hm-pb-card-skills{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.hm-pb-card-skills span{font-size:10px;font-weight:700;color:#7c3aed;background:#f3e8ff;padding:2px 8px;border-radius:50px}
.hm-pb-card-views{font-size:10px;color:#94a3b8;font-weight:600}
.hm-pb-card-cta{
  width:100%;padding:9px;border-radius:50px;
  background:linear-gradient(135deg,#7c3aed,#4f46e5);
  color:#fff;font-size:12px;font-weight:800;margin-top:2px;
}

@media(max-width:768px){
  .hm-promo-banner{padding:32px 16px 28px}
  .hm-pb-inner{grid-template-columns:1fr;gap:0}
  .hm-pb-title{font-size:22px}
  .hm-pb-sub{font-size:13px}
}

/* ============================================================
   SECTIONS
============================================================ */
.section-container{max-width:1280px;margin:0 auto;padding:72px 24px}
.section-alt{background:none}
.section-title{font-family:'Poppins',sans-serif;font-size:28px;font-weight:700;color:var(--text);margin-bottom:8px}
.section-subtitle{color:var(--text-muted);font-size:16px;margin-bottom:40px}
.section-header-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:32px;gap:16px;flex-wrap:wrap}
.section-header-row .section-title,.section-header-row .section-subtitle{margin-bottom:4px}

/* ============================================================
   CATEGORY GRID
============================================================ */
.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px}
.category-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#fff;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:24px 12px;cursor:pointer;transition:all var(--transition);text-align:center}
.category-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-4px);background:var(--primary-soft)}
.category-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px}
.category-name{font-size:13px;font-weight:600;color:var(--text)}
.category-count{font-size:12px;color:var(--text-muted)}

/* ============================================================
   JOB CARDS
============================================================ */
.jobs-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.job-card{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:20px;transition:all var(--transition);position:relative;overflow:hidden;cursor:pointer}
.job-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-4px)}
.job-card::after{content:'';position:absolute;inset:-1px;border-radius:var(--radius-lg);border:2px solid var(--primary);opacity:0;transition:opacity var(--transition)}
.job-card:hover::after{opacity:1}
.job-card-header{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px;padding-right:44px}
.company-logo{width:48px;height:48px;border-radius:12px;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:var(--primary);flex-shrink:0;overflow:hidden}
.job-card-info{flex:1;min-width:0}
.job-title{font-size:16px;font-weight:700;color:var(--text);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-name{font-size:13px;color:var(--text-muted);font-weight:500}
.save-btn{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--border);color:var(--text-muted);transition:all var(--transition)}
.save-btn:hover{border-color:var(--error);color:var(--error);background:#fff1f2}
.save-btn.saved{border-color:var(--error);color:var(--error);background:#fff1f2}
.save-btn svg{width:16px;height:16px;stroke:currentColor}
.job-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.meta-tag{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--text-muted);background:var(--bg);padding:4px 10px;border-radius:50px}
.meta-tag svg{width:12px;height:12px;stroke:currentColor}
.job-salary{font-size:16px;font-weight:700;color:var(--primary);margin-bottom:14px}
.job-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.posted-time{font-size:12px;color:var(--text-light)}
.job-type-badge{font-size:11px;font-weight:600;padding:4px 10px;border-radius:50px}
.badge-fulltime{background:#dbeafe;color:#1d4ed8}
.badge-parttime{background:#fef9c3;color:#92400e}
.badge-contract{background:#f3e8ff;color:#6b21a8}
.badge-temporary{background:#dcfce7;color:#166534}
.btn-apply{padding:8px 18px;background:var(--primary);color:#fff;border-radius:50px;font-size:13px;font-weight:600;transition:all var(--transition)}
.btn-apply:hover{background:var(--primary-dark);transform:scale(1.04)}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how-grid{display:flex;align-items:center;gap:0;justify-content:center;flex-wrap:wrap;gap:24px}
.how-card{background:#fff;border-radius:var(--radius-lg);padding:32px 28px;text-align:center;border:1.5px solid var(--border);max-width:260px;flex:1}
.how-card h3{font-size:18px;font-weight:700;margin:16px 0 8px}
.how-card p{font-size:14px;color:var(--text-muted);line-height:1.6}
.how-icon{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto}
.how-icon svg{width:26px;height:26px}
.how-arrow{color:var(--text-light);font-size:24px;flex-shrink:0}
.how-arrow svg{width:28px;height:28px;stroke:var(--text-light)}

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner{background:linear-gradient(135deg,var(--primary) 0%,#7c3aed 100%);padding:64px 24px;text-align:center}
.cta-content h2{font-family:'Poppins',sans-serif;font-size:30px;font-weight:800;color:#fff;margin-bottom:12px}
.cta-content p{color:rgba(255,255,255,.8);font-size:16px;margin-bottom:28px}
.btn-cta{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;background:#fff;color:var(--primary);border-radius:50px;font-size:15px;font-weight:700;box-shadow:var(--shadow-md);transition:all var(--transition)}
.btn-cta:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.btn-cta svg{width:18px;height:18px;stroke:currentColor}

/* ============================================================
   JOB LISTINGS VIEW
============================================================ */
.listings-layout{display:flex;gap:24px;max-width:1280px;margin:0 auto;padding:32px 24px;align-items:flex-start}
.filter-panel{width:260px;flex-shrink:0;background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:20px;position:sticky;top:88px}
.filter-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.filter-header h3{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.filter-header h3 svg{width:16px;height:16px;stroke:var(--primary)}
.clear-filters{font-size:13px;color:var(--primary);font-weight:500;cursor:pointer}
.clear-filters:hover{text-decoration:underline}
.filter-group{border-top:1px solid var(--border);padding:4px 0}
.filter-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 4px;font-size:14px;font-weight:600;color:var(--text);cursor:pointer}
.filter-group-toggle span{display:flex;align-items:center;gap:8px}
.filter-group-toggle span svg{width:14px;height:14px;stroke:var(--primary)}
.toggle-icon{width:16px;height:16px;stroke:var(--text-muted);transition:transform var(--transition)}
.filter-group.collapsed .toggle-icon{transform:rotate(-90deg)}
.filter-options{padding:4px 4px 12px;display:flex;flex-direction:column;gap:6px;transition:all var(--transition)}
.filter-group.collapsed .filter-options{display:none}
.filter-check{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-muted);cursor:pointer;padding:4px;border-radius:8px;transition:background var(--transition)}
.filter-check:hover{background:var(--bg);color:var(--primary)}
.filter-check input{accent-color:var(--primary);width:14px;height:14px}

.listings-main{flex:1;min-width:0}
.listings-top-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.listings-info h2{font-size:20px;font-weight:700}
.count-badge{display:inline-block;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:600;padding:3px 10px;border-radius:50px;margin-left:8px}
.listings-sort{display:flex;align-items:center;gap:10px}
.sort-select{padding:8px 14px;border:1.5px solid var(--border);border-radius:10px;font-size:14px;color:var(--text);background:#fff;cursor:pointer}
.filter-toggle-btn{display:flex;align-items:center;gap:6px;padding:8px 16px;border:1.5px solid var(--border);border-radius:10px;font-size:14px;font-weight:500;background:#fff}
.filter-toggle-btn svg{width:14px;height:14px;stroke:currentColor}
.jobs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}

/* Skeleton */
@keyframes shimmer{0%{background-position:-600px 0}100%{background-position:600px 0}}
.skeleton-card{height:220px;border-radius:var(--radius-lg);background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:600px 100%;animation:shimmer 1.5s infinite linear}

/* Empty state */
.empty-state{text-align:center;padding:80px 24px;background:#fff;border-radius:var(--radius-lg);border:1.5px dashed var(--border)}
.empty-icon{width:80px;height:80px;background:var(--bg);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}
.empty-icon svg{width:36px;height:36px;stroke:var(--text-muted)}
.empty-state h3{font-size:20px;font-weight:700;margin-bottom:8px}
.empty-state p{color:var(--text-muted);margin-bottom:24px}

/* Mobile filter overlay */
.mobile-filter-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:900}
.mobile-filter-overlay.open{display:block}
.filter-apply-btn{width:100%;margin-top:12px;justify-content:center}

/* ============================================================
   JOB DETAIL VIEW
============================================================ */
.detail-container{max-width:1100px;margin:0 auto;padding:32px 24px}
.back-btn{display:inline-flex;align-items:center;gap:8px;color:var(--text-muted);font-size:14px;font-weight:500;margin-bottom:24px;padding:8px 0;transition:color var(--transition)}
.back-btn:hover{color:var(--primary)}
.back-btn svg{width:16px;height:16px;stroke:currentColor}
.detail-layout{display:grid;grid-template-columns:1fr 340px;gap:28px;align-items:flex-start}
.detail-left{display:flex;flex-direction:column;gap:20px}
.detail-job-header{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:28px}
.detail-section{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:28px}
.detail-section h3{font-size:18px;font-weight:700;margin-bottom:16px;color:var(--text)}
.detail-right{display:flex;flex-direction:column;gap:16px;position:sticky;top:88px}
.detail-apply-card{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:24px}
.detail-company-card{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:20px}
.detail-meta-row{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--text-muted);margin-bottom:12px}
.detail-meta-row svg{width:16px;height:16px;stroke:var(--primary)}
.detail-meta-row strong{color:var(--text)}
.btn-apply-lg{width:100%;padding:14px;background:var(--primary);color:#fff;border-radius:var(--radius);font-size:16px;font-weight:700;text-align:center;transition:all var(--transition);margin-bottom:10px;display:block}
.btn-apply-lg:hover{background:var(--primary-dark)}
.btn-share{width:100%;padding:12px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;font-weight:500;color:var(--text-muted);display:flex;align-items:center;justify-content:center;gap:6px;transition:all var(--transition)}
.btn-share:hover{border-color:var(--primary);color:var(--primary)}
.btn-share svg{width:14px;height:14px;stroke:currentColor}
.salary-highlight{font-size:26px;font-weight:800;color:var(--primary);margin-bottom:4px}
.salary-period{font-size:13px;color:var(--text-muted)}
.detail-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.detail-tag{background:var(--bg);border:1px solid var(--border);border-radius:50px;font-size:12px;font-weight:600;color:var(--text-muted);padding:5px 12px}
.jd-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}
.jd-list li{display:flex;gap:10px;font-size:14px;color:var(--text);line-height:1.6}
.jd-list li::before{content:'✓';color:var(--success);font-weight:800;flex-shrink:0;margin-top:1px}

/* ============================================================
   POST JOB WIZARD
============================================================ */
.wizard-container{max-width:760px;margin:0 auto;padding:40px 24px}
.wizard-header{text-align:center;margin-bottom:36px}
.wizard-header h2{font-family:'Poppins',sans-serif;font-size:28px;font-weight:800;margin-bottom:8px}
.wizard-header p{color:var(--text-muted);font-size:15px}
.wizard-progress{margin-bottom:40px}
.progress-track{height:4px;background:var(--border);border-radius:4px;margin-bottom:16px;overflow:hidden}
.progress-fill{height:100%;background:var(--primary);border-radius:4px;transition:width .4s ease;width:20%}
.progress-steps{display:flex;justify-content:space-between}
.progress-step{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}
.step-num{width:30px;height:30px;border-radius:50%;background:var(--border);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--text-muted);transition:all var(--transition)}
.step-label{font-size:11px;color:var(--text-muted);font-weight:500;text-align:center}
.progress-step.active .step-num{background:var(--primary);color:#fff}
.progress-step.done .step-num{background:var(--success);color:#fff}
.progress-step.active .step-label,.progress-step.done .step-label{color:var(--primary);font-weight:600}

.wizard-step{display:none;background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:36px}
.wizard-step.active{display:block}
.wizard-step h3{font-size:22px;font-weight:700;margin-bottom:6px}
.step-subtitle{color:var(--text-muted);margin-bottom:28px}
.wizard-categories{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:32px}
.wiz-cat-card{border:2px solid var(--border);border-radius:var(--radius);padding:16px 12px;text-align:center;cursor:pointer;transition:all var(--transition)}
.wiz-cat-card:hover{border-color:var(--primary);background:var(--primary-soft)}
.wiz-cat-card.selected{border-color:var(--primary);background:var(--primary-soft)}
.wiz-cat-card .cat-icon{font-size:28px;margin-bottom:8px}
.wiz-cat-card .cat-name{font-size:12px;font-weight:600;color:var(--text)}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:28px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group.full{grid-column:1/-1}
.form-label{font-size:14px;font-weight:600;color:var(--text)}
.required{color:var(--error)}
.form-input{padding:12px 14px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;color:var(--text);background:#fff;transition:border var(--transition)}
.form-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.form-input:disabled,.form-input[disabled]{opacity:.45;cursor:not-allowed;background:#f1f5f9;border-color:var(--border)}
.form-input.textarea{resize:vertical;min-height:120px}
.input-prefix{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border var(--transition)}
.input-prefix:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.input-prefix span{padding:12px 14px;background:var(--bg);font-size:14px;color:var(--text-muted);font-weight:500;border-right:1.5px solid var(--border)}
.input-prefix input{flex:1;border:none;padding:12px 14px;font-size:14px;color:var(--text);background:transparent}

.chip-group{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:8px 16px;border:1.5px solid var(--border);border-radius:50px;font-size:13px;font-weight:500;color:var(--text-muted);transition:all var(--transition)}
.chip:hover{border-color:var(--primary);color:var(--primary)}
.chip.active{border-color:var(--primary);background:var(--primary);color:#fff}

.wizard-nav{display:flex;align-items:center;justify-content:space-between;padding-top:24px;border-top:1px solid var(--border);margin-top:8px}
.btn-primary{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:var(--primary);color:#fff;border-radius:var(--radius);font-size:14px;font-weight:700;transition:all var(--transition)}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-1px)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn-primary svg{width:16px;height:16px;stroke:#fff}
.btn-outline{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;font-weight:600;color:var(--text);transition:all var(--transition)}
.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-outline svg{width:16px;height:16px;stroke:currentColor}
.btn-success{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;background:var(--success);color:#fff;border-radius:var(--radius);font-size:15px;font-weight:700;transition:all var(--transition)}
.btn-success:hover{background:#16a34a;transform:translateY(-1px)}
.btn-success svg{width:16px;height:16px;stroke:#fff}
.full-width{width:100%;justify-content:center}

.privacy-note{flex-direction:row;align-items:center;gap:8px;background:var(--bg);border-radius:var(--radius);padding:12px 14px}
.privacy-note svg{width:16px;height:16px;stroke:var(--primary);flex-shrink:0}
.privacy-note span{font-size:13px;color:var(--text-muted)}

.preview-card{background:var(--bg);border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:24px;margin-bottom:20px}
.preview-note{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);margin-bottom:28px}
.preview-note svg{width:16px;height:16px;stroke:var(--primary)}

/* ============================================================
   EMPLOYER DASHBOARD
============================================================ */
.dashboard-layout{display:flex;min-height:calc(100vh - 68px)}
.dashboard-sidebar{width:260px;background:#fff;border-right:1px solid var(--border);padding:24px 16px;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:68px;height:calc(100vh - 68px)}
.sidebar-profile{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg);border-radius:var(--radius);margin-bottom:24px}
.sidebar-avatar{width:44px;height:44px;background:var(--primary);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:16px;flex-shrink:0}
.sidebar-name{font-size:14px;font-weight:700;color:var(--text)}
.sidebar-email{font-size:12px;color:var(--text-muted);margin-top:2px}
.sidebar-nav{display:flex;flex-direction:column;gap:4px;flex:1}
.sidebar-link{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:var(--radius);font-size:14px;font-weight:500;color:var(--text-muted);transition:all var(--transition);text-align:left;position:relative}
.sidebar-link:hover{background:var(--bg);color:var(--primary)}
.sidebar-link.active{background:var(--primary-soft);color:var(--primary);font-weight:600}
.sidebar-link svg{width:18px;height:18px;stroke:currentColor;flex-shrink:0}
.sidebar-badge{margin-left:auto;background:var(--error);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:50px}
.sidebar-logout{display:flex;align-items:center;gap:8px;padding:11px 14px;color:var(--text-muted);font-size:13px;font-weight:500;border-radius:var(--radius);transition:all var(--transition);margin-top:auto}
.sidebar-logout:hover{background:#fff1f2;color:var(--error)}
.sidebar-logout svg{width:16px;height:16px;stroke:currentColor}

.dashboard-main{flex:1;padding:32px;overflow-y:auto;min-width:0}
.dash-tab{display:none}
.dash-tab.active{display:block}
.dash-welcome{margin-bottom:28px}
.dash-welcome h2{font-size:24px;font-weight:700;margin-bottom:6px}
.dash-welcome p{color:var(--text-muted);font-size:15px}

.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:32px}
.stat-card{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:20px;display:flex;align-items:flex-start;gap:14px;transition:all var(--transition)}
.stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.stat-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-icon svg{width:22px;height:22px}
.stat-value{font-size:28px;font-weight:800;color:var(--text);line-height:1}
.stat-label{font-size:13px;color:var(--text-muted);margin-top:4px}
.stat-trend{font-size:12px;font-weight:600;color:var(--success);margin-top:auto;padding-top:4px}
.stat-trend.up::before{content:'↑ '}

.dash-section{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:24px}
.dash-section-title{font-size:17px;font-weight:700;margin-bottom:16px}
.dash-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.dash-section-header h2{font-size:22px;font-weight:700}

.applicant-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden}
.applicant-table{width:100%;border-collapse:collapse;font-size:14px}
.applicant-table thead tr{background:var(--bg)}
.applicant-table th{padding:12px 16px;font-weight:600;color:var(--text-muted);text-align:left;border-bottom:1px solid var(--border)}
.applicant-table td{padding:14px 16px;border-bottom:1px solid var(--border);color:var(--text)}
.applicant-table tr:last-child td{border-bottom:none}
.applicant-table tr:hover td{background:var(--bg)}
.applicant-name{display:flex;align-items:center;gap:10px}
.a-avatar{width:34px;height:34px;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.badge{display:inline-block;padding:3px 10px;border-radius:50px;font-size:11px;font-weight:700}
.badge-new{background:#dbeafe;color:#1d4ed8}
.badge-review{background:#fef3c7;color:#92400e}
.badge-shortlisted{background:#dcfce7;color:#166534}
.badge-rejected{background:#fee2e2;color:#991b1b}
.btn-xs{padding:5px 12px;background:var(--bg);border:1.5px solid var(--border);border-radius:8px;font-size:12px;font-weight:600;transition:all var(--transition)}
.btn-xs:hover{border-color:var(--primary);color:var(--primary)}

.my-jobs-list{display:flex;flex-direction:column;gap:12px}
.my-job-item{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;transition:all var(--transition)}
.my-job-item:hover{border-color:var(--primary);box-shadow:var(--shadow-sm)}
.my-job-title{font-size:15px;font-weight:700}
.my-job-meta{font-size:13px;color:var(--text-muted);margin-top:2px}
.job-status{font-size:12px;font-weight:600;padding:4px 12px;border-radius:50px}
.status-active{background:#dcfce7;color:#166534}
.status-paused{background:#fef9c3;color:#92400e}
.my-job-actions{display:flex;gap:8px}

.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);padding:28px}
.settings-form .form-group.full{grid-column:1/-1}

/* ============================================================
   AUTH VIEW
============================================================ */
.auth-container{max-width:420px;margin:60px auto;padding:24px}
.auth-card{background:#fff;border-radius:var(--radius-xl);border:1.5px solid var(--border);box-shadow:var(--shadow-lg);padding:36px}
.auth-logo{text-align:center;margin-bottom:28px}
.auth-logo h2{font-size:22px;font-weight:700;margin:12px 0 4px}
.auth-logo p{font-size:14px;color:var(--text-muted)}
.auth-tabs{display:flex;background:var(--bg);border-radius:12px;padding:4px;margin-bottom:24px}
.auth-tab{flex:1;padding:10px;border-radius:10px;font-size:14px;font-weight:600;color:var(--text-muted);transition:all var(--transition)}
.auth-tab.active{background:#fff;color:var(--primary);box-shadow:var(--shadow-sm)}
.auth-divider{text-align:center;color:var(--text-muted);font-size:13px;margin:16px 0;position:relative}
.auth-divider::before,.auth-divider::after{content:'';position:absolute;top:50%;width:42%;height:1px;background:var(--border)}
.auth-divider::before{left:0}
.auth-divider::after{right:0}
.btn-google{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;font-weight:500;transition:all var(--transition)}
.btn-google:hover{border-color:var(--primary)}
.btn-google img{width:18px;height:18px}
.auth-footer{text-align:center;font-size:13px;color:var(--text-muted);margin-top:16px}
.auth-footer a{color:var(--primary);font-weight:600;cursor:pointer}
.auth-dismiss{text-align:center;margin-top:16px;color:var(--text-muted);font-size:14px;cursor:pointer;transition:color var(--transition)}
.auth-dismiss:hover{color:var(--primary)}

.role-selector{display:flex;gap:12px;margin-bottom:20px}
.role-option{flex:1;border:2px solid var(--border);border-radius:var(--radius);padding:14px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-muted);transition:all var(--transition)}
.role-option:hover,.role-option.active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.role-option svg{width:20px;height:20px;stroke:currentColor}

/* ============================================================
   TOAST
============================================================ */
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--text);color:#fff;padding:14px 24px;border-radius:50px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;opacity:0;pointer-events:none;transition:all .4s;z-index:9999}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast svg{width:16px;height:16px;stroke:var(--success)}

/* ============================================================
   MOBILE BOTTOM NAV
   Grid locked to 5 columns. Any JS-injected extra button
   is hidden via :nth-child(n+6) — bulletproof regardless
   of which direction it tries to appear.
============================================================ */
.mobile-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border);padding:6px 0 max(4px,env(safe-area-inset-bottom)) 0;z-index:999;grid-template-columns:repeat(5,1fr);align-items:flex-end;overflow:clip}
.mobile-bottom-nav > *:nth-child(n+6){display:none!important}
.mob-nav-btn{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:500;color:var(--text-muted);padding:4px 0;border-radius:12px;transition:color .2s,opacity .2s;width:100%;will-change:color;background:none;border:none}
.mob-nav-btn svg{width:22px;height:22px;stroke:currentColor;flex-shrink:0}
.mob-nav-btn.active{color:var(--primary)}
.mob-nav-btn.center{background:var(--primary);color:#fff;border-radius:14px;padding:7px 10px;margin-top:-10px;box-shadow:0 4px 14px rgba(37,99,235,.4);transition:opacity .2s;position:relative;z-index:2}
.mob-nav-btn.center svg{stroke:#fff}

/* Logged-in state: avatar circle in mobile bottom nav */
.mob-profile-avatar{width:26px;height:26px;border-radius:50%;background:var(--primary);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid var(--primary-soft)}

/* Desktop nav user pill (logged-in) */
.nav-user-pill{display:flex;align-items:center;gap:8px}
.nav-user-avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}


/* ============================================================
   UTILITIES
============================================================ */
.text-muted{color:var(--text-muted)}
.desktop-only{display:inherit}
.mobile-only{display:none}

/* ============================================================
   RESPONSIVE
============================================================ */
@media(max-width:1024px){
  .listings-layout{flex-direction:column}
  .filter-panel{
    width:100%;position:fixed;top:0;left:0;right:0;bottom:0;
    overflow-y:auto;z-index:950;border-radius:0;
    transform:translateX(-100%);transition:transform .3s;
    height:100%;               /* fill viewport properly */
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); /* clear bottom nav */
  }
  .filter-panel.mobile-open{transform:translateX(0)}
  .detail-layout{grid-template-columns:1fr}
  .detail-right{position:static}
  .dashboard-sidebar{width:220px}
  .hero-illustration{display:none}
}

@media(max-width:768px){
  body{padding-bottom:55px}
  .desktop-only{display:none!important}
  .mobile-only{display:flex}
  .mobile-bottom-nav{display:grid}
  .hero{
    padding: 10px 14px 12px;          /* was 28px 20px 36px */
    border-bottom: 3px solid rgba(255,255,255,.08);
  }
  /* Compact badge — hidden to save space */
  .hero-badge { display: none; }

  /* Title: much smaller */
  .hero-title {
    font-size: 20px !important;
    line-height: 1.2;
    margin-bottom: 5px;
  }

  /* Subtitle: single compact line */
  .hero-subtitle {
    font-size: 11.5px !important;
    margin-bottom: 10px;
    line-height: 1.4;
    opacity: .85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  /* Promo strip: slim pill bar */
  .hero-promo-strip {
    padding: 8px 12px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
  }
  .promo-fire { font-size: 20px !important; }
  .promo-main { font-size: 12px !important; }
  .promo-main strong { font-size: 14px !important; }
  .promo-sub  { font-size: 10px !important; }
  .promo-cta-arrow { padding: 6px 12px !important; font-size: 11px !important; }

  /* Search: compact single-row */
  .hero-search-box {
    flex-direction: row !important;
    padding: 4px 4px 4px 12px !important;
    border-radius: 50px !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
  }
  .hero-search-field input {
    font-size: 13px !important;
    padding: 7px 0 !important;
  }
  .hero-search-field svg { width: 15px !important; height: 15px !important; }
  .hero-search-btn {
    width: auto !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    white-space: nowrap;
  }
  .hero-search-btn svg { display: none; }

  /* Stats: hidden on mobile */
  .hero-stats { display: none; }
  .section-container{padding:48px 20px}
  .section-header-row{flex-direction:column;align-items:flex-start}
  .jobs-strip{grid-template-columns:1fr}
  .job-title{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
  .job-card-header{padding-right:46px}
  .how-grid{flex-direction:column;align-items:stretch}
  .how-arrow{display:none}
  .category-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
  .form-grid{grid-template-columns:1fr}
  .form-group.full{grid-column:auto}
  .wizard-container{padding:24px 16px}
  .wizard-step{padding:24px 16px}
  .dashboard-layout{flex-direction:column}
  .dashboard-sidebar{width:100%;position:static;height:auto;border-right:none;border-bottom:1px solid var(--border);padding:16px}
  .sidebar-nav{flex-direction:row;overflow-x:auto;gap:8px}
  .sidebar-link{flex-direction:column;min-width:fit-content;font-size:12px;gap:4px;padding:8px 12px}
  .sidebar-logout{display:none}
  .dashboard-main{padding:20px 16px}
  .stats-grid{grid-template-columns:1fr 1fr}
  .auth-container{margin:20px auto;padding:16px}
  .settings-form{grid-template-columns:1fr}
  .listings-layout{padding:16px}
  .detail-container{padding:20px 16px}
  .navbar-inner{padding:0 8px 0 12px;max-width:100vw;gap:6px;height:72px}
  .nav-hamburger{flex-shrink:0;width:34px;height:34px}
  .hire-ticker-col{display:none}
  .progress-steps .step-label{display:none}
  /* Smaller logo on mobile */
  .nav-logo img.qyukit-nav-logo{height:56px!important;width:auto!important;max-width:180px!important}
  .nav-logo{gap:6px}
  /* Sell+Buy and Hire Me buttons — bigger, labelled, highlighted */
  .btn-sellbuy-nav{padding:9px 13px;font-size:12px;font-weight:800;gap:5px;border-radius:50px;box-shadow:0 3px 10px rgba(0,0,0,.18)}
  .btn-sellbuy-nav svg{width:15px;height:15px}
  .btn-sellbuy-nav span{display:inline}
}

/* ============================================================
   PWA INSTALL BUTTON  (mobile navbar only)
   — sits in flex gap between logo and action buttons
   — logo size, Sell+Buy, Hire Me sizes unchanged
============================================================ */
/* Base: hidden everywhere */
.pwa-install-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(34,197,94,.4);
  transition: transform .18s, box-shadow .18s;
  letter-spacing: .2px;
  min-width: 44px;
  position: relative;
}
/* Mobile only: ALWAYS visible — !important prevents any override */
@media (max-width: 600px) {
  .pwa-install-btn { display: flex !important; }
}
/* Desktop: always hidden */
@media (min-width: 601px) {
  .pwa-install-btn { display: none !important; }
}
.pwa-install-btn:hover  { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(34,197,94,.55); }
.pwa-install-btn:active { transform: scale(.96); }
.pwa-install-icon { font-size: 16px; line-height: 1; }
.pwa-install-label { font-size: 9px; font-weight: 800; line-height: 1; opacity: .9; }

/* Pulse ring animation */
.pwa-install-btn.pwa-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid #22c55e;
  animation: pwaRing 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pwaRing {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.5); opacity: 0;  }
}
/* Tooltip */
.pwa-install-btn.pwa-pulse::before {
  content: 'Add to Home Screen';
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 9999;
}



/* ============================================================
   CHAT WINDOW MODAL
============================================================ */
@keyframes chatSlideUp{from{opacity:0;transform:translateY(40px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dotBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}
@keyframes wizardShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
@keyframes phonePulse{0%,100%{transform:scale(1) rotate(-8deg)}25%{transform:scale(1.15) rotate(8deg)}50%{transform:scale(1) rotate(-8deg)}}
@keyframes ringExpand{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.2);opacity:0}}
@keyframes liveBlink{0%,100%{opacity:1}50%{opacity:.5}}

.chat-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:2000;display:none;align-items:flex-end;justify-content:flex-end;padding:0 24px 24px}
.chat-overlay.open{display:flex}

.chat-modal{width:400px;max-width:100%;height:600px;max-height:calc(100vh - 100px);background:#fff;border-radius:var(--radius-xl);box-shadow:0 24px 80px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden;animation:chatSlideUp .3s cubic-bezier(.34,1.56,.64,1) forwards}

/* Header */
.chat-header{background:var(--primary);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.chat-header-info{display:flex;align-items:center;gap:12px}
.chat-employer-avatar{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.2);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:2px solid rgba(255,255,255,.3)}
.chat-employer-name{font-size:15px;font-weight:700;color:#fff}
.chat-job-title-small{font-size:12px;color:rgba(255,255,255,.75);margin-top:2px}
.chat-header-actions{display:flex;align-items:center;gap:8px}
/* Live phone icon */
.live-phone-wrap{position:relative;width:36px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.live-phone-ring{position:absolute;inset:0;border-radius:50%;border:2px solid #4ade80;animation:ringExpand 1.6s ease-out infinite}
.live-phone-ring.ring2{animation-delay:.8s}
.live-phone-icon{position:relative;z-index:1;width:18px;height:18px;fill:#4ade80;animation:phonePulse 1.8s ease-in-out infinite;filter:drop-shadow(0 0 4px #4ade80)}
.live-badge{background:#4ade80;color:#14532d;font-size:10px;font-weight:800;padding:3px 8px;border-radius:50px;letter-spacing:.5px;animation:liveBlink 2s ease-in-out infinite}
.chat-close-btn{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;color:#fff;transition:background var(--transition);flex-shrink:0}
.chat-close-btn:hover{background:rgba(255,255,255,.25)}

/* Role switcher bar */
.chat-role-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:#f9fafb;border-bottom:1px solid var(--border);flex-shrink:0;gap:8px}
.chat-role-label{font-size:11px;font-weight:600;color:var(--text-muted);white-space:nowrap}
.chat-role-tabs{display:flex;gap:4px;background:var(--border);border-radius:8px;padding:3px}
.chat-role-tab{display:flex;align-items:center;gap:5px;padding:5px 12px;border-radius:6px;font-size:11px;font-weight:600;color:var(--text-muted);transition:all var(--transition)}
.chat-role-tab svg{flex-shrink:0}
.chat-role-tab.active{background:#fff;color:var(--primary);box-shadow:0 1px 4px rgba(0,0,0,.1)}

/* Job Banner */
.chat-job-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--primary-soft);border-bottom:1px solid var(--border);flex-shrink:0}
.chat-job-banner-icon{font-size:22px}
.chat-job-banner-title{font-size:13px;font-weight:700;color:var(--text)}
.chat-job-banner-salary{font-size:12px;color:var(--text-muted);margin-top:1px}
.chat-applied-badge{margin-left:auto;background:var(--success);color:#fff;font-size:11px;font-weight:700;padding:4px 10px;border-radius:50px;white-space:nowrap;flex-shrink:0}

/* Messages */
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.chat-messages::-webkit-scrollbar{width:4px}
.chat-messages::-webkit-scrollbar-track{background:transparent}
.chat-messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}

.chat-msg{display:flex;align-items:flex-end;gap:8px;max-width:85%}
.chat-msg.sent{align-self:flex-end;flex-direction:row-reverse}
.chat-msg.received{align-self:flex-start}
.chat-msg-avatar{width:28px;height:28px;border-radius:8px;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-msg.received .chat-msg-avatar{background:var(--primary-soft);color:var(--primary)}
.chat-msg.sent .chat-msg-avatar{background:var(--accent);color:#fff}
.chat-bubble{padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.5;word-break:break-word}
.chat-msg.received .chat-bubble{background:var(--bg);color:var(--text);border-radius:4px 18px 18px 18px;border:1px solid var(--border)}
.chat-msg.sent .chat-bubble{background:var(--primary);color:#fff;border-radius:18px 4px 18px 18px}
.chat-msg-info{display:flex;flex-direction:column;gap:3px}
.chat-time{font-size:10px;color:var(--text-light);padding:0 4px}
.chat-msg.sent .chat-time{text-align:right}

/* System message */
.chat-system-msg{text-align:center;font-size:12px;color:var(--text-muted);background:var(--bg);border-radius:50px;padding:6px 14px;margin:0 auto;border:1px solid var(--border)}

/* Typing indicator */
.chat-typing{display:flex;align-items:center;gap:8px;padding:0 16px 8px;flex-shrink:0}
.chat-typing-avatar{width:28px;height:28px;border-radius:8px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.typing-bubble{background:var(--bg);border:1px solid var(--border);border-radius:18px;padding:10px 14px;display:flex;gap:4px;align-items:center}
.typing-bubble span{width:6px;height:6px;background:var(--text-muted);border-radius:50%;animation:dotBounce 1.2s infinite}
.typing-bubble span:nth-child(2){animation-delay:.2s}
.typing-bubble span:nth-child(3){animation-delay:.4s}

/* Input */
.chat-input-area{padding:12px 16px;border-top:1px solid var(--border);flex-shrink:0;background:#fff}
.chat-input-wrap{display:flex;align-items:center;gap:8px;background:var(--bg);border:1.5px solid var(--border);border-radius:50px;padding:6px 6px 6px 16px;transition:border var(--transition)}
.chat-input-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.chat-input{flex:1;border:none;background:transparent;font-size:14px;color:var(--text);padding:6px 0}
.chat-input::placeholder{color:var(--text-muted)}
.chat-send-btn{width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;transition:all var(--transition);flex-shrink:0}
.chat-send-btn:hover{background:var(--primary-dark);transform:scale(1.08)}
.chat-send-btn svg{stroke:#fff}
.chat-input-note{font-size:11px;color:var(--text-light);text-align:center;margin-top:8px}

/* Name prompt overlay (inside chat) */
.chat-name-prompt{position:absolute;inset:0;background:rgba(255,255,255,.96);border-radius:var(--radius-xl);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;text-align:center;z-index:10}
.chat-name-prompt h3{font-size:18px;font-weight:700}
.chat-name-prompt p{font-size:14px;color:var(--text-muted)}
.chat-name-input{width:100%;padding:12px 16px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:15px;color:var(--text);transition:border var(--transition)}
.chat-name-input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px var(--primary-soft)}

/* Mobile */
@media(max-width:768px){
  .chat-overlay{padding:0;align-items:flex-end;justify-content:center}
  .chat-modal{width:100%;height:85vh;max-height:85vh;border-radius:var(--radius-xl) var(--radius-xl) 0 0}
}

/* ============================================================
   PAYMENT MODAL
============================================================ */
@keyframes paySlideUp{from{opacity:0;transform:translateY(60px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes successPop{0%{transform:scale(0)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes rippleGrow{0%{transform:scale(1);opacity:.4}100%{transform:scale(3.5);opacity:0}}
@keyframes paySpinner{to{transform:rotate(360deg)}}

.pay-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:3000;display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(6px)}
.pay-overlay.open{display:flex}
.pay-modal{background:#fff;border-radius:var(--radius-xl);width:460px;max-width:100%;max-height:92vh;overflow-y:auto;box-shadow:0 32px 100px rgba(0,0,0,.3);animation:paySlideUp .35s cubic-bezier(.34,1.56,.64,1) forwards}
.pay-modal::-webkit-scrollbar{width:4px}
.pay-modal::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}

/* Header */
.pay-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border)}
.pay-header-title{font-size:18px;font-weight:800;color:var(--text)}
.pay-header-sub{font-size:12px;color:var(--text-muted);margin-top:2px}
.pay-close-btn{width:32px;height:32px;border-radius:8px;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:all var(--transition)}
.pay-close-btn:hover{border-color:var(--error);color:var(--error)}

/* Order Summary */
.pay-summary{background:var(--primary-soft);border-radius:var(--radius);padding:14px 16px;margin:16px 24px;border:1px solid #bfdbfe}
.pay-summary-title{font-size:12px;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.pay-summary-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--text);margin-bottom:4px}
.pay-summary-row.small{font-size:12px}
.pay-summary-row.total{margin-top:8px;padding-top:10px;border-top:1px solid #bfdbfe;font-weight:700;font-size:15px}
.pay-summary-divider{height:1px;background:var(--border);margin:8px 0}
.pay-amount{font-size:22px;font-weight:900;color:var(--primary)}
.pay-only{font-size:13px;font-weight:600;background:var(--accent);color:#fff;border-radius:50px;padding:1px 8px;margin-left:4px}

/* Method Tabs */
.pay-method-tabs{display:flex;gap:8px;padding:0 24px;margin-bottom:16px}
.pay-tab{flex:1;padding:10px 8px;border:2px solid var(--border);border-radius:var(--radius);font-size:13px;font-weight:600;color:var(--text-muted);transition:all var(--transition)}
.pay-tab:hover{border-color:var(--primary);color:var(--primary)}
.pay-tab.active{border-color:var(--primary);background:var(--primary);color:#fff}

/* Tab Content */
.pay-tab-content{padding:0 24px}
.pay-upi-qr{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:16px}
.qr-placeholder{width:120px;height:120px;border-radius:12px;border:2px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;background:#fff}
.qr-label{font-size:11px;font-weight:600;color:var(--text-muted)}
.pay-or{font-size:12px;color:var(--text-muted);font-weight:500}

/* Inputs */
.pay-input-group{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.pay-input-group label{font-size:12px;font-weight:700;color:var(--text)}
.pay-input{padding:11px 14px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;color:var(--text);font-family:inherit;transition:border var(--transition)}
.pay-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.pay-card-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* Net Banking */
.pay-bank-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.pay-bank-card{padding:10px 6px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:11px;font-weight:600;text-align:center;cursor:pointer;transition:all var(--transition);color:var(--text-muted)}
.pay-bank-card:hover,.pay-bank-card.selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}

/* Pay Button */
.pay-btn{width:calc(100% - 48px);margin:0 24px 12px;padding:16px;background:linear-gradient(135deg,var(--primary) 0%,#7c3aed 100%);color:#fff;border-radius:var(--radius);font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:10px;transition:all var(--transition);box-shadow:0 8px 24px rgba(37,99,235,.4)}
.pay-btn:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(37,99,235,.5)}
.pay-btn:active{transform:translateY(0)}
.pay-spinner{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:paySpinner .7s linear infinite}

/* Security */
.pay-security{display:flex;justify-content:center;gap:16px;padding:0 24px 20px;font-size:11px;color:var(--text-muted);font-weight:500}

/* Success Screen */
.pay-success-wrap{padding:32px 24px;display:flex;flex-direction:column;align-items:center;text-align:center}
.pay-success-icon{position:relative;animation:successPop .5s cubic-bezier(.34,1.56,.64,1) forwards;margin-bottom:16px}
.pay-success-ripple{position:absolute;width:56px;height:56px;border-radius:50%;background:#22c55e;animation:rippleGrow 1.2s ease-out forwards;top:0;left:50%;transform:translateX(-50%)}
.pay-success-title{font-family:'Poppins',sans-serif;font-size:24px;font-weight:800;color:var(--text);margin-bottom:8px}
.pay-success-sub{font-size:14px;color:var(--text-muted);margin-bottom:24px;line-height:1.6}
.pay-success-card{width:100%;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:16px;margin-bottom:16px;text-align:left}
.pay-success-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:6px 0;border-bottom:1px solid var(--border)}
.pay-success-row:last-child{border-bottom:none}
.pay-success-row span{color:var(--text-muted)}
.pay-success-msg{font-size:13px;color:var(--text-muted);background:#f0fdf4;border:1px solid #bbf7d0;border-radius:var(--radius);padding:12px 16px;line-height:1.6;text-align:left;width:100%}

@media(max-width:768px){
  .pay-modal{width:100%;border-radius:var(--radius-xl) var(--radius-xl) 0 0;position:fixed;bottom:0}
  .pay-overlay{align-items:flex-end;padding:0}
  .pay-bank-grid{grid-template-columns:repeat(2,1fr)}
}

/* ============================================================
   JOB EXPIRY — My Jobs Dashboard
============================================================ */
.my-job-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-lg);margin-bottom:12px;transition:box-shadow var(--transition)}
.my-job-item:hover{box-shadow:0 4px 16px rgba(0,0,0,.06)}
.my-job-item.job-expired{opacity:.65;background:#fafafa;border-color:#e5e5e5}
.my-job-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:4px}
.my-job-meta{font-size:12px;color:var(--text-muted);margin-bottom:8px}
.my-job-actions{display:flex;gap:6px}

/* Expiry progress bar */
.expiry-bar-wrap{height:4px;background:var(--border);border-radius:4px;overflow:hidden;margin-top:6px;width:180px;max-width:100%}
.expiry-bar{height:100%;border-radius:4px;transition:width 1s ease}

/* Status badges */
.job-status{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:4px 12px;border-radius:50px;white-space:nowrap}
.status-active{background:#dcfce7;color:#15803d}
.status-paused{background:#fef9c3;color:#b45309}
.status-expired{background:#fee2e2;color:#b91c1c}

/* Buttons */
.btn-xs{padding:6px 12px;border:1.5px solid var(--border);border-radius:8px;font-size:12px;font-weight:600;color:var(--text-muted);background:transparent;cursor:pointer;transition:all var(--transition)}
.btn-xs:hover{border-color:var(--primary);color:var(--primary)}
.btn-republish{border-color:var(--primary)!important;color:var(--primary)!important;background:var(--primary-soft)!important}
.btn-republish:hover{background:var(--primary)!important;color:#fff!important}

/* Category card active state */
.category-card.active{border:2px solid var(--primary)!important;background:var(--primary-soft)!important;box-shadow:0 0 0 3px rgba(59,130,246,.15)!important}
.category-card.active .category-name{color:var(--primary)!important;font-weight:700}

/* ============================================================
   MIGRANT & GENERAL WORKER JOBS — Special Section
============================================================ */
.migrant-section-wrapper{
  margin:0 0 32px;
  padding:32px 24px 24px;
  background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 50%,#fde68a 100%);
  border-top:4px solid #f59e0b;
  border-bottom:4px solid #f59e0b;
  position:relative;
  overflow:hidden;
}
.migrant-section-wrapper::before{
  content:'';
  position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}

/* Header */
.migrant-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  gap:16px;
}
.migrant-header-left{flex:1}
.migrant-badge{
  display:inline-flex;
  align-items:center;
  background:#f59e0b;
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:4px 12px;
  border-radius:50px;
  letter-spacing:.5px;
  margin-bottom:10px;
}
.migrant-title-en{
  font-family:'Poppins',sans-serif;
  font-size:clamp(18px,3vw,26px);
  font-weight:800;
  color:#92400e;
  line-height:1.2;
  margin-bottom:4px;
}
.migrant-title-ml{
  font-size:clamp(15px,2.5vw,20px);
  font-weight:600;
  color:#b45309;
  margin-bottom:2px;
  font-family:'Noto Sans Malayalam',sans-serif;
}
.migrant-title-hi{
  font-size:clamp(14px,2.2vw,18px);
  font-weight:500;
  color:#b45309;
  margin-bottom:8px;
  font-family:'Noto Sans Devanagari',sans-serif;
}
.migrant-desc{
  font-size:13px;
  color:#78350f;
  font-weight:500;
}
.migrant-header-icons{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  flex-shrink:0;
}
.mh-icon{font-size:42px;line-height:1;filter:drop-shadow(0 2px 4px rgba(0,0,0,.15))}
.mh-icon-sm{font-size:28px}
.mh-icon-xs{font-size:20px}

/* Sub-category grid */
.migrant-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-bottom:16px;
}

/* Each card */
.m-cat-card{
  background:#fff;
  border-radius:14px;
  padding:16px 10px 14px;
  text-align:center;
  cursor:pointer;
  border:2px solid transparent;
  box-shadow:0 2px 8px rgba(245,158,11,.15);
  transition:all .22s ease;
  position:relative;
  overflow:hidden;
}
.m-cat-card::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(245,158,11,.04),transparent);
}
.m-cat-card:hover{
  border-color:#f59e0b;
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(245,158,11,.3);
}
.m-cat-card:active{transform:scale(.97)}
.m-cat-card.active{
  border-color:#f59e0b;
  background:#fffbeb;
  box-shadow:0 0 0 3px rgba(245,158,11,.25),0 4px 16px rgba(245,158,11,.2);
}
.m-cat-icon{
  font-size:34px;
  line-height:1;
  margin-bottom:8px;
  display:block;
}
.m-cat-name{
  font-size:12px;
  font-weight:700;
  color:#1e293b;
  line-height:1.3;
  margin-bottom:6px;
}
.m-cat-count{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:#f59e0b;
  background:#fffbeb;
  border:1px solid #fde68a;
  border-radius:50px;
  padding:2px 10px;
}

/* Footer note */
.migrant-footer-note{
  text-align:center;
  font-size:12px;
  color:#92400e;
  background:rgba(245,158,11,.12);
  border-radius:8px;
  padding:8px 16px;
  margin-top:4px;
}

/* ---- RESPONSIVE — Migrant Section ---- */
@media(max-width:900px){
  .migrant-grid{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:640px){
  /* Wrapper */
  .migrant-section-wrapper{
    padding:16px 14px 14px;
    margin:0 0 20px;
  }

  /* Header: compact row — emoji icon inline beside title */
  .migrant-header{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
  }
  .migrant-header-left{min-width:0}

  /* Inline emoji badge next to section title */
  .migrant-header-icons{
    display:flex;
    flex-direction:row;
    gap:2px;
    align-items:center;
    flex-shrink:0;
  }
  .mh-icon{font-size:28px;line-height:1}
  .mh-icon-sm,.mh-icon-xs{display:none}

  /* Title & text sizing */
  .migrant-badge{font-size:10px;padding:2px 10px;margin-bottom:6px}
  .migrant-title-en{font-size:15px;margin-bottom:2px;line-height:1.3}
  .migrant-title-ml{font-size:13px;margin-bottom:1px}
  .migrant-title-hi{font-size:11px;margin-bottom:4px}
  .migrant-desc{font-size:11px;color:#a16207;line-height:1.4}

  /* Grid: 2 columns, cards switch to HORIZONTAL layout */
  .migrant-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:7px;
    margin-bottom:10px;
    overflow:visible;
  }

  /* Each card: icon LEFT, text RIGHT — compact row */
  .m-cat-card{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:10px 10px;
    border-radius:10px;
    text-align:left;
    box-shadow:0 1px 5px rgba(245,158,11,.12);
  }
  .m-cat-card::after{display:none} /* remove inner pseudo glare */
  .m-cat-icon{
    font-size:24px;
    line-height:1;
    margin-bottom:0;
    flex-shrink:0;
  }
  .m-cat-name{
    font-size:11px;
    font-weight:700;
    color:#1e293b;
    line-height:1.3;
    margin-bottom:3px;
    flex:1;
    min-width:0;
  }
  .m-cat-count{
    font-size:10px;
    padding:1px 6px;
    display:block;
  }

  /* Footer note */
  .migrant-footer-note{
    font-size:11px;
    padding:6px 12px;
    border-radius:6px;
    text-align:center;
  }
}

@media(max-width:380px){
  .migrant-header-icons{display:none} /* hide emoji on very small screens */
  .migrant-grid{grid-template-columns:1fr 1fr;gap:5px}
  .m-cat-card{padding:8px;gap:6px}
  .m-cat-icon{font-size:20px}
  .m-cat-name{font-size:10px}
  .m-cat-count{font-size:9px}
}

/* ============================================================
   WIZARD STEP 1 — Category Selection Hints
============================================================ */

/* Pre-selection tip: "Tap a category above to select…" */
.cat-preselect-hint {
  margin: 14px 0 0;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
.cat-preselect-hint strong { color: var(--text); }

/* Post-selection banner: "Category selected! Click Next Step ↓" */
.cat-select-hint {
  display: none;            /* hidden until .visible is added */
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  animation: hintSlideIn .4s ease;
}
.cat-select-hint.visible { display: flex; }
.cat-hint-icon { font-size: 28px; flex-shrink: 0; animation: bounce 1s ease infinite; }
.cat-hint-text { font-size: 13px; color: #065f46; line-height: 1.6; }
.cat-hint-text strong { color: #047857; font-size: 14px; }

@keyframes hintSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Empty search shake */
.search-shake {
  border-color: var(--error) !important;
  animation: searchShake .4s ease;
}
@keyframes searchShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* ============================================================
   RAZORPAY PAYMENT MODAL — Branding
============================================================ */
.rzp-brand-row{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;margin-bottom:16px;
  background:#f0f7ff;border-radius:10px;border:1px solid #dbeafe;
}
.rzp-logo-img{width:22px;height:22px;border-radius:4px;object-fit:contain}
.rzp-brand-text{font-size:13px;color:#1e40af;flex:1}
.rzp-brand-text strong{font-weight:700}
.rzp-secure-chip{font-size:11px;font-weight:700;background:#bfdbfe;padding:3px 10px;border-radius:50px;color:#1d4ed8}

.rzp-methods{
  display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;
}
.rzp-method-chip{
  font-size:12px;font-weight:600;
  background:#f8fafc;border:1.5px solid #e2e8f0;
  border-radius:50px;padding:5px 14px;color:#475569;
}

/* Enhanced pay button for Razorpay */
.rzp-pay-btn{
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  font-size:16px !important;
  letter-spacing:.3px;
  box-shadow:0 4px 18px rgba(37,99,235,.4) !important;
}
.rzp-pay-btn:hover{ box-shadow:0 6px 24px rgba(37,99,235,.5) !important; }
.rzp-pay-btn span{display:flex;align-items:center;justify-content:center;gap:8px}
.rzp-btn-icon{width:20px;height:20px;border-radius:4px;object-fit:contain}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

/* ── Desktop / Tablet (>768px) ─ keep auto-fill grid ────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

/* ── Tablet / Large Mobile (≤768px) ─────────────────────── */
@media (max-width: 768px) {
  .nav-search,.location-selector,.nav-right .btn-ghost { display: none }
  .btn-post-job span { display: none }
  .navbar-inner { height: 64px; padding: 0 16px }
  .section-container { padding: 36px 16px }
  .section-title { font-size: 22px }
  .section-subtitle { font-size: 14px; margin-bottom: 20px }

  /* ── Category grid → 2-column vertical grid on mobile ── */
  .category-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
  }
  .category-card {
    flex: unset;
    min-width: unset;
    padding: 18px 12px;
    gap: 10px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .category-icon {
    width: 44px; height: 44px;
    font-size: 22px;
    flex-shrink: 0;
  }
  .category-name { font-size: 13px; font-weight: 600 }
  .category-count { font-size: 11px }

  /* Job cards → single column */
  .jobs-strip { grid-template-columns: 1fr; gap: 14px }

  /* Form → single column */
  .form-grid { grid-template-columns: 1fr }

  /* Dashboard */
  .dashboard-layout { flex-direction: column }
  .dashboard-sidebar { width: 100%; height: auto; position: static; padding: 12px 16px }
  .sidebar-profile { display: none }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px }
  .sidebar-link { padding: 8px 12px; font-size: 12px }
  .dashboard-main { padding: 16px }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px }

  /* Wizard */
  .wizard-step { padding: 20px 16px }
  .wizard-categories { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px }

  /* How it works */
  .how-grid { flex-direction: column }
  .how-card { max-width: 100% }
  .how-arrow { display: none }
}

/* ── Small Mobile (≤480px) ────────────────────────────── */
@media (max-width: 480px) {
  .section-title { font-size: 20px }
  .stat-value { font-size: 22px }
  .category-card { padding: 14px 10px; gap: 8px }
  .category-icon { width: 38px; height: 38px; font-size: 18px }
  .category-name { font-size: 12px }
  .category-count { font-size: 11px }
  .jd-title { font-size: 20px }
}

/* ============================================================
   AUTH / LOGIN VIEW
============================================================ */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 40px;
  width: 440px;
  max-width: 100%;
}
.auth-logo { font-size: 48px; text-align: center; margin-bottom: 12px; }
.auth-title { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; text-align: center; color: var(--text); margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

.auth-tabs { display: flex; border: 1.5px solid var(--border); border-radius: 10px; padding: 3px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; padding: 9px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-radius: 8px; cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--primary); color: #fff; }

.auth-error {
  background: #fff1f2; border: 1.5px solid #fecdd3; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--error); font-weight: 600;
  margin-bottom: 16px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.auth-field .req { color: var(--error); }
.auth-field input,
.auth-field select {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  color: var(--text); background: #fff; transition: border .2s;
}
.auth-field input:focus, .auth-field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.auth-submit {
  padding: 13px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-size: 15px;
  font-weight: 700; cursor: pointer; transition: all .2s; margin-top: 2px;
}
.auth-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; pointer-events: none; }
.auth-switch { font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Navbar user indicator */
.nav-user-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 50px; padding: 5px 12px 5px 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.nav-user-pill .nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

/* ============================================================
   LEGAL FOOTER
============================================================ */
.legal-footer {
  background: #0f172a;
  padding: 36px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.legal-footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.legal-footer-brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  letter-spacing: .3px;
}
.legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-footer-links button {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 50px;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}
.legal-footer-links button:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.legal-sep { display: none; }
.legal-footer-copy {
  font-size: 11.5px;
  color: rgba(255,255,255,.28);
  letter-spacing: .2px;
}


/* ============================================================
   LEGAL MODAL
============================================================ */
@keyframes legalSlideUp {
  from { opacity: 0; transform: translateY(50px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-overlay.open { display: flex; }

.legal-modal {
  background: #fff;
  border-radius: 20px;
  width: 620px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 100px rgba(0,0,0,.3);
  animation: legalSlideUp .3s cubic-bezier(.34,1.56,.64,1) forwards;
  overflow: hidden;
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.legal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
}
.legal-close-btn:hover { border-color: var(--error); color: var(--error); background: #fff1f2; }

.legal-modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  line-height: 1.75;
  font-size: 14.5px;
  color: var(--text);
}
.legal-modal-body::-webkit-scrollbar { width: 4px; }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Content typography */
.legal-modal-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.legal-modal-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.legal-modal-body p { margin-bottom: 12px; color: var(--text-muted); }
.legal-modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-modal-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.legal-modal-body ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.legal-modal-body a { color: var(--primary); text-decoration: underline; font-weight: 500; }
.legal-modal-body strong { color: var(--text); }

/* Contact info block */
.legal-contact-info {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.legal-contact-info p { margin-bottom: 6px; font-size: 14px; }
.legal-contact-info p:last-child { margin-bottom: 0; }

/* Contact form */
.legal-contact-form { display: flex; flex-direction: column; gap: 14px; }
.legal-form-group { display: flex; flex-direction: column; gap: 5px; }
.legal-form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.legal-form-group input,
.legal-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border .2s;
  resize: vertical;
}
.legal-form-group input:focus,
.legal-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.legal-submit-btn {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  align-self: flex-start;
}
.legal-submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.legal-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .legal-overlay { padding: 0; align-items: flex-end; }
  .legal-modal { border-radius: 20px 20px 0 0; max-height: 90vh; }
  .legal-footer-links { gap: 4px 2px; }
  .legal-footer-links button { font-size: 12px; padding: 3px 6px; }
  .legal-sep { display: none; }
}

/* ============================================================
   CHAT SYSTEM
============================================================ */

/* Nav badge dot */
.chat-nav-badge{position:absolute;top:2px;right:10px;min-width:16px;height:16px;background:var(--error);color:#fff;font-size:10px;font-weight:800;border-radius:50px;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #fff}

/* ── Inbox ── */
.chat-inbox-wrap{max-width:640px;margin:0 auto;display:flex;flex-direction:column;min-height:100vh;background:#fff}
.chat-inbox-header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:10}
.chat-inbox-header h2{font-size:18px;font-weight:700}
.chat-back-btn{width:36px;height:36px;border-radius:10px;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all var(--transition)}
.chat-back-btn:hover{border-color:var(--primary);color:var(--primary)}
.chat-back-btn svg{width:18px;height:18px;stroke:currentColor}
.chat-inbox-list{flex:1;overflow-y:auto}
.chat-inbox-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px;gap:12px;color:var(--text-muted);text-align:center}
.chat-inbox-empty svg{width:48px;height:48px;stroke:var(--border)}
.chat-inbox-empty p{font-weight:600;font-size:16px;margin:0}
.chat-inbox-empty small{font-size:13px}

.chat-inbox-item{display:flex;align-items:center;gap:14px;padding:14px 20px;cursor:pointer;border-bottom:1px solid var(--border);transition:background var(--transition)}
.chat-inbox-item:hover{background:var(--bg)}
.chat-inbox-item.unread-item{background:#f0f7ff}
.chat-inbox-avatar{width:46px;height:46px;border-radius:14px;background:var(--primary);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-inbox-body{flex:1;min-width:0}
.chat-inbox-name{font-size:14px;font-weight:700;color:var(--text);margin-bottom:2px}
.chat-inbox-job{font-size:12px;color:var(--primary);font-weight:600;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-inbox-preview{font-size:13px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unread-item .chat-inbox-preview{font-weight:600;color:var(--text)}
.chat-inbox-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.chat-inbox-time{font-size:11px;color:var(--text-light)}
.chat-inbox-badge{width:20px;height:20px;background:var(--primary);color:#fff;font-size:11px;font-weight:800;border-radius:50%;display:flex;align-items:center;justify-content:center}
.chat-inbox-inactive{font-size:10px;color:var(--text-light);background:var(--bg);border:1px solid var(--border);border-radius:50px;padding:2px 8px}

/* ── Conversation ── */
.chat-conv-wrap{display:flex;flex-direction:column;height:100vh;background:var(--bg);max-width:640px;margin:0 auto}
.chat-conv-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;flex-shrink:0}
.chat-conv-info{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.chat-conv-avatar{width:38px;height:38px;border-radius:12px;background:var(--primary);color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-conv-name{font-size:15px;font-weight:700;color:var(--text)}
.chat-conv-job{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.chat-conv-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-conv-messages::-webkit-scrollbar{width:4px}
.chat-conv-messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}

.chat-msg-row{display:flex;flex-direction:column;max-width:78%}
.chat-msg-row.sent{align-self:flex-end;align-items:flex-end}
.chat-msg-row.received{align-self:flex-start;align-items:flex-start}
.chat-bubble-text{padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.5;word-break:break-word}
.sent .chat-bubble-text{background:var(--primary);color:#fff;border-radius:18px 4px 18px 18px}
.received .chat-bubble-text{background:#fff;color:var(--text);border-radius:4px 18px 18px 18px;border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.chat-msg-time{font-size:10px;color:var(--text-light);margin-top:3px;padding:0 4px}
.chat-msg-date-sep{text-align:center;font-size:11px;color:var(--text-muted);background:var(--bg);border-radius:50px;padding:4px 12px;margin:8px auto;border:1px solid var(--border)}

.chat-conv-input-wrap{display:flex;align-items:flex-end;gap:8px;padding:10px 14px;background:#fff;border-top:1px solid var(--border);flex-shrink:0;padding-bottom:max(10px,env(safe-area-inset-bottom,10px))}
.chat-conv-input{flex:1;border:1.5px solid var(--border);border-radius:22px;padding:10px 16px;font-size:14px;font-family:inherit;color:var(--text);resize:none;max-height:120px;transition:border var(--transition);line-height:1.5}
.chat-conv-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.chat-send-btn-conv{width:42px;height:42px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all var(--transition)}
.chat-send-btn-conv:hover{background:var(--primary-dark);transform:scale(1.08)}
.chat-send-btn-conv svg{width:18px;height:18px;stroke:#fff}

.chat-readonly-banner{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;background:#fef3c7;color:#92400e;font-size:13px;font-weight:600;border-top:1px solid #fde68a;flex-shrink:0}
.chat-readonly-banner svg{width:14px;height:14px;stroke:currentColor;flex-shrink:0}

/* ── Employer own-post indicators ─────────────────────────────── */
.own-post-badge{font-size:11px;font-weight:700;color:var(--primary);background:var(--primary-soft);border-radius:50px;padding:5px 12px;border:1.5px solid var(--primary);white-space:nowrap}
.own-post-notice{display:flex;align-items:flex-start;gap:10px;background:#eff6ff;border:1.5px solid #bfdbfe;border-radius:var(--radius);padding:12px 14px;color:#1d4ed8;font-size:13px;line-height:1.5;margin-bottom:4px}
.own-post-notice svg{width:16px;height:16px;stroke:currentColor;flex-shrink:0;margin-top:1px}

/* ============================================================
   POSTED JOBS MANAGEMENT
============================================================ */

/* Quick stats row */
.pj-stat-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 20px}
.pj-stat{flex:1;min-width:90px;background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);padding:12px 14px;text-align:center}
.pj-stat span{display:block;font-size:22px;font-weight:800;color:var(--text)}
.pj-stat label{font-size:11px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.pj-active span{color:#16a34a}
.pj-expired span{color:#dc2626}
.pj-view span{color:#2563eb}
.pj-apps span{color:#7c3aed}

/* Table wrapper */
.pj-table-wrap{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.pj-loading,.pj-empty{padding:48px;text-align:center;color:var(--text-muted);font-size:15px}

/* Responsive job table */
.pj-table{width:100%;border-collapse:collapse;font-size:13px}
.pj-table th{background:var(--bg);color:var(--text-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:10px 14px;text-align:left;border-bottom:1px solid var(--border)}
.pj-table td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
.pj-table tr:last-child td{border-bottom:none}
.pj-table tr:hover td{background:var(--bg)}

/* Job title cell */
.pj-job-title{font-weight:700;color:var(--text);font-size:14px;margin-bottom:2px}
.pj-job-cat{font-size:11px;color:var(--text-muted)}

/* Status badges */
.pj-status{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;border-radius:50px;padding:3px 10px}
.pj-status-active{background:#dcfce7;color:#16a34a}
.pj-status-expired{background:#fee2e2;color:#dc2626}
.pj-status-closed{background:#f3f4f6;color:#6b7280}
.pj-status-pending{background:#fef3c7;color:#d97706}

/* Metric cells */
.pj-metric{font-size:13px;font-weight:600;color:var(--text)}
.pj-metric.views{color:#2563eb}
.pj-metric.apps{color:#7c3aed}

/* Table action buttons */
.pj-actions{display:flex;gap:6px;flex-wrap:wrap}
.pj-btn{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;border-radius:8px;padding:5px 10px;border:1.5px solid var(--border);color:var(--text-muted);transition:all var(--transition);white-space:nowrap}
.pj-btn svg{width:13px;height:13px;stroke:currentColor;flex-shrink:0}
.pj-btn:hover{border-color:var(--primary);color:var(--primary)}
.pj-btn.pj-btn-insights{background:var(--primary);color:#fff;border-color:var(--primary)}
.pj-btn.pj-btn-insights:hover{background:var(--primary-dark)}
.pj-btn.pj-btn-danger{color:var(--error);border-color:var(--error)}
.pj-btn.pj-btn-danger:hover{background:var(--error);color:#fff}

/* ============================================================
   JOB INSIGHTS MODAL
============================================================ */
.insights-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1200;display:flex;align-items:center;justify-content:center;padding:16px}
.insights-modal{background:#fff;border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg)}
.insights-header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 0;gap:12px}
.insights-title{font-size:18px;font-weight:800;color:var(--text)}
.insights-sub{font-size:13px;color:var(--text-muted);margin-top:3px}
.insights-close-btn{width:32px;height:32px;border-radius:8px;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.insights-close-btn:hover{border-color:var(--error);color:var(--error)}
.insights-close-btn svg{width:16px;height:16px;stroke:currentColor}

.insights-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:16px 24px}
.insight-stat{display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:var(--radius);padding:14px}
.insight-stat svg{width:20px;height:20px;stroke:var(--primary);flex-shrink:0}
.insight-stat-val{display:block;font-size:22px;font-weight:800;color:var(--text);line-height:1}
.insight-stat label{font-size:11px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}

.insights-section{padding:0 24px 16px}
.insights-section h4{font-size:14px;font-weight:700;color:var(--text);margin-bottom:12px;padding-top:8px;border-top:1px solid var(--border)}
.insights-applicants{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto}
.insights-empty{text-align:center;padding:24px;color:var(--text-muted);font-size:13px}

.applicant-row{display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:var(--radius);padding:10px 14px}
.applicant-avatar-sm{width:36px;height:36px;border-radius:10px;background:var(--primary);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.applicant-details{flex:1;min-width:0}
.applicant-details .a-name{font-size:14px;font-weight:700;color:var(--text)}
.applicant-details .a-phone{font-size:12px;color:var(--text-muted);display:flex;align-items:center;gap:4px}
.applicant-details .a-phone svg{width:12px;height:12px}
.a-call-btn{font-size:11px;font-weight:700;color:var(--primary);background:var(--primary-soft);border-radius:6px;padding:4px 10px;border:1px solid var(--primary);flex-shrink:0}

.insights-actions{display:flex;gap:10px;flex-wrap:wrap;padding:16px 24px 20px;border-top:1px solid var(--border)}
.btn-view-job{background:var(--primary);color:#fff;border-color:var(--primary)!important}
.btn-edit-job{background:#fff;color:var(--text);border-color:var(--border)!important}
.btn-close-job{background:#fef3c7;color:#d97706;border-color:#fed7aa!important}
.btn-delete-job{background:#fee2e2;color:var(--error);border-color:#fecaca!important}
.btn-view-job,.btn-edit-job,.btn-close-job,.btn-delete-job{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:var(--radius);font-size:13px;font-weight:700;border:1.5px solid;transition:all var(--transition);flex:1;justify-content:center}
.btn-view-job svg,.btn-edit-job svg,.btn-close-job svg,.btn-delete-job svg{width:14px;height:14px;stroke:currentColor}

@media(max-width:768px){
  .pj-table thead{display:none}
  .pj-table,.pj-table tbody,.pj-table tr,.pj-table td{display:block;width:100%}
  .pj-table td{padding:6px 14px;border:none}
  .pj-table td:first-child{padding-top:14px}
  .pj-table td:last-child{padding-bottom:14px;border-bottom:1px solid var(--border)}
  .pj-table tr:last-child td:last-child{border-bottom:none}
  .pj-table td::before{content:attr(data-label);font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;display:block;margin-bottom:3px}
  .insights-stats{grid-template-columns:repeat(2,1fr)}
  .insights-actions{gap:8px}
  .btn-view-job,.btn-edit-job,.btn-close-job,.btn-delete-job{font-size:12px;padding:8px 10px}
}

/* Job detail page: info notice instead of Apply button */
.own-post-notice{display:flex;align-items:flex-start;gap:10px;background:#eff6ff;border:1.5px solid #bfdbfe;border-radius:var(--radius);padding:12px 14px;color:#1d4ed8;font-size:13px;line-height:1.5;margin-bottom:4px}
.own-post-notice svg{width:16px;height:16px;stroke:currentColor;flex-shrink:0;margin-top:1px}

/* ============================================================
   CHAT — Presence Indicator
============================================================ */
.pres-indicator{display:flex;align-items:center;gap:6px;margin-left:auto;padding-left:12px}
.pres-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;transition:background .4s}
.pres-online{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.25)}
.pres-offline{background:#94a3b8}
.pres-unknown{background:#d1d5db}
.pres-label{font-size:11px;font-weight:600;color:var(--text-muted)}
.pres-online+.pres-label{color:#16a34a}

/* ============================================================
   CHAT — Message Bubbles & Read Receipts
============================================================ */
.chat-msg-row{display:flex;flex-direction:column;margin-bottom:10px;max-width:72%;animation:msgIn .15s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.chat-msg-row.sent{align-self:flex-end;align-items:flex-end}
.chat-msg-row.received{align-self:flex-start;align-items:flex-start}

.chat-bubble-text{background:var(--primary);color:#fff;padding:9px 13px;border-radius:16px 16px 4px 16px;font-size:14px;line-height:1.5;word-break:break-word;max-width:100%}
.chat-msg-row.received .chat-bubble-text{background:var(--bg);color:var(--text);border-radius:16px 16px 16px 4px;border:1px solid var(--border)}

.chat-msg-meta{display:flex;align-items:center;gap:4px;margin-top:3px;padding:0 4px}
.chat-msg-time{font-size:10px;color:var(--text-muted)}

/* Read receipt ticks */
.chat-tick{font-size:11px;color:#94a3b8;font-weight:700;line-height:1}
.chat-tick.read{color:#2563eb}

/* Inbox unread item */
.unread-item .chat-inbox-preview{font-weight:600;color:var(--text)}

/* Chat inbox empty */
.chat-inbox-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;color:var(--text-muted);gap:8px;text-align:center}
.chat-inbox-empty svg{width:48px;height:48px;stroke:var(--text-muted);opacity:.4}
.chat-inbox-empty p{font-size:15px;font-weight:600;margin:0}
.chat-inbox-empty small{font-size:13px}

/* Inactive badge */
.chat-inbox-inactive{font-size:10px;font-weight:700;background:#f3f4f6;color:#6b7280;border-radius:50px;padding:2px 8px;text-align:center;margin-top:4px}

/* Dashboard chat inbox embed */
.chat-inbox-list{display:flex;flex-direction:column;gap:2px}
.chat-inbox-empty{padding:40px;text-align:center}

/* Conversation empty state */
.chat-conv-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:8px;color:var(--text-muted)}
.chat-conv-empty svg{width:40px;height:40px;opacity:.3}
.chat-conv-empty p{font-size:14px;text-align:center}

@media(max-width:768px){
  .pres-label{display:none}
  .chat-msg-row{max-width:85%}
}

/* ============================================================
   APPLY MODAL
============================================================ */
.apply-modal-card{background:#fff;border-radius:24px 24px 0 0;width:100%;max-width:520px;padding:24px;box-shadow:var(--shadow-lg);animation:slideUp .25s ease}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:none}}
.apply-modal-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
.apply-modal-title{font-size:17px;font-weight:800;color:var(--text)}
.apply-modal-sub{font-size:13px;color:var(--text-muted);margin-top:2px}
.apply-modal-close{font-size:18px;line-height:1;color:var(--text-muted);padding:4px 8px;border-radius:8px;border:1.5px solid var(--border)}
.apply-modal-close:hover{border-color:var(--error);color:var(--error)}
.apply-field{margin-bottom:14px}
.apply-field label{display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:5px;text-transform:uppercase;letter-spacing:.3px}
@media(min-width:600px){
  .apply-modal-card{border-radius:20px;max-width:480px;margin:auto}
  #applyModal{align-items:center}
}


/* ===== MIGRANT & WORKER SECTION V2 ===== MIGRANT-V2 */

/* -- Banner -- */
.mw-banner{background:linear-gradient(135deg,#1e3a5f 0%,#0f2237 60%,#1a1a2e 100%);padding:0;overflow:hidden}
.mw-banner-content{display:flex;align-items:stretch;max-width:1280px;margin:0 auto;min-height:340px}
.mw-banner-left{flex:1;padding:40px 48px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.mw-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(249,115,22,.18);color:#fb923c;border:1px solid rgba(249,115,22,.3);border-radius:50px;padding:4px 14px;font-size:12px;font-weight:700;width:fit-content;margin-bottom:4px}
.mw-title-en{font-size:clamp(20px,3vw,32px);font-weight:900;color:#fff;margin:0;line-height:1.2}
.mw-title-ml{font-size:clamp(13px,1.6vw,17px);color:rgba(255,255,255,.75);margin:2px 0 0;font-weight:600}
.mw-title-hi{font-size:clamp(12px,1.5vw,16px);color:rgba(255,255,255,.6);margin:0}
.mw-desc-en{font-size:13px;color:rgba(255,255,255,.7);margin:8px 0 2px;line-height:1.6}
.mw-desc-ml{font-size:12px;color:rgba(255,255,255,.55);margin:0}
.mw-desc-hi{font-size:12px;color:rgba(255,255,255,.45);margin:0 0 4px}
.mw-btns{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.mw-btn-post{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 24px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 4px 16px rgba(249,115,22,.4);transition:transform .15s,box-shadow .15s}
.mw-btn-post:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(249,115,22,.5)}
.mw-btn-browse{padding:13px 22px;background:rgba(255,255,255,.1);color:#fff;border:1.5px solid rgba(255,255,255,.25);border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;transition:background .15s}
.mw-btn-browse:hover{background:rgba(255,255,255,.18)}
.mw-banner-right{width:380px;flex-shrink:0;position:relative;overflow:hidden}
.mw-img{width:100%;height:100%;object-fit:cover;display:block}
.mw-img-overlay{position:absolute;inset:0;background:linear-gradient(to right,#0f2237 0%,transparent 40%,rgba(0,0,0,.2) 100%)}
.mw-floating-chips{position:absolute;bottom:16px;left:16px;display:flex;flex-wrap:wrap;gap:6px}
.mw-chip{background:rgba(255,255,255,.92);color:#1e3a5f;font-size:11px;font-weight:700;padding:4px 10px;border-radius:50px;backdrop-filter:blur(4px)}
.mw-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.mw-section-heading h3{font-size:16px;font-weight:700;margin:0}
.mw-view-all{background:none;border:1.5px solid var(--primary,#2563eb);color:var(--primary,#2563eb);border-radius:8px;padding:5px 14px;font-size:13px;font-weight:700;cursor:pointer}
.mwv-wrap{max-width:1100px;margin:0 auto;padding:24px 16px 80px}
.mwv-header{display:flex;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.mwv-back{background:none;border:1.5px solid #e2e8f0;border-radius:8px;padding:7px 14px;font-size:14px;font-weight:600;cursor:pointer;color:#555;flex-shrink:0}
.mwv-title{font-size:22px;font-weight:900;margin:0}
.mwv-sub{font-size:13px;color:#64748b;margin:2px 0 0}
.mwv-post-btn{margin-left:auto}
.mwv-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.mwv-filter-select{padding:9px 14px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:13px;color:#333;background:#fff;cursor:pointer;min-width:140px}
.mwv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.mw-job-card{background:#fff;border-radius:16px;border:1.5px solid #e2e8f0;padding:16px;transition:box-shadow .15s,transform .15s}
.mw-job-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.1);transform:translateY(-2px)}
.mw-job-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}
.mw-job-title{font-size:15px;font-weight:800;color:#111}
.mw-job-title-hi{font-size:12px;color:#64748b;font-weight:500;margin-top:1px}
.mw-job-company{font-size:13px;color:#555;font-weight:600;margin-bottom:8px}
.mw-job-location{font-size:12px;color:#94a3b8;display:flex;align-items:center;gap:4px;margin-bottom:10px}
.mw-salary-chip{display:inline-flex;align-items:center;gap:4px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;border-radius:50px;padding:3px 10px;font-size:12px;font-weight:700;margin-bottom:4px}
.mw-amenity-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.mw-amenity{font-size:11px;font-weight:700;padding:3px 9px;border-radius:50px}
.mw-amenity.food-yes{background:#fef3c7;color:#92400e}
.mw-amenity.food-no{background:#f1f5f9;color:#94a3b8}
.mw-amenity.accom-yes{background:#ede9fe;color:#6d28d9}
.mw-amenity.accom-no{background:#f1f5f9;color:#94a3b8}
.mw-contact-row{display:flex;gap:8px}
.mw-btn-wa{flex:1;padding:9px;background:#25D366;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;text-decoration:none}
.mw-btn-call{flex:1;padding:9px;background:#2563eb;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;text-decoration:none}
.mwm-card{background:#fff;border-radius:20px 20px 0 0;width:100%;max-width:560px;padding:24px;max-height:92vh;overflow-y:auto;position:relative;margin:auto}
.mwm-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.mwm-title{font-size:18px;font-weight:800}
.mwm-sub{font-size:12px;color:#16a34a;font-weight:600;margin-top:2px}
.mwm-close{background:none;border:1.5px solid #e2e8f0;border-radius:8px;width:32px;height:32px;font-size:16px;cursor:pointer;flex-shrink:0}
.mwm-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.mwm-field{display:flex;flex-direction:column;gap:5px}
.mwm-field.mwm-full{grid-column:1/-1}
.mwm-field label{font-size:12px;font-weight:700;color:#555}
.mwm-input{padding:10px 12px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:14px;color:#111;background:#fff;width:100%;box-sizing:border-box;transition:border .15s;outline:none}
.mwm-input:focus{border-color:#f97316}

/* -- MOBILE REDESIGN -- */
@media(max-width:768px){
  .mw-banner-content{flex-direction:column;min-height:auto}
  .mw-banner-right{display:block;width:100%;height:190px;order:-1}
  .mw-img-overlay{background:linear-gradient(to bottom,transparent 40%,rgba(15,34,55,.65) 100%)}
  .mw-floating-chips{display:none}
  .mw-banner-left{padding:18px 16px 22px;gap:3px}
  .mw-badge{font-size:11px;padding:3px 12px;margin-bottom:5px}
  .mw-title-en{font-size:17px;line-height:1.25}
  .mw-title-ml{font-size:13px;margin-top:3px}
  .mw-title-hi{font-size:11px}
  .mw-desc-en{font-size:12px;margin:7px 0 2px;line-height:1.5}
  .mw-desc-ml,.mw-desc-hi{font-size:11px}
  .mw-btns{flex-direction:column;gap:10px;margin-top:14px}
  .mw-btn-post{width:100%;font-size:15px;padding:14px 20px;border-radius:12px}
  .mw-btn-browse{width:100%;font-size:14px;padding:13px 20px;border-radius:12px;text-align:center}
  .mwm-grid{grid-template-columns:1fr}
  .mwv-post-btn{margin-left:0}
  .mwv-header{flex-direction:column;align-items:flex-start}
  .mwv-filters{flex-direction:column}
  .mwv-filter-select{width:100%;min-width:0}
}
/* ===== END MIGRANT-V2 ===== */

/* ============================================================
   LATEST JOBS CAROUSEL
   ============================================================ */

/* Section wrapper */
.lj-section {
  padding: 48px 20px 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 60%, #fff8f0 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.lj-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Header row */
.lj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}
.lj-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 4px;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.lj-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.lj-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lj-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  line-height: 1;
}
.lj-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.lj-nav-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}
.lj-view-all {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lj-view-all:hover {
  background: var(--primary);
  color: #fff;
}

/* Viewport + sliding track */
.lj-viewport {
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  border-radius: var(--radius);
}
.lj-viewport:active { cursor: grabbing; }
.lj-track {
  display: flex;
  gap: 16px;
  transition: transform .45s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
  padding: 4px 2px 8px;
}

/* ── Individual Job Card ─────────────────────── */
.lj-card {
  flex: 0 0 calc(33.333% - 12px);
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 20px 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.lj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.3);
}
.lj-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity .25s;
}
.lj-card:hover::after { opacity: 1; }

/* Badges */
.lj-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lj-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.lj-badge-new {
  background: #dcfce7;
  color: #16a34a;
}
.lj-badge-urgent {
  background: #fff3e0;
  color: #f57c00;
  animation: urgentPulseText 1.5s ease-in-out infinite;
}
.lj-badge-featured {
  background: #f3e8ff;
  color: #7c3aed;
}
@keyframes urgentPulseText {
  0%,100% { opacity:1; }
  50% { opacity:.65; }
}

/* Logo + company row */
.lj-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lj-logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: -.5px;
}
.lj-card-info { flex: 1; min-width: 0; }
.lj-job-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lj-company {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta row */
.lj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.lj-meta-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.lj-meta-item svg,
.lj-meta-item .lj-dot-icon {
  width: 13px; height: 13px;
  opacity: .65;
}

/* Pills */
.lj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lj-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--primary-soft);
  color: var(--primary);
}
.lj-pill-salary {
  background: #f0fdf4;
  color: #15803d;
}

/* Footer row */
.lj-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}
.lj-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lj-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}
.lj-views {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  opacity: .85;
}

/* Salary block — carousel */
.lj-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lj-salary-na {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}
.lj-sal-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lj-sal-min {
  background: #dcfce7;
  color: #15803d;
}
.lj-sal-max {
  background: #dbeafe;
  color: #1d4ed8;
}
.lj-sal-suffix {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Salary block — all-jobs listing cards */
.js-sal-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.js-sal-min {
  background: #dcfce7;
  color: #15803d;
}
.js-sal-max {
  background: #dbeafe;
  color: #1d4ed8;
}
.js-sal-suffix {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}


.lj-cta {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lj-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.04);
}

/* Dots pagination */
.lj-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.lj-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .25s;
}
.lj-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Empty state */
.lj-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  max-width: 400px;
  margin: 0 auto;
}

/* Loading shimmer */
.lj-card-skeleton {
  flex: 0 0 calc(33.333% - 12px);
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 20px 18px;
  min-height: 180px;
}
.lj-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimLJ .8s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.lj-shimmer.h12 { height: 12px; }
.lj-shimmer.h16 { height: 16px; width: 70%; }
.lj-shimmer.h20 { height: 20px; width: 50%; }
.lj-shimmer.h40 { height: 40px; width: 40px; border-radius: 10px; }
@keyframes shimLJ {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* ── Responsive ──────────────────────────────── */
/* Tablet: 2 cards */
@media (max-width: 1024px) {
  .lj-card, .lj-card-skeleton {
    flex: 0 0 calc(50% - 9px);
  }
}
/* Mobile: 1.15 cards visible (peek effect) */
@media (max-width: 640px) {
  .lj-section { padding: 32px 16px 28px; }
  .lj-heading { font-size: 20px; }
  .lj-card, .lj-card-skeleton {
    flex: 0 0 85%;
  }
  .lj-controls { gap: 6px; }
  .lj-view-all { display: none; }
  .lj-nav-btn { width: 34px; height: 34px; }
}

/* =============================================================
   EXPLORE JOBS — Premium Card Section
   ============================================================= */
.explore-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 36px;
}
.explore-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.explore-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.explore-sub {
  color: var(--text-muted);
  font-size: 15px;
}
.explore-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .22s;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.explore-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,99,235,.4);
}

/* Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

/* Skeleton */
@keyframes _ejcShimmer { 0%{background-position:-600px 0} 100%{background-position:600px 0} }
.explore-skeleton {
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f0f4ff 25%, #e4ebff 50%, #f0f4ff 75%);
  background-size: 600px 100%;
  animation: _ejcShimmer 1.6s infinite linear;
}

/* Card */
.explore-job-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.explore-job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity .22s;
}
.explore-job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(37,99,235,.13);
  transform: translateY(-4px);
}
.explore-job-card:hover::before { opacity: 1; }

/* Header row: logo + badge + time */
.ejc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.ejc-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.ejc-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ejc-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ejc-badge-full     { background: #dbeafe; color: #1d4ed8; }
.ejc-badge-part     { background: #fef9c3; color: #a16207; }
.ejc-badge-contract { background: #f3e8ff; color: #7c3aed; }
.ejc-badge-remote   { background: #dcfce7; color: #15803d; }
.ejc-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

/* Title + company */
.ejc-job-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.ejc-company-name {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail pills row */
.ejc-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ejc-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 50px;
}
.ejc-salary-chip {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.ejc-detail-icon { font-size: 11px; }

/* Category pill */
.ejc-cat-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* Footer */
.ejc-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ejc-apply-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all .22s;
  letter-spacing: .2px;
}
.ejc-apply-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Load More */
.explore-load-more {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.btn-load-more {
  padding: 13px 44px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: all .22s;
  background: #fff;
}
.btn-load-more:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.28);
}
.btn-load-more:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* =============================================================
   COMPACT CATEGORY STRIP
   ============================================================= */
.compact-cat-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.compact-cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-view-all-cats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  white-space: nowrap;
  transition: all .22s;
}
.btn-view-all-cats:hover {
  background: var(--primary);
  color: #fff;
}
.compact-cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.compact-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 10px 16px;
  cursor: pointer;
  transition: all .22s;
  text-align: center;
}
.compact-cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(37,99,235,.12);
}
.compact-cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.compact-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.compact-cat-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .explore-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .compact-cat-strip { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .explore-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .explore-section { padding: 36px 16px 24px; }
  .explore-title { font-size: 22px; }
  .compact-cat-section { padding: 0 16px 44px; }
  .compact-cat-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .compact-cat-icon { width: 44px; height: 44px; font-size: 20px; }
}
@media (max-width: 480px) {
  .explore-grid { grid-template-columns: 1fr; }
  .compact-cat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* PWA button: glows brighter when native prompt is ready */
.pwa-install-btn.pwa-ready {
  box-shadow: 0 0 0 3px rgba(34,197,94,.4), 0 4px 14px rgba(34,197,94,.5);
  animation: pwaGlow 2s ease-in-out infinite alternate;
}
@keyframes pwaGlow {
  from { box-shadow: 0 0 0 2px rgba(34,197,94,.3), 0 3px 10px rgba(34,197,94,.4); }
  to   { box-shadow: 0 0 0 4px rgba(34,197,94,.6), 0 6px 20px rgba(34,197,94,.6); }
}