/* ═══════════════════════════════════════════════════════
   SV PLACEMENT – BROWSE JOBS PAGE
   Naukri-style 3-column layout with perfect mobile view
   Cylindrical rounded cards, long-text safe
═══════════════════════════════════════════════════════ */

/* ── Tokens (inherit from header or redefine) ── */
:root {
  --bj-blue: #457eff;
  --bj-blue-d: #3366e0;
  --bj-blue-l: #eef4ff;
  --bj-t1: #111827;
  --bj-t2: #4b5563;
  --bj-t3: #6b7280;
  --bj-t4: #9ca3af;
  --bj-bd: #e7eaf0;
  --bj-bd2: #f2f3f7;
  --bj-bg: #f7f8fc;
  --bj-w: #fff;
  --bj-grn: #16a34a;
  --bj-red: #ef4444;
  --bj-r: 16px;
  --bj-r-card: 18px;
  --bj-s1: 0 1px 4px rgba(0,0,0,.03);
  --bj-s2: 0 4px 14px rgba(0,0,0,.06);
  --bj-s3: 0 8px 28px rgba(0,0,0,.08);
}

/* Remove old hero if it exists */
.bj-hero { display: none !important; }


/* ═══════════════════════════════
   1. LAYOUT GRID
═══════════════════════════════ */
.bj-wrap {
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
}


/* ═══════════════════════════════
   2. LEFT SIDEBAR – FILTERS
═══════════════════════════════ */
.bj-sidebar {
  background: var(--bj-w);
  border: 1px solid var(--bj-bd);
  border-radius: var(--bj-r);
  position: sticky;
  top: 84px;
  overflow: hidden;
  box-shadow: var(--bj-s1);
}

.bj-sidebar-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--bj-bd2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bj-sidebar-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bj-t1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bj-sidebar-head a {
  font-size: 12px;
  color: var(--bj-blue);
  font-weight: 600;
}

/* Close button – only visible on mobile */
.bj-sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bj-bg);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--bj-t3);
  cursor: pointer;
  transition: all .15s;
}
.bj-sidebar-close:hover {
  background: #fee2e2;
  color: var(--bj-red);
}

/* Active filters tags */
.bj-active-filters {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bj-bd2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bj-ftag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bj-blue-l);
  color: var(--bj-blue);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bj-ftag a { color: var(--bj-blue); flex-shrink: 0; }

/* Filter sections */
.bj-filter-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bj-bd2);
}
.bj-filter-section:last-child { border-bottom: none; }

.bj-filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bj-t1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;
  transition: color .15s;
}
.bj-filter-title:hover { color: var(--bj-blue); }
.bj-filter-title i {
  font-size: 11px;
  color: var(--bj-t4);
  transition: transform .25s;
}
.bj-filter-title.collapsed i { transform: rotate(180deg); }

.bj-filter-body {
  transition: max-height .3s ease;
}

.bj-checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--bj-t2);
  cursor: pointer;
}
.bj-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bj-blue);
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
}
.bj-checkbox-item label {
  flex: 1;
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bj-checkbox-item .cnt {
  font-size: 11px;
  color: var(--bj-t4);
  flex-shrink: 0;
}

/* Salary pills */
.bj-salary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bj-sal-pill {
  padding: 6px 12px;
  border: 1.5px solid var(--bj-bd);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bj-t2);
  background: var(--bj-w);
  cursor: pointer;
  transition: all .2s;
}
.bj-sal-pill:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue);
  background: var(--bj-blue-l);
}
.bj-sal-pill.active {
  background: var(--bj-blue);
  color: #fff;
  border-color: var(--bj-blue);
}


/* ═══════════════════════════════
   3. CENTER – JOB FEED
═══════════════════════════════ */
.bj-content {
  min-width: 0;
}

/* Mobile filter trigger – hidden on desktop */
.bj-mob-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--bj-bd);
  background: var(--bj-w);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bj-t2);
  cursor: pointer;
  margin-bottom: 14px;
  transition: all .2s;
  box-shadow: var(--bj-s1);
}
.bj-mob-filter-btn:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue);
}
.bj-mob-filter-btn i { font-size: 13px; }

/* Top bar */
.bj-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bj-result-count {
  font-size: 14px;
  color: var(--bj-t3);
}
.bj-result-count strong { color: var(--bj-t1); }

