/* ── Google Fonts ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --primary:    #1e40af;
  --primary-d:  #1e3a8a;
  --primary-l:  #3b82f6;
  --accent:     #f97316;
  --accent-d:   #ea580c;
  --success:    #16a34a;
  --success-bg: #dcfce7;
  --bg:         #f0f4ff;
  --bg2:        #e8eeff;
  --card:       #ffffff;
  --text:       #0f172a;
  --text2:      #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --border2:    #cbd5e1;
  --blue-bg:    #dbeafe;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 4px rgba(30,64,175,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(30,64,175,.12), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 32px rgba(30,64,175,.16), 0 4px 12px rgba(0,0,0,.08);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--text); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
}
.main-col { min-width: 0; }
.sidebar  { min-width: 0; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid rgba(226,232,240,.8);
  box-shadow: 0 1px 0 rgba(30,64,175,.06);
  transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(30,64,175,.12), 0 1px 4px rgba(0,0,0,.06);
  border-bottom-color: rgba(226,232,240,1);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-l) 50%, var(--accent) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.scrolled::after { opacity: 1; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: .5rem;
}
.logo img { display: block; height: 36px; width: auto; transition: opacity .15s; }
.logo:hover img { opacity: .85; }
.logo-badge {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  letter-spacing: .05em;
  margin-left: .25rem;
  vertical-align: middle;
}
nav { display: flex; gap: .1rem; flex-wrap: wrap; align-items: center; }
nav a {
  color: #475569;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .45rem .75rem;
  border-radius: 8px;
  transition: background .15s, color .15s;
  position: relative;
}
nav a:hover { color: var(--primary); background: #eff6ff; text-decoration: none; }
nav a.active { color: var(--primary); background: #dbeafe; }

/* ── Nav actions (user widget + hamburger wrapper) ───────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* ── Hamburger button ────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.nav-hamburger:hover { border-color: var(--primary); background: #eff6ff; }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
  transition: transform .25s, opacity .25s, background .15s;
}
.nav-hamburger.nav-open span { background: var(--primary); }
.nav-hamburger.nav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.nav-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.nav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@keyframes nav-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-cv-builder { position: relative; }
.nav-free-tag {
  position: absolute; top: -7px; right: 2px;
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  color: #fff; font-size: .58rem; font-weight: 700;
  letter-spacing: .05em; line-height: 1;
  padding: 2px 5px; border-radius: 999px;
  pointer-events: none;
}
.nav-chat-link { position: relative; }
.nav-live-tag {
  position: absolute; top: -7px; right: -4px;
  background: #ef4444; color: #fff; font-size: .55rem; font-weight: 700;
  letter-spacing: .04em; line-height: 1; padding: 2px 5px; border-radius: 999px;
  pointer-events: none; animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { opacity: 1; } 50% { opacity: .55; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════════
   HERO — fully redesigned
   ══════════════════════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1560 25%, #1e3a8a 55%, #1d4ed8 80%, #2563eb 100%);
  color: #fff;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── Animated background layer ─────────────────────────────────────────────── */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
@media (max-width: 640px) {
  .hero-grid-overlay {
    background-size: 32px 32px;
    background-image:
      linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  }
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -180px; right: -100px;
  animation-duration: 9s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0ea5e9, transparent);
  bottom: -150px; left: -80px;
  animation-duration: 11s; animation-delay: -3s;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 30%; right: 20%;
  opacity: .35; animation-duration: 13s; animation-delay: -6s;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Content ────────────────────────────────────────────────────────────────── */
.hero-content { position: relative; z-index: 1; }

/* ── Live badge ─────────────────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: badgePulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ── Heading ────────────────────────────────────────────────────────────────── */
.hero h1, .hero-h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
  color: #fff;
}
.hero h1 em { font-style: normal; color: #fbbf24; }
.hero p, .hero-sub { color: rgba(255,255,255,.82); }

.hero-h1-find {
  display: inline;
  color: rgba(255,255,255,.65);
  font-weight: 700;
  font-size: .85em;
}
.hero-h1-gradient {
  display: inline;
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 25%, #ec4899 55%, #a78bfa 80%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: h1Shimmer 4s linear infinite;
  font-weight: 900;
}
@keyframes h1Shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}
.hero-h1-plain {
  display: inline;
  color: rgba(255,255,255,.9);
  font-weight: 900;
}
.hero-h1-india {
  display: inline;
  background: linear-gradient(90deg, #ff9933 0%, #fff 50%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-left: .3rem;
}

/* ── Sub heading ────────────────────────────────────────────────────────────── */
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  line-height: 1.65;
}
.hero-sub strong { color: #fbbf24; font-weight: 700; }

/* ── Stats ──────────────────────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}
.hero-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: .75rem 1.4rem;
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  min-width: 90px;
  transition: background .2s, transform .2s;
}
.hero-stat:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-3px);
}
.hero-stat-icon { font-size: 1.2rem; line-height: 1; }
.hero-stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: #fbbf24; line-height: 1.1; }
.hero-stat span { font-size: .72rem; opacity: .8; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: #fff; }

/* ── Trending tags ──────────────────────────────────────────────────────────── */
.trending-tags {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; align-items: center;
  font-size: .83rem;
}
.trending-label {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  font-size: .82rem;
}
.trending-tags a {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 500;
  transition: background .18s, border-color .18s, transform .18s;
  backdrop-filter: blur(8px);
}
.trending-tags a:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ── Search box glow ────────────────────────────────────────────────────────── */
.search-row {
  box-shadow: 0 8px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.15);
  transition: box-shadow .25s;
}
.search-row:focus-within {
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 3px rgba(99,102,241,.6);
}

/* ── Search Form ─────────────────────────────────────────────────────────────── */
.search-form { max-width: 800px; margin: 0 auto; }
.search-row {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.5);
}
.search-row input[type=search] {
  flex: 1;
  border: none;
  outline: none;
  padding: .85rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
  font-family: inherit;
  font-weight: 500;
}
.search-row input[type=search]::placeholder { color: var(--muted); font-weight: 400; }
.search-row .search-divider { width: 1px; background: var(--border); align-self: stretch; margin: .5rem 0; }
.search-row select {
  border: none;
  outline: none;
  padding: .85rem .75rem;
  font-size: .9rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.search-row .btn {
  border-radius: 0 12px 12px 0;
  padding: .85rem 1.75rem;
  white-space: nowrap;
  font-size: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: .01em;
}
.btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.4); text-decoration: none; color: #fff; }
.btn-primary { background: linear-gradient(135deg, var(--primary-l), var(--primary)); }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(30,64,175,.4); }
.btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: none; transform: none; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220,38,38,.4); }
.btn-sm { padding: .35rem .85rem; font-size: .82rem; }

/* ── Trust Bar ───────────────────────────────────────────────────────────────── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.trust-items {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.trust-items span { display: flex; align-items: center; gap: .35rem; }
.trust-items strong { color: var(--success); }

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section { padding: 2.75rem 0; }
.job-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .job-grid-2col { grid-template-columns: 1fr; } }
.empty-state { background: var(--bg2); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  position: relative;
  padding-left: 1rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}
.view-all {
  font-size: .88rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .4rem .85rem;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  transition: background .15s;
}
.view-all:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ── Category Grid ───────────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem .9rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform .2s;
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); text-decoration: none; }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}
.cat-icon { font-size: 1.6rem; line-height: 1; }
.cat-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.cat-count { font-size: .78rem; color: var(--muted); font-weight: 500; background: var(--bg); padding: .15rem .5rem; border-radius: 10px; }

/* ── Job Card ────────────────────────────────────────────────────────────────── */
.job-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: .85rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s, transform .2s;
  position: relative;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-l); transform: translateX(3px); }
