/* ============ JobDozo Design v2 — public homepage overrides ============ */
:root {
  --v2-bg: #f8f9fd;
  --v2-primary: #0052ff;
  --v2-blue: #1a6cf5;
  --v2-hero-from: #eef2ff;
  --v2-hero-to: #e0e7ff;
  --v2-hero-ink: #1e293b;
  --v2-gradient: linear-gradient(135deg, #0052ff 0%, #6366f1 55%, #8b5cf6 100%);
  --v2-radius: 14px;
  --v2-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.04);
}

body { background: var(--v2-bg); }

/* ============ MERGED HEADER ============ */
.v2-header { border-bottom: 1px solid #e8ecf4; background: #fff; }
.v2-header .topbar-inner {
  max-width: 1560px;
  padding: 10px 22px;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: visible;
}
.v2-header .brand { gap: 10px; }
.v2-header .brand-text { display: flex; flex-direction: column; gap: 1px; }
.v2-header .brand-name { font-size: 1.25rem; line-height: 1.1; }
.v2-header .brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.v2-header .brand-icon::after { display: none; }

.header-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav .cat-toggle { display: none; }
.header-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: center;
}
.header-nav .nav-links li {
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.header-nav .nav-links li:hover { background: #eef2ff; color: var(--v2-blue); }
.header-nav .nav-links li.active {
  background: #eef2ff;
  color: var(--v2-blue);
  box-shadow: inset 0 -2px 0 var(--v2-blue);
}

.post-job-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--v2-gradient);
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.post-job-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 82, 255, 0.32); }

.profile-chip .profile-greeting {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-row { display: none; }

.v2-header .applied-pill,
.v2-header #savedBtn,
.v2-header #userDashboardBtn { display: none !important; }

/* hide legacy nav */
.mainnav { display: none !important; }

/* Guest auth — compact so header doesn't crowd */
.v2-header .auth-actions { gap: 6px; display: flex; align-items: center; }
.v2-header .auth-btn { padding: 8px 12px; font-size: 0.78rem; border-radius: 999px; }
.v2-header .header-actions {
  gap: 8px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.v2-header #globeBtn { display: none; } /* mockup uses search/bell; keep bell+post */
.v2-header .brand { flex: 0 0 auto; }

/* ============ LAYOUT — compact 3 columns to fit screen ============ */
.desktop-shell .layout {
  grid-template-columns: 210px minmax(0, 1fr) 260px !important;
  gap: 14px;
  margin-top: 12px;
  align-items: start;
  padding: 0 16px;
}
.filters {
  top: 68px !important;
  max-height: calc(100vh - 84px) !important;
  border-radius: 12px;
  padding: 12px 12px !important;
  font-size: 0.86rem;
}
.filters-head h3 { font-size: 0.92rem; font-weight: 800; }
.filters .fgroup { padding: 8px 0 !important; }
.filters .fgroup-title { font-size: 0.78rem !important; }
.filters .check { font-size: 0.78rem !important; gap: 7px !important; margin: 4px 0 !important; }
.filters .check input { width: 14px !important; height: 14px !important; }
.fgroup-more {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}
.fgroup-more > summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--v2-blue);
  list-style: none;
  padding: 4px 0 8px;
}
.fgroup-more > summary::-webkit-details-marker { display: none; }
.right-col {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  gap: 10px !important;
}
.right-col::-webkit-scrollbar { width: 4px; }
.right-col::-webkit-scrollbar-thumb { background: #d6deeb; border-radius: 4px; }

/* salary radio rows */
.radio-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text);
  cursor: pointer;
  margin: 3px 0;
}
.radio-row span { flex: 1; }
.radio-row .filter-count {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 28px;
  text-align: right;
}
.radio-row input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c3cedf;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff;
  transition: all 0.12s;
}
.radio-row input:checked { border-color: var(--v2-blue); border-width: 5px; }

.filter-loc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 8px;
}
.filter-loc-search i { color: var(--muted); font-size: 0.78rem; }
.filter-loc-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
  color: var(--ink);
  min-width: 0;
}

