/* =====================================================================
   Maps Business Agent — Premium UI  v2
   ===================================================================== */

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

:root {
  --p:      #2563eb;
  --pd:     #1d4ed8;
  --pdk:    #1e3a8a;
  --acc:    #10b981;
  --accd:   #059669;
  --danger: #ef4444;
  --warn:   #f59e0b;
  --indigo: #6366f1;
  --teal:   #14b8a6;
  --rose:   #f43f5e;
  --violet: #8b5cf6;
  --sky:    #0ea5e9;
  --amber:  #f59e0b;

  --bg:     #f0f4f8;
  --card:   #ffffff;
  --text:   #0f172a;
  --text2:  #334155;
  --muted:  #64748b;
  --border: #e2e8f0;
  --borderb:#cbd5e1;

  --r:   12px;
  --rs:  8px;
  --shsm: 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --sh:   0 4px 20px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  --shlg: 0 16px 48px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);

  --hh: 64px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════ HEADER ══════════════════════════ */

.header {
  height: var(--hh);
  background: linear-gradient(135deg, #060d20 0%, #0f1f4a 50%, #1a3a8f 100%);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.35);
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(99,102,241,.4));
}

.header-spacer { flex: 1; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font);
  white-space: nowrap;
}

.nav-tab:hover  { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.12); }
.nav-tab.active { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 4px rgba(0,0,0,.2); }

.nav-badge {
  background: var(--acc);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.6;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.32);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .69rem;
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: lpulse 1.4s infinite;
  flex-shrink: 0;
}

@keyframes lpulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

/* ══════════════════════════ PAGES ══════════════════════════ */

.pages { min-height: calc(100vh - var(--hh)); }

/* ══════════════════════════ HOME PAGE ══════════════════════════ */

#page-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--hh));
}

/* ── Hero (Key Benefits section at top) ── */
/* ══════════════════════════ HOME — HERO ══════════════════════════ */

