/* ==================================================================
   JobsFeed.io - main stylesheet
   ------------------------------------------------------------------
   1.  Colours & basics            7.  Jobstream page
   2.  Buttons                     8.  Job Directory page
   3.  Inputs & selects            9.  Jobs Feed page
   4.  Header                      10. Other pages
   5.  Layout & sidebar            11. Dropdowns & toasts
   6.  Cards & shared pieces       12. Responsive (tablet & phone)
   ================================================================== */


/* ==================================================================
   1. Colours & basics
   Change a colour here and it changes everywhere.
   ================================================================== */
:root {
  --primary: #155dfc;
  --primary-hover: #0f4bd8;
  --primary-soft: #eef4ff;
  --primary-border: #c7d8ff;

  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --border: #e4e7ee;
  --border-soft: #eef0f4;
  --bg: #f8f9fb;
  --card: #ffffff;

  --green: #16a34a;
  --green-soft: #e9f8ef;
  --red: #ef4444;
  --red-soft: #fef1f1;
  --purple: #7c3aed;
  --purple-soft: #f3eeff;
  --orange: #f97316;
  --orange-soft: #fff3ea;
  --pink: #e11d74;
  --pink-soft: #fdedf4;
  --teal: #0284c7;
  --teal-soft: #e8f5fc;
  --gray-soft: #f2f4f7;

  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 80px;
  --sidebar-w: 268px;
  --aside-w: 352px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: var(--gray-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
[hidden] { display: none !important; }

/* Lucide turns <i data-lucide="..."> into <svg class="lucide">. This sets the default size. */
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }

.dot { color: var(--muted-2); }
.muted-text { color: var(--muted); font-size: 13px; }
.hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.hint svg { width: 15px; height: 15px; color: var(--orange); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 13px; }
.link svg { width: 15px; height: 15px; }
.link:hover { text-decoration: underline; }
.link-sm { color: var(--primary); font-size: 12.5px; font-weight: 500; }
.link-muted { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0 6px; color: var(--muted); font-size: 13px; }
.link-muted svg { width: 14px; height: 14px; }
.link-muted:hover { color: var(--primary); }
.link-btn { border: none; background: none; padding: 0; color: var(--primary); font-size: 12.5px; font-weight: 500; }

/* Soft coloured backgrounds for icons */
.tint-blue   { background: var(--primary-soft); color: var(--primary); }
.tint-green  { background: var(--green-soft);   color: var(--green); }
.tint-purple { background: var(--purple-soft);  color: var(--purple); }
.tint-orange { background: var(--orange-soft);  color: var(--orange); }
.tint-pink   { background: var(--pink-soft);    color: var(--pink); }
.tint-teal   { background: var(--teal-soft);    color: var(--teal); }
.tint-gray   { background: var(--gray-soft);    color: var(--text-2); }

/* Colours for avatars and company logos (picked by the color_index filter) */
.color-0 { background: #dbeafe; color: #1d4ed8; }
.color-1 { background: #dcfce7; color: #15803d; }
.color-2 { background: #f3e8ff; color: #7e22ce; }
.color-3 { background: #ffedd5; color: #c2410c; }
.color-4 { background: #fce7f3; color: #be185d; }
.color-5 { background: #cffafe; color: #0e7490; }


/* ==================================================================
   2. Buttons
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: #cdd3de; background: #fafbfc; }
.btn-outline-primary { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-soft); }
.btn-soft { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.btn-soft:hover { background: #e3ecff; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--gray-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 42px; padding: 0 24px; font-size: 15px; }
.btn-xl { height: 46px; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
}
.icon-btn:hover { background: var(--gray-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.danger { color: #dc2626; }
.icon-btn.danger svg { width: 18px; height: 18px; }

.square-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
}
.square-btn:hover, .square-btn.is-active { border-color: var(--primary-border); color: var(--primary); background: var(--primary-soft); }
.square-btn svg { width: 22px; height: 22px; }


/* ==================================================================
   3. Inputs & selects
   ================================================================== */
.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dde2ea;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-lg { height: 42px; font-size: 14px; }
.input::placeholder, .textarea::placeholder, textarea::placeholder, input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 93, 252, .12); }

.select {
  appearance: none;
  padding-right: 34px;
  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='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.textarea { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.55; resize: vertical; }

/* An input with an icon inside: <label class="input-icon"><i ...></i><input></label> */
.input-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dde2ea;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-icon:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 93, 252, .12); }
.input-icon svg { color: var(--muted); }
.input-icon input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none; font-size: 13.5px; }
.show-pass { border: none; background: none; color: var(--muted); padding: 0; display: grid; }

.field-label { display: block; margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--text); }

.checks { display: flex; flex-direction: column; gap: 11px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.small-check { margin-top: 10px; font-size: 12.5px; }

.form-stack { display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }


/* ==================================================================
   4. Header
   ================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 32px 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 22px; }
.header-left .icon-btn { color: var(--text); }
.header-left .icon-btn svg { width: 26px; height: 26px; stroke-width: 1.7; }

.logo { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--primary); }

.live-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 500; }
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  animation: live-pulse 2s infinite;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 500px;
  height: 46px;
  margin: 0 auto;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 93, 252, .1); }
.header-search svg { width: 22px; height: 22px; color: var(--text-2); }
.header-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 14.5px; }
.header-search input::-webkit-search-cancel-button { display: none; }
.kbd { color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.bell-btn svg { width: 24px; height: 24px; }
.bell-count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.user-btn { display: flex; align-items: center; gap: 12px; padding: 2px; border: none; background: none; }
.user-name { font-size: 15px; font-weight: 600; }
.chevron { width: 18px; height: 18px; color: var(--text-2); }

/* Avatars */
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  font-weight: 700;
  letter-spacing: .02em;
}
.avatar svg { width: 55%; height: 55%; }
.avatar-sm  { width: 28px; height: 28px; font-size: 11px; }
.avatar-md  { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg  { width: 44px; height: 44px; font-size: 15px; }
.avatar-xl  { width: 48px; height: 48px; font-size: 16px; }
.avatar-xxl { width: 84px; height: 84px; font-size: 26px; }


/* ==================================================================
   5. Layout & sidebar
   ================================================================== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--aside-w);
  min-height: calc(100vh - var(--header-h));
}
.layout-directory { --aside-w: 318px; }
.layout-no-aside { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 24px 40px 16px;
}
.layout-no-aside .main { max-width: 1100px; }

.aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 24px 40px 0;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 26px 18px 22px 6px;
  background: #fff;
  border-right: 1px solid var(--border);
}

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.nav-link svg { width: 24px; height: 24px; stroke-width: 1.6; }
.nav-link:hover { background: var(--gray-soft); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
.nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--primary);
}

/* "LIVE STREAMING" box */
.live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 252px;
  margin: 28px 0 0 14px;
  margin-top: auto;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s;
}
.live-card:hover { border-color: var(--primary-border); }
.live-card-label { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.live-card-label svg { width: 16px; height: 16px; stroke-width: 2.2; }
.live-card p { position: relative; z-index: 1; margin-top: 18px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.live-card-rate { margin-top: auto; color: var(--primary); font-size: 16px; font-weight: 700; }
.live-card small { color: var(--muted); font-size: 13px; }

.radar { position: absolute; top: 76px; right: -22px; width: 134px; height: 134px; }
.radar span { position: absolute; border: 1px solid #dfe8fb; border-radius: 50%; }
.radar span:nth-child(1) { inset: 0; }
.radar span:nth-child(2) { inset: 18px; border-color: #d3e0fb; }
.radar span:nth-child(3) { inset: 36px; border-color: #c4d6fb; }
.radar span:nth-child(1) { animation: radar 3s ease-out infinite; }
.radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(21, 93, 252, .1);
}

.sidebar-cta {
  margin: 26px -18px 0 -6px;
  padding: 22px 18px 0 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.sidebar-cta .btn svg { width: 20px; height: 20px; }
.sidebar-cta p { margin-top: 14px; color: var(--text-2); font-size: 14px; line-height: 1.6; }

.overlay { display: none; }

/* Hamburger on a big screen: small sidebar with icons only */
body.sidebar-collapsed .layout { --sidebar-w: 84px; }
body.sidebar-collapsed .nav-link { justify-content: center; padding: 12px; }
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .live-card,
body.sidebar-collapsed .sidebar-cta { display: none; }


/* ==================================================================
   6. Cards & shared pieces
   ================================================================== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.page-card { padding: 22px 24px; }
.page-card.narrow { max-width: 760px; }

.page-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.page-subtitle { margin-top: 5px; color: var(--text-2); font-size: 14px; }
.section-title { font-size: 18px; font-weight: 600; }
.section-title-sm { font-size: 15px; font-weight: 600; }
.spaced { margin-top: 22px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 14px 14px; }
.section-head.no-pad { padding: 0; margin-bottom: 14px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12.5px; font-weight: 500; }
.badge-blue   { background: #e8efff; color: var(--primary); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-green  { background: var(--green-soft); color: var(--green); }

.tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: .15s;
}
.tab:hover { border-color: var(--primary-border); color: var(--primary); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.sort-select { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13.5px; }
.sort-select select {
  appearance: none;
  padding: 4px 22px 4px 4px;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 14px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.more-chips:not([hidden]) { display: contents; }

.tile-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; }
.tile-icon svg { width: 22px; height: 22px; }

.company-logo { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.company-logo-sm { width: 28px; height: 28px; border-radius: 6px; font-size: 10.5px; }

.empty-state { padding: 40px 20px; text-align: center; }
.empty-state h3 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.empty-state p { margin: 6px auto 16px; max-width: 380px; color: var(--muted); font-size: 13.5px; }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.empty-icon svg { width: 26px; height: 26px; }

.filter-note { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--text-2); }
.filter-note a { margin-left: auto; color: var(--primary); font-weight: 500; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; color: var(--text-2); font-size: 13px; }
.attribution { padding: 4px 0 16px; text-align: center; color: var(--muted); font-size: 12px; }
.attribution a { color: var(--primary); }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d4e1ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

/* Where a job comes from */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.source-logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; }
.source-adzuna { color: #15803d; border-color: #d3efdc; }
.source-adzuna svg { width: 15px; height: 15px; color: var(--green); stroke-width: 2.4; }
.source-jooble { color: #0a66c2; border-color: #d3e3f6; }
.source-jooble .source-logo { background: #0a66c2; border-radius: 4px; }
.source-remoteok { color: var(--text); }
.source-remoteok .source-logo { background: #111827; }


/* ==================================================================
   7. Jobstream page
   ================================================================== */
.stream-card { overflow: hidden; }
.stream-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.stream-head-actions { display: flex; align-items: center; gap: 16px; }

.rec-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7676, #e11d1d 70%);
  animation: rec-pulse 1.8s infinite;
}

.live-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.live-rate svg { width: 18px; height: 18px; fill: var(--green); color: #fff; }
.live-rate .dot { color: var(--green); }

.filter-menu { width: 280px; padding: 4px 16px 16px; }
.filter-menu .field-label { margin-top: 12px; }
.menu-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.stream-list { padding: 0 24px; }
.stream-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 86px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.stream-row:hover .stream-title-text { color: var(--primary); }
.stream-row.is-new { animation: slide-in .6s ease; }
.stream-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.stream-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stream-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; transition: color .15s; }
.new-badge { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 600; }
.stream-meta { display: flex; gap: 8px; margin-top: 5px; overflow: hidden; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.stream-company { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.stream-time { color: var(--text-2); font-size: 13px; text-align: right; white-space: nowrap; }

.stream-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 0; color: var(--muted); text-align: center; }
.stream-empty svg { width: 32px; height: 32px; color: var(--primary); }

.stream-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--text-2); font-size: 14px; }

.sponsor-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px -4px;
  padding: 18px 16px;
  border: 1px dashed #9dbbff;
  border-radius: 8px;
  background: #f5f8ff;
}
.sponsor-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: #fff; font-size: 26px; box-shadow: 0 2px 6px rgba(21, 93, 252, .1); }
.sponsor-text strong { color: var(--primary); font-size: 16px; font-weight: 600; }
.sponsor-text p { margin-top: 2px; color: var(--text-2); font-size: 13.5px; }
.sponsor-label { position: absolute; top: 10px; right: 16px; color: var(--primary); font-size: 12px; }
.sponsor-btn { margin: 20px 0 0 auto; height: 38px; padding: 0 18px; background: #fff; border-color: var(--border); color: var(--primary); font-size: 14px; }

/* Sponsored cards on the right */
.aside-card { padding: 20px 16px 4px; }
.aside-title { margin: 0 2px 16px; font-size: 16px; font-weight: 600; }
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 262px;
  margin-bottom: 16px;
  padding: 20px 18px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 10px;
}
.promo-green  { background: linear-gradient(135deg, #f3fcf6 0%, #e2f6e9 100%); border-color: #c9eed6; }
.promo-blue   { background: linear-gradient(135deg, #f5f7ff 0%, #e7edff 100%); border-color: #d3ddfa; }
.promo-purple { background: linear-gradient(135deg, #f8f5ff 0%, #eee7ff 100%); border-color: #e1d6fb; }
.promo-pill { display: inline-block; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 500; color: var(--primary); }
.promo-green .promo-pill { background: #d9f5e3; color: #15803d; }
.promo-blue .promo-pill { background: #dfe8ff; color: var(--primary); }
.promo-purple .promo-pill { background: #ece3ff; color: var(--purple); }
.promo h3 { position: relative; z-index: 1; max-width: 170px; margin-top: 18px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.promo p { position: relative; z-index: 1; max-width: 230px; margin: 14px 0 20px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.promo-btn { margin-top: auto; height: 40px; color: #fff; font-size: 14px; }
.promo-green .promo-btn { background: #16a34a; }
.promo-green .promo-btn:hover { background: #15803d; }
.promo-blue .promo-btn { background: var(--primary); }
.promo-blue .promo-btn:hover { background: var(--primary-hover); }
.promo-purple .promo-btn { background: #7c3aed; }
.promo-purple .promo-btn:hover { background: #6d28d9; }
.promo-emoji { position: absolute; top: 48px; right: 18px; font-size: 64px; line-height: 1; transform: rotate(-10deg); filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .15)); }


/* ==================================================================
   8. Job Directory page
   ================================================================== */
.dir-head { padding: 20px 20px 16px; }
.dir-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dir-head-actions { display: flex; gap: 12px; }
.dir-head-actions .btn { height: 36px; font-size: 13px; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2.1fr) 1fr 1fr 1fr auto;
  gap: 12px;
  margin: 22px -4px 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.filter-bar .select, .filter-bar .input-icon, .filter-bar .btn { height: 40px; }
.filter-bar .input-icon input { font-size: 12.5px; text-overflow: ellipsis; }
.filter-bar .select { font-size: 12.5px; }
.filter-bar .btn-soft { padding: 0 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 18px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 0 18px; border-left: 1px solid var(--border-soft); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; }
.stat-icon svg { width: 22px; height: 22px; }
.stat strong { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; }
.stat small { color: var(--text-2); font-size: 13px; }

.welcome { padding: 26px 20px 44px; text-align: center; }
.welcome-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; background: #eaf1ff; color: var(--primary); }
.welcome-icon svg { width: 44px; height: 44px; stroke-width: 1.6; }
.welcome h2 { font-size: 18px; font-weight: 600; }
.welcome p { margin: 12px auto 18px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.welcome .btn-lg { height: 38px; padding: 0 24px; font-size: 14.5px; }
.popular { padding: 0 18px 22px; }
.popular .chips { margin-top: 18px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 8px 12px; }
.category-grid.no-pad { padding: 16px 0 0; }
.category-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-tile:hover, .category-tile.is-active { border-color: var(--primary-border); box-shadow: 0 6px 16px rgba(21, 93, 252, .08); transform: translateY(-1px); }
.category-tile strong { display: block; font-size: 14px; font-weight: 600; }
.category-tile small { color: var(--muted); font-size: 13px; }

/* Filters panel */
.filters { padding: 20px 20px 18px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head h2 { font-size: 17px; font-weight: 600; }
.filters .field-label:first-of-type { margin-top: 12px; }
.salary-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.salary-row span { color: var(--text-2); font-size: 13px; }
.salary-row .input { height: 36px; }
.remote-check { margin-top: 22px; }
.filters .btn-xl { margin-top: 20px; }

/* Results */
.results-card { overflow: hidden; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.job-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 118px;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
}
.job-card:hover { background: #fcfdff; }
.job-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.job-card-top .source-badge { height: 26px; font-size: 12px; }
.job-title { font-size: 16px; font-weight: 600; transition: color .15s; }
a.job-title:hover { color: var(--primary); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; }
.job-meta .salary { color: var(--green); font-weight: 500; }
.job-desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.job-card-actions { display: flex; flex-direction: column; gap: 8px; }
.save-job-form { margin: 0; }
.btn.is-saved { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.btn.is-saved svg { fill: currentColor; }


/* ==================================================================
   9. Jobs Feed page
   ================================================================== */
.composer { padding: 16px 20px 10px; scroll-margin-top: 100px; }
.composer-top { display: flex; align-items: flex-start; gap: 14px; }
.composer-box {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.composer-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 93, 252, .08); }
.composer-label { display: block; color: var(--text-2); font-size: 13px; }
.composer-row { display: flex; align-items: flex-end; gap: 12px; }
.composer-row textarea {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 7px 4px 0 2px;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  transition: height .2s;
}
.composer.is-open .composer-row textarea { height: 100px; }
.composer-actions { display: flex; align-items: center; gap: 16px; }
.counter { color: var(--muted); font-size: 12px; }
.btn-post { height: 32px; min-width: 84px; padding: 0 20px; font-size: 13px; }
.composer-extra { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
.composer.is-open .composer-extra { display: grid; }
.composer-extra .span-all { grid-column: 1 / -1; }
.composer-login { display: block; }
.composer-login:hover { border-color: var(--primary-border); }
.composer-placeholder { flex: 1; padding: 7px 2px; color: var(--muted-2); }

.composer-types { display: flex; flex-wrap: wrap; gap: 4px 36px; margin: 8px 0 0 62px; }
.composer-types.no-offset { gap: 8px; margin: 0; }
.type-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.type-option svg { width: 16px; height: 16px; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option:hover { background: var(--gray-soft); }
.type-option:has(input:checked) { background: var(--primary-soft); color: var(--primary); }
.type-option:has(input:focus-visible) { border-color: var(--primary); }

.tabs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }

.post { padding: 18px 20px 10px; }
.post-head { display: flex; align-items: flex-start; gap: 10px; }
.post-author { flex: 1; min-width: 0; }
.post-author-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-author-name { font-size: 15px; font-weight: 600; }
.post-author-name:hover { color: var(--primary); }
.post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.verified { width: 15px; height: 15px; fill: var(--primary); color: #fff; }
.post-head .icon-btn { width: 34px; height: 34px; color: var(--text-2); }
.post-title { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; transition: color .15s; }
.post-title:hover { color: var(--primary); }
.post-body { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { width: 15px; height: 15px; color: var(--muted); }
.post-tags { display: inline-flex; flex-wrap: wrap; gap: 4px 12px !important; }
.post-tags a { color: var(--primary); font-weight: 500; }
.post-tags a:hover { text-decoration: underline; }

.post-actions { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px -10px 0; }
.action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.action svg { width: 17px; height: 17px; }
.action:hover { background: var(--gray-soft); color: var(--text); }
.action.is-active { color: var(--primary); }
.action.is-active svg { fill: currentColor; fill-opacity: .18; }
.action-count { margin-left: 8px; color: var(--muted); font-weight: 400; }

/* Right column of the feed */
.side-card { padding: 18px 18px 10px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-head h2 { font-size: 15px; font-weight: 600; }
.side-head a { color: var(--primary); font-size: 13px; font-weight: 500; }
.side-list li a { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-radius: 6px; font-size: 13.5px; }
.side-list li a:hover .grow { color: var(--primary); }
.side-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.side-empty { padding: 8px 0 10px; color: var(--muted); font-size: 13px; }
.hash { width: 16px; color: var(--primary); font-size: 16px; font-weight: 700; text-align: center; }

.big-list { margin-top: 16px; }
.big-list li a { padding: 12px 8px; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.big-list li a:hover { background: var(--gray-soft); }
.rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }

.visibility-card {
  position: relative;
  padding: 20px 18px 22px;
  overflow: hidden;
  border-color: #d8e4ff;
  background: linear-gradient(135deg, #f3f7ff 0%, #e7efff 100%);
}
.visibility-card h3 { color: var(--primary); font-size: 16px; font-weight: 600; }
.visibility-card p { max-width: 215px; margin: 8px 0 16px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.visibility-card .btn { height: 34px; font-size: 13px; }
.visibility-emoji {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 40px;
}

/* Comments */
.comments { padding: 20px; scroll-margin-top: 100px; }
.comments > .section-title-sm { margin-bottom: 14px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-bubble { flex: 1; padding: 10px 14px; border-radius: 10px; background: var(--gray-soft); }
.comment-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.comment-head time { color: var(--muted); font-size: 12px; }
.comment-bubble p { margin-top: 4px; color: var(--text-2); font-size: 13.5px; }
.comment-form { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.comment-form .textarea { min-height: 42px; }


/* ==================================================================
   10. Other pages (auth, settings, alerts, about, notifications)
   ================================================================== */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 20px 0; }
.auth-card { width: 100%; max-width: 460px; padding: 34px 32px 28px; }
.auth-logo { color: var(--primary); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-title { margin-top: 18px; font-size: 22px; font-weight: 700; }
.auth-subtitle { margin-top: 4px; color: var(--muted); }
.auth-card .btn-xl { margin-top: 24px; }
.auth-switch { margin-top: 18px; color: var(--text-2); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-demo { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); color: var(--text-2); font-size: 12.5px; }
.auth-demo svg { width: 16px; height: 16px; color: var(--primary); }

.avatar-edit { display: flex; align-items: center; gap: 20px; margin: 16px 0 4px; }
.avatar-edit label.btn { cursor: pointer; }
.avatar-edit img.avatar { object-fit: cover; }

.alert-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr auto; align-items: end; gap: 12px; margin-top: 18px; }
.alert-form .field-label { margin-top: 0; }
.alert-form .input, .alert-form .select, .alert-form .btn { height: 40px; }
.alert-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--border-soft); }
.alert-row.is-paused .alert-info { opacity: .6; }
.alert-info { flex: 1; min-width: 0; }
.alert-info strong { display: block; font-size: 14.5px; font-weight: 600; }
.alert-info small { color: var(--muted); font-size: 12.5px; }
.alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alert-actions form { margin: 0; }

.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); font-size: 13px; color: var(--text-2); transition: background .15s; }
.notif-item:hover { background: var(--gray-soft); }
.notif-item.unread { background: #f7faff; color: var(--text); }
.notif-item.big { padding: 16px 20px; font-size: 14px; }
.notif-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.notif-icon svg { width: 16px; height: 16px; }
.notif-text { flex: 1; min-width: 0; }
.notif-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.unread-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--primary); }

.about-hero { padding: 36px 24px; text-align: center; }
.about-hero h1 { font-size: 26px; font-weight: 700; }
.about-hero p { max-width: 560px; margin: 10px auto 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.about-card { padding: 20px; }
.about-card h3 { margin-top: 14px; font-size: 15px; font-weight: 600; }
.about-card p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.source-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.source-list li { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.source-list .source-badge { min-width: 116px; }
.premium { position: relative; overflow: hidden; background: linear-gradient(135deg, #faf7ff 0%, #efe8ff 100%); border-color: #e1d6fb; scroll-margin-top: 100px; }
.premium .promo-pill { background: #ece3ff; color: var(--purple); }
.premium .section-title { margin-top: 12px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; color: var(--text-2); }
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-list svg { width: 16px; height: 16px; color: var(--green); }
.premium-emoji { position: absolute; top: 30px; right: 40px; font-size: 90px; transform: rotate(-10deg); }


/* ==================================================================
   11. Dropdown menus & toast messages
   ================================================================== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.dropdown.is-open .dropdown-menu { display: block; animation: pop .15s ease; }
.dropdown-menu form { margin: 0; }

/* Plain list menus (user menu, "..." menu on posts) */
.menu-list a, .menu-list button, .user-menu a, .user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: left;
}
.menu-list a:hover, .menu-list button:hover, .user-menu a:hover, .user-menu button:hover { background: var(--gray-soft); color: var(--text); }
.menu-list svg, .user-menu svg { width: 16px; height: 16px; }
.menu-list .danger, .user-menu button[type="submit"] { color: #dc2626; }

.user-menu { width: 240px; }
.user-menu-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); }
.user-menu-head strong { display: block; font-size: 14px; }
.user-menu-head small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.notif-menu { width: 380px; padding: 0; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.notif-empty { padding: 24px 16px; color: var(--muted); text-align: center; }
.notif-all { display: block; padding: 12px; color: var(--primary); font-size: 13px; font-weight: 500; text-align: center; }
.notif-all:hover { background: var(--gray-soft); }

.toasts { position: fixed; top: calc(var(--header-h) + 14px); right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  animation: toast-in .3s ease;
  transition: opacity .3s, transform .3s;
}
.toast > svg { margin-top: 1px; color: var(--primary); }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); }
.toast-success > svg { color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-error > svg { color: var(--red); }
.toast-warning { border-left-color: var(--orange); }
.toast-warning > svg { color: var(--orange); }
.toast-close { display: grid; padding: 0; border: none; background: none; color: var(--muted); }
.toast-close svg { width: 16px; height: 16px; }
.toast.hide { opacity: 0; transform: translateX(24px); }


/* ==================================================================
   SEO pages: job page, hub pages, /jobs/, ad spaces
   ================================================================== */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs svg { width: 14px; height: 14px; }
.breadcrumbs [aria-current] { overflow: hidden; color: var(--text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }

.badge svg { width: 13px; height: 13px; margin-right: 5px; }
.badge-gray { background: var(--gray-soft); color: var(--text-2); }

.job-hero { padding: 24px; }
.job-hero-top { display: flex; align-items: flex-start; gap: 16px; }
.company-logo-lg { width: 56px; height: 56px; border-radius: 12px; font-size: 18px; }
.job-h1 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.job-hero-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.job-hero-sub a { color: var(--primary); font-weight: 500; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skill-pill { padding: 5px 12px; border: 1px solid var(--primary-border); border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.skill-pill:hover { background: var(--primary); color: #fff; }
.job-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.job-badges .badge { height: 26px; }
.job-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 16px 18px; }
.insight { display: flex; align-items: flex-start; gap: 12px; padding: 0 16px; border-left: 1px solid var(--border-soft); }
.insight:first-child { padding-left: 0; border-left: none; }
.insight small { display: block; color: var(--muted); font-size: 12px; }
.insight strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.insight em { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; }

.job-text p { margin-top: 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 14px 0 0; font-size: 14px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }

.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary { padding: 14px 0; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.65; }

.related-card { overflow: hidden; }
.hub-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--border-soft); transition: background .15s; }
.hub-row:hover { background: #fafcff; }
.hub-row:hover strong { color: var(--primary); }
.hub-row-main { flex: 1; min-width: 0; }
.hub-row-main strong { display: block; overflow: hidden; font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hub-row-main small { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.hub-row-main .salary { color: var(--green); font-weight: 500; }
.hub-row-time { flex-shrink: 0; color: var(--muted); font-size: 12.5px; }
.pad { padding: 18px; }

.hub-head .page-title { font-size: 24px; }
.hub-intro { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.hub-stats .stat { padding: 0; border: none; }

.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-chips .chip { height: 34px; font-size: 13px; }
.link-chips .chip small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.side-list svg { width: 14px; height: 14px; color: var(--muted-2); }

.sticky-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.apply-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.apply-card strong { font-size: 15px; line-height: 1.4; }
.apply-card small { color: var(--muted); }
.apply-card .btn { margin-top: 10px; }
.apply-card p { color: var(--muted); font-size: 12px; text-align: center; }

.expired-card { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-color: #fed7aa; background: #fffaf5; }
.expired-card .empty-icon { flex-shrink: 0; }
.expired-card p { margin-top: 6px; color: var(--text-2); line-height: 1.6; }

.load-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: var(--primary); font-size: 13.5px; font-weight: 500; }

/* Fixed-size ad spaces: the page never jumps when an ad loads (no layout shift) */
.ad-slot { margin: 0 auto; overflow: hidden; }
.ad-300x250 { width: 300px; height: 250px; max-width: 100%; }
.ad-300x600 { width: 300px; height: 600px; max-width: 100%; }
.ad-infeed { width: 100%; height: 250px; }
.ad-placeholder { display: grid; place-items: center; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: #fbfcfd; color: var(--muted-2); font-size: 12px; }


/* ==================================================================
   Animations
   ================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); background: var(--primary-soft); } to { opacity: 1; transform: none; } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .06); } }
@keyframes rec-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }
@keyframes radar { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.05); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ==================================================================
   12. Responsive
   ================================================================== */

/* Laptop: the right column moves under the main content */
@media (max-width: 1280px) {
  .layout, .layout-directory { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar { grid-row: 1 / span 2; }
  .aside { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; padding: 0 24px 40px 16px; }
  .aside-card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
  .aside-card .aside-title { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: the sidebar becomes a slide-in menu */
@media (max-width: 1024px) {
  .layout, .layout-directory, .layout-no-aside { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 16px; }
  .aside { grid-column: 1; padding: 0 16px 40px; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: 45;
    width: 280px;
    height: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.sidebar-open .overlay { position: fixed; inset: var(--header-h) 0 0 0; z-index: 44; display: block; background: rgba(15, 23, 42, .35); }
  body.sidebar-collapsed .layout { --sidebar-w: 0px; }
  body.sidebar-collapsed .nav-link { justify-content: flex-start; padding: 12px 18px; }
  body.sidebar-collapsed .nav-link span { display: inline; }
  body.sidebar-collapsed .live-card { display: flex; }
  body.sidebar-collapsed .sidebar-cta { display: block; }

  .header { gap: 12px; padding: 0 16px 0 8px; }
  .header-left { gap: 12px; }
  .user-name, .kbd { display: none; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar-search { grid-column: 1 / -1; }
  .alert-form { grid-template-columns: 1fr 1fr; }
  .alert-form .btn { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  .header-search, .live-pill { display: none; }
  .logo { font-size: 22px; }
  .header-right { gap: 8px; }
  .header-right .btn { height: 34px; padding: 0 12px; }

  .page-card, .dir-head { padding: 18px 16px; }
  .dir-head-top { flex-direction: column; }
  .filter-bar { margin: 16px 0 0; padding: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat { padding: 0; border-left: none; }
  .category-grid, .about-grid, .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: flex-start; }

  .job-card { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
  .job-card-actions { grid-column: 1 / -1; flex-direction: row; }
  .job-card-actions > * { flex: 1; }

  .stream-head { flex-direction: column; padding: 18px 16px 14px; }
  .stream-list { padding: 0 16px; }
  .stream-row { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "dot info time" "dot badge badge"; gap: 8px 12px; }
  .stream-dot { grid-area: dot; align-self: start; margin-top: 9px; }
  .stream-info { grid-area: info; }
  .stream-row .source-badge { grid-area: badge; justify-self: start; height: 26px; font-size: 12px; }
  .stream-time { grid-area: time; }
  .sponsor-banner { flex-wrap: wrap; }
  .sponsor-btn { margin: 0; }

  .composer { padding: 14px; }
  .composer-top > .avatar { display: none; }
  .composer-extra { grid-template-columns: 1fr 1fr; }
  .composer-types { gap: 4px; margin-left: 0; }
  .tabs-bar { flex-direction: column; align-items: flex-start; }
  .tabs { gap: 8px; }
  .tab { padding: 0 14px; }
  .post { padding: 16px; }
  .post-actions { gap: 0; margin: 8px -8px 0; }
  .alert-row { flex-wrap: wrap; }
  .alert-form { grid-template-columns: 1fr; }

  .notif-menu { position: fixed; top: calc(var(--header-h) - 4px); right: 8px; left: 8px; width: auto; }

  .job-hero { padding: 18px 16px; }
  .job-h1 { font-size: 20px; }
  .job-hero-actions .btn { flex: 1; }
  .insight-grid, .hub-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .insight { padding: 0; border-left: none; }
  .info-list { grid-template-columns: 110px 1fr; }
  .hub-row { padding: 12px 14px; }
  .hub-row-time { display: none; }
  .ad-300x600 { height: 250px; }
  .premium-emoji { display: none; }
}

/* Expired job that still gets visitors (lifecycle rule 2) */
.expired-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-color: #fdba74; background: #fff7ed; }
.expired-banner > svg { width: 22px; height: 22px; color: var(--orange); }
.expired-banner div { flex: 1; font-size: 14px; }
.expired-banner strong { display: block; color: #9a3412; }
.expired-banner span { color: var(--text-2); }
.apply-card .badge { align-self: flex-start; margin-top: 6px; }