.apply-filters-btn {
  background: var(--v2-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(26, 108, 245, 0.22);
  margin-top: 8px !important;
}
.apply-filters-btn:hover { background: #0052ff !important; }

/* ============ HERO v2 — professional dark cinematic ad ============ */
.v2-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  background: linear-gradient(135deg, #0b1e3d 0%, #123a7a 55%, #0e4d6e 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(11, 30, 61, 0.3) !important;
  border-radius: 16px !important;
  padding: 20px 22px 18px !important;
  position: relative;
  overflow: hidden !important;
  margin-bottom: 4px;
  min-height: 0;
}
/* Daily commercial ad — full-bleed HD bg + dark readability overlay */
.v2-hero .hero-ad-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  filter: contrast(1.08) saturate(1.12);
}
.v2-hero .hero-ad-bg.is-ready { opacity: 1; }
.v2-hero .hero-ad-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(8, 18, 40, 0.92) 0%,
      rgba(11, 30, 61, 0.82) 38%,
      rgba(15, 40, 80, 0.45) 62%,
      rgba(15, 40, 80, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 18, 40, 0.25) 0%, rgba(8, 18, 40, 0.55) 100%);
}
.v2-hero.has-hero-ad {
  background: #0b1e3d !important;
}
.v2-hero::before,
.v2-hero::after,
.v2-hero .hero-right,
.v2-hero .hero-person,
.v2-hero .float-card { display: none !important; }

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.v2-hero .hero-left { max-width: 380px; flex: 1; }
.v2-hero h1 {
  font-size: 1.55rem !important;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.4px;
  line-height: 1.18 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.v2-hero h1 span { color: #7dd3fc !important; }
.v2-hero p {
  color: #cbd5e1 !important;
  margin: 6px 0 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.4;
  max-width: 360px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  min-width: 200px;
  max-width: 230px;
  flex-shrink: 0;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.hero-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stat span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}
.hero-stat.accent {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
}
.hero-stat.accent strong,
.hero-stat.accent span { color: #fff; }

.hero-search-wrap {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  padding: 10px 12px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.v2-hero .hero-search {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px;
  gap: 0;
  box-shadow: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100%;
}
.v2-hero .hero-search-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.v2-hero .hero-search-input input { color: var(--ink); font-size: 0.9rem; }
.v2-hero .hero-search-loc {
  border-left: 1px solid #e2e8f0;
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.84rem;
  flex: 0 0 auto;
  white-space: nowrap;
}
.v2-hero .hero-search-btn,
.v2-hero button.hero-search-btn {
  width: auto !important;
  min-width: 110px !important;
  height: 38px !important;
  background: #1a6cf5 !important;
  background-image: none !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(26, 108, 245, 0.28);
  flex-shrink: 0;
}
.v2-hero .hero-search-btn:hover { background: #0052ff !important; color: #fff !important; }
.v2-hero .hero-popular { margin-top: 10px; }
.v2-hero .hero-popular > span { color: #64748b !important; }
.v2-hero .ptag {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}
.v2-hero .ptag:hover { background: #e0f2fe !important; color: #0369a1 !important; border-color: #7dd3fc !important; }

/* ============ CATEGORIES / REC — RTL marquee (no blank gaps) ============ */
.cat-scroll-wrap,
.rec-scroll-wrap {
  margin-bottom: 8px;
  overflow: hidden;
}
.marquee-wrap {
  overflow: hidden !important;
  width: 100%;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
.cat-scroll.marquee-track,
.rec-scroll.marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  will-change: transform;
}
.marquee-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  align-items: stretch;
}
.cat-scroll.marquee-track {
  grid-template-columns: none !important;
  animation: marqueeRtl 200s linear infinite;
}
.cat-scroll .marquee-group {
  gap: 8px;
  padding-right: 8px; /* matches gap so -50% seam is seamless */
}
.rec-scroll.marquee-track {
  animation: marqueeRtl 46s linear infinite;
}
.rec-scroll .marquee-group {
  gap: 10px;
  padding-right: 10px;
}
@keyframes marqueeRtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-scroll.marquee-track,
  .rec-scroll.marquee-track {
    animation: none !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
}
.cat-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  grid-template-columns: none !important;
}
.cat-scroll::-webkit-scrollbar,
.rec-scroll::-webkit-scrollbar { height: 4px; }
.cat-scroll::-webkit-scrollbar-thumb,
.rec-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.cat-scroll .cat-card {
  flex: 0 0 108px !important;
  scroll-snap-align: start;
  min-height: 0 !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  text-align: center;
  border: 1px solid #e8ecf4 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  background: #fff !important;
  gap: 5px !important;
}
.cat-scroll .cat-ico {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center;
  font-size: 0.85rem !important;
  border: none !important;
  color: #fff !important;
}
.cat-scroll .cname {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  max-width: 100%;
  min-height: 2.4em;
}
.cat-scroll .cat-count {
  display: block;
  margin-top: 0;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
}

/* ============ RECOMMENDED SCROLL (compact) ============ */
.rec-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}
.rec-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}
.rec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 0;
}
.rec-match-pill {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
}
.rec-heart {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}
.rec-heart.saved { color: var(--pink); border-color: #fbcfe8; background: #fdf2f8; }
.rec-card-body { padding: 6px 10px 10px; }
.rec-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rec-logo-row .role-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.rec-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 2px;
}
.rec-company {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.rec-loc {
  font-size: 0.66rem;
  color: #64748b;
  margin-bottom: 3px;
}
.rec-loc i { color: var(--v2-blue); margin-right: 3px; font-size: 0.62rem; }
.rec-salary {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 5px;
}
.rec-salary span { font-size: 0.62rem; font-weight: 500; color: var(--muted); }
.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.rec-tag {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
}
.rec-actions {
  display: flex;
  gap: 6px;
}
.rec-actions .btn-save,
.rec-actions .btn-apply {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.rec-actions .btn-save {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
}
.rec-actions .btn-save.saved { background: #f0fdf4; border-color: #86efac; color: #16a34a; }
.rec-actions .btn-apply {
  background: var(--v2-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.rec-actions .btn-apply.applied { background: #f0fdf4; color: #16a34a; box-shadow: none; border: 1.5px solid #86efac; }

/* ============ TOP COMPANIES STRIP (compact) ============ */
.top-co-strip-wrap {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
}
.top-co-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  align-items: center;
  padding: 2px 0;
}
.top-co-strip::-webkit-scrollbar { height: 3px; }
.top-co-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 56px;
  transition: transform 0.15s;
}
.top-co-logo:hover { transform: scale(1.04); }
.top-co-logo .co-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.68rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.top-co-logo span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-head {
  margin: 10px 0 6px !important;
}
.section-head h2 { font-size: 0.95rem !important; font-weight: 800; color: #0f172a; }

/* ============ RIGHT SIDEBAR v2 (compact) ============ */
.v2-profile-card { padding: 12px !important; border-radius: 12px; }
.right-col .card { padding: 12px !important; border-radius: 12px !important; }
.pc-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pc-avatar-wrap { position: relative; flex-shrink: 0; }
.pc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--v2-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.pc-strength-ring { width: 40px !important; height: 40px !important; }
.dash-item { padding: 8px 6px !important; }
.dash-item strong { font-size: 1.05rem !important; }
.dash-item span { font-size: 0.64rem !important; }
.dash-card h3 { font-size: 0.88rem !important; margin-bottom: 8px !important; }
.ai-coach-card { padding: 12px !important; }
.ai-coach-icon { width: 32px !important; height: 32px !important; font-size: 0.9rem !important; margin-bottom: 8px !important; }
.ai-coach-card h3 { font-size: 0.88rem !important; }
.ai-coach-card p { font-size: 0.7rem !important; margin-bottom: 10px !important; }
.ai-coach-btn { padding: 8px 10px !important; font-size: 0.72rem !important; }
.v2-premium { padding: 12px !important; }
.v2-premium .prem-crown { width: 28px !important; height: 28px !important; font-size: 0.8rem !important; margin-bottom: 6px !important; }
.v2-premium h3 { font-size: 0.88rem !important; }
.v2-premium li { font-size: 0.7rem !important; }
.upgrade-btn { padding: 7px 12px !important; font-size: 0.72rem !important; }
.pc-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  border: 2px solid #fff;
}
.pc-info { flex: 1; min-width: 0; }
.pc-info h3 { font-size: 0.95rem !important; margin: 0; }
.pc-role { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.pc-strength-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.pc-strength-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pc-strength-ring .ring-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3;
}
.pc-strength-ring .ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke: #6366f1;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 19.5;
  transition: stroke-dashoffset 0.4s ease;
}
.pc-strength-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #6366f1;
}

.improve-profile-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--v2-blue);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.improve-profile-btn:hover { background: #e0e7ff; }

.ai-coach-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 20px !important;
  border-radius: 16px !important;
  border: none !important;
}
.ai-coach-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #a5b4fc;
  margin-bottom: 12px;
}
.ai-coach-card h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.ai-coach-card p { font-size: 0.78rem; color: #94a3b8; line-height: 1.45; margin-bottom: 14px; }
.ai-coach-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--v2-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.job-alerts-card { padding: 16px 18px !important; border-radius: 16px !important; }
.ja-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ja-head h3 { font-size: 0.95rem; margin-bottom: 2px; }
.ja-head small { font-size: 0.72rem; color: var(--muted); }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--v2-blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.v2-premium {
  background: linear-gradient(145deg, #312e81 0%, #4c1d95 55%, #581c87 100%) !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.v2-premium .prem-crown {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fcd34d;
  font-size: 1rem;
  margin-bottom: 10px;
}
.v2-premium h3 { color: #fff; }
.v2-premium ul { color: #e9d5ff; }
.v2-premium .upgrade-btn {
  background: #fff;
  color: #581c87;
  font-weight: 800;
  border-radius: 12px;
  margin-top: 12px;
}

.dash-card { border-radius: 16px; }
.dash-item { border-radius: 12px; }

/* ============ JOB CARDS (compact grid) ============ */
.desktop-shell .jobs-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 10px !important;
}
.desktop-shell .job-card {
  border-radius: 12px !important;
  border: 1px solid #e8ecf4 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}
.desktop-shell .jc-banner {
  height: 52px !important;
}
.desktop-shell .jc-role-badge {
  width: 30px !important;
  height: 30px !important;
  bottom: -14px !important;
  font-size: 0.72rem !important;
  border-width: 2px !important;
}
.desktop-shell .jc-banner .jc-heart {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.72rem !important;
}
.desktop-shell .jc-body { padding: 18px 10px 10px !important; gap: 4px !important; }
.desktop-shell .jc-title { font-size: 0.84rem !important; }
.desktop-shell .jc-company { font-size: 0.7rem !important; }
.desktop-shell .jc-salary { font-size: 0.84rem !important; }
.desktop-shell .jc-meta { font-size: 0.64rem !important; }
.desktop-shell .jc-tags { gap: 4px !important; }
.desktop-shell .jc-tag,
.desktop-shell .jc-cat { font-size: 0.58rem !important; padding: 2px 6px !important; }
.desktop-shell .jc-actions { gap: 6px !important; margin-top: 4px !important; }
.desktop-shell .btn-apply,
.desktop-shell .btn-save {
  padding: 7px 8px !important;
  font-size: 0.7rem !important;
  border-radius: 8px !important;
}
.desktop-shell .featured-head { margin-top: 4px; }
.desktop-shell .job-tabs { gap: 16px !important; margin-bottom: 10px !important; }
.desktop-shell .jtab { font-size: 0.8rem !important; padding: 6px 2px 8px !important; }
.desktop-shell .view-more-btn {
  padding: 8px 18px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}

/* Soften footer strip so page feels less busy */
.desktop-shell .feature-strip {
  margin-top: 20px;
  padding: 14px 20px;
  gap: 10px;
}
.desktop-shell .feature { padding: 6px; }
.desktop-shell .seo-footer { margin-top: 12px; padding-top: 32px; }

/* Old mid-page SEO FAQ injection — keep out of the job feed */
.layout .seo-faq-section,
.layout .seo-breadcrumb,
.center-col .seo-faq-section,
.center-col .seo-breadcrumb {
  display: none !important;
}
/* FAQ under footer is fine but keep compact */
.seo-footer ~ .seo-faq-section,
body > .seo-faq-section {
  max-width: 1560px;
  margin: 16px auto 24px;
  padding: 0 22px;
}

/* Hidden companies view must not affect layout */
#companiesView[hidden] { display: none !important; }

/* ============ RESPONSIVE (desktop shell only) ============ */
@media (min-width: 1201px) {
  .desktop-shell .layout {
    grid-template-columns: 210px minmax(0, 1fr) 260px !important;
  }
  .desktop-shell .right-col {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 1200px) {
  .header-nav .nav-links li { padding: 6px 10px; font-size: 0.78rem; }
  .post-job-btn { padding: 8px 12px; font-size: 0.76rem; }
  .hero-stats { min-width: 180px; max-width: 210px; }
  .desktop-shell .layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }
  .desktop-shell .right-col {
    grid-column: 1 / -1 !important;
    position: static !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px !important;
  }
}

@media (max-width: 1080px) {
  .profile-chip .profile-greeting { display: none; }
  .header-nav .nav-links { gap: 0; }
  .header-nav .nav-links li[data-nav="resources"] { display: none; }
  .v2-hero h1 { font-size: 1.55rem !important; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-stats { max-width: none; width: 100%; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .desktop-shell .layout { grid-template-columns: 1fr !important; }
  .desktop-shell .filters { position: static !important; max-height: none !important; }
  .desktop-shell .right-col { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