.hp-hero {
  background: linear-gradient(180deg,
    #04091e  0%,
    #09183e 18%,
    #112264 38%,
    #1c3a9c 56%,
    #3d61c0 72%,
    #8aaee0 86%,
    #dde8f8 95%,
    #eef3fb 100%
  );
  position: relative;
  padding: 48px 24px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

/* Subtle dot-grid overlay */
.hp-hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Glow orbs */
.hp-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: .45;
}
.hp-orb-1 {
  width: 440px; height: 440px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(99,102,241,.38), transparent 70%);
  animation: orbFloat 9s ease-in-out infinite;
}
.hp-orb-2 {
  width: 300px; height: 300px;
  top: 10%; right: -60px;
  background: radial-gradient(circle, rgba(16,185,129,.28), transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.hp-orb-3 {
  width: 220px; height: 220px;
  top: 35%; left: 22%;
  background: radial-gradient(circle, rgba(37,99,235,.22), transparent 70%);
  animation: orbFloat 13s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(18px,-14px) scale(1.06); }
  66%     { transform: translate(-14px,10px) scale(.95); }
}

/* Brand headline */
.hp-hero-text {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hp-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 45%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-subtitle {
  font-size: clamp(.95rem, 2vw, 1.12rem);
  font-weight: 600;
  color: rgba(255,255,255,.72);
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.hp-tagline {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.42);
  letter-spacing: .1px;
}

/* ── Floating white search card ── */
.hp-card-wrap {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-bottom: -110px;
}

.hp-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 32px 80px rgba(4,9,30,.32), 0 6px 24px rgba(4,9,30,.14);
  overflow: hidden;
}

.hp-card-body {
  padding: 32px 40px 28px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hp-card-hint {
  font-size: .95rem;
  color: #64748b;
  line-height: 1.72;
  max-width: 470px;
}

.hp-card-hint strong { color: #1e3a8a; }

/* ── Premium search icon ── */
.hp-search-icon-wrap {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  flex-shrink: 0;
}

.hp-search-icon-core {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 28px rgba(37,99,235,.45), 0 2px 8px rgba(99,102,241,.3);
  position: relative; z-index: 1;
  animation: siFloat 3.6s ease-in-out infinite;
}

.hp-search-icon-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,.18);
  animation: siPulse 2.8s ease-out infinite;
}
.hp-search-icon-ring-1 { animation-delay: 0s;    width: 64px;  height: 64px;  top: 8px;  left: 8px; }
.hp-search-icon-ring-2 { animation-delay: .7s;   width: 76px;  height: 76px;  top: 2px;  left: 2px; }
.hp-search-icon-ring-3 { animation-delay: 1.4s;  width: 88px;  height: 88px;  top: -4px; left: -4px; border-color: rgba(99,102,241,.1); }

@keyframes siPulse {
  0%   { transform: scale(.9); opacity: .9; }
  60%  { transform: scale(1.05); opacity: .3; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes siFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ── Search bar inside card ── */
.hp-card-bar { border-top: 1px solid #eaeff7; }

.hp-bar-form {
  display: flex;
  align-items: stretch;
  min-height: 68px;
}

.hp-bar-field {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  min-width: 0;
  cursor: text;
  transition: background .14s;
}
.hp-bar-field:hover { background: #f8faff; }

.hp-bar-lbl {
  display: flex; align-items: center; gap: 4px;
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: #94a3b8;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hp-bar-lbl em { font-style: normal; color: #ef4444; }

.hp-bar-input {
  border: none; outline: none;
  font-size: .9rem; font-weight: 500;
  font-family: var(--font);
  color: #0f172a;
  background: transparent;
  width: 100%;
}
.hp-bar-input::placeholder { color: #b8c4d4; }

.hp-bar-sel-wrap { position: relative; }
.hp-bar-sel-wrap .hp-bar-input { appearance: none; padding-right: 18px; cursor: pointer; }
.hp-bar-caret {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  pointer-events: none; color: #94a3b8;
  width: 11px; height: 11px;
}

.hp-bar-sep {
  width: 1px;
  background: #e8edf5;
  margin: 14px 0;
  flex-shrink: 0;
}

.hp-bar-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 10px 6px;
  padding: 0 22px;
  border-radius: 50px;
  background: #2563eb;
  color: #fff;
  font-size: .88rem; font-weight: 700;
  font-family: var(--font);
  border: none; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.hp-bar-btn:hover  { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.hp-bar-btn:active { transform: none; }
.hp-bar-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hp-bar-other {
  border-top: 1px solid #eaeff7;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-bar-other .hp-bar-lbl { margin-bottom: 0; white-space: nowrap; }
.hp-bar-other .hp-bar-input { flex: 1; }

/* ══════════════════════════ HOME — BENEFITS TICKER ══════════════════════════ */

.hp-benefits-section {
  background: #f0f5fc;
  border-top: 1px solid #dde8f5;
  padding: 120px 0 32px;
}

.hp-ticker-label {
  text-align: center;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.hp-ticker-wrap {
  position: relative;
  overflow: hidden;
}

.hp-ticker-wrap::before,
.hp-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.hp-ticker-wrap::before { left: 0;  background: linear-gradient(to right, #f0f5fc, transparent); }
.hp-ticker-wrap::after  { right: 0; background: linear-gradient(to left,  #f0f5fc, transparent); }

.hp-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: hpTicker 28s linear infinite;
  padding: 8px 0;
}
.hp-ticker:hover { animation-play-state: paused; }

@keyframes hpTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hp-ti {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 36px;
  white-space: nowrap;
  cursor: default;
}

.hp-ti-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hp-bi-blue   { background: #eff6ff; color: #2563eb; }
.hp-bi-green  { background: #f0fdf4; color: #059669; }
.hp-bi-teal   { background: #f0fdfa; color: #0d9488; }
.hp-bi-orange { background: #fffbeb; color: #d97706; }
.hp-bi-indigo { background: #eef2ff; color: #6366f1; }
.hp-bi-rose   { background: #fff1f2; color: #e11d48; }

.hp-ti-name {
  font-size: .88rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: -.1px;
}

.hp-ti-dot {
  font-size: 1.3rem;
  color: #cbd5e1;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

/* ── Legacy form styles (results page) ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-row-extra { display: flex; gap: 18px; margin-bottom: 20px; }
.form-row-extra .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  display: flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
}
.field input, .field select {
  border: 1.5px solid var(--border); border-radius: var(--rs);
  padding: 10px 14px; font-size: .92rem; color: var(--text);
  background: #fff; outline: none; font-family: var(--font);
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field input:focus, .field select:focus {
  border-color: var(--p); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.field input::placeholder { color: #94a3b8; }
.field-hint { font-size: .68rem; color: var(--muted); }
.sel-wrap { position: relative; }
.sel-wrap select { appearance: none; padding-right: 30px; cursor: pointer; }
.sel-caret {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: var(--muted); width: 11px; height: 11px;
}
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--border); }

/* ══════════════════════════ BUTTONS ══════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--rs);
  font-size: .85rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .17s;
  text-decoration: none; white-space: nowrap;
  font-family: var(--font); letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%);
  color: #fff; box-shadow: 0 3px 12px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--pd), var(--pdk));
  box-shadow: 0 5px 20px rgba(37,99,235,.4); transform: translateY(-1px);
}
.btn-primary:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-lg { padding: 12px 28px; font-size: .95rem; }
.btn-sm { padding: 6px 14px; font-size: .78rem; }

.btn-success {
  background: linear-gradient(135deg, var(--acc), var(--accd));
  color: #fff; box-shadow: 0 3px 12px rgba(16,185,129,.3);
}
.btn-success:hover { box-shadow: 0 5px 20px rgba(16,185,129,.4); transform: translateY(-1px); }

.btn-outline {
  background: var(--card); border: 1.5px solid var(--borderb); color: var(--text2);
}
.btn-outline:hover { border-color: var(--p); color: var(--p); background: #eff6ff; }

.btn-danger { background: #fee2e2; border: 1.5px solid #fca5a5; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-social-ig { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }
.btn-social-ig:hover { background: #be185d; color: #fff; border-color: #be185d; }
.btn-social-fb { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.btn-social-fb:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.btn-social-wa { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.btn-social-wa:hover { background: #15803d; color: #fff; border-color: #15803d; }

.btn-del {
  background: transparent; border: 1.5px solid #fca5a5;
  color: #ef4444; padding: 6px 10px; opacity: .7; transition: all .17s;
}
.btn-del:hover { background: #fee2e2; opacity: 1; border-color: #ef4444; }

/* ══════════════════════════ BADGES ══════════════════════════ */

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.badge.running   { background: #dbeafe; color: #1d4ed8; }
.badge.completed { background: #d1fae5; color: #065f46; }
.badge.failed    { background: #fee2e2; color: #991b1b; }
.badge.pending   { background: #f1f5f9; color: #64748b; }
.badge.partial   { background: #fef3c7; color: #92400e; }

/* ══════════════════════════ RESULTS PAGE ══════════════════════════ */

.rpbar {
  position: sticky;
  top: var(--hh);
  z-index: 200;
  background: linear-gradient(135deg, #0a1628 0%, #0f1f4a 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.rpbar-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 11px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.rpbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rpbar-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 700; color: #fff; letter-spacing: -.2px;
}

.rpbar-meta { font-size: .72rem; color: rgba(255,255,255,.35); white-space: nowrap; }

.rpbar-scope {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; border: 1px solid;
  transition: all .25s;
  flex-shrink: 1;
  min-width: 0;
}
.rpbar-scope.scope-all {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.42);
}
.rpbar-scope.scope-one {
  background: rgba(37,99,235,.2); border-color: rgba(96,165,250,.45); color: #93c5fd;
}

.rpbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.filter-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rs); padding: 6px 12px;
  color: rgba(255,255,255,.45); transition: all .2s;
}
.filter-box:focus-within { background: rgba(255,255,255,.12); border-color: rgba(37,99,235,.6); }
.filter-box input {
  border: none; background: transparent; outline: none;
  font-size: .84rem; color: rgba(255,255,255,.85);
  width: 180px; font-family: var(--font);
}
.filter-box input::placeholder { color: rgba(255,255,255,.3); }

/* ── Stats strip ── */
.jsstats {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
}
.jsstats::-webkit-scrollbar { display: none; }

.jsstat {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  white-space: nowrap; flex: 1; min-width: 110px;
}
.jsstat:last-child { border-right: none; }

.jsstat-lbl {
  font-size: .62rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; flex: 1;
}
.jsstat-val { font-size: .9rem; font-weight: 800; }

.jsstat-total svg, .jsstat-total .jsstat-val { color: #2563eb; }
.jsstat-email svg, .jsstat-email .jsstat-val { color: #0f766e; }
.jsstat-li    svg, .jsstat-li    .jsstat-val { color: #4338ca; }
.jsstat-ig    svg, .jsstat-ig    .jsstat-val { color: #be185d; }
.jsstat-fb    svg, .jsstat-fb    .jsstat-val { color: #1d4ed8; }
.jsstat-wa    svg, .jsstat-wa    .jsstat-val { color: #15803d; }

/* ── Empty state ── */
.jsec-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 24px; gap: 12px;
  color: var(--muted); text-align: center;
}
.jsec-empty-icon {
  width: 72px; height: 72px;
  background: #f1f5f9; border: 2px solid var(--border);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px; color: #94a3b8;
}
.jsec-empty p     { font-size: .95rem; font-weight: 600; color: var(--text2); }
.jsec-empty small { font-size: .8rem; color: var(--muted); }

/* ══════════════════════════ JOB SECTIONS ══════════════════════════ */

.jsections { padding: 16px 16px 80px; display: flex; flex-direction: column; gap: 10px; }

.jsec {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
  transition: box-shadow .25s, border-left-color .25s, transform .2s;
}
.jsec.expanded {
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.jsec[data-status="completed"]          { border-left-color: #10b981; }
.jsec[data-status="completed"].expanded { border-left-color: #059669; box-shadow: 0 6px 28px rgba(16,185,129,.12); }
.jsec[data-status="running"]            { border-left-color: #3b82f6; }
.jsec[data-status="running"].expanded   { border-left-color: #2563eb; box-shadow: 0 6px 28px rgba(37,99,235,.14); }
.jsec[data-status="failed"]             { border-left-color: #ef4444; }
.jsec[data-status="partial"]            { border-left-color: #f59e0b; }
.jsec[data-status="pending"]            { border-left-color: #94a3b8; }

.jsec[data-status="completed"] .jsh-date-badge { background: linear-gradient(135deg, #10b981, #059669); }
.jsec[data-status="failed"]    .jsh-date-badge { background: linear-gradient(135deg, #ef4444, #dc2626); }
.jsec[data-status="partial"]   .jsh-date-badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.jsec[data-status="pending"]   .jsh-date-badge { background: linear-gradient(135deg, #94a3b8, #64748b); }

.jsh {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; min-height: 72px;
  cursor: pointer; user-select: none; background: #fff;
  transition: background .15s;
}
.jsh:hover { background: linear-gradient(to right, #f8fbff, #eef5ff); }

.jsh-toggle {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s; color: var(--muted);
}
.jsh-toggle svg { transition: transform .25s; }
.jsec.expanded .jsh-toggle svg { transform: rotate(180deg); }

.jsh-date-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--p), var(--indigo));
  border-radius: 11px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,99,235,.25);
}
.jsh-date-day   { font-size: .73rem; font-weight: 800; color: #fff; line-height: 1; }
.jsh-date-month { font-size: .53rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

.jsh-info { flex: 1; min-width: 0; }
.jsh-title {
  font-size: .9rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px; letter-spacing: -.1px;
}
.jsh-meta { font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jsh-meta-sep { color: var(--border); }

.jsh-chips { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.jsc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .67rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; border: 1px solid transparent;
}
.jsc-found    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.jsc-email    { background: #f0fdf9; color: #0f766e; border-color: #99f6e4; }
.jsc-li       { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.jsc-verified { background: #f0fdf4; color: #065f46; border-color: #a7f3d0; }
.jsc-industry { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.jsc-emp      { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }

.jsh-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Progress */
.jsprog {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-top: 1px solid var(--border); padding: 14px 18px;
}
.jsprog-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.prog-bar-track { flex: 1; height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--p), #60a5fa);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden; min-width: 0;
}
.prog-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
.prog-pct-txt { font-size: .8rem; font-weight: 700; color: var(--p); min-width: 40px; text-align: right; flex-shrink: 0; }
/* Stage tracker */
.jsprog-stages {
  display: flex; align-items: center; margin-bottom: 14px;
}
.jspstage {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; color: #94a3b8;
  white-space: nowrap; flex-shrink: 0;
  transition: color .3s ease;
}
.jspstage.active { color: var(--p); }
.jspstage.done   { color: #22c55e; }
.jspstg-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #94a3b8;
  flex-shrink: 0; transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.jspstage.active .jspstg-dot {
  background: var(--p); color: #fff;
  animation: stagePulse 1.8s ease-in-out infinite;
}
.jspstage.done .jspstg-dot { background: #22c55e; color: #fff; }
@keyframes stagePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(59,130,246,.07); }
}
.jspstg-lbl { display: none; }
@media (min-width: 480px) { .jspstg-lbl { display: inline; } }
.jspstg-line {
  flex: 1; height: 2px; background: #e2e8f0; margin: 0 8px;
  border-radius: 99px; transition: background .4s ease; min-width: 12px;
}
.jspstg-line.done { background: #22c55e; }

/* Info row */
.jsprog-info-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 8px; flex-wrap: wrap;
}
.jsprog-found-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; color: var(--p);
  background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.18);
  padding: 3px 9px; border-radius: 99px; flex-shrink: 0;
}
.jsprog-desc {
  font-size: .74rem; color: var(--text2); flex: 1; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Job body */
.jsbd { border-top: 1px solid var(--border); overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.jsec.collapsed .jsstats { display: none; }
.jsec.collapsed .jsbd { max-height: 0; opacity: 0; pointer-events: none; }
.jsec.expanded  .jsbd { max-height: none; opacity: 1; }

.jstoolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.jstoolbar-left  { display: flex; align-items: center; gap: 8px; }
.jstoolbar-right { display: flex; align-items: center; gap: 8px; }

.jsfilt-box {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--rs); padding: 5px 10px;
  color: var(--muted); transition: border-color .2s;
}
.jsfilt-box:focus-within { border-color: var(--p); }
.jsfilt-box input {
  border: none; background: transparent; outline: none;
  font-size: .82rem; color: var(--text); width: 150px; font-family: var(--font);
}
.jsfilt-box input::placeholder { color: var(--muted); }

.showing { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* Table */
.jstbl-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.jstbl-wrap::-webkit-scrollbar { width: 5px; height: 5px; }
.jstbl-wrap::-webkit-scrollbar-track { background: #f1f5f9; }
.jstbl-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.jstbl-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.dtable thead th {
  background: #0a0f1e; color: rgba(255,255,255,.75);
  padding: 10px 12px; text-align: left;
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap; position: sticky; top: 0; z-index: 5;
  border-bottom: 2px solid var(--p);
  border-right: 1px solid rgba(255,255,255,.04);
  font-family: var(--font);
}
.dtable thead th:last-child { border-right: none; }
.th-num { width: 38px; text-align: center; }

.dtable tbody tr { cursor: pointer; transition: background .1s; }
.dtable tbody tr:nth-child(even) { background: #f8fafc; }
.dtable tbody tr:hover { background: #eff6ff !important; outline: 1px solid #bfdbfe; }

.dtable td {
  padding: 8px 12px; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle; max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-right: 1px solid #f8fafc;
}
.dtable td:last-child { border-right: none; }
.dtable td:first-child { text-align: center; color: var(--muted); font-size: .68rem; }

.td-name  { font-weight: 600; color: var(--text); font-size: .83rem; }
.td-email { color: #059669; font-weight: 500; }
.td-muted { color: var(--muted); font-size: .76rem; }
.td-link a { color: var(--p); text-decoration: none; font-weight: 500; }
.td-link a:hover { text-decoration: underline; }

.social-link { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; text-decoration: none; white-space: nowrap; transition: all .15s; }
.social-linkedin  { background: #e0f0ff; color: #0077b5; }
.social-linkedin:hover  { background: #0077b5; color: #fff; }
.social-instagram { background: #fce7f3; color: #be185d; }
.social-instagram:hover { background: #be185d; color: #fff; }
.social-facebook  { background: #dbeafe; color: #1d4ed8; }
.social-facebook:hover  { background: #1d4ed8; color: #fff; }
.social-whatsapp  { background: #dcfce7; color: #15803d; }
.social-whatsapp:hover  { background: #15803d; color: #fff; }

.badge-v {
  display: inline-flex; align-items: center; gap: 3px;
  background: #d1fae5; color: #065f46;
  font-size: .64rem; padding: 2px 7px; border-radius: 4px; font-weight: 700;
}
.badge-u {
  display: inline-flex; align-items: center; gap: 3px;
  background: #fef3c7; color: #92400e;
  font-size: .64rem; padding: 2px 7px; border-radius: 4px; font-weight: 700;
}
.rat-star { color: #f59e0b; margin-right: 1px; }
.jsec-table-empty { text-align: center; padding: 40px 24px; color: var(--muted); font-size: .85rem; }

/* ══════════════════════════ MODAL ══════════════════════════ */

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(2,8,24,.65);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mbgIn .2s ease;
}
@keyframes mbgIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 24px 64px rgba(0,0,0,.22);
  width: 100%; max-width: 620px; max-height: 88vh;
  overflow-y: auto;
  animation: mIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mIn {
  from { opacity: 0; transform: translateY(28px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1;
  background: linear-gradient(135deg, #fff 0%, #f7f9ff 100%);
}
.modal-head h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; letter-spacing: -.3px; }
.modal-cat { font-size: .74rem; color: var(--muted); }

.modal-x {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); flex-shrink: 0;
  margin-left: 12px; transition: all .15s;
}
.modal-x:hover { background: #fee2e2; color: var(--danger); border-color: #fca5a5; }

.modal-body { padding: 18px 22px; }
.modal-section { margin-bottom: 18px; }
.modal-section:last-child { margin-bottom: 0; }

.modal-sec-title {
  font-size: .62rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}

.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mfield { display: flex; flex-direction: column; gap: 4px; }
.mfl { font-size: .61rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.mfv { font-size: .85rem; color: var(--text); word-break: break-word; }
.mfv a { color: var(--p); text-decoration: none; }
.mfv a:hover { text-decoration: underline; }
.mfv.dash { color: var(--muted); }

.mdesc {
  font-size: .82rem; color: var(--text2); line-height: 1.68;
  background: var(--bg); border-radius: var(--rs);
  padding: 11px 13px; border: 1px solid var(--border);
}

.modal-foot {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--border);
  background: #fafbff;
}

/* ══════════════════════════ CONFIRM MODAL ══════════════════════════ */

.confirm-bg {
  position: fixed; inset: 0; background: rgba(2,8,24,.6);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: mbgIn .18s ease;
}
.confirm-modal {
  background: var(--card); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  width: 100%; max-width: 400px;
  padding: 32px 28px 24px; text-align: center;
  animation: mIn .22s cubic-bezier(.34,1.56,.64,1);
}
.confirm-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(239,68,68,.1); color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.confirm-modal h3 { font-size: 1.08rem; font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.3; letter-spacing: -.3px; }
.confirm-modal p  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
.confirm-modal p strong { color: var(--text); }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; justify-content: center; }

/* ══════════════════════════ TOAST ══════════════════════════ */

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #0f172a; color: #fff;
  padding: 10px 16px; border-radius: 12px;
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  z-index: 9999; animation: tIn .22s cubic-bezier(.4,0,.2,1);
  max-width: 360px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font);
  border: 1px solid rgba(255,255,255,.08);
}
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.toast.error   { background: #7f1d1d; border-color: rgba(239,68,68,.3); }
.toast.error::before   { background: #f87171; }
.toast.success { background: #064e3b; border-color: rgba(16,185,129,.3); }
.toast.success::before { background: #34d399; }

@keyframes tIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════ FOOTER ══════════════════════════ */

.footer {
  background: linear-gradient(135deg, #060d20 0%, #0f1f4a 60%, #1a3a8f 100%);
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.footer-copy    { font-size: .72rem; color: rgba(255,255,255,.35); }
.footer-sep     { font-size: .72rem; color: rgba(255,255,255,.15); }
.footer-tagline { font-size: .72rem; color: rgba(255,255,255,.22); }

/* ══════════════════════════ BUSINESS-TYPE CUSTOM DROPDOWN ══════════════════════════ */

/* Hide native select — value still readable by JS */
.hp-btype-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
  border: none;
}

/* Wrapper inside the form field */
.hp-dd-wrap { position: relative; width: 100%; }

/* Trigger button — looks like the other bar inputs */
.hp-btype-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  text-align: left;
  outline: none;
}

.hp-btype-val {
  flex: 1;
  font-size: .9rem;
  font-weight: 500;
  color: #b8c4d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s;
}
.hp-btype-trigger.has-val .hp-btype-val { color: #0f172a; }

.hp-btype-caret {
  width: 11px; height: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1), color .15s;
}
.hp-dd-wrap.open .hp-btype-caret {
  transform: rotate(180deg);
  color: var(--p);
}

/* ── Floating panel (position: fixed, appended to <body>) ── */
.hp-dd-panel {
  position: fixed;
  z-index: 2000;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.16),
    0 6px 20px rgba(0,0,0,.08),
    0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.hp-dd-panel.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Search row at the top of the panel */
.hp-dd-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 11px;
  background: #f8faff;
  border-bottom: 1px solid #eef2f8;
}
.hp-dd-search-row svg { flex-shrink: 0; color: #94a3b8; }

.hp-dd-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: .88rem;
  font-family: var(--font);
  background: transparent;
  color: #0f172a;
  min-width: 0;
}
.hp-dd-search::placeholder { color: #b8c4d4; }

/* Scrollable list */
.hp-dd-list {
  max-height: 272px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.hp-dd-list::-webkit-scrollbar { width: 4px; }
.hp-dd-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.hp-dd-list::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Each option row */
.hp-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}
.hp-dd-item:hover   { background: #f1f5f9; }
.hp-dd-item.selected { background: #eff6ff; }
.hp-dd-item:active  { background: #dbeafe; }

/* Colored initial-letter badge */
.hp-dd-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}
.ddi-blue   { background: #eff6ff; color: #2563eb; }
.ddi-green  { background: #f0fdf4; color: #059669; }
.ddi-teal   { background: #f0fdfa; color: #0d9488; }
.ddi-orange { background: #fff7ed; color: #ea580c; }
.ddi-purple { background: #f5f3ff; color: #7c3aed; }
.ddi-rose   { background: #fff1f2; color: #e11d48; }
.ddi-gray   { background: #f1f5f9; color: #64748b; }

/* Label text */
.hp-dd-label {
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-dd-item.selected .hp-dd-label { color: #2563eb; font-weight: 600; }

/* Checkmark for selected */
.hp-dd-check {
  flex-shrink: 0;
  color: #2563eb;
  opacity: 0;
  transition: opacity .15s;
}
.hp-dd-item.selected .hp-dd-check { opacity: 1; }

/* Empty state */
.hp-dd-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: .84rem;
  color: #94a3b8;
}

/* ══════════════════════════ UTILITIES ══════════════════════════ */

.hidden { display: none !important; }

/* ══════════════════════════ RESPONSIVE — 1024px ══════════════════════════ */

@media (max-width: 1024px) {
  .hp-card-wrap { max-width: 100%; }
  .jstbl-wrap { max-height: 460px; }
}

/* ══════════════════════════ RESPONSIVE — 768px ══════════════════════════ */

@media (max-width: 768px) {
  :root { --hh: 56px; }

  /* ── Header ── */
  .header-inner { padding: 0 14px; gap: 8px; }
  .logo-img { height: 30px; }
  .nav-tab-txt { display: none; }
  .live-txt { display: none; }
  .live-pill { padding: 4px 8px; gap: 5px; }
  .nav-tab { padding: 8px 11px; min-height: 36px; }

  /* ── Hero ── */
  .hp-hero { padding: 44px 16px 160px; gap: 26px; }
  .hp-orb-1 { width: 220px; height: 220px; }
  .hp-orb-2 { width: 160px; height: 160px; }
  .hp-orb-3 { display: none; }
  .hp-tagline { font-size: .86rem; }
  .hp-card-wrap { max-width: 100%; }
  .hp-card { border-radius: 18px; }
  .hp-card-body { padding: 24px 24px 20px; }

  /* ── Search form ── */
  .hp-bar-form { flex-wrap: wrap; }
  .hp-bar-field { flex: 1 1 160px; min-height: 58px; }
  .hp-bar-sep { display: none; }
  .hp-bar-input { font-size: 1rem; }
  .hp-bar-btn { margin: 8px 12px; padding: 14px 22px; min-height: 48px; }

  /* ── Benefits ── */
  .hp-benefits-section { padding: 110px 0 24px; }
  .hp-ticker-wrap::before, .hp-ticker-wrap::after { width: 80px; }

  /* ── Results bar: 2-row stack ── */
  .rpbar-top {
    flex-direction: column; align-items: stretch;
    gap: 8px; padding: 10px 14px 8px;
    border-bottom: none;
  }
  .rpbar-left { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .rpbar-title { font-size: .88rem; flex-shrink: 0; }
  .rpbar-scope { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; }
  .rpbar-meta { display: none; }
  .rpbar-right { width: 100%; gap: 6px; }
  .filter-box { flex: 1; min-width: 0; }
  .filter-box input { width: 100%; }
  .btn-txt { display: none; }
  .btn-new-search { flex-shrink: 0; }

  /* ── Job sections ── */
  .jsections { padding: 10px 10px 36px; gap: 8px; }
  .jsec { border-radius: 14px; }

  /* ── Job header: 2-row grid on mobile ── */
  .jsh {
    display: grid;
    grid-template-columns: 32px 44px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 12px 14px;
    min-height: unset;
    align-items: center;
  }
  .jsh-toggle    { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .jsh-date-badge {
    grid-column: 2; grid-row: 1 / 3;
    align-self: center;
    width: 44px; height: 44px; border-radius: 10px;
  }
  .jsh-info      { grid-column: 3; grid-row: 1; min-width: 0; }
  .jsh-right     {
    grid-column: 3; grid-row: 2;
    display: flex; align-items: center; gap: 6px;
    flex-wrap: nowrap; justify-content: flex-start;
  }
  .jsh-chips     { display: none; }
  .jsh-title     { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jsh-meta      { font-size: .68rem; }
  .jsh-exp-txt   { display: none; }
  .jsh-right .btn-sm { padding: 5px 10px; font-size: .72rem; }
  .jsh-right .badge  { font-size: .6rem; padding: 2px 8px; }

  /* ── Stats strip: 3-column grid ── */
  .jsstats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: unset;
    border-top: 1px solid var(--border);
  }
  .jsstat {
    flex: unset; min-width: unset;
    padding: 9px 10px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .jsstat:nth-child(3n) { border-right: none; }
  .jsstat:nth-child(4), .jsstat:nth-child(5), .jsstat:nth-child(6) { border-bottom: none; }
  .jsstat svg { margin-bottom: 2px; }
  .jsstat-lbl { font-size: .58rem; letter-spacing: .3px; }
  .jsstat-val { font-size: .95rem; }

  /* ── Toolbar ── */
  .jstoolbar { padding: 8px 12px; gap: 8px; }
  .jsfilt-box { flex: 1; }
  .jsfilt-box input { width: 100%; }
  .showing { font-size: .68rem; }

  /* ── Table ── */
  .jstbl-wrap { max-height: 380px; overscroll-behavior: contain; }
  .dtable { font-size: .74rem; }
  .dtable td { padding: 8px 10px; }
  .dtable thead th { padding: 9px 10px; }

  /* ── Modal: slide up from bottom ── */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { max-height: 90vh; border-radius: 20px 20px 0 0; max-width: 100%; }
  .modal-body { padding: 14px 16px; }
  .modal-head { padding: 16px 16px 12px; }
  .modal-foot { padding: 10px 16px 20px; gap: 6px; }
  .mgrid { grid-template-columns: 1fr; }

  /* ── Toast ── */
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  /* ── Footer ── */
  .footer { padding: 10px 16px; }
}

/* ══════════════════════════ RESPONSIVE — 580px ══════════════════════════ */

@media (max-width: 580px) {
  /* ── Hero ── */
  .hp-hero { padding: 36px 12px 155px; gap: 20px; }
  .hp-title { letter-spacing: -1px; }
  .hp-tagline { font-size: .83rem; }

  /* ── Search icon ── */
  .hp-search-icon-wrap { width: 68px; height: 68px; margin-bottom: 12px; }
  .hp-search-icon-core { width: 48px; height: 48px; border-radius: 14px; }
  .hp-search-icon-core svg { width: 22px; height: 22px; }
  .hp-search-icon-ring-1 { width: 56px; height: 56px; top: 6px; left: 6px; }
  .hp-search-icon-ring-2 { width: 66px; height: 66px; top: 1px; left: 1px; }
  .hp-search-icon-ring-3 { width: 76px; height: 76px; top: -4px; left: -4px; }

  /* ── Card ── */
  .hp-card { border-radius: 14px; }
  .hp-card-body { padding: 18px 14px 14px; min-height: unset; }
  .hp-card-hint { font-size: .87rem; }

  /* ── Search form: single column ── */
  .hp-bar-form { flex-direction: column; }
  .hp-bar-field { flex: unset; width: 100%; padding: 13px 16px 11px; min-height: unset; }
  .hp-bar-field + .hp-bar-field { border-top: 1px solid #eaeff7; }
  .hp-bar-input { font-size: 1rem; }
  .hp-bar-btn {
    margin: 10px 12px 14px;
    padding: 15px 20px;
    border-radius: 12px;
    width: calc(100% - 24px);
    justify-content: center;
    min-height: 50px;
    font-size: .9rem;
  }
  .hp-bar-other { padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .hp-bar-other .hp-bar-lbl { margin-bottom: 0; }
  .hp-bar-other .hp-bar-input { font-size: 1rem; }

  /* ── Benefits ── */
  .hp-benefits-section { padding: 115px 0 20px; }
  .hp-ti { padding: 0 22px; gap: 7px; }
  .hp-ti-name { font-size: .82rem; }
  .hp-ti-icon { width: 28px; height: 28px; border-radius: 7px; }
  .hp-ticker-wrap::before, .hp-ticker-wrap::after { width: 48px; }

  /* ── Job section card ── */
  .jsections { padding: 10px 8px 32px; gap: 6px; }
  .jsec { border-radius: 12px; }
  .jsh { grid-template-columns: 28px 40px 1fr; gap: 3px 8px; padding: 11px 12px; }
  .jsh-date-badge { width: 40px; height: 40px; border-radius: 9px; }

  /* ── Stats strip: 2-column grid on very small ── */
  .jsstats { grid-template-columns: repeat(3, 1fr); }
  .jsstat { padding: 8px 8px; }
  .jsstat-val { font-size: .86rem; }

  /* ── Toolbar ── */
  .jstoolbar { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; }
  .jstoolbar-left, .jstoolbar-right { width: 100%; }

  /* ── Table ── */
  .dtable { font-size: .72rem; }
  .dtable td { padding: 7px 8px; max-width: 140px; }
  .jstbl-wrap { max-height: 320px; }

  /* ── Modal foot: 2-column grid ── */
  .modal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px 20px; }
  .modal-foot .btn { justify-content: center; }

  /* ── Confirm ── */
  .confirm-bg { padding: 12px; }
  .confirm-modal { padding: 24px 18px 20px; border-radius: 16px; }
  .confirm-actions { flex-direction: column; }
  .confirm-icon { width: 52px; height: 52px; border-radius: 14px; }
}

/* ══════════════════════════ RESPONSIVE — 480px ══════════════════════════ */

@media (max-width: 480px) {
  /* Modal foot: single column */
  .modal-foot { grid-template-columns: 1fr; }
  .modal-foot .btn { width: 100%; }

  /* Table more compact */
  .jstbl-wrap { max-height: 280px; }
  .dtable td, .dtable thead th { padding: 6px 8px; }

  /* Touch-friendly form fields */
  .hp-bar-field { padding: 14px 16px 12px; }

  /* Job header */
  .jsh-meta { gap: 4px; font-size: .64rem; }
  .jsh-title { font-size: .8rem; }
}

/* ══════════════════════════ RESPONSIVE — 380px ══════════════════════════ */

@media (max-width: 380px) {
  :root { --hh: 52px; }

  /* ── Header ── */
  .header-inner { padding: 0 10px; }
  .logo-img { height: 26px; }
  .nav-tab { padding: 6px 8px; }

  /* ── Hero ── */
  .hp-hero { padding: 28px 10px 148px; gap: 16px; }
  .hp-title { font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: -.5px; }
  .hp-subtitle { font-size: .88rem; }
  .hp-tagline { font-size: .78rem; }
  .hp-card-body { padding: 14px 12px 12px; }
  .hp-card-hint { font-size: .83rem; }
  .hp-search-icon-wrap { width: 58px; height: 58px; margin-bottom: 10px; }
  .hp-search-icon-core { width: 42px; height: 42px; border-radius: 12px; }
  .hp-search-icon-core svg { width: 20px; height: 20px; }

  /* ── Search form ── */
  .hp-bar-input { font-size: 1rem; }
  .hp-bar-btn { font-size: .86rem; min-height: 48px; }
  .hp-bar-lbl { font-size: .58rem; }

  /* ── Results ── */
  .jsections { padding: 8px 6px 28px; gap: 6px; }
  .jsh { padding: 10px; gap: 3px 7px; grid-template-columns: 26px 36px 1fr; }
  .jsh-date-badge { width: 36px; height: 36px; border-radius: 8px; }
  .jsh-date-day { font-size: .68rem; }
  .jsh-date-month { font-size: .48rem; }
  .jsh-title { font-size: .78rem; }
  .jsh-meta { font-size: .62rem; }
  .jsh-right .badge { font-size: .56rem; padding: 2px 6px; }

  /* ── Stats strip: 2-col on tiniest phones ── */
  .jsstats { grid-template-columns: repeat(2, 1fr); }
  .jsstat:nth-child(3n) { border-right: 1px solid var(--border); }
  .jsstat:nth-child(2n) { border-right: none; }
  .jsstat:nth-child(4), .jsstat:nth-child(5), .jsstat:nth-child(6) { border-bottom: 1px solid var(--border); }
  .jsstat:nth-child(5), .jsstat:nth-child(6) { border-bottom: none; }

  /* ── Results bar ── */
  .rpbar-top { padding: 8px 10px; }
  .rpbar-title { font-size: .8rem; }
  .filter-box { padding: 5px 8px; }
  .filter-box input { font-size: .78rem; }

  /* ── Table ── */
  .dtable { font-size: .68rem; }
  .dtable td { padding: 6px; max-width: 110px; }
  .dtable thead th { padding: 7px 6px; font-size: .57rem; }

  /* ── Confirm ── */
  .confirm-modal { padding: 20px 14px 16px; }
  .confirm-modal h3 { font-size: .95rem; }
  .confirm-modal p { font-size: .82rem; margin-bottom: 18px; }
  .confirm-icon { width: 44px; height: 44px; border-radius: 12px; }
  .confirm-icon svg { width: 22px; height: 22px; }

  /* ── Toast / footer ── */
  .toast { font-size: .8rem; padding: 8px 12px; }
  .footer { padding: 8px 12px; }
  .footer-copy { font-size: .66rem; }
}