.bj-sort-select {
  padding: 9px 14px;
  border: 1px solid var(--bj-bd);
  border-radius: 10px;
  background: var(--bj-w);
  font-size: 13px;
  color: var(--bj-t2);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.bj-sort-select:focus { border-color: var(--bj-blue); }


/* ═══════════════════════════════
   4. JOB CARD – DESKTOP
═══════════════════════════════ */
.bj-card {
  background: var(--bj-w);
  border: 1px solid var(--bj-bd);
  border-radius: var(--bj-r-card);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: var(--bj-s1);
  transition: all .22s ease;
}
.bj-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--bj-s3);
  transform: translateY(-2px);
}

.bj-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 2px;
}

.bj-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.bj-card-main {
  flex: 1;
  min-width: 0; /* KEY: allows text truncation to work */
}

.bj-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bj-t1);
  line-height: 1.35;
  display: block;
  margin-bottom: 3px;
  /* Safe long text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: color .15s;
}
.bj-card-title:hover { color: var(--bj-blue); }

.bj-card-industry {
  font-size: 13px;
  color: var(--bj-t2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.bj-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--bj-t3);
  background: var(--bj-bg);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.bj-card-rating i { color: #f59e0b; font-size: 10px; }

/* Meta row */
.bj-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0;
}
.bj-card-meta span {
  font-size: 13px;
  color: var(--bj-t3);
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bj-card-meta span i { font-size: 12px; color: var(--bj-t4); flex-shrink: 0; }

/* Description snippet */
.bj-card-desc {
  font-size: 13px;
  color: var(--bj-t3);
  line-height: 1.5;
  margin-bottom: 10px;

  /* one line only */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* Skills */
.bj-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.bj-skill {
  font-size: 11px;
  color: var(--bj-t2);
  background: var(--bj-bg);
  border: 1px solid var(--bj-bd);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .15s;
}
.bj-card:hover .bj-skill {
  border-color: #c7d2fe;
  background: var(--bj-blue-l);
}

/* Footer */
.bj-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bj-bd2);
  padding-top: 12px;
}

.bj-card-time {
  font-size: 11.5px;
  color: var(--bj-t4);
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bj-card-time i { flex-shrink: 0; }

.bj-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bj-save-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bj-bd);
  background: var(--bj-w);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--bj-t3);
  cursor: pointer;
  transition: all .2s;
}
.bj-save-btn:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue);
  background: var(--bj-blue-l);
}

.bj-apply-btn {
  padding: 9px 22px;
  background: var(--bj-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.bj-apply-btn:hover {
  background: var(--bj-blue-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(69,126,255,.25);
}

/* New badge */
.bj-new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #e8fff0;
  color: var(--bj-grn);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .4px;
  z-index: 2;
}

/* Empty state */
.bj-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bj-w);
  border: 1px solid var(--bj-bd);
  border-radius: var(--bj-r);
}
.bj-empty i {
  font-size: 40px;
  color: var(--bj-bd);
  margin-bottom: 14px;
  display: block;
}
.bj-empty h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bj-t1);
  margin-bottom: 6px;
}
.bj-empty p {
  font-size: 14px;
  color: var(--bj-t4);
}


/* ═══════════════════════════════
   5. RIGHT SIDEBAR
═══════════════════════════════ */
.bj-right-sidebar {
  position: sticky;
  top: 84px;
}

.bj-right-card {
  background: var(--bj-w);
  border: 1px solid var(--bj-bd);
  border-radius: var(--bj-r);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--bj-s1);
}

.bj-right-card-head {
  background: linear-gradient(135deg, var(--bj-blue-l), #ffffff);
  padding: 18px;
}

.bj-right-card-head .sv-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bj-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

.bj-right-card-head h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bj-t1);
  margin-bottom: 4px;
}

.bj-right-card-head p {
  font-size: 12px;
  color: var(--bj-t3);
}

.bj-right-card-body { padding: 16px; }

.bj-right-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bj-bd2);
}
.bj-right-stat:last-child { border-bottom: none; }

.bj-right-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--bj-blue-l);
  color: var(--bj-blue);
}

.bj-right-stat-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bj-t1);
  margin: 0;
}

.bj-right-stat-info p {
  font-size: 11.5px;
  color: var(--bj-t3);
  margin: 0;
}

.bj-right-cta {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--bj-blue);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  transition: all .2s;
}
.bj-right-cta:hover {
  background: var(--bj-blue-d);
  color: #fff;
  box-shadow: var(--bj-s2);
}