.job-card.featured { border-left: 4px solid var(--accent); }
.job-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: .75rem; right: .75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.job-card-body { margin-bottom: .75rem; }
.job-meta-top {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .5rem;
}
.job-title { font-size: 1.05rem; margin-bottom: .35rem; font-weight: 700; }
.job-title a { color: var(--text); transition: color .15s; }
.job-title a:hover { color: var(--primary); text-decoration: none; }
.job-company {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: .87rem;
  color: var(--muted);
  font-weight: 500;
}
.job-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .65rem;
  margin-top: .25rem;
}
.job-type {
  font-weight: 700;
  color: var(--primary);
  background: var(--blue-bg);
  padding: .2rem .6rem;
  border-radius: 5px;
  font-size: .8rem;
}
.job-card-foot time { font-size: .8rem; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  letter-spacing: .02em;
}
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-blue  { background: var(--blue-bg);    color: var(--primary); }
.badge-orange{ background: #ffedd5;            color: #c2410c; }
.cat-tag {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg);
  padding: .15rem .55rem;
  border-radius: 5px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.widget {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.widget h3 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .9rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.widget h3::before {
  content: '';
  width: 4px; height: 1em;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.kw-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.kw-cloud a {
  background: var(--bg);
  padding: .28rem .7rem;
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text2);
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all .15s;
}
.kw-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.type-list li {
  margin: .1rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.type-list a {
  font-size: .88rem;
  color: var(--text2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.type-list a:hover { color: var(--primary); background: var(--blue-bg); text-decoration: none; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb { font-size: .83rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb li::after { content: '›'; margin-left: .25rem; color: var(--border2); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current=page] { color: var(--text); font-weight: 700; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pager {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}
.pager a {
  padding: .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text2);
  background: var(--card);
  font-weight: 600;
  transition: all .15s;
}
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(30,64,175,.3); }
.pager a:hover:not(.active) { border-color: var(--primary); color: var(--primary); background: var(--blue-bg); text-decoration: none; }

/* ── Filter Bar ──────────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  font-size: .9rem;
  box-shadow: var(--shadow);
}
.filter-bar form { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; width: 100%; }
.filter-bar select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .88rem;
  background: var(--bg);
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: border-color .15s;
}
.filter-bar select:focus { outline: none; border-color: var(--primary); }
.check-label { display: flex; align-items: center; gap: .35rem; cursor: pointer; font-weight: 600; color: var(--text2); }
.active-filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .85rem; font-size: .83rem; }
.filter-tag {
  background: var(--blue-bg);
  color: var(--primary);
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.filter-tag a { color: var(--primary); margin-left: .3rem; }
.result-count { color: var(--muted); margin-left: auto; font-weight: 600; font-size: .85rem; }

/* ── Job Detail ──────────────────────────────────────────────────────────────── */
.jd-header {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.jd-header-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 60%, #f59e0b 100%);
}
.jd-header-body { padding: 1.75rem; }
.jd-header-top {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.jd-company-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.jd-header-info { flex: 1; min-width: 0; }
.jd-header h1 {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  margin-bottom: .35rem;
  line-height: 1.25;
}
.jd-company {
  display: flex;
  gap: .4rem .85rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: .3rem;
}
.jd-company strong { color: var(--text); font-weight: 700; }
.jd-company-sep { color: var(--border); font-size: 1.1em; }
.jd-salary { color: var(--success) !important; font-weight: 700 !important; }
.jd-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.jd-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--bg2);
  flex-wrap: wrap;
}
.views-count {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

/* Section cards */
.jd-section {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jd-section-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  background: linear-gradient(to right, var(--bg2) 0%, var(--card) 100%);
  border-bottom: 1.5px solid var(--border);
}
.jd-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.jd-section h2 {
  font-size: .95rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: .01em;
  color: var(--text);
}
.jd-body { padding: 1.5rem; }
.jd-content { font-size: .93rem; }

/* ── Description rich text ── */
.jd-para {
  line-height: 1.9;
  color: var(--text2);
  margin-bottom: .85rem;
}
.jd-para:last-child { margin-bottom: 0; }

.jd-heading {
  display: flex;
  align-items: center;
  margin: 1.4rem 0 .6rem;
}
.jd-heading:first-child { margin-top: 0; }
.jd-heading span {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: rgba(79,70,229,.07);
  border-left: 3px solid var(--primary);
  padding: .3rem .8rem;
  border-radius: 0 5px 5px 0;
  line-height: 1.4;
}

.jd-list {
  list-style: none;
  padding: 0;
  margin: .2rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.jd-list:last-child { margin-bottom: 0; }
.jd-list li {
  position: relative;
  padding: .4rem .85rem .4rem 2.1rem;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color .15s, background .15s;
}
.jd-list li:hover {
  background: #f0f4ff;
  border-color: #c7d2fe;
}
.jd-list li::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: .65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Meta grid */
.jd-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .75rem;
  padding: 1.25rem 1.5rem;
}
.meta-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.meta-item strong {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.meta-item span { font-size: .91rem; font-weight: 700; color: var(--text); }

/* Apply CTA */
.jd-apply-cta {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 60%, #9333ea 100%);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.jd-apply-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.07) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.jd-apply-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
  position: relative;
}
.jd-apply-cta p {
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  position: relative;
}
.jd-apply-cta .btn-apply {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: #4338ca;
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  position: relative;
}
.jd-apply-cta .btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  color: #3730a3;
}
.jd-apply-cta .btn-apply::after { content: ' →'; }

/* Sidebar */
.related-job { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.related-job:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.related-job a { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .15rem; }
.related-job span { font-size: .8rem; color: var(--muted); }
.share-links { display: flex; gap: .5rem; }
.share-btn { padding: .5rem 1.15rem; border-radius: 8px; font-size: .85rem; font-weight: 700; color: #fff; text-decoration: none; transition: opacity .15s, transform .1s; }
.share-btn:hover { opacity: .88; text-decoration: none; color: #fff; transform: translateY(-1px); }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }

/* ── Google Sign-In button ───────────────────────────────────────────────────── */
.btn-google-signin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  padding: .42rem .95rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  font-family: inherit;
}
.btn-google-signin:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none;
  color: #3c4043;
}

/* ── User nav widget ─────────────────────────────────────────────────────────── */
/* ── User Nav Widget (trigger) ───────────────────────────────────────────── */
.user-nav-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  padding: .25rem .55rem .25rem .25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.user-nav-widget:hover,
.user-nav-widget.user-nav-open {
  background: var(--bg2);
  border-color: var(--border2);
}
.user-nav-avatar-wrap {
  position: relative; display: inline-flex; flex-shrink: 0;
}
.user-nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(30,64,175,.15);
}
.user-nav-avatar-premium .user-nav-avatar,
.user-nav-avatar-premium .user-nav-initial {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,.35), 0 0 8px rgba(245,158,11,.25);
}
.user-nav-crown {
  position: absolute; bottom: -4px; right: -4px;
  font-size: .65rem; line-height: 1;
  background: #f59e0b; color: #fff;
  border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.user-nav-initial {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
  border: 2px solid rgba(255,255,255,.25);
}
.user-nav-name {
  font-size: .85rem; font-weight: 700; color: var(--text);
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-nav-chevron {
  width: 14px; height: 14px; color: var(--muted); flex-shrink: 0;
  transition: transform .22s ease;
}
.user-nav-widget.user-nav-open .user-nav-chevron { transform: rotate(180deg); }

/* ── Dropdown shell ──────────────────────────────────────────────────────── */
.user-nav-drop {
  display: none;
  position: absolute; top: calc(100% + .65rem); right: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,64,175,.13), 0 2px 8px rgba(0,0,0,.07);
  min-width: 230px; z-index: 9999; overflow: hidden;
  animation: undDrop .18s ease;
}
@keyframes undDrop {
  from { opacity:0; transform:translateY(-6px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.user-nav-widget:hover .user-nav-drop,
.user-nav-widget:focus-within .user-nav-drop { display: block; }
/* ── Mobile: render dropdown fixed above everything ─────────────────────── */
@media (max-width: 768px) {
  .user-nav-widget { position: static; }
  .user-nav-drop {
    position: fixed;
    top: auto; right: .75rem;
    /* JS sets --und-top via style; fallback to 64px (typical nav height) */
    top: var(--und-top, 64px);
    left: .75rem; right: .75rem;
    min-width: 0; width: auto;
    max-height: calc(100dvh - var(--und-top, 64px) - 1rem);
    overflow-y: auto;
    z-index: 9999;
  }
}

/* ── Dropdown header ─────────────────────────────────────────────────────── */
.und-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}
.und-avatar-wrap {
  position: relative; display: inline-flex; flex-shrink: 0;
}
.und-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
  flex-shrink: 0;
}
.und-avatar-premium .und-avatar,
.und-avatar-premium .und-initial {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.3), 0 0 12px rgba(245,158,11,.2);
}
.und-crown {
  position: absolute; bottom: -3px; right: -3px;
  font-size: .7rem; line-height: 1;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.und-initial {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.und-role-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  margin-left: .3rem;
}
.und-info { min-width: 0; }
.und-name  { display: block; font-size: .88rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.und-email { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.und-role-badge { display: inline-block; margin-top: .35rem; font-size: .68rem; font-weight: 700; background: var(--primary); color: #fff; border-radius: 999px; padding: .1rem .5rem; }
.und-role-seeker { background: #16a34a; }

/* ── Dropdown sections ───────────────────────────────────────────────────── */
.und-section { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.und-section-last { border-bottom: none; }
.und-section a {
  display: flex; align-items: center; gap: .55rem;
  padding: .58rem 1.15rem;
  font-size: .85rem; font-weight: 600; color: var(--text2);
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  text-decoration: none;
}
.und-section a:hover {
  background: var(--bg); border-left-color: var(--primary); color: var(--primary);
  text-decoration: none;
}
.und-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.und-signout { color: #dc2626 !important; }
.und-signout:hover { background: #fef2f2 !important; border-left-color: #dc2626 !important; color: #dc2626 !important; }

/* ── Save Job button ─────────────────────────────────────────────────────────── */
.btn-save-job {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg2);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .55rem 1rem;
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn-save-job:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,.06);
}
.btn-save-job.saved {
  background: rgba(79,70,229,.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Profile page ────────────────────────────────────────────────────────────── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.profile-avatar-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.profile-name { font-size: 1.25rem; font-weight: 800; margin-bottom: .2rem; }
.profile-email { color: var(--muted); font-size: .9rem; margin-bottom: .15rem; }
.profile-since { color: var(--muted); font-size: .8rem; }
.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}
.profile-section-head h2 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.saved-count {
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 20px;
  vertical-align: middle;
}
.saved-job-card { margin-bottom: .85rem; }

/* ── Category Page Header ────────────────────────────────────────────────────── */
.cat-page-header {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
}
.cat-big-icon {
  font-size: 2.75rem;
  line-height: 1;
  flex-shrink: 0;
  background: var(--blue-bg);
  padding: .6rem;
  border-radius: 12px;
}
.cat-page-header h1 { font-size: 1.55rem; margin-bottom: .3rem; }
.cat-page-header p { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ── Search Page ─────────────────────────────────────────────────────────────── */
.search-header { margin-bottom: 1.35rem; }
.search-header h1 { font-size: 1.45rem; margin-bottom: .85rem; }
.empty-state {
  background: var(--card);
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}
.suggest-searches { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.suggest-searches a {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: .3rem .85rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text2);
  transition: all .15s;
}
.suggest-searches a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; font-weight: 600; }

/* ── Search auto-generate loading UI ─────────────────────────────────────────── */
.sg-loading {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.sg-spinner-wrap {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}
.sg-spinner {
  width: 52px; height: 52px;
  border: 4px solid var(--blue-bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sgSpin .85s linear infinite;
}
@keyframes sgSpin { to { transform: rotate(360deg); } }
.sg-title {
  font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: .5rem;
}
.sg-title em { font-style: normal; color: var(--primary); }
.sg-sub { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.sg-dots { display: flex; gap: .45rem; justify-content: center; }
.sg-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-l); opacity: .3;
  animation: sgDot 1.4s ease-in-out infinite;
}
.sg-dots span:nth-child(2) { animation-delay: .2s; }
.sg-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes sgDot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40%           { opacity: 1;  transform: scale(1.2); }
}
.sg-failed {
  background: var(--card);
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

/* ── SEO Content ─────────────────────────────────────────────────────────────── */
.seo-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.seo-section > .container > h2 { font-size: 1.35rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--bg2); }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.seo-grid h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--primary); }
.seo-grid p { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: .75rem; }
.feature-list { margin-top: .25rem; }
.feature-list li {
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--text2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.faq-section { border-top: 1px solid var(--border); padding-top: 2rem; }
.faq-section h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.faq-item {
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item h4 {
  font-size: .95rem;
  color: var(--primary);
  background: var(--blue-bg);
  padding: .85rem 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.faq-item p { font-size: .9rem; color: var(--muted); padding: .85rem 1.1rem; line-height: 1.75; }

/* ── PJAX Loading Bar ────────────────────────────────────────────────────────── */
#pjax-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  opacity: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-l) 60%, var(--accent) 100%);
  background-size: 200% 100%;
  z-index: 9999;
  pointer-events: none;
  animation: pjax-shimmer 1.2s linear infinite;
}
@keyframes pjax-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Ad Slots ────────────────────────────────────────────────────────────────── */
.ad-slot {
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  margin-top: 3.5rem;
  border-top: 3px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.25rem 2rem;
}
.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: .9rem;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.footer-logo { display: inline-block; margin-bottom: .75rem; }
.footer-logo img { display: block; height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-grid p { font-size: .85rem; line-height: 1.8; }
.footer-grid ul li { margin: .45rem 0; }
.footer-grid a {
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 1.1rem;
  font-size: .82rem;
}
.footer-bottom p { color: #64748b; }

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.admin-wrap { max-width: 1000px; margin: 2rem auto; padding: 0 1.25rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-header h1 { font-size: 1.45rem; font-weight: 800; }
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: var(--bg);
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8faff; }
.status-active   { color: var(--success); font-weight: 700; }
.status-inactive { color: #dc2626; font-weight: 700; }
.admin-form {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 780px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { width: auto; }
.flash { padding: .85rem 1.1rem; border-radius: 8px; margin-bottom: 1.1rem; font-size: .9rem; font-weight: 600; }
.flash-ok  { background: var(--success-bg); color: var(--success); border: 1px solid #86efac; }
.flash-err { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.login-box { max-width: 420px; margin: 5rem auto; padding: 0 1.25rem; }
.login-box h1 { text-align: center; margin-bottom: 1.5rem; font-size: 1.7rem; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr 290px; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .search-row { flex-wrap: wrap; border-radius: 12px; }
  .search-row select { width: 100%; border-top: 1px solid var(--border); }
  .search-row .btn { border-radius: 0 0 10px 10px; width: 100%; justify-content: center; }
  .seo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .jd-header-top { flex-direction: row; align-items: flex-start; }
  .jd-company-logo { width: 44px; height: 44px; font-size: 1rem; border-radius: 10px; }
  .jd-body { padding: 1.1rem; }
  .jd-section-head { padding: .75rem 1.1rem; }
  .jd-meta-grid { padding: 1rem 1.1rem; gap: .6rem; }
  .jd-apply-cta { padding: 1.5rem 1.25rem; }
  /* ── Mobile hamburger ── */
  .nav-hamburger { display: flex; }

  /* ── Mobile nav drawer ── */
  nav#main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 8px 32px rgba(30,64,175,.15);
    padding: .5rem .75rem 1rem;
    z-index: 199;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  nav#main-nav.nav-open {
    display: flex;
    animation: nav-slide-in .2s ease;
  }
  nav#main-nav a {
    font-size: .95rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    white-space: normal;
    border-bottom: 1px solid var(--border);
  }
  nav#main-nav a:last-child { border-bottom: none; }
  nav#main-nav .nav-cv-builder,
  nav#main-nav .nav-ats-link { position: relative; }
  nav#main-nav .nav-post-job-btn {
    margin-top: .5rem;
    text-align: center;
    border-radius: 8px !important;
    border-bottom: none !important;
  }
  nav#main-nav .nav-free-tag,
  nav#main-nav .nav-premium-tag {
    position: static;
    display: inline-block;
    margin-left: .4rem;
    vertical-align: middle;
    font-size: .6rem;
    padding: 2px 6px;
    border-radius: 999px;
  }

  /* ── Compact sign-in button on mobile ── */
  .btn-google-signin { font-size: .8rem; padding: .45rem .7rem; gap: .4rem; }
  .btn-google-signin svg { width: 16px; height: 16px; }

  .form-2col { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-orb-1 { width: 320px; height: 320px; top: -120px; right: -80px; }
  .hero-orb-2 { width: 260px; height: 260px; bottom: -100px; left: -60px; }
  .hero-orb-3 { width: 180px; height: 180px; opacity: .4; }
  .hero-orb { filter: blur(60px); }
  .hero-stats { gap: .65rem; }
  .section-title { font-size: 1.25rem; }
  .trust-items { gap: 1rem; font-size: .78rem; }
}

/* ── User nav dropdown: tap/click support ────────────────────────────────────── */
.user-nav-widget.user-nav-open .user-nav-drop { display: block; }
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: .95rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    max-width: 340px;
    margin: 1.25rem auto 0;
  }
  .hero-stat { padding: .6rem .75rem; border-radius: 12px; }
  .hero-stat strong { font-size: 1.1rem; }
  .hero-stat span { font-size: .63rem; }
  .hero-stat-icon { font-size: 1rem; }
  .trending-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: .25rem 0 .6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trending-tags::-webkit-scrollbar { display: none; }
  .trending-label { flex-shrink: 0; }
  .trending-tags a { flex-shrink: 0; }
  .job-card { padding: .9rem 1rem; }
  .section { padding: 2rem 0; }
  /* On very small screens hide "Sign in with Google" text, show just the G icon */
  .btn-google-signin .g-signin-text { display: none; }
  .btn-google-signin { padding: .45rem .6rem; }
  .user-nav-name { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CV BUILDER
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cv-hero {
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,#0f0c29 0%,#1e1b4b 35%,#2d2a7a 65%,#4c1d95 100%);
  color:#fff; padding:5rem 0 4rem; margin-bottom:2rem;
}
/* Background decorations */
.cv-hero-bg { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.cv-hero-orb {
  position:absolute; border-radius:50%;
  filter:blur(80px); opacity:.45;
}
.cv-hero-orb-1 { width:420px; height:420px; background:radial-gradient(circle,#7c3aed,transparent); top:-120px; right:-60px; animation:cv-float 9s ease-in-out infinite; }
.cv-hero-orb-2 { width:320px; height:320px; background:radial-gradient(circle,#4338ca,transparent); bottom:-80px; left:-80px; animation:cv-float 11s ease-in-out infinite reverse; }
.cv-hero-orb-3 { width:220px; height:220px; background:radial-gradient(circle,#0891b2,transparent); top:40%; right:28%; opacity:.3; animation:cv-float 13s ease-in-out infinite 1s; }
.cv-hero-grid {
  position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:40px 40px;
}
@keyframes cv-float {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-22px) scale(1.06); }
}
/* Layout */
.cv-hero-container { position:relative; z-index:1; }
.cv-hero-inner { display:grid; grid-template-columns:1fr 300px; gap:4rem; align-items:center; }
.cv-hero-copy {}
/* Badge */
.cv-hero-badge {
  display:inline-flex; align-items:center; gap:.5rem;
  background:rgba(255,255,255,.1); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2); border-radius:999px;
  padding:.35rem 1rem; font-size:.82rem; margin-bottom:1.25rem; letter-spacing:.03em;
}
.cv-hero-badge-dot {
  width:8px; height:8px; border-radius:50%; background:#22c55e; flex-shrink:0;
  box-shadow:0 0 0 3px rgba(34,197,94,.3);
  animation:cv-pulse 2.5s ease-in-out infinite;
}
@keyframes cv-pulse {
  0%,100% { box-shadow:0 0 0 3px rgba(34,197,94,.3); }
  50%      { box-shadow:0 0 0 7px rgba(34,197,94,.08); }
}
/* Headline */
.cv-hero h1 {
  font-size:clamp(2rem,4.5vw,3.2rem); font-weight:800; color:#fff;
  line-height:1.15; letter-spacing:-.025em; margin:.25rem 0 1.1rem;
}
.cv-hero-grad {
  background:linear-gradient(135deg,#a78bfa 0%,#60a5fa 50%,#34d399 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
/* Sub-text */
.cv-hero p {
  color:rgba(255,255,255,.72); font-size:1.05rem;
  line-height:1.7; margin-bottom:1.5rem; max-width:500px;
}
/* Feature pills */
.cv-hero-feats { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1.75rem; }
.cv-hero-feat {
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:999px; padding:.3rem .8rem; font-size:.8rem;
  color:rgba(255,255,255,.88); transition:background .2s, border-color .2s;
  cursor:default;
}
.cv-hero-feat:hover { background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.3); }
/* CTA buttons */
.cv-hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:2rem; }
.cv-hero-cta {
  background:linear-gradient(135deg,#6d28d9,#4f46e5); border:none;
  box-shadow:0 4px 24px rgba(79,70,229,.5); color:#fff;
  transition:box-shadow .2s, transform .15s;
}
.cv-hero-cta:hover { box-shadow:0 8px 36px rgba(79,70,229,.75); transform:translateY(-2px); color:#fff; }
.cv-hero-demo {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.3);
  color:#fff; backdrop-filter:blur(4px);
  transition:background .2s, border-color .2s;
}
.cv-hero-demo:hover { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.55); color:#fff; }
/* Stats row */
.cv-hero-stats { display:flex; align-items:center; gap:1.5rem; }
.cv-hero-stat strong { display:block; font-size:1.4rem; font-weight:800; color:#fff; line-height:1.1; }
.cv-hero-stat span { font-size:.72rem; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.06em; }
.cv-hero-stat-div { width:1px; height:30px; background:rgba(255,255,255,.18); }
/* Visual column */
.cv-hero-visual { position:relative; display:flex; align-items:center; justify-content:center; padding:1.5rem 0; }
/* Floating template labels */
.cv-hero-tpl-badge {
  position:absolute; background:rgba(255,255,255,.14); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.25); border-radius:999px;
  padding:.3rem .8rem; font-size:.72rem; font-weight:600; color:#fff; z-index:2;
}
.cv-hero-tpl-1 { top:-8px; left:-12px; animation:cv-float 7s ease-in-out infinite; }
.cv-hero-tpl-2 { bottom:30px; left:-18px; animation:cv-float 10s ease-in-out infinite 1.2s; }
.cv-hero-tpl-3 { top:20px; right:-8px; animation:cv-float 8.5s ease-in-out infinite .6s; }
/* CV card mockup */
.cv-hero-card {
  background:#fff; border-radius:16px; width:250px;
  box-shadow:0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  overflow:hidden; position:relative; z-index:1;
  animation:cv-float 9s ease-in-out infinite 2s;
}
.cv-hero-card-header {
  background:linear-gradient(135deg,#4338ca,#7c3aed);
  padding:1rem .9rem; display:flex; align-items:flex-start; gap:.65rem;
}
.cv-hero-card-avatar {
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  background:rgba(255,255,255,.22); border:2px solid rgba(255,255,255,.45);
  color:#fff; font-weight:800; font-size:.88rem;
  display:flex; align-items:center; justify-content:center;
}
.cv-hero-card-info { flex:1; min-width:0; }
.cv-hero-card-name { font-weight:700; font-size:.88rem; color:#fff; }
.cv-hero-card-role { font-size:.72rem; color:rgba(255,255,255,.78); margin:.1rem 0; }
.cv-hero-card-loc  { font-size:.66rem; color:rgba(255,255,255,.58); }
.cv-hero-card-score { text-align:center; flex-shrink:0; }
.cv-hero-card-score-val { font-size:.95rem; font-weight:800; color:#fff; }
.cv-hero-card-score-lbl { font-size:.6rem;  color:rgba(255,255,255,.65); }
.cv-hero-card-body { padding:.7rem .9rem .5rem; }
.cv-hero-card-skill-lbl { font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#9ca3af; margin-bottom:.4rem; }
.cv-hero-card-skill { display:flex; align-items:center; gap:.45rem; margin-bottom:.35rem; font-size:.68rem; color:#374151; }
.cv-hero-card-skill span { width:42px; flex-shrink:0; }
.cv-hsk-track { flex:1; height:4px; background:#f0f0f0; border-radius:2px; overflow:hidden; }
.cv-hsk-fill  { height:100%; background:linear-gradient(90deg,#4f46e5,#7c3aed); border-radius:2px; }
.cv-hero-card-exp { padding:.45rem .9rem; background:#fafafa; border-top:1px solid #f0f0f0; }
.cv-hero-card-exp-title { font-size:.74rem; font-weight:600; color:#111827; }
.cv-hero-card-exp-dur   { font-size:.64rem; color:#9ca3af; }
.cv-hero-card-footer { display:flex; gap:.3rem; padding:.55rem .9rem; flex-wrap:wrap; }
.cv-hero-card-tag {
  background:#ede9fe; color:#5b21b6; border-radius:999px;
  padding:.12rem .5rem; font-size:.62rem; font-weight:600;
}
/* Floating "PDF Ready" badge */
.cv-hero-float-badge {
  position:absolute; bottom:-14px; right:-16px; z-index:3;
  background:linear-gradient(135deg,#059669,#10b981);
  color:#fff; border-radius:999px; padding:.45rem 1rem;
  font-size:.78rem; font-weight:700;
  box-shadow:0 4px 20px rgba(16,185,129,.45);
  animation:cv-float 6s ease-in-out infinite 3s;
}

/* ── Saved CVs ─────────────────────────────────────────────────────────────── */
.cv-saved-list { display:grid; gap:.75rem; }
.cv-saved-card {
  display:flex; align-items:center; gap:1rem; background:var(--bg2);
  border:1px solid var(--border); border-radius:10px; padding:.9rem 1rem;
}
.cv-saved-card-tpl {
  width:42px; height:52px; border-radius:6px; display:flex; align-items:center;
  justify-content:center; font-size:.55rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; color:#fff; flex-shrink:0;
}
.cv-saved-tpl-classic { background:#4f46e5; }
.cv-saved-tpl-modern  { background:#7c3aed; }
.cv-saved-tpl-minimal { background:#374151; }
.cv-saved-card-info { flex:1; min-width:0; }
.cv-saved-card-info strong { display:block; font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cv-saved-card-info span { font-size:.8rem; color:var(--muted); display:block; }
.cv-saved-card-info small { font-size:.75rem; color:var(--muted); }
.cv-saved-card-acts { display:flex; gap:.4rem; flex-shrink:0; }

/* ── Builder Layout ────────────────────────────────────────────────────────── */
.cv-builder-wrap { padding-bottom:4rem; }
.cv-steps-bar {
  display:flex; gap:0; margin-bottom:1.5rem; background:var(--bg2);
  border:1px solid var(--border); border-radius:10px; padding:.5rem; overflow-x:auto;
}
.cv-step {
  display:flex; flex-direction:column; align-items:center; gap:.2rem;
  padding:.5rem .8rem; border-radius:8px; cursor:pointer; flex:1; min-width:70px;
  transition:background .15s;
}
.cv-step:hover { background:var(--bg3,#f3f4f6); }
.cv-step.active { background:var(--primary); color:#fff; }
.cv-step.done .cv-step-num { background:#dcfce7; color:#15803d; }
.cv-step-num {
  width:24px; height:24px; border-radius:50%; background:var(--border);
  display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700;
}
.cv-step.active .cv-step-num { background:rgba(255,255,255,.25); color:#fff; }
.cv-step span { font-size:.72rem; font-weight:600; white-space:nowrap; }

.cv-builder-layout { display:grid; grid-template-columns:1fr 26px 1fr; gap:1.5rem; align-items:start; }

/* ── Form Panel ────────────────────────────────────────────────────────────── */
.cv-form-panel {
  background:var(--bg2); border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.cv-step-pane { display:none; padding:1.5rem; }
.cv-step-pane.active { display:block; }
.cv-pane-title { font-size:1.2rem; margin:0 0 1.25rem; color:var(--text); }
.cv-sub-head { font-size:.95rem; font-weight:700; margin:0 0 .75rem; color:var(--text); }
.cv-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.cv-field { display:flex; flex-direction:column; gap:.3rem; }
.cv-field-full { grid-column:1/-1; }
.cv-field label { font-size:.8rem; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.cv-field label small { text-transform:none; letter-spacing:0; font-weight:400; margin-left:.3rem; }
.cv-field input, .cv-field textarea, .cv-field select {
  padding:.6rem .75rem; border:1.5px solid var(--border); border-radius:7px;
  background:var(--bg); color:var(--text); font-size:.9rem; font-family:inherit; transition:border-color .15s;
}
.cv-field input:focus, .cv-field textarea:focus, .cv-field select:focus {
  outline:none; border-color:var(--primary);
}
.cv-field textarea { resize:vertical; line-height:1.5; }
.cv-field-foot { display:flex; justify-content:space-between; align-items:center; margin-top:.4rem; }
.cv-char-count { font-size:.75rem; color:var(--muted); }
.cv-tip {
  background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px;
  padding:.75rem 1rem; font-size:.85rem; color:#1e40af; margin-top:1rem;
}
.cv-nav-btns {
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 1.5rem; border-top:1px solid var(--border);
}

/* ── Dynamic Entries ───────────────────────────────────────────────────────── */
.cv-dyn-entry {
  background:var(--bg); border:1px solid var(--border); border-radius:9px;
  padding:1rem; margin-bottom:.75rem; position:relative;
}
.cv-dyn-row { display:flex; align-items:center; gap:.5rem; }
.cv-dyn-row input { flex:1; }
.cv-skill-pct { font-size:.8rem; font-weight:600; color:var(--primary); white-space:nowrap; min-width:35px; text-align:right; }
.cv-entry-remove {
  position:absolute; top:.6rem; right:.6rem; background:none; border:none;
  color:var(--muted); cursor:pointer; font-size:.85rem; padding:.2rem .4rem;
  border-radius:5px; line-height:1;
}
.cv-entry-remove:hover { background:#fee2e2; color:#dc2626; }
.cv-range {
  width:100%; margin-top:.5rem; accent-color:var(--primary); cursor:pointer;
}

/* ── Template Cards ────────────────────────────────────────────────────────── */
.cv-tpl-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; }
.cv-tpl-card {
  border:2px solid var(--border); border-radius:10px; padding:.75rem;
  cursor:pointer; transition:border-color .15s, transform .1s; text-align:center;
}
.cv-tpl-card:hover { border-color:var(--primary); transform:translateY(-2px); }
.cv-tpl-card.active { border-color:var(--primary); background:#eff6ff; }
.cv-tpl-card span { font-size:.8rem; font-weight:600; margin-top:.5rem; display:block; color:var(--text); }
.cv-tpl-thumb { height:80px; border-radius:6px; overflow:hidden; margin-bottom:.4rem; }
.cv-tpl-thumb-classic { background:#f8fafc; border:1px solid #e2e8f0; }
.cv-tpl-thumb-classic .ct-bar { height:20px; background:#4f46e5; }
.cv-tpl-thumb-classic .ct-lines { padding:.5rem .4rem; }
.cv-tpl-thumb-modern { background:#f8fafc; border:1px solid #e2e8f0; display:flex; }
.cv-tpl-thumb-modern .ct-sidebar { width:35%; background:#7c3aed; }
.cv-tpl-thumb-modern .ct-lines { padding:.5rem .4rem; flex:1; }
.cv-tpl-thumb-minimal { background:#fff; border:1px solid #e2e8f0; padding:.4rem; }
.cv-tpl-thumb-minimal .ct-min-name { height:10px; background:#000; border-radius:2px; margin-bottom:.35rem; }
.cv-tpl-thumb-minimal .ct-min-line { height:1px; background:#000; margin-bottom:.4rem; }
.ct-lines div { height:6px; background:#e2e8f0; border-radius:3px; margin-bottom:.25rem; width:100%; }

/* Executive thumbnail */
.cv-tpl-thumb-executive { background:#f0f4ff; border:1px solid #e2e8f0; overflow:hidden; }
.cv-tpl-thumb-executive .ct-exec-head { height:22px; background:#4f46e5; }
.cv-tpl-thumb-executive .ct-exec-body { display:flex; height:58px; }
.cv-tpl-thumb-executive .ct-exec-left { width:40%; background:#f1f5f9; padding:.3rem .25rem; }
.cv-tpl-thumb-executive .ct-exec-right { flex:1; padding:.3rem .25rem; }
.cv-tpl-thumb-executive .ct-exec-left div,.cv-tpl-thumb-executive .ct-exec-right div { height:5px; background:#e2e8f0; border-radius:2px; margin-bottom:.2rem; }
/* Sharp thumbnail */
.cv-tpl-thumb-sharp { background:#fff; border:1px solid #e2e8f0; padding:.4rem; }
.cv-tpl-thumb-sharp .ct-sharp-name { height:12px; background:#111; border-radius:2px; margin-bottom:.25rem; width:80%; }
.cv-tpl-thumb-sharp .ct-sharp-line { height:3px; background:#4f46e5; margin-bottom:.3rem; border-radius:1px; }
.cv-tpl-thumb-sharp .ct-sharp-lines { display:grid; grid-template-columns:1fr 1fr; gap:.2rem; }
.cv-tpl-thumb-sharp .ct-sharp-lines div { height:5px; background:#e2e8f0; border-radius:2px; }
/* Creative thumbnail */
.cv-tpl-thumb-creative { background:#f8f7ff; border:1px solid #e2e8f0; display:flex; overflow:hidden; }
.cv-tpl-thumb-creative .ct-creative-sidebar { width:38%; background:#4f46e5; }
.cv-tpl-thumb-creative .ct-creative-body { flex:1; padding:.3rem; }
.cv-tpl-thumb-creative .ct-creative-body div { height:5px; background:#e2e8f0; border-radius:2px; margin-bottom:.2rem; }

/* ── Color Picker ──────────────────────────────────────────────────────────── */
.cv-color-row { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.cv-color-swatch {
  width:28px; height:28px; border-radius:50%; cursor:pointer; border:2px solid transparent;
  transition:transform .15s, border-color .15s;
}
.cv-color-swatch:hover { transform:scale(1.15); }
.cv-color-swatch.active { border-color:#fff; outline:2px solid var(--primary); }
.cv-color-custom { cursor:pointer; font-size:1.1rem; display:flex; align-items:center; }
.cv-color-custom input[type=color] { width:0; height:0; opacity:0; position:absolute; }

/* ── Export Buttons ────────────────────────────────────────────────────────── */
.cv-export-btns { display:flex; gap:.75rem; flex-wrap:wrap; }
.cv-btn-pdf { background:linear-gradient(135deg,#dc2626,#b91c1c); color:#fff; border:none; text-decoration:none; }
.cv-btn-pdf:hover { background:linear-gradient(135deg,#b91c1c,#991b1b); color:#fff; }
.cv-btn-pdf-disabled { background:#e5e7eb !important; color:#9ca3af !important; cursor:not-allowed; pointer-events:none; box-shadow:none !important; }

/* ── Save Steps ─────────────────────────────────────────────────────────────── */
.cv-save-step { display:flex; gap:.85rem; align-items:flex-start; margin-bottom:1rem; padding:1rem; background:var(--bg2); border:1px solid var(--border); border-radius:10px; }
.cv-save-step-num { width:28px; height:28px; border-radius:50%; background:var(--primary); color:#fff; font-size:.82rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cv-save-step-num-2 { background:#e5e7eb; color:#9ca3af; }
.cv-save-step-num-done { background:#059669 !important; color:#fff !important; }
.cv-save-step-body { flex:1; min-width:0; }
.cv-save-step-label { font-weight:600; font-size:.9rem; color:var(--text); }
.cv-save-step-desc { font-size:.78rem; color:var(--muted); margin-top:.15rem; }

.cv-share-box { margin-top:1rem; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:1rem; }
.cv-share-link-row { display:flex; gap:.5rem; margin-top:.5rem; }
.cv-share-link-row input { flex:1; padding:.5rem .75rem; border:1px solid var(--border); border-radius:7px; font-size:.85rem; background:var(--bg); color:var(--text); }

/* ── Preview Panel ─────────────────────────────────────────────────────────── */
.cv-preview-toggle-tab {
  position:sticky; top:calc(50vh - 17px); align-self:flex-start;
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  background:#fff; color:var(--primary);
  border:1.5px solid var(--border2); border-radius:50%;
  cursor:pointer; z-index:10;
  box-shadow:0 2px 8px rgba(30,64,175,.15);
  transition:background .18s, color .18s, border-color .18s, box-shadow .18s;
  padding:0;
}
.cv-preview-toggle-tab:hover {
  background:var(--primary); color:#fff;
  border-color:var(--primary);
  box-shadow:0 4px 16px rgba(30,64,175,.35);
}
.cv-preview-toggle-tab svg { transition:transform .3s ease; }
.cv-builder-layout.cv-preview-hidden .cv-preview-toggle-tab svg { transform:rotate(180deg); }

/* Rebuild the 3-column layout: [form] [tab] [preview] */
.cv-builder-layout { grid-template-columns:1fr 34px 1fr; }
.cv-builder-layout.cv-preview-hidden { grid-template-columns:1fr 34px 0px; }
.cv-builder-layout.cv-preview-hidden .cv-preview-panel { display:none; }

.cv-preview-panel {
  position:sticky; top:80px; background:var(--bg2); border:1px solid var(--border);
  border-radius:12px; overflow:hidden;
}
.cv-preview-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:.75rem 1rem; border-bottom:1px solid var(--border); background:var(--bg);
}
.cv-preview-label { font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.cv-preview-action-btn { background:var(--primary); color:#fff; border:none; transition:background .2s; }
.cv-preview-action-btn:hover { background:#4338ca; color:#fff; }
.cv-preview-action-btn.cv-preview-action-saved { background:linear-gradient(135deg,#dc2626,#b91c1c); }
.cv-preview-action-btn.cv-preview-action-saved:hover { background:linear-gradient(135deg,#b91c1c,#991b1b); }
.cv-preview-frame { background:#d1d5db; padding:.75rem; max-height:720px; overflow-y:auto; }
.cv-mobile-preview-btn { display:none; position:fixed; bottom:5rem; right:1.5rem; z-index:9999; }

/* ── CV View page ──────────────────────────────────────────────────────────── */
.cv-view-toolbar {
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 0; border-bottom:1px solid var(--border); margin-bottom:1.5rem;
}
.cv-view-wrap { padding-bottom:3rem; }
.cv-view-wrap #cv-preview { max-width:820px; margin:0 auto; }

/* ── Share Modal ───────────────────────────────────────────────────────────── */
.cv-modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:1000;
  display:flex; align-items:center; justify-content:center; padding:1rem;
}
.cv-modal {
  background:var(--bg2); border-radius:14px; padding:2rem; max-width:480px; width:100%;
  position:relative; box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.cv-modal h3 { margin:0 0 .75rem; font-size:1.2rem; }
.cv-modal p { color:var(--muted); margin-bottom:1rem; font-size:.9rem; }
.cv-modal-close {
  position:absolute; top:.75rem; right:.75rem; background:none; border:none;
  font-size:1.1rem; cursor:pointer; color:var(--muted); padding:.25rem .5rem; border-radius:5px;
}
.cv-modal-close:hover { background:var(--bg); color:var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════════
   CV TEMPLATES  (shared between preview + cv/view.php)
   ═══════════════════════════════════════════════════════════════════════════════ */
#cv-preview, .cv-view-wrap #cv-preview {
  font-size:13px; line-height:1.55; color:#1f2937; background:#fff;
  font-family:'Segoe UI', Arial, sans-serif;
}

/* ── Common sections ───────────────────────────────────────────────────────── */
.cv-section { margin-bottom:1.1rem; }
.cv-sec-title {
  font-size:1em; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  color:var(--cv-color,#4f46e5); border-bottom:2px solid var(--cv-color,#4f46e5);
  padding-bottom:.25rem; margin:0 0 .7rem;
}
.cv-entry { margin-bottom:.7rem; }
.cv-entry-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; }
.cv-entry-head strong { font-size:1em; font-weight:700; }
.cv-entry-date { font-size:.85em; color:#6b7280; white-space:nowrap; flex-shrink:0; }
.cv-entry-sub { font-size:.9em; color:#4b5563; margin:.1rem 0; }
.cv-entry-desc { font-size:.88em; color:#374151; margin:.35rem 0 0; line-height:1.5; }
.cv-list { margin:.35rem 0 0; padding-left:1.25rem; }
.cv-list li { font-size:.9em; margin-bottom:.2rem; }
.cv-socials { font-size:.85em; color:#4b5563; }
.cv-link { font-size:.8em; color:var(--cv-color,#4f46e5); word-break:break-all; }
.cv-photo { width:70px; height:70px; border-radius:50%; object-fit:cover; float:right; margin:0 0 .5rem .75rem; }

/* ── Skill bars (Classic) ──────────────────────────────────────────────────── */
.cv-skills-grid { display:grid; grid-template-columns:1fr 1fr; gap:.4rem .75rem; }
.cv-skill { }
.cv-skill-label { display:flex; justify-content:space-between; font-size:.85em; margin-bottom:.15rem; }
.cv-skill-bar { height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; }
.cv-skill-fill { height:100%; background:var(--cv-color,#4f46e5); border-radius:3px; }

/* ── Classic ────────────────────────────────────────────────────────────────── */
.cv-tpl-classic .cv-header {
  background:var(--cv-color,#4f46e5); color:#fff; padding:1.5rem;
  display:flow-root;
}
.cv-tpl-classic .cv-name { font-size:1.8em; font-weight:800; margin:0 0 .2rem; }
.cv-tpl-classic .cv-headline { font-size:1em; opacity:.85; margin:0 0 .6rem; font-weight:400; }
.cv-tpl-classic .cv-contacts { display:flex; flex-wrap:wrap; gap:.25rem .75rem; font-size:.82em; opacity:.9; }
.cv-tpl-classic .cv-body { padding:1.25rem 1.5rem; }
.cv-tpl-classic .cv-photo { border:3px solid rgba(255,255,255,.5); }

/* ── Modern ─────────────────────────────────────────────────────────────────── */
.cv-tpl-modern .cv-modern-inner { display:flex; min-height:500px; }
.cv-tpl-modern .cv-sidebar {
  width:36%; background:var(--cv-color,#4f46e5); color:#fff; padding:1.5rem;
  flex-shrink:0;
}
.cv-tpl-modern .cv-main { flex:1; padding:1.5rem; overflow:hidden; }
.cv-tpl-modern .cv-name { font-size:1.4em; font-weight:800; margin:0 0 .2rem; line-height:1.2; }
.cv-tpl-modern .cv-headline { font-size:.82em; opacity:.8; margin:0 0 1rem; }
.cv-tpl-modern .cv-sidebar-section { margin-top:1rem; }
.cv-tpl-modern .cv-sidebar-section h3 {
  font-size:.75em; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  opacity:.6; margin:0 0 .4rem; border-bottom:1px solid rgba(255,255,255,.2); padding-bottom:.25rem;
}
.cv-tpl-modern .cv-contact-item { font-size:.8em; opacity:.85; margin-bottom:.25rem; word-break:break-all; }
.cv-tpl-modern .cv-sec-title { color:var(--cv-color,#4f46e5); }
.cv-tpl-modern .cv-photo-round { width:72px; height:72px; border-radius:50%; object-fit:cover; display:block; margin:0 auto .75rem; border:3px solid rgba(255,255,255,.4); float:none; }
/* Skill dots */
.cv-skill-modern { display:flex; justify-content:space-between; align-items:center; margin-bottom:.4rem; }
.cv-skill-modern span { font-size:.78em; opacity:.9; flex:1; margin-right:.5rem; }
.cv-skill-dots { display:flex; gap:3px; }
.cv-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.25); }
.cv-dot.filled { background:rgba(255,255,255,.9); }
.cv-lang-item { display:flex; justify-content:space-between; font-size:.8em; opacity:.85; margin-bottom:.25rem; }
.cv-lang-item span { opacity:.65; font-size:.9em; }

/* ── Minimal ─────────────────────────────────────────────────────────────────── */
.cv-tpl-minimal { font-family:'Georgia', serif; padding:2rem; color:#111; }
.cv-tpl-minimal .cv-min-header { text-align:center; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:2px solid #111; }
.cv-tpl-minimal .cv-name { font-size:2em; font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin:0 0 .2rem; color:#111; }
.cv-tpl-minimal .cv-headline { font-size:.95em; color:#555; font-style:italic; margin:.2rem 0 .5rem; }
.cv-tpl-minimal .cv-contacts { font-size:.8em; color:#666; }
.cv-tpl-minimal .cv-min-section { margin-bottom:1.25rem; }
.cv-tpl-minimal .cv-min-section h2 {
  font-size:.75em; font-weight:700; letter-spacing:.12em; color:#444;
  border-bottom:1px solid #ccc; padding-bottom:.25rem; margin:0 0 .6rem; font-family:'Segoe UI',Arial,sans-serif;
}
.cv-tpl-minimal .cv-min-entry { margin-bottom:.75rem; }
.cv-tpl-minimal .cv-min-entry-head { display:flex; justify-content:space-between; }
.cv-tpl-minimal .cv-min-entry-head strong { font-size:.95em; }
.cv-tpl-minimal .cv-min-entry-head span { font-size:.8em; color:#666; }
.cv-tpl-minimal .cv-min-entry em { font-size:.85em; color:#555; display:block; }
.cv-tpl-minimal .cv-min-entry p { font-size:.88em; color:#333; margin:.3rem 0 0; }
.cv-tpl-minimal ul { margin:.35rem 0; padding-left:1.2rem; }
.cv-tpl-minimal li { font-size:.88em; }

/* ── Executive ───────────────────────────────────────────────────────────────── */
.cv-tpl-executive { font-family:'Segoe UI',Arial,sans-serif; color:#1a1a1a; }
.cv-tpl-executive .cv-exec-header { background:var(--cv-color); color:#fff; padding:1.5rem; display:flex; align-items:center; gap:1rem; }
.cv-tpl-executive .cv-exec-header .cv-name { color:#fff; font-size:1.8rem; margin:0; }
.cv-tpl-executive .cv-exec-header .cv-headline { color:rgba(255,255,255,.85); margin:.25rem 0 0; }
.cv-tpl-executive .cv-exec-header-info { flex:1; }
.cv-tpl-executive .cv-exec-contacts { color:rgba(255,255,255,.9); font-size:.82rem; margin-top:.4rem; display:flex; flex-wrap:wrap; gap:.4rem; }
.cv-tpl-executive .cv-exec-contacts span:not(:last-child)::after { content:' ·'; margin-left:.4rem; }
.cv-tpl-executive .cv-exec-body { display:grid; grid-template-columns:38% 1fr; }
.cv-tpl-executive .cv-exec-left { background:#f8fafc; padding:1rem; border-right:1px solid #e2e8f0; }
.cv-tpl-executive .cv-exec-right { padding:1rem; }
.cv-tpl-executive .cv-exec-section { margin-bottom:1rem; }
.cv-tpl-executive .cv-exec-section h3 { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--cv-color); border-bottom:2px solid var(--cv-color); padding-bottom:.2rem; margin:0 0 .5rem; font-weight:700; }
.cv-tpl-executive .cv-exec-section p { font-size:.87rem; line-height:1.5; margin:0; }
.cv-tpl-executive .cv-exec-section ul { margin:.2rem 0; padding-left:1.1rem; }
.cv-tpl-executive .cv-exec-section li { font-size:.85rem; }

/* ── Sharp ────────────────────────────────────────────────────────────────────── */
.cv-tpl-sharp { font-family:'Segoe UI',Arial,sans-serif; color:#1a1a1a; }
.cv-tpl-sharp .cv-sharp-header { padding:1.5rem 1.5rem .75rem; }
.cv-tpl-sharp .cv-sharp-name { font-size:2.2rem; font-weight:900; letter-spacing:-.03em; line-height:1; margin:0 0 .25rem; color:#111; }
.cv-tpl-sharp .cv-sharp-title { color:var(--cv-color); font-size:1rem; font-weight:600; margin:0 0 .5rem; }
.cv-tpl-sharp .cv-contacts { font-size:.8rem; color:#666; display:flex; flex-wrap:wrap; gap:.35rem; }
.cv-tpl-sharp .cv-contacts span:not(:last-child)::after { content:' |'; margin-left:.35rem; }
.cv-tpl-sharp .cv-sharp-divider { height:4px; background:var(--cv-color); }
.cv-tpl-sharp .cv-sharp-body { padding:1rem 1.5rem; }
.cv-tpl-sharp .cv-sharp-section { margin-bottom:1.1rem; }
.cv-tpl-sharp .cv-sharp-sec { font-size:.68rem; font-weight:800; letter-spacing:.18em; color:var(--cv-color); margin:0 0 .5rem; padding-left:.6rem; border-left:4px solid var(--cv-color); }
.cv-tpl-sharp .cv-sharp-skills { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; }
.cv-tpl-sharp .cv-sharp-skill-item { display:flex; align-items:center; gap:.5rem; font-size:.82rem; }
.cv-tpl-sharp .cv-sharp-skill-bar-wrap { flex:1; height:5px; background:#e2e8f0; border-radius:3px; overflow:hidden; }
.cv-tpl-sharp .cv-sharp-skill-fill { display:block; height:100%; background:var(--cv-color); border-radius:3px; }
.cv-tpl-sharp .cv-sharp-skill-name { width:110px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cv-tpl-sharp .cv-sharp-body p { font-size:.88rem; line-height:1.5; margin:0; }
.cv-tpl-sharp .cv-sharp-body ul { margin:.2rem 0; padding-left:1.1rem; }
.cv-tpl-sharp .cv-sharp-body li { font-size:.85rem; }

/* ── Creative ─────────────────────────────────────────────────────────────────── */
.cv-tpl-creative { font-family:'Segoe UI',Arial,sans-serif; }
.cv-tpl-creative .cv-creative-inner { display:flex; min-height:100%; }
.cv-tpl-creative .cv-creative-sidebar { width:37%; background:var(--cv-color); color:#fff; padding:1.5rem 1rem; }
.cv-tpl-creative .cv-creative-sidebar .cv-name { color:#fff; font-size:1.5rem; margin:0 0 .2rem; }
.cv-tpl-creative .cv-creative-sidebar .cv-headline { color:rgba(255,255,255,.8); font-size:.85rem; margin:.2rem 0; }
.cv-tpl-creative .cv-creative-section { margin-top:1.1rem; }
.cv-tpl-creative .cv-creative-section h3 { font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.65); margin:0 0 .4rem; }
.cv-tpl-creative .cv-creative-contact { font-size:.78rem; color:rgba(255,255,255,.9); margin-bottom:.2rem; word-break:break-all; }
.cv-tpl-creative .cv-creative-skills { display:flex; flex-wrap:wrap; gap:.3rem; }
.cv-tpl-creative .cv-creative-pill { background:rgba(255,255,255,.2); color:#fff; border-radius:999px; padding:.15rem .55rem; font-size:.72rem; }
.cv-tpl-creative .cv-creative-lang { font-size:.82rem; color:rgba(255,255,255,.9); margin-bottom:.2rem; }
.cv-tpl-creative .cv-creative-lang em { color:rgba(255,255,255,.65); font-style:normal; }
.cv-tpl-creative .cv-creative-main { flex:1; padding:1.5rem 1rem; }
.cv-tpl-creative .cv-creative-main-section { margin-bottom:1.1rem; }
.cv-tpl-creative .cv-creative-main-section h2 { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--cv-color); border-bottom:2px solid var(--cv-color); padding-bottom:.2rem; margin:0 0 .5rem; font-weight:700; }
.cv-tpl-creative .cv-creative-main-section p { font-size:.87rem; line-height:1.5; margin:0; }
.cv-tpl-creative .cv-creative-main-section ul { margin:.2rem 0; padding-left:1.1rem; }
.cv-tpl-creative .cv-creative-main-section li { font-size:.85rem; }
.cv-tpl-creative .cv-creative-timeline { padding-left:.5rem; }
.cv-tpl-creative .cv-creative-tl-item { position:relative; padding-left:1.2rem; margin-bottom:.85rem; border-left:2px solid var(--cv-color); }
.cv-tpl-creative .cv-creative-tl-dot { position:absolute; left:-5px; top:4px; width:8px; height:8px; border-radius:50%; background:var(--cv-color); }
.cv-tpl-creative .cv-creative-tl-content strong { font-size:.9rem; display:block; }
.cv-tpl-creative .cv-creative-tl-company { font-size:.82rem; color:#555; }
.cv-tpl-creative .cv-creative-tl-date { font-size:.78rem; color:#888; margin-bottom:.2rem; }
.cv-tpl-creative .cv-creative-tl-content p { font-size:.82rem; margin:.25rem 0 0; color:#444; }

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES  (PDF Download)
   ═══════════════════════════════════════════════════════════════════════════════ */
@media print {
  .site-header,.site-footer,.cv-hero,.cv-steps-bar,.cv-form-panel,
  .cv-preview-header,.cv-mobile-preview-btn,.cv-view-toolbar,
  .cv-builder-wrap > :not(.cv-builder-layout),
  .container > :not(.cv-view-wrap),
  nav, footer, .cv-nav-btns, .cv-saved-list { display:none !important; }
  body { background:#fff !important; margin:0 !important; padding:0 !important; }
  .cv-builder-layout { display:block !important; }
  .cv-preview-panel { position:static !important; border:none !important; background:transparent !important; }
  .cv-preview-frame { background:transparent !important; padding:0 !important; max-height:none !important; overflow:visible !important; }
  #cv-preview { box-shadow:none !important; width:100% !important; max-width:none !important; font-size:11pt; }
  .cv-view-wrap #cv-preview { max-width:none !important; }
  @page { margin:1cm; size:A4; }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width:900px) {
  .cv-hero { padding:3.5rem 0 2.5rem; }
  .cv-hero-inner { grid-template-columns:1fr; gap:0; }
  .cv-hero-visual { display:none; }
  .cv-preview-toggle-tab { display:none; }
  .cv-builder-layout { grid-template-columns:1fr; }
  .cv-preview-panel {
    position:fixed; bottom:0; left:0; right:0; z-index:500;
    border-radius:16px 16px 0 0; transform:translateY(100%);
    transition:transform .3s; max-height:80vh; overflow:hidden;
  }
  .cv-preview-panel.cv-mobile-open { transform:translateY(0); z-index:500; }
  .cv-mobile-preview-btn {
    display:flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(135deg,#1e40af,#4f46e5);
    color:#fff;
    border:none;
    cursor:pointer;
    font-size:1.5rem;
    line-height:1;
    box-shadow:0 4px 18px rgba(30,64,175,.5),0 2px 6px rgba(0,0,0,.18);
    transition:transform .18s,box-shadow .18s,background .2s;
    outline:none;
    z-index:9999;
    /* Force own stacking context so transform on panel cannot bury it */
    will-change:transform;
    isolation:isolate;
  }
  .cv-mobile-preview-btn:active {
    transform:scale(.9);
    box-shadow:0 2px 8px rgba(30,64,175,.4);
  }
  .cv-mobile-preview-btn.is-open {
    background:linear-gradient(135deg,#7c3aed,#4f46e5);
    box-shadow:0 4px 18px rgba(124,58,237,.5),0 2px 6px rgba(0,0,0,.18);
  }
  @keyframes cvFabPop {
    0%   { transform:scale(0) rotate(-90deg); opacity:0; }
    70%  { transform:scale(1.12) rotate(8deg); }
    100% { transform:scale(1) rotate(0); opacity:1; }
  }
  .cv-mobile-preview-btn { animation:cvFabPop .35s cubic-bezier(.34,1.56,.64,1) both; }
}
@media (max-width:560px) {
  .cv-field-grid { grid-template-columns:1fr; }
  .cv-field-full { grid-column:1; }
  .cv-tpl-cards { grid-template-columns:repeat(3,1fr); gap:.4rem; }
  .cv-steps-bar { gap:0; }
  .cv-step { min-width:55px; padding:.4rem .4rem; }
  .cv-step span { font-size:.65rem; }
  .cv-skills-grid { grid-template-columns:1fr; }
  .cv-tpl-modern .cv-modern-inner { flex-direction:column; }
  .cv-tpl-modern .cv-sidebar { width:100%; }
  .cv-saved-card { flex-wrap:wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NAV PREMIUM TAG
   ═══════════════════════════════════════════════════════════════════════════════ */
.nav-ats-link { position:relative; }
.nav-premium-tag {
  position:absolute; top:-7px; right:2px;
  background:linear-gradient(135deg,#b45309,#d97706);
  color:#fff; font-size:.58rem; font-weight:700;
  letter-spacing:.05em; line-height:1;
  padding:2px 5px; border-radius:999px;
  pointer-events:none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM TEMPLATE LOCK
   ═══════════════════════════════════════════════════════════════════════════════ */
.cv-tpl-card { position:relative; }
.cv-tpl-locked { opacity:.75; }
.cv-tpl-lock-overlay {
  position:absolute; inset:0; z-index:2; border-radius:10px;
  background:rgba(15,12,41,.55); backdrop-filter:blur(2px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; pointer-events:none;
}
.cv-tpl-lock-overlay span { font-size:1.1rem; line-height:1; }
.cv-tpl-lock-overlay em { font-size:.6rem; font-weight:700; color:#fbbf24; font-style:normal; letter-spacing:.06em; }

/* ═══════════════════════════════════════════════════════════════════════════════
   UPGRADE MODAL (cv-builder)
   ═══════════════════════════════════════════════════════════════════════════════ */
.cv-upgrade-overlay {
  position:fixed; inset:0; z-index:10001;
  background:rgba(0,0,0,.65); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:1rem;
}
.cv-upgrade-modal {
  background:#fff; border-radius:20px; padding:2rem 2rem 1.75rem;
  max-width:400px; width:100%; text-align:center; position:relative;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
.cv-upgrade-close {
  position:absolute; top:.5rem; right:.5rem;
  width:36px; height:36px; border-radius:50%;
  background:none; border:none;
  font-size:1.15rem; color:#9ca3af; cursor:pointer; line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, color .15s;
}
.cv-upgrade-close:hover { background:#f3f4f6; color:#111; }
.cv-upgrade-icon { font-size:2.5rem; margin-bottom:.75rem; }
.cv-upgrade-modal h2 { font-size:1.4rem; font-weight:800; margin-bottom:.5rem; color:#111; }
.cv-upgrade-modal p { color:#6b7280; font-size:.9rem; line-height:1.6; margin-bottom:1.25rem; }
.cv-upgrade-plans { display:flex; flex-direction:column; gap:.6rem; }
.cv-upgrade-lifetime-btn {
  background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff; border:none;
  font-size:.95rem; padding:.7rem 1.5rem; border-radius:10px;
}
.cv-upgrade-monthly-btn {
  background:#fff; border:1.5px solid #d1d5db; color:#374151;
  font-size:.9rem; padding:.65rem 1.5rem; border-radius:10px;
}
.cv-upgrade-monthly-btn:hover { border-color:#6d28d9; color:#6d28d9; }
.cv-upgrade-note { font-size:.72rem; color:#9ca3af; margin-top:.85rem !important; margin-bottom:0 !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.prem-wrap { padding:3rem 0 4rem; max-width:800px; }
.prem-active-banner {
  display:flex; align-items:center; gap:1rem; background:#f0fdf4;
  border:1.5px solid #86efac; border-radius:12px; padding:1rem 1.25rem;
  margin-bottom:2rem;
}
.prem-crown { font-size:1.75rem; }
.prem-active-banner strong { display:block; font-weight:700; color:#166534; }
.prem-active-banner span { font-size:.85rem; color:#15803d; }
.prem-active-banner .btn { margin-left:auto; }

.prem-hero { text-align:center; margin-bottom:2.5rem; }
.prem-badge {
  display:inline-block; background:linear-gradient(135deg,#6d28d9,#4f46e5);
  color:#fff; font-size:.8rem; font-weight:700; letter-spacing:.05em;
  padding:.3rem .9rem; border-radius:999px; margin-bottom:1rem;
}
.prem-hero h1 { font-size:2rem; font-weight:800; color:#111; margin-bottom:.5rem; }
.prem-hero p  { color:#6b7280; font-size:1rem; }

.prem-features { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin-bottom:2.5rem; }
.prem-feat-col { border-radius:14px; padding:1.5rem; position:relative; }
.prem-feat-free { background:#f9fafb; border:1.5px solid #e5e7eb; }
.prem-feat-pro  { background:linear-gradient(135deg,#faf5ff,#eff6ff); border:2px solid #7c3aed; }
.prem-feat-popular {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff;
  font-size:.72rem; font-weight:700; letter-spacing:.05em;
  padding:.2rem .8rem; border-radius:999px; white-space:nowrap;
}
.prem-feat-col h3 { font-size:1.05rem; font-weight:700; margin-bottom:1rem; color:#111; }
.prem-feat-col ul { list-style:none; display:flex; flex-direction:column; gap:.55rem; }
.prem-feat-col li { font-size:.88rem; padding-left:1.5rem; position:relative; }
.prem-feat-col li.ok::before { content:'✓'; position:absolute; left:0; color:#16a34a; font-weight:700; }
.prem-feat-col li.no::before { content:'–'; position:absolute; left:0; color:#9ca3af; }
.prem-feat-col li.no { color:#9ca3af; }

.prem-plans { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin-bottom:1.5rem; }
.prem-plan {
  border-radius:16px; padding:1.75rem 1.5rem; text-align:center;
  background:#f9fafb; border:1.5px solid #e5e7eb; position:relative;
}
.prem-plan-highlight {
  background:linear-gradient(135deg,#faf5ff,#eff6ff);
  border-color:#6d28d9; border-width:2px;
}
.prem-plan-badge {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:linear-gradient(135deg,#b45309,#d97706); color:#fff;
  font-size:.72rem; font-weight:700; padding:.2rem .8rem; border-radius:999px; white-space:nowrap;
}
.prem-plan-name  { font-size:.85rem; font-weight:600; color:#6b7280; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.5rem; }
.prem-plan-price { font-size:2.2rem; font-weight:800; color:#111; line-height:1.1; margin-bottom:.25rem; }
.prem-plan-price span { font-size:.9rem; font-weight:400; color:#9ca3af; }
.prem-plan-note  { font-size:.78rem; color:#9ca3af; margin-bottom:1.25rem; }
.prem-buy-btn    { width:100%; background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff; border:none; }
.prem-login-note { text-align:center; font-size:.88rem; color:#6b7280; }
.prem-secure-note { text-align:center; font-size:.78rem; color:#9ca3af; margin-top:1rem; }
.prem-test-notice {
  margin-top:1.25rem; padding:.85rem 1.1rem; border-radius:10px;
  background:#fefce8; border:1.5px dashed #fbbf24;
  font-size:.8rem; color:#78350f; line-height:1.8; text-align:center;
}
.prem-test-notice strong { display:block; margin-bottom:.2rem; font-size:.85rem; }

/* Payment modal */
.prem-modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(4px);
  z-index:999; display:flex; align-items:center; justify-content:center; padding:1rem;
}
.prem-modal {
  background:#fff; border-radius:20px; padding:2.5rem 2rem; text-align:center;
  max-width:380px; width:100%; box-shadow:0 24px 80px rgba(0,0,0,.3);
}
#prem-modal-icon { font-size:3rem; margin-bottom:.75rem; }
.prem-modal h2   { font-size:1.4rem; font-weight:800; margin-bottom:.5rem; }
.prem-modal p    { color:#6b7280; margin-bottom:1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════════
   ATS CHECKER PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.ats-wrap { padding:2.5rem 0 4rem; max-width:860px; }
.ats-header { display:flex; align-items:flex-start; gap:2rem; margin-bottom:2.5rem; flex-wrap:wrap; }
.ats-header-text { flex:1; min-width:260px; }
.ats-badge {
  display:inline-block; background:linear-gradient(135deg,#b45309,#d97706);
  color:#fff; font-size:.8rem; font-weight:700; padding:.3rem .9rem;
  border-radius:999px; margin-bottom:.75rem;
}
.ats-header h1 { font-size:1.9rem; font-weight:800; color:#111; margin-bottom:.5rem; }
.ats-header p  { color:#6b7280; font-size:.95rem; line-height:1.6; }

.ats-lock-card {
  background:linear-gradient(135deg,#faf5ff,#eff6ff); border:2px solid #7c3aed;
  border-radius:16px; padding:1.75rem 1.5rem; text-align:center;
  max-width:280px; flex-shrink:0;
}
.ats-lock-icon { font-size:2.5rem; margin-bottom:.5rem; }
.ats-lock-card h3 { font-size:1rem; font-weight:700; margin-bottom:.4rem; }
.ats-lock-card p  { font-size:.82rem; color:#6b7280; margin-bottom:1rem; line-height:1.5; }
.ats-upgrade-btn { background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff; border:none; width:100%; }

.ats-welcome-banner {
  background:#f0fdf4; border:1.5px solid #86efac; border-radius:12px;
  padding:1rem 1.25rem; color:#166534; font-size:.92rem;
  margin-bottom:1.75rem; line-height:1.6;
}
.ats-no-cv { background:#fef3c7; border:1.5px solid #fcd34d; border-radius:12px; padding:1.25rem; color:#92400e; font-size:.9rem; }
.ats-no-cv a { color:#7c2d12; font-weight:600; }

.ats-form { background:#fff; border:1.5px solid #e5e7eb; border-radius:16px; padding:1.5rem; margin-bottom:2rem; }
.ats-form-row { margin-bottom:1rem; }
.ats-label { display:block; font-weight:600; font-size:.88rem; color:#374151; margin-bottom:.45rem; }
.ats-select {
  width:100%; padding:.6rem .85rem; border:1.5px solid #d1d5db; border-radius:8px;
  font-size:.9rem; color:#111; background:#fff; appearance:none;
}
.ats-jd {
  width:100%; padding:.75rem 1rem; border:1.5px solid #d1d5db; border-radius:8px;
  font-size:.88rem; color:#111; resize:vertical; font-family:inherit; line-height:1.6;
  margin-bottom:1rem;
}
.ats-jd:focus, .ats-select:focus { outline:none; border-color:#6d28d9; box-shadow:0 0 0 3px rgba(109,40,217,.1); }
.ats-submit-btn { background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff; border:none; padding:.7rem 2rem; font-size:.95rem; }

/* Result */
.ats-result { }
.ats-score-card {
  background:linear-gradient(135deg,#faf5ff,#eff6ff); border:2px solid #7c3aed;
  border-radius:16px; padding:1.75rem; text-align:center; margin-bottom:1.5rem;
}
.ats-gauge-wrap { display:flex; justify-content:center; }
.ats-gauge { width:160px; height:100px; }
.ats-score-label { font-size:1.1rem; font-weight:700; margin:.25rem 0 .75rem; }
.ats-score-counts { display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; }
.ats-ct { font-size:.82rem; font-weight:600; padding:.2rem .75rem; border-radius:999px; }
.ats-ct.matched { background:#d1fae5; color:#065f46; }
.ats-ct.partial  { background:#fef3c7; color:#92400e; }
.ats-ct.missing  { background:#fee2e2; color:#991b1b; }

.ats-kw-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin-bottom:1.5rem; }
.ats-kw-col { background:#fff; border:1.5px solid #e5e7eb; border-radius:12px; padding:1.25rem; }
.ats-kw-head { font-size:.85rem; font-weight:700; margin-bottom:.75rem; }
.ats-kw-head.matched { color:#065f46; }
.ats-kw-head.partial  { color:#92400e; }
.ats-kw-head.missing  { color:#991b1b; }
.ats-kw-pills { display:flex; flex-wrap:wrap; gap:.4rem; }
.ats-pill { font-size:.75rem; padding:.25rem .6rem; border-radius:999px; font-weight:500; }
.ats-pill.matched { background:#d1fae5; color:#065f46; }
.ats-pill.partial  { background:#fef3c7; color:#92400e; }
.ats-pill.missing  { background:#fee2e2; color:#991b1b; }
.ats-empty { font-size:.82rem; color:#9ca3af; font-style:italic; }

.ats-tips { background:#fffbeb; border:1.5px solid #fcd34d; border-radius:12px; padding:1.25rem 1.5rem; }
.ats-tips h3 { font-size:.95rem; font-weight:700; color:#92400e; margin-bottom:.75rem; }
.ats-tips ul { list-style:disc; padding-left:1.25rem; display:flex; flex-direction:column; gap:.4rem; }
.ats-tips li { font-size:.88rem; color:#78350f; line-height:1.5; }
.ats-edit-cv-btn { display:inline-block; margin-top:1rem; background:linear-gradient(135deg,#6d28d9,#4f46e5); color:#fff; border:none; }

@media (max-width:700px) {
  .prem-features, .prem-plans { grid-template-columns:1fr; }
  .ats-header { flex-direction:column; }
  .ats-lock-card { max-width:100%; }
  .ats-kw-grid { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   POST-A-JOB MODULE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Nav button */
.nav-post-job-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  padding: .42rem 1rem !important;
  box-shadow: 0 2px 8px rgba(234,88,12,.3);
  transition: background .15s, box-shadow .15s, transform .1s !important;
}
.nav-post-job-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(234,88,12,.4) !important;
  transform: translateY(-1px);
}

/* User role badge in nav */
.user-role-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 3px;
}

/* ── Role Select Page ────────────────────────────────────────────────────────── */
.role-select-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.role-select-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
}
.role-select-logo a { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.role-select-logo span { color: var(--accent); }
.role-select-card h1 { font-size: 1.5rem; margin: .75rem 0 .25rem; }
.role-select-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.role-select-form { display: flex; flex-direction: column; gap: .75rem; }
.role-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.role-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.role-card-icon { font-size: 2rem; flex-shrink: 0; }
.role-card-body strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }
.role-card-body span  { font-size: .85rem; color: var(--muted); }
.role-card-check { margin-left: auto; font-size: 1.25rem; color: var(--primary); opacity: 0; flex-shrink:0; }
.role-card-active { border-color: var(--primary); background: var(--blue-bg); }
.role-card-active .role-card-check { opacity: 1; }
.role-select-submit { margin-top: .5rem; }

/* ── Post-A-Job Landing ──────────────────────────────────────────────────────── */
.paj-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #1d4ed8 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.paj-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; margin-bottom: .75rem; color: #fff; }
.paj-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 2rem; }
.paj-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.paj-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .8rem 1.75rem; border-radius: 8px; font-weight: 700; font-size: 1rem;
}
.paj-btn-primary:hover { background: var(--accent-d); text-decoration: none; color: #fff; }
.paj-btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .8rem 1.75rem; border-radius: 8px; font-weight: 600;
}
.paj-btn-outline:hover { background: rgba(255,255,255,.25); text-decoration: none; color: #fff; }
.paj-hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.paj-hero-stats div { display: flex; flex-direction: column; }
.paj-hero-stats strong { font-size: 1.6rem; font-weight: 800; }
.paj-hero-stats span  { font-size: .85rem; color: rgba(255,255,255,.7); }
.paj-section-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 2rem; }
.paj-steps { padding: 3.5rem 0; }
.paj-steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.5rem; }
.paj-step { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.paj-step-num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.paj-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.paj-step p  { font-size: .88rem; color: var(--muted); }
.paj-features-section { background: var(--bg2); padding: 3.5rem 0; }
.paj-features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.25rem; }
.paj-feature { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }
.paj-feat-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.paj-feature h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.paj-feature p  { font-size: .85rem; color: var(--muted); }
.paj-pricing { padding: 3.5rem 0; }
.paj-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.paj-plan {
  background: #fff; border: 2px solid var(--border);
  border-radius: 14px; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.paj-plan-highlight { border-color: var(--primary); box-shadow: var(--shadow-md); }
.paj-plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.paj-plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.paj-plan-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.paj-plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.paj-plan-features { list-style: none; text-align: left; margin: .75rem 0 1.5rem; width: 100%; }
.paj-plan-features li { font-size: .88rem; color: var(--text2); padding: .3rem 0; display: flex; align-items: center; gap: .5rem; }
.paj-plan-features .ok::before { content: '✅'; }
.paj-plan-features .no { color: var(--muted); }
.paj-plan-features .no::before { content: '—'; opacity:.5; }
.paj-plan-btn { display: block; width: 100%; background: var(--primary); color: #fff; border-radius: 8px; padding: .75rem; font-weight: 700; }
.paj-plan-btn:hover { background: var(--primary-d); text-decoration: none; color: #fff; }
.paj-plan-highlight .paj-plan-btn { background: var(--accent); }
.paj-plan-highlight .paj-plan-btn:hover { background: var(--accent-d); }
.paj-secure-note { text-align: center; color: var(--muted); font-size: .85rem; }
.paj-cta-bottom { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: #fff; padding: 3.5rem 1rem; text-align: center; }
.paj-cta-bottom h2 { color: #fff; font-size: 2rem; margin-bottom: .5rem; }
.paj-cta-bottom p  { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.paj-cta-btn { padding: .9rem 2.5rem; font-size: 1rem; }

/* ── Recruiter Layout ────────────────────────────────────────────────────────── */
.rec-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.75rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}
.rec-sidebar {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.rec-company-card { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.rec-company-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; border: 1px solid var(--border); }
.rec-company-initials { width: 44px; height: 44px; border-radius: 8px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.rec-company-info { min-width: 0; }
.rec-company-info strong { display: block; font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-company-view { font-size: .75rem; color: var(--primary); }
.rec-setup-prompt { background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 8px; padding: .75rem; margin-bottom: 1rem; font-size: .83rem; }
.rec-nav { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.rec-nav a { display: block; padding: .55rem .75rem; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--text2); transition: background .15s, color .15s; }
.rec-nav a:hover, .rec-nav a.active { background: var(--blue-bg); color: var(--primary); text-decoration: none; }
.rec-sub-card { background: var(--bg2); border-radius: 10px; padding: 1rem; font-size: .83rem; color: var(--muted); margin-top: 1rem; }
.rec-sub-active { background: #dcfce7; }
.rec-sub-badge { font-weight: 700; font-size: .85rem; color: var(--text); margin-bottom: .3rem; }
.rec-sub-free { color: var(--text2); }
.rec-main { min-width: 0; }
.rec-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.rec-page-head h1 { font-size: 1.5rem; }
.rec-page-sub { color: var(--muted); font-size: .88rem; margin-top: .2rem; }

/* Stats */
.rec-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.rec-stat-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 1.25rem 1rem; text-align: center; border-top: 3px solid var(--border2); }
.rec-stat-green { border-top-color: var(--success); }
.rec-stat-blue  { border-top-color: var(--primary-l); }
.rec-stat-amber { border-top-color: #f59e0b; }
.rec-stat-val   { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.rec-stat-lbl   { font-size: .78rem; color: var(--muted); margin-top: .3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Sections */
.rec-section { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.rec-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.rec-section-head h2 { font-size: 1.05rem; font-weight: 700; }
.rec-section-head a  { font-size: .85rem; color: var(--primary); }
.rec-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.rec-empty p { margin-bottom: .75rem; font-weight: 600; }

/* Table */
.rec-table-wrap { overflow-x: auto; }
.rec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rec-table th { background: var(--bg2); padding: .6rem .75rem; text-align: left; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.rec-table td { padding: .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rec-table tr:last-child td { border-bottom: none; }
.rec-table tr:hover td { background: var(--bg); }
.rec-job-title { font-weight: 700; font-size: .9rem; color: var(--text); }
.rec-job-meta  { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.rec-work-mode { font-weight: 500; }
.rec-featured-tag { background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: .3rem; }
.rec-app-link { color: var(--primary); font-weight: 700; }

/* Status badges */
.rec-status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.rec-status-draft    { background:#f1f5f9; color:#475569; }
.rec-status-active   { background:#dcfce7; color:#16a34a; }
.rec-status-pending  { background:#fef3c7; color:#92400e; }
.rec-status-expired  { background:#fce7f3; color:#be185d; }
.rec-status-rejected { background:#fee2e2; color:#b91c1c; }

/* Action buttons */
.rec-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.rec-action-btn {
  display: inline-block;
  padding: .3rem .65rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg2);
  color: var(--text2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.rec-action-btn:hover { background: var(--blue-bg); color: var(--primary); text-decoration: none; }
.rec-action-publish { background: #dcfce7; color: #16a34a; }
.rec-action-publish:hover { background: #bbf7d0; color: #15803d; }
.rec-action-delete  { background: #fee2e2; color: #b91c1c; }
.rec-action-delete:hover  { background: #fecaca; }

/* Applicants list (dashboard) */
.rec-applicants-list { display: flex; flex-direction: column; gap: .6rem; }
.rec-applicant-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; border-radius: 8px; }
.rec-applicant-row:hover { background: var(--bg); }
.rec-applicant-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rec-applicant-initial { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.rec-applicant-info { min-width: 0; flex: 1; }
.rec-applicant-info strong { display: block; font-size: .88rem; font-weight: 700; }
.rec-applicant-info span  { font-size: .78rem; color: var(--muted); }
.rec-app-status { padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.rec-app-applied    { background:#dbeafe; color:#1e40af; }
.rec-app-reviewed   { background:#fef3c7; color:#92400e; }
.rec-app-shortlisted{ background:#ede9fe; color:#6d28d9; }
.rec-app-rejected   { background:#fee2e2; color:#b91c1c; }
.rec-app-hired      { background:#dcfce7; color:#16a34a; }

/* Alerts */
.rec-alert { padding: .75rem 1rem; border-radius: 8px; font-size: .88rem; margin-bottom: 1rem; }
.rec-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.rec-alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.rec-alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Form */
.rec-form { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem; }
.rec-form-section { margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.rec-form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rec-form-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--primary); border-left: 3px solid var(--primary); padding-left: .6rem; }
.rec-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rec-span2 { grid-column: span 2; }
.rec-form-group { display: flex; flex-direction: column; gap: .35rem; }
.rec-form-group label { font-size: .85rem; font-weight: 600; color: var(--text2); }
.rec-form-group input, .rec-form-group select, .rec-form-group textarea {
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.rec-form-group input:focus, .rec-form-group select:focus, .rec-form-group textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.rec-form-group small { font-size: .78rem; color: var(--muted); }
.rec-form-group textarea { resize: vertical; min-height: 100px; }
.rec-req { color: #ef4444; }
.rec-radio-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.rec-radio { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 8px; border: 1.5px solid var(--border2); background: var(--bg); cursor: pointer; font-size: .85rem; font-weight: 600; transition: border-color .15s, background .15s; }
.rec-radio:has(input:checked) { border-color: var(--primary); background: var(--blue-bg); color: var(--primary); }
.rec-radio input { position: absolute; opacity: 0; }
.rec-form-actions { display: flex; gap: .75rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--border); margin-top: 1.25rem; }
.rec-logo-preview { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; margin-top: .5rem; }

/* Applicants Page */
.rec-applicants-grid { display: grid; gap: 1rem; }
.rec-app-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 1.25rem; }
.rec-app-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.rec-app-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rec-app-initial { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.rec-app-avatar-wrap { flex-shrink: 0; }
.rec-app-identity { flex: 1; min-width: 0; }
.rec-app-identity strong { display: block; font-weight: 700; }
.rec-app-date { font-size: .78rem; color: var(--muted); }
.rec-app-status-wrap { margin-left: auto; }
.rec-app-status-sel { border: 1.5px solid var(--border2); border-radius: 8px; padding: .3rem .55rem; font-size: .8rem; font-weight: 700; cursor: pointer; }
.rec-app-contact { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; margin-bottom: .75rem; }
.rec-app-contact a { color: var(--primary); }
.rec-masked { color: var(--muted); font-style: italic; filter: blur(3px); user-select: none; }
.rec-app-status-locked { font-size: .8rem; font-weight: 700; color: var(--muted); padding: .3rem .55rem; border: 1.5px dashed var(--border); border-radius: 8px; display: inline-block; cursor: default; }
.rec-locked-link { color: var(--muted); text-decoration: none; font-style: italic; }
.rec-app-cover { background: var(--bg); border-radius: 8px; padding: .75rem; font-size: .85rem; }
.rec-app-cover strong { display: block; font-weight: 700; margin-bottom: .3rem; }
.rec-app-cover p { color: var(--text2); }

/* ── Company Jobs Browse ────────────────────────────────────────────────────── */
.cj-hero { background: linear-gradient(135deg,#1e3a8a,#2563eb); color:#fff; padding:3rem 0 2.5rem; text-align:center; }
.cj-hero h1 { color:#fff; font-size:clamp(1.75rem,4vw,2.5rem); margin-bottom:.5rem; }
.cj-hero p  { color:rgba(255,255,255,.8); margin-bottom:1.5rem; }
.cj-search-form { display:flex; gap:.5rem; flex-wrap:wrap; max-width:800px; margin:0 auto; }
.cj-search-form input, .cj-search-form select { flex:1; min-width:140px; padding:.6rem 1rem; border-radius:8px; border:none; font-family:inherit; font-size:.9rem; }
.cj-search-form button { flex-shrink:0; }
.cj-layout { display:grid; grid-template-columns:200px 1fr; gap:1.75rem; align-items:start; }
.cj-sidebar { background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:1rem; position:sticky; top:80px; }
.cj-sidebar-title { font-size:.8rem; font-weight:700; text-transform:uppercase; color:var(--muted); letter-spacing:.06em; margin-bottom:.75rem; }
.cj-cat-link { display:block; padding:.45rem .6rem; border-radius:7px; font-size:.85rem; font-weight:600; color:var(--text2); }
.cj-cat-link:hover, .cj-cat-link.active { background:var(--blue-bg); color:var(--primary); text-decoration:none; }
.cj-sidebar-cta { margin-top:1.25rem; padding-top:1.25rem; border-top:1px solid var(--border); font-size:.83rem; }
.cj-sidebar-cta strong { display:block; margin-bottom:.3rem; }
.cj-sidebar-cta p { color:var(--muted); margin-bottom:.75rem; }
.cj-main {}
.cj-results-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; font-size:.88rem; color:var(--muted); }
.cj-clear-link { color:var(--primary); font-weight:600; }
.cj-jobs-list { display:flex; flex-direction:column; gap:.85rem; }
.cj-job-card {
  display:grid;
  grid-template-columns:60px 1fr auto;
  gap:1rem;
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:1rem 1.25rem;
  border:1.5px solid transparent;
  transition:border-color .15s, box-shadow .15s;
  align-items:start;
}
.cj-job-card:hover { border-color:var(--primary); box-shadow:var(--shadow-md); }
.cj-featured { border-color:#f59e0b; background:linear-gradient(to right,#fffbeb,#fff); }
.cj-job-logo { width:52px; flex-shrink:0; }
.cj-job-logo img { width:52px; height:52px; border-radius:8px; object-fit:contain; border:1px solid var(--border); }
.cj-logo-fallback { width:52px; height:52px; border-radius:8px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1rem; }
.cj-job-body { min-width:0; }
.cj-job-top { display:flex; gap:.5rem; margin-bottom:.4rem; flex-wrap:wrap; align-items:center; }
.cj-featured-badge { background:#fef3c7; color:#92400e; font-size:.72rem; font-weight:700; padding:2px 8px; border-radius:999px; }
.cj-job-title { font-size:1rem; font-weight:700; margin:.2rem 0 .4rem; }
.cj-job-title a { color:var(--text); }
.cj-job-title a:hover { color:var(--primary); text-decoration:none; }
.cj-job-company { display:flex; flex-wrap:wrap; gap:.6rem; font-size:.82rem; color:var(--muted); margin-bottom:.5rem; }
.cj-company-link { color:var(--primary); font-weight:600; }
.cj-company-link:hover { text-decoration:underline; }
.cj-job-tags { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.5rem; }
.cj-skills { display:flex; flex-wrap:wrap; gap:.3rem; }
.cj-skill-tag { background:var(--blue-bg); color:var(--primary); font-size:.72rem; font-weight:700; padding:2px 8px; border-radius:999px; }
.cj-job-actions { display:flex; flex-direction:column; align-items:flex-end; gap:.4rem; flex-shrink:0; }
.cj-job-ago { font-size:.75rem; color:var(--muted); }

/* ── Company Job Detail ────────────────────────────────────────────────────── */
.cjd-layout { display:grid; grid-template-columns:1fr 320px; gap:1.75rem; align-items:start; }
.cjd-card { background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:1.75rem; }
.cjd-header { display:flex; gap:1.25rem; align-items:flex-start; margin-bottom:1.25rem; padding-bottom:1.25rem; border-bottom:1px solid var(--border); }
.cjd-logo-wrap { flex-shrink:0; }
.cjd-logo { width:72px; height:72px; border-radius:10px; object-fit:contain; border:1px solid var(--border); }
.cjd-logo-fallback { width:72px; height:72px; border-radius:10px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.5rem; }
.cjd-head-info { flex:1; min-width:0; }
.cjd-head-info h1 { font-size:1.4rem; margin-bottom:.4rem; }
.cjd-company-row { display:flex; flex-wrap:wrap; gap:.6rem; font-size:.85rem; color:var(--muted); margin-bottom:.6rem; }
.cjd-company-link { color:var(--primary); font-weight:600; }
.cjd-badges { display:flex; flex-wrap:wrap; gap:.4rem; }
.cjd-meta-strip { display:flex; flex-wrap:wrap; gap:1rem; background:var(--bg); border-radius:8px; padding:.75rem 1rem; font-size:.83rem; margin-bottom:1.25rem; }
.cjd-meta-strip div { display:flex; align-items:center; gap:.3rem; color:var(--muted); }
.cjd-meta-strip span { font-weight:700; color:var(--text); }
.cjd-section { margin-bottom:1.5rem; }
.cjd-section h3 { font-size:1rem; font-weight:700; margin-bottom:.75rem; color:var(--text); border-left:3px solid var(--primary); padding-left:.6rem; }
.cjd-prose { font-size:.9rem; color:var(--text2); line-height:1.7; }
.cjd-skills { display:flex; flex-wrap:wrap; gap:.4rem; }
.cjd-company-section { background:var(--bg); border-radius:10px; padding:1rem 1.25rem; }
.cjd-company-tagline { color:var(--primary); font-weight:600; font-style:italic; margin-bottom:.5rem; }
.cjd-sidebar {}
.cjd-apply-card { background:#fff; border-radius:14px; box-shadow:var(--shadow-md); padding:1.5rem; position:sticky; top:80px; }
.cjd-apply-card h3 { font-size:1rem; font-weight:700; margin-bottom:.75rem; }
.cjd-applied-badge { background:#dcfce7; color:#16a34a; font-weight:700; padding:.6rem 1rem; border-radius:8px; text-align:center; }
.cjd-apply-form label { display:block; font-size:.82rem; font-weight:600; color:var(--text2); margin-bottom:.3rem; }
.cjd-apply-form textarea { width:100%; border:1.5px solid var(--border2); border-radius:8px; padding:.6rem .75rem; font-size:.88rem; font-family:inherit; resize:vertical; min-height:100px; }
.cjd-quick-info { margin-top:1.25rem; padding-top:1.25rem; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:.4rem; }
.cjd-quick-info div { display:flex; justify-content:space-between; font-size:.83rem; }
.cjd-quick-info span { color:var(--muted); }
.cjd-quick-info strong { color:var(--text); }

/* ── Company Profile ────────────────────────────────────────────────────────── */
.comp-header { display:flex; gap:1.5rem; align-items:flex-start; background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:1.75rem; margin-bottom:1.25rem; }
.comp-logo { width:88px; height:88px; border-radius:12px; object-fit:contain; border:1px solid var(--border); flex-shrink:0; }
.comp-logo-fallback { width:88px; height:88px; border-radius:12px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:2rem; flex-shrink:0; }
.comp-name { font-size:1.6rem; margin-bottom:.3rem; display:flex; align-items:center; gap:.5rem; }
.comp-verified { background:#16a34a; color:#fff; border-radius:50%; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800; }
.comp-tagline { color:var(--muted); font-size:.95rem; font-style:italic; margin-bottom:.6rem; }
.comp-meta { display:flex; flex-wrap:wrap; gap:.75rem; font-size:.85rem; color:var(--muted); }
.comp-about { background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:1.5rem; margin-bottom:1.25rem; }
.comp-about h2 { font-size:1.1rem; font-weight:700; margin-bottom:.75rem; }
.comp-jobs-section { background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:1.5rem; }

/* ── Seeker Dashboard ────────────────────────────────────────────────────────── */
.sd-tabs { display:flex; gap:.25rem; border-bottom:2px solid var(--border); margin-bottom:1.25rem; flex-wrap:wrap; }
.sd-tab { padding:.65rem 1.1rem; font-size:.88rem; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; }
.sd-tab:hover, .sd-tab.active { color:var(--primary); border-bottom-color:var(--primary); text-decoration:none; }
.sd-apps-list { display:flex; flex-direction:column; gap:.75rem; }
.sd-app-card { background:#fff; border-radius:10px; box-shadow:var(--shadow); padding:1rem 1.25rem; }
.sd-app-body { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.sd-app-job { flex:1; min-width:0; }
.sd-app-job h3 { font-size:1rem; font-weight:700; margin-bottom:.3rem; }
.sd-app-job h3 a { color:var(--text); }
.sd-app-job h3 a:hover { color:var(--primary); text-decoration:none; }
.sd-app-meta { display:flex; flex-wrap:wrap; gap:.6rem; font-size:.82rem; color:var(--muted); }
.sd-app-status-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:.3rem; flex-shrink:0; }
.sd-app-status { display:inline-block; padding:.3rem .75rem; border-radius:999px; font-size:.78rem; font-weight:700; }
.sd-app-date { font-size:.75rem; color:var(--muted); }
.sd-cvs-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.sd-cv-card { background:#fff; border-radius:10px; box-shadow:var(--shadow); padding:1rem 1.25rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.sd-cv-info { min-width:0; }
.sd-cv-info strong { display:block; font-weight:700; font-size:.9rem; }
.sd-cv-info span   { font-size:.78rem; color:var(--muted); }
.sd-cv-actions { display:flex; gap:.35rem; flex-shrink:0; }
.sd-cv-new {
  border:2px dashed var(--border2); border-radius:10px; padding:1.5rem;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.5rem; color:var(--muted); font-weight:600; font-size:.88rem;
  cursor:pointer; transition:border-color .15s, color .15s;
}
.sd-cv-new:hover { border-color:var(--primary); color:var(--primary); text-decoration:none; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width:900px) {
  .rec-layout { grid-template-columns:1fr; }
  .rec-sidebar { position:static; }
  .cj-layout  { grid-template-columns:1fr; }
  .cjd-layout { grid-template-columns:1fr; }
  .cjd-apply-card { position:static; }
  .rec-form-grid { grid-template-columns:1fr; }
  .rec-span2 { grid-column:span 1; }
}
@media (max-width:640px) {
  .cj-job-card { grid-template-columns:1fr; }
  .cj-job-logo { display:none; }
  .rec-stats-grid { grid-template-columns:1fr 1fr; }
  .paj-steps-grid { grid-template-columns:1fr; }
  .paj-pricing-grid, .paj-features-grid { grid-template-columns:1fr; }
  .comp-header { flex-direction:column; }
}

/* ── Legal Pages ─────────────────────────────────────────────────────────── */
.legal-page { max-width:1000px; padding-top:2rem; padding-bottom:4rem; }

.legal-hero { text-align:center; padding:2.5rem 1rem 2rem; border-bottom:1px solid var(--border); margin-bottom:2rem; }
.legal-hero h1 { font-size:clamp(1.6rem,4vw,2.4rem); font-weight:800; color:var(--text); margin-bottom:.75rem; }
.legal-meta { display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap; font-size:.85rem; color:var(--text-muted); margin-bottom:1rem; }
.legal-meta strong { color:var(--text); }
.legal-intro { max-width:680px; margin:0 auto; color:var(--text-muted); line-height:1.7; font-size:.95rem; }

.legal-body { display:grid; grid-template-columns:220px 1fr; gap:2.5rem; align-items:start; }

.legal-toc { position:sticky; top:80px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem 1rem; font-size:.82rem; }
.legal-toc strong { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:.75rem; }
.legal-toc ol { padding-left:1.1rem; margin:0; }
.legal-toc li { margin-bottom:.4rem; }
.legal-toc a { color:var(--text-muted); text-decoration:none; line-height:1.4; display:block; }
.legal-toc a:hover { color:var(--primary); }

.legal-content section { margin-bottom:2.5rem; padding-bottom:2rem; border-bottom:1px solid var(--border); }
.legal-content section:last-child { border-bottom:none; }
.legal-content h2 { font-size:1.15rem; font-weight:700; color:var(--text); margin-bottom:.75rem; scroll-margin-top:80px; }
.legal-content h3 { font-size:1rem; font-weight:600; color:var(--text); margin:1rem 0 .5rem; }
.legal-content p { color:var(--text-muted); line-height:1.75; margin-bottom:.75rem; font-size:.93rem; }
.legal-content ul, .legal-content ol { color:var(--text-muted); line-height:1.75; padding-left:1.4rem; margin-bottom:.75rem; font-size:.93rem; }
.legal-content li { margin-bottom:.35rem; }
.legal-content a { color:var(--primary); }
.legal-content a:hover { text-decoration:underline; }
.legal-content strong { color:var(--text); }

.legal-contact-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem 1.5rem; }
.legal-contact-box p { margin-bottom:.4rem; }

.legal-table-wrap { overflow-x:auto; margin:1rem 0; }
.legal-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.legal-table th { background:var(--surface); padding:.6rem .9rem; text-align:left; font-weight:600; color:var(--text); border:1px solid var(--border); }
.legal-table td { padding:.6rem .9rem; border:1px solid var(--border); color:var(--text-muted); vertical-align:top; line-height:1.5; }
.legal-table code { background:var(--surface); padding:.1em .35em; border-radius:3px; font-size:.82rem; color:var(--primary); }

@media (max-width:800px) {
  .legal-body { grid-template-columns:1fr; }
  .legal-toc { position:static; }
}

/* ── Footer Legal Links ───────────────────────────────────────────────────── */
.footer-legal-links { display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem 1.25rem; margin-top:.5rem; font-size:.8rem; }
.footer-legal-links a { color:rgba(255,255,255,.55); text-decoration:none; }
.footer-legal-links a:hover { color:#fff; }

/* ── Role Select T&C ─────────────────────────────────────────────────────── */
.role-tnc-label { display:flex; align-items:flex-start; gap:.6rem; font-size:.85rem; color:var(--text-muted); cursor:pointer; margin:.25rem 0 1rem; line-height:1.5; }
.role-tnc-label input[type=checkbox] { margin-top:.15rem; flex-shrink:0; width:1rem; height:1rem; accent-color:var(--primary); cursor:pointer; }
.role-tnc-label a { color:var(--primary); }

/* ── Cookie Consent Banner ───────────────────────────────────────────────── */
.cookie-banner { position:fixed; bottom:0; left:0; right:0; z-index:9999; background:#1e293b; color:#e2e8f0; padding:1rem 1.5rem; box-shadow:0 -4px 20px rgba(0,0,0,.25); }
.cookie-banner-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.cookie-banner-text { flex:1 1 300px; margin:0; font-size:.875rem; line-height:1.6; color:#cbd5e1; }
.cookie-banner-text a { color:#93c5fd; text-decoration:underline; }
.cookie-banner-text a:hover { color:#bfdbfe; }
.cookie-banner-actions { display:flex; gap:.75rem; align-items:center; flex-shrink:0; }
.cookie-btn-learn { font-size:.85rem; color:#94a3b8; text-decoration:none; padding:.4rem .8rem; border:1px solid rgba(255,255,255,.15); border-radius:6px; white-space:nowrap; }
.cookie-btn-learn:hover { color:#e2e8f0; border-color:rgba(255,255,255,.35); }
.cookie-btn-accept { font-size:.875rem; font-weight:600; background:var(--primary); color:#fff; border:none; border-radius:6px; padding:.5rem 1.25rem; cursor:pointer; white-space:nowrap; }
.cookie-btn-accept:hover { background:var(--primary-d); }
@media (max-width:600px) {
  .cookie-banner-inner { flex-direction:column; align-items:stretch; gap:.75rem; }
  .cookie-banner-actions { justify-content:flex-end; }
}

/* ── SEO Section (category page) ────────────────────────────────────────────── */
.seo-section { margin-top:3rem; }

.seo-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg,12px); overflow:hidden; }

.seo-card-head { display:flex; align-items:center; gap:1.25rem; padding:1.5rem 1.75rem; background:linear-gradient(135deg,#eff6ff 0%,#f0fdf4 100%); border-bottom:1px solid var(--border); }
.seo-card-icon { font-size:2.75rem; line-height:1; flex-shrink:0; }
.seo-card-head h2 { font-size:1.1rem; font-weight:700; color:var(--text); margin:0 0 .2rem; }
.seo-card-head p { font-size:.875rem; color:var(--text-muted); margin:0; }

.seo-card-body { display:grid; grid-template-columns:1fr 1fr; }

.seo-card-text { padding:1.5rem 1.75rem; border-right:1px solid var(--border); }
.seo-card-text p { font-size:.9rem; color:var(--text-muted); line-height:1.8; margin-bottom:.85rem; }
.seo-card-text p:last-of-type { margin-bottom:1.25rem; }
.seo-card-cta { display:inline-block; font-size:.85rem; font-weight:600; color:var(--primary); background:var(--primary-l,#dbeafe); padding:.4rem .9rem; border-radius:6px; text-decoration:none; transition:background .15s; }
.seo-card-cta:hover { background:#bfdbfe; }

.seo-card-tips { padding:1.5rem 1.75rem; display:flex; flex-direction:column; gap:1.1rem; }
.seo-tip { display:flex; align-items:flex-start; gap:.85rem; }
.seo-tip-icon { font-size:1.2rem; line-height:1; flex-shrink:0; margin-top:.05rem; }
.seo-tip div { display:flex; flex-direction:column; gap:.15rem; }
.seo-tip strong { font-size:.88rem; font-weight:600; color:var(--text); }
.seo-tip span { font-size:.82rem; color:var(--text-muted); line-height:1.5; }

@media (max-width:720px) {
  .seo-card-body { grid-template-columns:1fr; }
  .seo-card-text { border-right:none; border-bottom:1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints: 1024px · 768px · 640px · 480px · 360px
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── 1024px — Large tablets, small laptops ─────────────────────────────────── */
@media (max-width:1024px) {
  /* Company job detail sidebar stacks */
  .cjd-layout { grid-template-columns:1fr; }
  .cjd-apply-card { position:static; }

  /* Admin stats: 5 cols → 3 cols */
  .au-stats { grid-template-columns:repeat(3,1fr); }

  /* Affiliate stats: 4 cols → 2 cols */
  .aff-two-col { grid-template-columns:1fr; }
}

/* ── 768px — Tablets portrait ──────────────────────────────────────────────── */
@media (max-width:768px) {
  /* Container padding */
  .container { padding-left:1rem; padding-right:1rem; }

  /* Category page header: icon + text side by side → stack */
  .cat-page-header { flex-direction:column; gap:.75rem; text-align:center; }
  .cat-big-icon { font-size:2.5rem; }

  /* Filter bar wraps on every page */
  .filter-bar form { flex-wrap:wrap; gap:.5rem; }
  .filter-bar form select { flex:1; min-width:130px; }
  .au-filter-bar { flex-wrap:wrap; }

  /* Company jobs layout: sidebar goes above */
  .cj-layout { grid-template-columns:1fr; }
  .cj-sidebar { position:static; display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
  .cj-sidebar-title { width:100%; margin-bottom:.25rem; }
  .cj-cat-link { padding:.35rem .7rem; border:1.5px solid var(--border); border-radius:999px; }
  .cj-search-form { flex-direction:column; }
  .cj-search-form input, .cj-search-form select { width:100%; min-width:unset; }
  .cj-sidebar-cta { display:none; }

  /* Company job card: logo + body + actions → logo+body / actions below */
  .cj-job-card { grid-template-columns:52px 1fr; grid-template-rows:auto auto; }
  .cj-job-actions { grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding-top:.6rem; margin-top:.25rem; }

  /* Recruiter layout: sidebar collapses */
  .rec-layout { grid-template-columns:1fr; }
  .rec-sidebar { display:none; }

  /* Recruiter applicant card head wraps */
  .rec-app-card-head { flex-wrap:wrap; gap:.5rem; }
  .rec-app-status-wrap { margin-left:0; width:100%; }
  .rec-app-status-sel, .rec-app-status-locked { width:100%; }

  /* Seeker dashboard */
  .sd-layout { grid-template-columns:1fr !important; }
  .sd-app-body { flex-wrap:wrap; }

  /* Help page */
  .help-layout { grid-template-columns:1fr; }
  .help-sidebar { flex-direction:row; flex-wrap:wrap; }
  .help-tip-card { flex:1; min-width:160px; }

  /* Work with us steps: 4 → 2 cols */
  .ww-steps { grid-template-columns:1fr 1fr; }

  /* Affiliate dashboard */
  .aff-two-col { grid-template-columns:1fr; }
  div.aff-stats-row { grid-template-columns:1fr 1fr !important; }

  /* Admin: hide less critical table cols handled per-page inline */
  .admin-header { flex-direction:column; align-items:flex-start; gap:.75rem; }
  .admin-header > div { flex-wrap:wrap; gap:.4rem; }

  /* Legal pages: TOC sidebar stacks */
  .legal-body { grid-template-columns:1fr !important; }
  .legal-toc { position:static !important; display:flex; flex-wrap:wrap; gap:.4rem; }
  .legal-toc a { padding:.3rem .7rem; background:var(--bg); border:1px solid var(--border); border-radius:999px; font-size:.78rem; }

  /* Affiliate stat cards row */
  div[style*="grid-template-columns:repeat(4"] { grid-template-columns:1fr 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem"] { grid-template-columns:1fr !important; }

  /* SEO card tips */
  .seo-card-head { flex-direction:column; gap:.75rem; padding:1.25rem; }
  .seo-card-tips { padding:1.25rem; }
}

/* ── 640px — Large phones, small tablets ───────────────────────────────────── */
@media (max-width:640px) {
  /* Trust bar: wrap and reduce size */
  .trust-items { flex-wrap:wrap; gap:.5rem .75rem; font-size:.75rem; justify-content:center; }

  /* Hero sub text */
  .hero-sub { font-size:.9rem; }

  /* Category grid: 3 cols */
  .cat-grid { grid-template-columns:repeat(3,1fr); }

  /* Footer: 2 cols → 1 col */
  .footer-grid { grid-template-columns:1fr; gap:1.5rem; }

  /* Search divider: hide the vertical pipe */
  .search-divider { display:none; }

  /* Company job detail header: logo left, info below */
  .cjd-header { flex-direction:column; gap:.75rem; }
  .cjd-logo, .cjd-logo-fallback { width:56px; height:56px; }

  /* Recruiter stats: 4 → 2 cols */
  .rec-stats-grid { grid-template-columns:1fr 1fr !important; }

  /* Admin stats: 3 → 2 cols */
  .au-stats { grid-template-columns:1fr 1fr; }
  .ht-stats { grid-template-columns:1fr 1fr; }
  .af-stats { grid-template-columns:1fr 1fr !important; }

  /* Work with us: 2 → 1 col */
  .ww-steps { grid-template-columns:1fr; }

  /* Help tip cards: 1 col */
  .help-sidebar { flex-direction:column; }
  .help-tip-card { min-width:unset; }

  /* Modals: full width */
  .au-modal { padding:1.25rem; max-width:100%; margin:0 .75rem; }

  /* Pager: smaller */
  .pager a { padding:.3rem .55rem; font-size:.82rem; }

  /* Withdrawal form */
  .aff-two-col > div:last-child { order:-1; }

  /* Section headings */
  .section-title { font-size:1.15rem; }

  /* Job detail header */
  .jd-header-top { flex-direction:column; gap:.75rem; }
  .jd-company-logo { align-self:flex-start; }
}

/* ── 480px — Phones ─────────────────────────────────────────────────────────── */
@media (max-width:480px) {
  /* Base */
  .container { padding-left:.75rem; padding-right:.75rem; }
  h1 { font-size:1.5rem; }

  /* Nav actions: tighter */
  .nav-actions { gap:.25rem; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 2.25rem; }
  .hero-orb-1 { width: 220px; height: 220px; top: -80px; right: -50px; opacity: .6; }
  .hero-orb-2 { width: 200px; height: 200px; bottom: -70px; left: -40px; opacity: .6; }
  .hero-orb-3 { display: none; }
  .hero-orb { filter: blur(50px); }
  .hero h1, .hero-h1 { font-size: 1.65rem; line-height: 1.2; margin-bottom: .75rem; }
  .hero-h1-find { font-size: 1em; }
  .hero-sub { font-size: .88rem; margin-bottom: 1.25rem; }
  .hero-badge { font-size: .73rem; padding: .3rem .85rem; margin-bottom: 1.1rem; }
  .hero-search { margin-top: 1rem; }

  /* Category grid: 2 cols on very small */
  .cat-grid { grid-template-columns:repeat(2,1fr); }

  /* Stat cards: all 1 col */
  .au-stats, .ht-stats { grid-template-columns:1fr 1fr; }
  .af-stats { grid-template-columns:1fr 1fr !important; }

  /* Job card: tighter */
  .job-card { padding:.75rem .85rem; }
  .job-card-title { font-size:.95rem; }
  .job-meta { flex-wrap:wrap; gap:.3rem; }

  /* Tables: ensure horizontal scroll hint */
  .table-wrap { -webkit-overflow-scrolling:touch; }
  .table-wrap::after {
    content:'← Scroll →';
    display:block;
    text-align:center;
    font-size:.72rem;
    color:var(--muted);
    padding:.3rem 0;
  }

  /* Company job card: single col */
  .cj-job-card { grid-template-columns:1fr; }
  .cj-job-logo { display:none; }
  .cj-job-actions { flex-direction:column; align-items:stretch; }
  .cj-job-actions .btn { width:100%; text-align:center; justify-content:center; }

  /* Recruiter applicant cards */
  .rec-app-card { padding:.9rem; }
  .rec-app-avatar, .rec-app-initial { width:36px; height:36px; font-size:.85rem; }

  /* Work with us */
  .ww-card { padding:1rem; }
  .ww-earn-table { font-size:.82rem; }

  /* Admin table: minimal cols visible */
  .admin-header h1 { font-size:1.1rem; }

  /* Affiliate balance card */
  .aff-balance-val { font-size:1.75rem; }
  .aff-balance-card { padding:1.1rem; }

  /* Help form */
  .help-form-card { padding:1.1rem; }
  .help-ticket-head { flex-direction:column; gap:.4rem; }

  /* Flash messages */
  .flash { font-size:.84rem; padding:.7rem .9rem; }

  /* Buttons in action rows */
  .rec-form-actions { flex-direction:column; }
  .rec-form-actions .btn { width:100%; justify-content:center; }

  /* Modal footer buttons: stack */
  .modal-footer { flex-direction:column; }
  .modal-footer .btn { width:100%; justify-content:center; }
}

/* ── 360px — Very small phones (Galaxy A, older iPhones) ───────────────────── */
@media (max-width:360px) {
  .container { padding-left:.5rem; padding-right:.5rem; }

  /* Cat grid: 2 cols */
  .cat-grid { grid-template-columns:1fr 1fr; }

  /* Single-col stats always */
  .au-stats, .ht-stats, .af-stats { grid-template-columns:1fr !important; }

  /* Nav: tighter logo */
  .logo { font-size:1rem; }
  .logo-badge { display:none; }

  /* Job card: ultra compact */
  .job-card { padding:.65rem .75rem; gap:.35rem; }
  .job-card-company { font-size:.75rem; }

  /* CJ hero */
  .cj-hero { padding:1.75rem 0 1.5rem; }
  .cj-hero h1 { font-size:1.3rem; }
}

/* ── Touch / hover refinements ─────────────────────────────────────────────── */
@media (hover:none) {
  /* Remove hover-only dropdowns — JS handles tap already */
  .user-nav-widget:hover .user-nav-drop { display:none; }
  /* Increase tap targets */
  .btn { min-height:44px; }
  .btn-sm { min-height:36px; }
  nav a { min-height:44px; display:flex; align-items:center; }
}

/* ── Landscape phone — prevent overflow on short viewports ─────────────────── */
@media (max-width:768px) and (orientation:landscape) {
  .hero { padding:1.5rem 1rem 1.25rem; }
  .hero-stats { max-width: 500px; grid-template-columns: repeat(4,1fr); }
  .hero h1, .hero-h1 { font-size:1.3rem; }
  .hero-sub { margin-bottom:1rem; }
  .cv-hero { padding:2rem 0 1.5rem; }
  .cv-preview-panel { max-height:70vh; }
}

/* ── Blog ────────────────────────────────────────────────────────────────────── */

/* Hero */
.blog-hero{background:linear-gradient(135deg,#1e3a8a 0%,#1e40af 50%,#2563eb 100%);color:#fff;padding:3.5rem 0 2.5rem;text-align:center}
.blog-hero-badge{display:inline-block;background:rgba(255,255,255,.15);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:.35rem 1.1rem;font-size:.85rem;font-weight:600;margin-bottom:1rem;letter-spacing:.02em}
.blog-hero-h1{font-size:clamp(1.75rem,4vw,2.75rem);font-weight:800;margin:0 0 .75rem;line-height:1.2}
.blog-hero-sub{font-size:1.05rem;opacity:.88;max-width:600px;margin:0 auto 1.75rem;line-height:1.6}
.blog-cat-filters{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.blog-cat-btn{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:99px;padding:.35rem 1rem;font-size:.85rem;font-weight:500;text-decoration:none;transition:background .2s}
.blog-cat-btn:hover,.blog-cat-btn.active{background:#fff;color:var(--primary)}
.blog-cat-cnt{background:rgba(255,255,255,.25);border-radius:99px;padding:.05rem .45rem;font-size:.75rem}
.blog-cat-btn.active .blog-cat-cnt{background:var(--primary);color:#fff}

/* Cards */
.blog-cat-badge{display:inline-block;background:var(--blue-bg);color:var(--primary);border-radius:99px;padding:.2rem .7rem;font-size:.75rem;font-weight:600;margin-bottom:.5rem}
.blog-cat-badge-sm{font-size:.7rem;padding:.15rem .55rem}
.blog-date,.blog-views,.blog-author{font-size:.82rem;color:var(--muted)}

/* Big card */
.blog-card-big{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;margin-bottom:2rem;box-shadow:var(--shadow)}
.blog-card-meta{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.85rem}
.blog-card-title{font-size:1.6rem;font-weight:700;line-height:1.3;margin:0 0 .75rem}
.blog-card-title a{color:var(--text);text-decoration:none}
.blog-card-title a:hover{color:var(--primary)}
.blog-card-excerpt{color:var(--text2);line-height:1.65;margin:0 0 1.25rem;font-size:1.02rem}
.blog-card-footer{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.blog-tags{display:flex;gap:.35rem;flex-wrap:wrap}
.blog-tag{background:var(--bg);border:1px solid var(--border);border-radius:99px;padding:.15rem .6rem;font-size:.72rem;color:var(--muted)}

/* Small cards grid */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.blog-card-small{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;transition:box-shadow .2s,transform .2s}
.blog-card-small:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.blog-card-small-title{font-size:1rem;font-weight:600;line-height:1.4;margin:.4rem 0 .5rem}
.blog-card-small-title a{color:var(--text);text-decoration:none}
.blog-card-small-title a:hover{color:var(--primary)}
.blog-card-small-exc{font-size:.875rem;color:var(--muted);line-height:1.5;margin:0 0 .75rem}
.blog-card-small-meta{display:flex;gap:.75rem;font-size:.78rem;color:var(--muted)}

/* Article page */
.blog-article{padding:2rem 0 3rem}
.blog-article-wrap{max-width:800px}
.blog-post-header{margin:1.25rem 0 2rem}
.blog-post-meta-top{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.85rem}
.blog-post-h1{font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:800;line-height:1.25;margin:0 0 .85rem;color:var(--text)}
.blog-post-excerpt{font-size:1.1rem;color:var(--muted);line-height:1.65;margin:0 0 1.25rem}
.blog-post-author-bar{display:flex;align-items:center;gap:.75rem;padding:.85rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.blog-author-avatar{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;font-size:1.1rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* Blog body content */
.blog-post-body{font-size:1.05rem;line-height:1.75;color:var(--text2);margin:2rem 0}
.blog-post-body h2{font-size:1.45rem;font-weight:700;color:var(--text);margin:2rem 0 .75rem;padding-bottom:.4rem;border-bottom:2px solid var(--blue-bg)}
.blog-post-body h3{font-size:1.2rem;font-weight:600;color:var(--text);margin:1.5rem 0 .5rem}
.blog-post-body p{margin:0 0 1.15rem}
.blog-post-body ul,.blog-post-body ol{margin:0 0 1.15rem;padding-left:1.5rem}
.blog-post-body li{margin-bottom:.5rem}
.blog-post-body strong{color:var(--text);font-weight:600}
.blog-post-body a{color:var(--primary);text-decoration:underline}
.blog-post-body blockquote{border-left:4px solid var(--primary);margin:1.5rem 0;padding:.75rem 1.25rem;background:var(--blue-bg);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic}

/* Post footer */
.blog-post-tags{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin:2rem 0;padding:1rem 0;border-top:1px solid var(--border)}
.blog-post-cta{background:linear-gradient(135deg,var(--primary),var(--primary-l));color:#fff;border-radius:var(--radius);padding:2rem;margin-top:2.5rem}
.blog-post-cta h3{margin:0 0 .5rem;font-size:1.3rem}
.blog-post-cta p{margin:0;opacity:.9}
.blog-post-cta .btn{background:#fff;color:var(--primary)}
.blog-post-cta .btn-outline{background:transparent;border-color:rgba(255,255,255,.6);color:#fff}

/* Breadcrumb */
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:1.25rem;display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.breadcrumb a{color:var(--primary);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{opacity:.5}

@media(max-width:768px){
  .blog-grid{grid-template-columns:1fr}
  .blog-card-big{padding:1.25rem}
  .blog-card-title{font-size:1.3rem}
  .blog-post-body{font-size:1rem}
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORUM
   ══════════════════════════════════════════════════════════════════════════════ */

/* Header */
.forum-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}
.forum-header h1{font-size:clamp(1.4rem,3vw,1.9rem);font-weight:800;margin-bottom:.3rem}
.forum-header-desc{color:var(--muted);font-size:.9rem;margin:0}
.forum-new-btn{white-space:nowrap;flex-shrink:0}

/* Tabs */
.forum-tabs{display:flex;align-items:center;gap:.25rem;border-bottom:2px solid var(--border);margin-bottom:1.25rem;flex-wrap:wrap}
.forum-tab{padding:.55rem 1rem;font-size:.875rem;font-weight:600;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s;border-radius:6px 6px 0 0}
.forum-tab:hover{color:var(--primary)}
.forum-tab.active{color:var(--primary);border-bottom-color:var(--primary)}
.forum-tab-count{margin-left:auto;font-size:.8rem;color:var(--muted)}

/* Thread card */
.forum-thread-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}
.forum-thread-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1rem 1.25rem;display:flex;gap:.9rem;transition:border-color .15s,box-shadow .15s}
.forum-thread-card:hover{border-color:var(--primary);box-shadow:0 2px 12px rgba(59,130,246,.08)}
.forum-thread-card.is-pinned{border-left:3px solid #f59e0b;background:linear-gradient(to right,#fffbeb,var(--card))}
.ftc-avatar{flex-shrink:0}
.ftc-avatar img,.ftc-avatar-init{width:40px;height:40px;border-radius:50%;object-fit:cover}
.ftc-avatar-init{background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.ftc-body{flex:1;min-width:0}
.ftc-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.35rem}
.ftc-title{font-size:1rem;font-weight:700;margin:0 0 .3rem;line-height:1.35}
.ftc-title a{color:var(--text);text-decoration:none}
.ftc-title a:hover{color:var(--primary)}
.ftc-excerpt{color:var(--muted);font-size:.85rem;margin:0 0 .5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftc-footer{display:flex;align-items:center;gap:.75rem;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.ftc-author strong{color:var(--text)}
.ftc-stat{display:flex;align-items:center;gap:.25rem}
.ftc-time{white-space:nowrap}

/* Category tags & badges */
.forum-cat-tag{display:inline-flex;align-items:center;gap:.3rem;background:var(--blue-bg,#eff6ff);color:var(--primary);font-size:.75rem;font-weight:700;padding:.2rem .6rem;border-radius:99px;text-decoration:none;white-space:nowrap}
.forum-cat-tag:hover{background:#dbeafe}
.forum-badge{display:inline-block;font-size:.72rem;font-weight:700;padding:.15rem .5rem;border-radius:99px}
.forum-badge.pin{background:#fef3c7;color:#92400e}
.forum-badge.lock{background:#f1f5f9;color:#64748b}

/* Thread detail */
.forum-post{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:1.5rem}
.fp-header{padding:1.5rem 1.5rem 1rem;border-bottom:1px solid var(--border)}
.fp-cat{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}
.fp-header h1{font-size:clamp(1.1rem,2.5vw,1.5rem);font-weight:800;margin-bottom:.75rem}
.fp-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}
.fp-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.fp-avatar-init{background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem}
.fp-sep{color:var(--border)}
.fp-body{padding:1.5rem;font-size:.95rem;line-height:1.75;color:var(--text)}
.fp-actions{padding:.75rem 1.5rem;border-top:1px solid var(--border);display:flex;gap:.75rem;align-items:center}

/* Forum content text */
.forum-content{font-size:.93rem;line-height:1.75;color:var(--text);word-break:break-word}

/* Replies */
.forum-replies-heading{font-size:1.1rem;font-weight:700;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--border)}
.forum-reply{display:flex;gap:.85rem;padding:1.1rem;background:var(--card);border:1px solid var(--border);border-radius:12px;margin-bottom:.75rem}
.fr-avatar img,.fr-avatar-init{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}
.fr-avatar-init{background:#7c3aed;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}
.fr-body{flex:1;min-width:0}
.fr-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.85rem;flex-wrap:wrap}
.fr-actions{margin-top:.6rem;display:flex;gap:.5rem}

/* Like / share buttons */
.like-btn{display:inline-flex;align-items:center;gap:.35rem;background:var(--bg2,#f8fafc);border:1px solid var(--border);border-radius:99px;padding:.35rem .85rem;font-size:.85rem;cursor:pointer;transition:all .15s;color:var(--text)}
.like-btn.sm{padding:.25rem .65rem;font-size:.8rem}
.like-btn:hover,.like-btn.liked{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.like-btn.liked{font-weight:700}
.share-btn{display:inline-flex;align-items:center;gap:.35rem;background:none;border:1px solid var(--border);border-radius:99px;padding:.35rem .85rem;font-size:.85rem;cursor:pointer;color:var(--muted);transition:all .15s}
.share-btn:hover{background:var(--bg2);color:var(--text)}

/* Reply form */
.forum-reply-form{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:1.5rem;margin-top:1.5rem}
.forum-reply-form h3{font-size:1rem;font-weight:700;margin-bottom:1rem}
.fr-form-user{display:flex;align-items:center;gap:.6rem;margin-bottom:.75rem;font-size:.9rem}
.fr-form-avatar,.fr-form-avatar-init{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.fr-form-avatar-init{background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem}
.forum-textarea{width:100%;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:10px;font-size:.9rem;font-family:inherit;resize:vertical;outline:none;transition:border .15s;background:var(--bg);color:var(--text);box-sizing:border-box}
.forum-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.forum-login-prompt{text-align:center;padding:1.5rem;color:var(--muted)}
.forum-login-prompt p{margin-bottom:.75rem}
.forum-locked-notice{background:#f1f5f9;border:1px solid var(--border);border-radius:10px;padding:1rem;text-align:center;color:var(--muted);margin-top:1.5rem;font-size:.9rem}

/* New thread form */
.forum-new-wrap{max-width:740px}
.forum-new-form{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}
.fn-field label{display:block;font-weight:700;font-size:.88rem;margin-bottom:.5rem;color:var(--text)}
.fn-input{width:100%;padding:.65rem 1rem;border:1.5px solid var(--border);border-radius:10px;font-size:.95rem;font-family:inherit;outline:none;transition:border .15s;background:var(--bg);color:var(--text);box-sizing:border-box}
.fn-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.fn-textarea{width:100%;min-height:200px;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:10px;font-size:.93rem;font-family:inherit;resize:vertical;outline:none;transition:border .15s;background:var(--bg);color:var(--text);box-sizing:border-box}
.fn-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.fn-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.6rem}
.fn-cat-option{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;border:1.5px solid var(--border);border-radius:10px;cursor:pointer;transition:all .15s;background:var(--bg)}
.fn-cat-option:hover{border-color:var(--primary);background:#eff6ff}
.fn-cat-option.selected{border-color:var(--primary);background:#eff6ff;font-weight:600}
.fn-cat-option input{display:none}
.fn-cat-icon{font-size:1.2rem;flex-shrink:0}
.fn-cat-name{font-size:.83rem;font-weight:500}
.forum-errors{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:.9rem 1.1rem;color:#991b1b;font-size:.875rem;display:flex;flex-direction:column;gap:.3rem}

@media(max-width:600px){
  .forum-thread-card{flex-direction:column;gap:.6rem}
  .ftc-excerpt{display:none}
  .forum-header{flex-direction:column}
  .fp-body{padding:1rem}
  .forum-reply-form{padding:1rem}
  .fn-cat-grid{grid-template-columns:repeat(2,1fr)}
}

/* Bot reply styling */
.forum-bot-badge{display:inline-block;font-size:.68rem;font-weight:600;padding:.15rem .45rem;border-radius:20px;background:#ede9fe;color:#6d28d9;margin-left:.3rem;vertical-align:middle;letter-spacing:.02em}
.forum-reply-bot{background:linear-gradient(to right,#faf5ff 0%,transparent 8px) no-repeat;border-left:3px solid #c4b5fd !important}
