/* ================= Jobs ================= */
.topbar.compact .inner { height: 72px; }
.topbar.compact .logo-word { font-size: 32px; }
.topbar.compact .logo-mark { width: 30px; height: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jb-top-right { display: flex; align-items: center; gap: 18px; }
.jb-lang { font-size: 15px; color: rgba(255,255,255,.75); }
.jb-lang:hover { color: #fff; }
.jb-login { height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s; }
.jb-login:hover { border-color: var(--orange); background: rgba(253,97,27,.12); }

/* Hero + search */
.jb-hero { position: relative; background: var(--primary-text); color: #fff; padding: 56px 24px 44px; overflow: hidden; }
.jb-hero::before { content: ""; position: absolute; width: 720px; height: 720px; inset-inline-end: -220px; top: -420px; background: radial-gradient(closest-side, rgba(253,97,27,.28), transparent); pointer-events: none; }
.jb-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.jb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.jb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60,207,122,.6); animation: jbPulse 2s infinite; }
@keyframes jbPulse { 70% { box-shadow: 0 0 0 8px rgba(60,207,122,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,122,0); } }
.jb-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.15; margin: 16px 0 10px; max-width: 760px; }
.jb-hero p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 640px; }

.jb-search { margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.jb-field { position: relative; display: flex; align-items: center; color: var(--muted-text); }
.jb-field svg { position: absolute; inset-inline-start: 14px; width: 20px; height: 20px; pointer-events: none; }
.jb-field input, .jb-field select { width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--bg); font: inherit; font-size: 16px; color: var(--primary-text); padding-inline: 44px 14px; }
.jb-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377736f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 40px; }
[dir="rtl"] .jb-field select { background-position: left 14px center; }
.jb-field input:focus, .jb-field select:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.jb-go { width: auto; height: 50px; padding: 0 28px; border-radius: 10px; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jb-chip { height: 34px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.85); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.jb-chip:hover, .jb-chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }

/* List */
.jb-main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; }
.jb-list-head { min-height: 24px; margin-bottom: 14px; color: var(--muted-text); font-size: 15px; }
.jb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.jb-list { display: flex; flex-direction: column; gap: 12px; }

.jb-card { background: var(--white); border: 1px solid #eceef1; border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: start; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; animation: stepIn .4s cubic-bezier(.2,.7,.2,1) both; }
.jb-card:hover { transform: translateY(-2px); border-color: #e3e5e8; box-shadow: 0 18px 40px -24px rgba(13,12,11,.22); }
.jb-logo { width: 52px; height: 52px; border-radius: 12px; background: #f1f2f4; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: 20px; color: var(--orange); }
.jb-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.jb-body { min-width: 0; }
.jb-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.jb-title a:hover { color: var(--orange); }
.jb-company { font-size: 14px; color: var(--tertiary-text); margin-top: 2px; }
.jb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jb-tag { font-size: 12.5px; padding: 3px 10px; border-radius: 20px; background: #f1f2f4; color: var(--secondary-text); display: inline-flex; align-items: center; gap: 5px; }
.jb-tag svg { width: 13px; height: 13px; }
.jb-tag.loc { background: rgba(253,97,27,.1); color: #c24d12; }
.jb-tag.pay { background: rgba(60,207,122,.12); color: #1d8a4c; }
.jb-excerpt { font-size: 14px; line-height: 1.6; color: var(--muted-text); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jb-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.jb-apply { width: auto; height: 40px; font-size: 15px; padding: 0 18px; }
.jb-apply svg { width: 16px; height: 16px; }
[dir="rtl"] .jb-apply svg { transform: scaleX(-1); }
.jb-meta { font-size: 12.5px; color: var(--subtle-text); text-align: end; line-height: 1.5; }
.jb-meta a { text-decoration: underline; text-underline-offset: 2px; }
.jb-meta a:hover { color: var(--orange); }

/* Loading skeleton */
.jb-skel { height: 128px; border-radius: 16px; background: linear-gradient(90deg, #eceef1 0%, #f6f7f9 50%, #eceef1 100%); background-size: 200% 100%; animation: jbShimmer 1.2s infinite linear; }
@keyframes jbShimmer { to { background-position: -200% 0; } }

/* Empty / error */
.jb-empty { background: var(--white); border-radius: 16px; padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jb-empty-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(253,97,27,.1); color: var(--orange); display: grid; place-items: center; margin-bottom: 6px; }
.jb-empty-ico svg { width: 30px; height: 30px; }
.jb-empty h2 { font-size: 19px; }
.jb-empty p { color: var(--tertiary-text); max-width: 420px; line-height: 1.6; }
.jb-empty .btn { width: auto; margin-top: 8px; }

/* Side */
.jb-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.jb-cta { background: var(--primary-text); color: #fff; border-radius: 18px; padding: 24px; position: relative; overflow: hidden; }
.jb-cta::after { content: ""; position: absolute; width: 260px; height: 260px; inset-inline-end: -120px; bottom: -140px; background: radial-gradient(closest-side, rgba(253,97,27,.45), transparent); pointer-events: none; }
.jb-cta-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; }
.jb-cta-ico svg { width: 22px; height: 22px; }
.jb-cta h2 { font-size: 20px; margin: 14px 0 6px; }
.jb-cta p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.jb-cta .btn { position: relative; z-index: 1; }
.jb-note { font-size: 13px; line-height: 1.6; color: var(--muted-text); padding: 0 4px; }
.jb-note a, .jb-foot a { text-decoration: underline; text-underline-offset: 2px; }
.jb-note a:hover, .jb-foot a:hover { color: var(--orange); }

.jb-more { display: flex; justify-content: center; margin-top: 22px; }
.jb-more-btn { width: auto; background: var(--white); border-color: #e3e5e8; color: var(--primary-text); padding: 0 28px; }
.jb-more-btn:hover { border-color: var(--orange); }
.jb-foot { max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px; border-top: 1px solid #e6e8eb; font-size: 13px; color: var(--muted-text); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .jb-layout { grid-template-columns: 1fr; }
  .jb-side { position: static; order: -1; }
  .jb-cta { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px; }
  .jb-cta-ico { grid-row: span 2; }
  .jb-cta h2 { margin: 0; font-size: 17px; }
  .jb-cta p { display: none; }
  .jb-cta .btn { grid-column: 1 / -1; margin-top: 14px; }
  .jb-note { display: none; }
}
@media (max-width: 700px) {
  .jb-hero { padding: 36px 16px 28px; }
  .jb-hero h1 { font-size: 30px; }
  .jb-hero p { font-size: 16px; }
  .jb-search { grid-template-columns: 1fr; }
  .jb-go { width: 100%; }
  .jb-main { padding: 20px 16px 32px; }
  .jb-card { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .jb-logo { width: 44px; height: 44px; }
  .jb-act { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .jb-meta { text-align: start; }
  .jb-foot { padding: 20px 16px 40px; }
  .topbar.compact .inner { padding: 0 16px; }
  .jb-top-right { gap: 12px; min-width: 0; }
  .jb-top-right .user span[dir] { display: none; }
  .jb-hero h1, .jb-hero p { overflow-wrap: anywhere; }
  .jb-login { padding: 0 12px; }
}