/* ═══════════════════════════════
   6. PAGINATION
═══════════════════════════════ */
.bj-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.bj-pagination a,
.bj-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--bj-bd);
  background: var(--bj-w);
  font-size: 13px;
  font-weight: 600;
  color: var(--bj-t2);
  transition: all .2s;
}
.bj-pagination a:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue);
  background: var(--bj-blue-l);
}
.bj-pagination .active {
  background: var(--bj-t1);
  color: #fff;
  border-color: var(--bj-t1);
}
.bj-pagination .dots {
  border: none;
  background: transparent;
  color: var(--bj-t4);
  min-width: 24px;
  padding: 0;
}


/* ═══════════════════════════════
   7. MOBILE OVERLAY (for filters)
═══════════════════════════════ */
.bj-mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.bj-mob-overlay.open {
  opacity: 1;
  visibility: visible;
}


/* ═══════════════════════════════════════════════
   8. RESPONSIVE – TABLET (≤1100)
   Hide right sidebar, shrink left
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bj-wrap {
    grid-template-columns: 240px 1fr;
  }
  .bj-right-sidebar { display: none; }
}


/* ═══════════════════════════════════════════════
   9. RESPONSIVE – SMALL TABLET / MOBILE (≤991)
   Single column, filter sidebar = drawer
═══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .bj-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 10px;
    padding: 0 12px;
  }

  /* Sidebar becomes full-height drawer from left */
  .bj-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 320px);
    height: 100dvh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 20px 20px 0;
    box-shadow: 4px 0 30px rgba(0,0,0,.12);
  }
  .bj-sidebar.open {
    transform: translateX(0);
  }

  .bj-sidebar-close { display: flex; }

  .bj-mob-filter-btn { display: inline-flex; }

  .bj-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bj-sort-select { align-self: flex-end; }


  /* ── CYLINDRICAL MOBILE CARD ── */
  .bj-card {
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  .bj-card:hover {
    transform: none; /* no hover lift on touch */
    box-shadow: var(--bj-s2);
  }
  .bj-card:active {
    transform: scale(.99);
  }

  .bj-card-top {
    gap: 12px;
  }

  .bj-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .bj-card-title {
    font-size: 15px;
    /* Allow 2 lines on mobile for readability */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }

  .bj-card-industry {
    font-size: 12px;
  }

  .bj-card-meta {
    gap: 6px 12px;
    margin: 8px 0;
  }
  .bj-card-meta span {
    font-size: 12px;
    max-width: 180px;
  }

  .bj-card-desc {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

  .bj-card-skills { gap: 5px; }
  .bj-skill {
    font-size: 10px;
    padding: 3px 8px;
    max-width: 120px;
  }

  /* Footer stacks on mobile */
  .bj-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
  }

  .bj-card-time {
    font-size: 11px;
    width: 100%;
    /* Wrap instead of truncate – show all info */
    white-space: normal;
    flex-wrap: wrap;
  }

  .bj-card-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .bj-apply-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
    border-radius: 14px;
  }

  .bj-save-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  .bj-new-badge {
    top: 14px;
    right: 14px;
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Pagination */
  .bj-pagination {
    gap: 5px;
    margin: 20px 0;
  }
  .bj-pagination a,
  .bj-pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 12px;
    padding: 0 10px;
  }
}


/* ═══════════════════════════════════════════════
   10. RESPONSIVE – SMALL MOBILE (≤576)
   Extra compact, full-width cards
═══════════════════════════════════════════════ */
@media (max-width: 576px) {
  .bj-wrap {
    padding: 0 8px;
    margin-top: 8px;
  }

  /* Mobile filter button – full width pill */
  .bj-mob-filter-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bj-w);
  }

  .bj-result-count { font-size: 13px; }
  .bj-sort-select { font-size: 12px; padding: 8px 10px; }

  /* Card: extra compact cylindrical */
  .bj-card {
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 10px;
  }

  .bj-card-top { gap: 10px; }

  .bj-card-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
  }

  .bj-card-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-height: 1.4;
  }

  .bj-card-industry {
    font-size: 11.5px;
    gap: 6px;
  }

  .bj-card-rating {
    font-size: 10px;
    padding: 2px 6px;
  }

  .bj-card-meta {
    gap: 5px 10px;
    margin: 6px 0 8px;
  }
  .bj-card-meta span {
    font-size: 11.5px;
    gap: 4px;
    max-width: 160px;
  }
  .bj-card-meta span i { font-size: 11px; }

  .bj-card-desc {
  font-size: 11.5px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

  .bj-card-skills {
    gap: 4px;
    margin-bottom: 10px;
  }
  .bj-skill {
    font-size: 10px;
    padding: 3px 7px;
    max-width: 100px;
  }

  .bj-card-footer { padding-top: 8px; gap: 8px; }
  .bj-card-time { font-size: 10.5px; }

  .bj-apply-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 12px;
  }

  .bj-save-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
  }

  /* Sidebar drawer narrower */
  .bj-sidebar {
    width: min(90vw, 300px);
    border-radius: 0 16px 16px 0;
  }

  .bj-sidebar-head { padding: 14px 14px 12px; }
  .bj-sidebar-head h3 { font-size: 14px; }
  .bj-filter-section { padding: 12px 14px; }
  .bj-checkbox-item { font-size: 12px; gap: 8px; padding: 4px 0; }
  .bj-checkbox-item input[type="checkbox"] { width: 15px; height: 15px; }

  .bj-sal-pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Pagination compact */
  .bj-pagination {
    gap: 4px;
    margin: 16px 0;
  }
  .bj-pagination a,
  .bj-pagination span {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
    padding: 0 8px;
  }

  /* Empty state */
  .bj-empty { padding: 40px 16px; }
  .bj-empty i { font-size: 32px; }
  .bj-empty h4 { font-size: 16px; }
  .bj-empty p { font-size: 13px; }
}


/* ═══════════════════════════════════════════════
   11. RESPONSIVE – TINY MOBILE (≤380)
═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .bj-wrap { padding: 0 6px; }

  .bj-card {
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .bj-card-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
  }

  .bj-card-title {
    font-size: 13.5px;
  }

  .bj-card-meta span {
    font-size: 11px;
    max-width: 140px;
  }

  .bj-skill {
    max-width: 85px;
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .bj-apply-btn {
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 10px;
  }

  .bj-save-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════════
   12. UTILITY – HIDE OLD/DEPRECATED CLASSES
═══════════════════════════════════════════════ */
.bj-mobile-filter-btn { display: none !important; }


/* ═══════════════════════════════════════════════
   13. ANIMATIONS & MICRO-INTERACTIONS
═══════════════════════════════════════════════ */

/* Card enter animation (optional – staggers nicely) */
@keyframes bjCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bj-card {
  animation: bjCardIn .35s ease both;
}
.bj-card:nth-child(2) { animation-delay: .04s; }
.bj-card:nth-child(3) { animation-delay: .08s; }
.bj-card:nth-child(4) { animation-delay: .12s; }
.bj-card:nth-child(5) { animation-delay: .16s; }
.bj-card:nth-child(6) { animation-delay: .20s; }

/* Filter section collapse animation */
.bj-filter-body {
  overflow: hidden;
}

/* Ripple on save button */
.bj-save-btn:active {
  transform: scale(.9);
}

/* Hover glow on card (desktop only) */
@media (hover: hover) {
  .bj-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(69,126,255,.04), transparent);
    transition: opacity .3s;
    pointer-events: none;
    z-index: 0;
  }
  .bj-card:hover::after { opacity: 1; }
}

/* Touch feedback for mobile */
@media (hover: none) {
  .bj-card:active {
    background: #fafbff;
    transition: background .1s;
  }

  .bj-save-btn:active {
    background: var(--bj-blue-l);
  }

  .bj-apply-btn:active {
    background: var(--bj-blue-d);
    transform: scale(.97);
  }

  .bj-mob-filter-btn:active {
    background: var(--bj-bg);
    transform: scale(.98);
  }
}


/* ═══════════════════════════════════════════════
   14. SAFE AREA (notch / dynamic island support)
═══════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .bj-sidebar {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bj-pagination {
    padding-bottom: env(safe-area-inset-bottom);
  }
}


/* ═══════════════════════════════════════════════
   15. PRINT STYLES
═══════════════════════════════════════════════ */
@media print {
  .bj-sidebar,
  .bj-right-sidebar,
  .bj-mob-filter-btn,
  .bj-mob-overlay,
  .bj-save-btn,
  .bj-apply-btn,
  .bj-sort-select,
  .bj-pagination { display: none !important; }

  .bj-wrap { grid-template-columns: 1fr !important; }
  .bj-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
