@charset "UTF-8";
.page-hero {
  position: relative;
  text-align: center;
  padding: 64px 20px;
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-dark);
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.page-hero-content p {
  font-size: var(--font-lg);
  opacity: 0.75;
  max-width: 450px;
  margin: 0 auto;
}
.page-hero-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.page-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .page-hero {
    padding: 40px 16px;
  }
  .page-hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  .page-hero-content p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .page-hero {
    padding: 32px 12px;
  }
  .page-hero-content h1 {
    font-size: 1.3rem;
  }
}

.filters-toggle {
  display: none;
}

@media (max-width: 768px) {
  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-lg);
    color: var(--brand-primary);
    font-size: var(--font-base);
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .filters-toggle:hover,
  .filters-toggle[aria-expanded=true] {
    border-color: var(--brand-primary);
    background: #fdf0e8;
  }
  .filters-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
  }
  .filters-panel {
    display: none;
    margin-top: 14px;
  }
  .filters-open .filters-panel {
    display: block;
    animation: filters-fade 0.2s ease;
  }
}
@keyframes filters-fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ac-wrapper {
  position: relative;
}

.ac-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  background: white;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.ac-input:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.ac-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ac-dropdown.active {
  display: block;
}

.ac-item {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--gray-700);
  font-size: 0.88rem;
  transition: background 0.12s;
}

.ac-item:hover,
.ac-item.highlighted {
  background: #fdf0e8;
  color: var(--brand-primary);
}

.ac-item.empty {
  color: var(--text-muted);
  cursor: default;
  text-align: center;
  font-style: italic;
}

.ac-loader {
  padding: 12px;
  text-align: center;
}

.ac-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f4f6;
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: ac-spin 0.6s linear infinite;
  margin: 0 auto;
}

@keyframes ac-spin {
  to {
    transform: rotate(360deg);
  }
}
.profile-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-2xl, 14px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-slow);
  overflow: hidden;
}

.profile-card-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-primary, #d4603a);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.profile-card-wrapper:hover::before {
  opacity: 1;
}

.profile-card-wrapper:hover {
  border-color: var(--brand-primary, #d4603a);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* The whole card body is one link to the profile detail page. */
.profile-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Favorite heart — top-right corner, above the link. Base .fav-btn
   positioning/styling lives in app.css; only focus visibility is refined
   here (the shared button already has a border on hover). */
.card-fav-btn {
  z-index: 5;
}

/* Media row: photo left + identity info right. The title row sits above it. */
.card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-avatar {
  flex-shrink: 0;
}

/* Photo-first avatar — large (96px) so faces register at a glance in the
   listing grid. Overrides the component's avatar-lg (56px) default. */
.card-avatar .avatar {
  width: 96px;
  height: 96px;
}

.card-avatar .avatar.avatar-placeholder {
  font-size: 2.1rem;
}

.card-info {
  flex: 1;
  min-width: 0;
}

/* Title row — the focal point, full width on top. Only the verified check
   rides alongside the name; online/offline is a footer badge and the
   open-now pill lives in the meta row below. Right padding keeps the row
   clear of the top-right favorite heart. */
.card-name-row {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding-right: 40px;
  margin-bottom: 12px;
}

.card-name-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  /* The name is the card's focal point — always fully visible. It wraps
     onto as many lines as needed, and long unbroken strings wrap too
     (overflow-wrap) instead of overflowing the card. No ellipsis: a
     truncated name hides the person you're looking for. */
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.profile-card-wrapper:hover .card-name-row h3 {
  color: var(--brand-primary, #d4603a);
}

/* Verified badge — small green checkmark next to the name. */
.card-verified {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.18);
}

/* Open-now status pill — compact, sits inline in the meta row next to the
   location/rating. Kept away from the name so the title row stays clean.
   Shows only for profiles with working-hours data: green "Otvorené", muted
   "Zatvorené", or a neutral "Na objednávku" for appointment-only weeks. */
.card-open-now {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.card-open-now.is-closed {
  color: var(--text-secondary);
  background: var(--gray-50);
  border-color: var(--border-color);
}

.card-open-now.is-appointment {
  color: #9a3412;
  background: #fdf0e8;
  border-color: #f6d3c0;
}

/* Identity chips — entity type badge + derived main category share one row
   at the top of the media column (right of the photo), aligned with the
   avatar's top edge. */
.card-id-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
  max-width: 100%;
}

/* Main category chip — derived from the profile's most recent offer.
   Pink tint matches the category chips on job cards, so both card types
   speak the same visual language. */
.card-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: #9d174d;
  background: #fdf2f8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-type-badge.provider {
  color: #9a3412;
  background: #fdf0e8;
  border: 1px solid #f6d3c0;
}

.card-type-badge.seeker {
  color: var(--text-secondary);
  background: var(--gray-50);
  border: 1px solid var(--border-color);
}

.card-jobtitle {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Location + rating + open-now status on a single inline row (saves a
   vertical line; the status pill is kept away from the name). */
.card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.card-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-sep {
  color: var(--text-muted);
}

/* Star rating line. */
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-rating-star {
  color: #f59e0b;
  font-size: 0.8rem;
  line-height: 1;
}

.card-rating-value {
  font-weight: 700;
  color: var(--text-dark);
}

.card-rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Card Skills */
.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: 14px;
}

/* Card Footer — status/contact left, listings action right. */
.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border-color-light);
}

.card-footer-left {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  min-width: 0;
}

.card-contact-icons {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
}

.card-contact-icon {
  font-size: 0.95rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--border-color-light);
  transition: var(--transition-fast);
  cursor: default;
}

.card-contact-icon:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  transform: scale(1.1);
}

/* Message button — one-click contact straight from the card (rendered for
   logged-in visitors only; requires UserID on the caller's dict). */
.card-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border-radius: var(--radius-md);
  background: var(--brand-primary, #d4603a);
  border: 1px solid var(--brand-primary, #d4603a);
  color: #fff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.card-message-btn:hover {
  background: var(--brand-dark, #2d1f1a);
  border-color: var(--brand-dark, #2d1f1a);
  transform: scale(1.1);
}

/* "N ponúk" — explicit action button (outline pill + chevron) deep-linking
   to the profile's listings section. */
.card-listings-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary, #d4603a);
  background: #fdf0e8;
  border: 1.5px solid var(--brand-primary, #d4603a);
  text-decoration: none;
  transition: var(--transition-fast);
}

.card-listings-btn:hover {
  background: var(--brand-primary, #d4603a);
  color: #fff;
}

.card-listings-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.card-listings-btn:hover svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .card-top {
    gap: 10px;
    margin-bottom: 8px;
  }
  .card-name-row {
    margin-bottom: 8px;
  }
  .card-skills {
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .profile-card {
    padding: 12px 12px 0;
  }
  .card-footer {
    padding: 8px 12px 12px;
  }
  .card-name-row h3 {
    font-size: 0.95rem;
  }
  .card-city {
    font-size: 0.78rem;
  }
  .card-top {
    gap: var(--gap-md);
    margin-bottom: 6px;
  }
  .card-name-row {
    margin-bottom: 6px;
  }
  .card-skills {
    gap: 4px;
    margin-bottom: 8px;
  }
}
/* Avatar Component */
.avatar {
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  width: 56px;
  height: 56px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: var(--brand-primary);
}

/* Size variants */
.avatar-xs {
  width: 24px;
  height: 24px;
}

.avatar-xs.avatar-placeholder {
  font-size: 0.65rem;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-sm.avatar-placeholder {
  font-size: 0.8rem;
}

.avatar-md {
  width: 44px;
  height: 44px;
}

.avatar-md.avatar-placeholder {
  font-size: 1rem;
}

.avatar-lg {
  width: 56px;
  height: 56px;
}

.avatar-lg.avatar-placeholder {
  font-size: 1.3rem;
}

.avatar-xl {
  width: 64px;
  height: 64px;
}

.avatar-xl.avatar-placeholder {
  font-size: 1.5rem;
}

/* Skill Tag Component */
.st-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: var(--transition-fast);
  white-space: nowrap;
  background: #fdf0e8;
  color: #d4603a;
  border: 1px solid #f5e0d0;
}

.st-tag:hover {
  background: #f5e0d0;
}

a.st-tag:hover {
  color: #c05432;
}

/* Brand variant - solid brand color */
.st-tag.st-brand {
  background: var(--brand-primary);
  color: white;
  border: none;
}

.st-tag.st-brand:hover {
  background: #c05432;
}

a.st-tag.st-brand:hover {
  color: white;
}

/* Ghost variant - subtle, for admin/internal */
.st-tag.st-ghost {
  background: #e8f0fe;
  color: #1a73e8;
  border: none;
}

.st-tag.st-ghost:hover {
  background: #d2e3fc;
}

a.st-tag.st-ghost:hover {
  color: #1557b0;
}

/* Size: small */
.st-tag.st-sm {
  padding: 2px 8px;
  font-size: 0.68rem;
  border-radius: 14px;
}

/* Size: large */
.st-tag.st-lg {
  padding: 6px 16px;
  font-size: var(--font-sm);
  border-radius: 24px;
}

/* Responsive */
@media (max-width: 480px) {
  .st-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
  .st-tag.st-sm {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
}
/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-lg);
  font-size: var(--font-xs);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

/* Color variants */
.badge-green {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-red {
  background: #fce4e4;
  color: #c62828;
}

.badge-orange {
  background: #fff3e0;
  color: #e65100;
}

.badge-blue {
  background: #e8f0fe;
  color: #1a73e8;
}

.badge-gray {
  background: #f5f5f5;
  color: #666;
}

/* Size: small */
.badge-sm {
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: var(--radius-md);
}

/* Dot indicator */
.badge-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: #9ca3af;
}

.badge-dot.online {
  background: #22c55e;
}

.badge-dot.large {
  width: 10px;
  height: 10px;
}

/* Responsive */
@media (max-width: 480px) {
  .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .badge-dot {
    width: 6px;
    height: 6px;
  }
  .badge-dot.large {
    width: 8px;
    height: 8px;
  }
}
.job-card-wrapper {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.job-card-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-primary, #d4603a);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.job-card-wrapper:hover::before {
  opacity: 1;
}

.job-card-wrapper:hover {
  border-color: var(--brand-primary, #d4603a);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.job-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Type + Title row */
.job-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.jc-type-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  margin-top: 1px;
}

.jc-type-icon.jc-offer {
  background: #ecfdf5;
}

.jc-type-icon.jc-request {
  background: #eff6ff;
}

.job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-card-wrapper:hover .job-title {
  color: var(--brand-primary, #d4603a);
}

/* Price / Budget badge */
.job-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-top: 2px;
  line-height: 1.3;
  border: 1px solid #a7f3d0;
}

/* Info rows */
.jc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: 6px;
}

.jc-meta-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: var(--radius-md);
  line-height: 1.4;
}

.jc-meta-item.jc-category {
  background: #fdf2f8;
  color: #9d174d;
  font-weight: 600;
}

/* Skills */
.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 14px;
}

/* Card bottom */
.job-card-btm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 10px 20px 12px;
  border-top: 1px solid #f3f4f6;
}

/* Author section */
.job-author {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.job-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.job-author-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary, #d4603a);
  color: white;
  font-weight: 700;
  font-size: var(--font-xs);
}

.job-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.job-author:hover .job-author-name {
  color: var(--brand-primary, #d4603a);
}

/* Detail arrow */
.job-detail-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary, #d4603a);
  text-decoration: none;
  flex-shrink: 0;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.job-detail-arrow:hover {
  gap: var(--gap-md);
}

.jc-compact {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  color: inherit;
  position: relative;
  overflow: hidden;
}

.jc-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-primary, #d4603a);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.jc-compact:hover::before {
  opacity: 1;
}

.jc-compact:hover {
  border-color: var(--brand-primary, #d4603a);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.jc-compact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.jc-compact-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.jc-type-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: var(--gray-100);
  margin-top: 1px;
}

.jc-compact-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.jc-compact:hover .jc-compact-header h3 {
  color: var(--brand-primary, #d4603a);
}

/* Prominent price badge on the top-right of the card */
.jc-compact-price {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  margin-top: 1px;
}

.jc-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: 8px;
}

.jc-compact-meta span {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.jc-meta-city {
  font-weight: 600;
}

.jc-compact-meta span.jc-meta-pay {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.jc-compact-meta span.jc-meta-cat {
  background: #fdf2f8;
  color: #9d174d;
  font-weight: 600;
}

.jc-compact-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.jc-compact-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jc-compact-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.jc-compact-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.jc-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.jc-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.jc-compact:hover .jc-author-name {
  color: var(--brand-primary, #d4603a);
}

.jc-compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.jc-compact-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary, #d4603a);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.jc-compact:hover .jc-compact-link {
  gap: var(--gap-md);
}

.jc-compact-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-md);
  line-height: 1.3;
  white-space: nowrap;
}

.jc-compact-status.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.jc-compact-status.waiting_for_approval {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.jc-compact-status.approved {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.jc-compact-status.closed {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.jc-compact-status.expired {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.jc-compact-status.rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.jc-compact-status.cancelled {
  background: var(--gray-100);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

@media (prefers-reduced-motion: reduce) {
  .jc-compact,
  .job-card-wrapper,
  .job-detail-arrow,
  .jc-compact-link {
    transition: none;
  }
  .jc-compact:hover,
  .job-card-wrapper:hover {
    transform: none;
  }
}
@media (max-width: 640px) {
  /* List variant */
  .job-title-row {
    flex-wrap: wrap;
  }
  .job-price {
    margin-left: 0;
  }
  .job-card-btm {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .job-detail-arrow {
    justify-content: flex-end;
  }
  .job-card-link {
    padding: 16px 16px 0;
  }
  .job-card-btm {
    padding: 10px 16px 12px;
  }
  /* Compact variant */
  .jc-compact {
    padding: 16px;
  }
  .jc-compact-header h3 {
    font-size: 0.88rem;
  }
}
@media (max-width: 480px) {
  .job-card-link {
    padding: 12px 12px 0;
  }
  .job-card-btm {
    padding: 8px 12px 12px;
  }
  .jc-compact {
    padding: 12px;
  }
  .job-title {
    font-size: 0.95rem;
  }
  .jc-compact-header h3 {
    font-size: var(--font-sm);
  }
  .jc-meta-item {
    font-size: var(--font-xs);
    padding: 2px 8px;
  }
  .job-skills {
    gap: 4px;
    margin: 6px 0 10px;
  }
  .jc-compact-skills {
    gap: 3px;
    margin-bottom: 6px;
  }
  .jc-compact-footer {
    padding-top: 8px;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-lg);
  padding: 2rem 0;
  flex-wrap: wrap;
}

.pagination-prev,
.pagination-next {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  white-space: nowrap;
}

.pagination-prev svg,
.pagination-next svg {
  flex-shrink: 0;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0 4px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pagination {
    gap: var(--gap-md);
    padding: 1.25rem 0;
  }
  .pagination .btn {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
  .pagination-info {
    font-size: 0.82rem;
  }
}
.empty-state {
  text-align: center;
  padding: 60px 32px;
  margin: 24px 0;
  background: #fafafa;
  border: 1.5px dashed #e0e0e0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.empty-state:hover {
  border-color: #d0d0d0;
  background: #f8f8f8;
}

.empty-state-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.empty-state:hover .empty-state-icon {
  transform: scale(1.08);
  opacity: 0.85;
}

.empty-state-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0 0 8px;
  line-height: 1.3;
}

.empty-state-title-msg {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.empty-state-desc {
  color: var(--text-muted);
  font-size: var(--font-base);
  margin: 0 auto 20px;
  max-width: 420px;
  line-height: 1.5;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.empty-state-actions .btn,
.empty-state-actions a.btn {
  padding: 10px 24px;
  font-size: var(--font-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-md);
  transition: var(--transition-fast);
}

/* Backward compat: simple message-only empty states */
.empty-state-no-icon .empty-state-title-msg {
  font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
  .empty-state {
    padding: 40px 20px;
  }
  .empty-state-icon {
    font-size: 2.4rem;
  }
  .empty-state-icon svg {
    width: 44px;
    height: 44px;
  }
  .empty-state-actions {
    flex-direction: column;
    align-items: center;
  }
  .empty-state-actions .btn,
  .empty-state-actions a.btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 160;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 0.85;
}

.header-logo:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.header-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-site-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: var(--font-lg);
}

/* ===== Nav Links ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Base styles for every nav link (anchors and dropdown-toggle buttons) */
.header-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

/* Hover: brand tint pill (CTAs and the active link keep their own styles) */
.header-nav .nav-link:not(.nav-cta):not(.nav-link-active):hover {
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

/* Animated underline for top-level links (not CTAs, not dropdown toggles) */
.header-nav > a.nav-link:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.header-nav > a.nav-link:not(.nav-cta):hover::after,
.header-nav > a.nav-link:not(.nav-cta).nav-link-active::after {
  transform: scaleX(1);
}

/* Active page: brand tint + bold */
.nav-link.nav-link-active {
  color: var(--brand-primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-link-label {
  display: inline-flex;
  align-items: center;
}

/* ===== Nav Online Link ===== */
.nav-link-online {
  position: relative;
}

.nav-online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

.nav-online-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #22c55e;
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* ===== Login / Register CTA buttons ===== */
.nav-cta {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}

.header-nav .nav-cta-login {
  margin-left: 6px;
  color: var(--brand-primary);
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

.header-nav .nav-cta-login:hover {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border-color: var(--brand-primary);
}

.header-nav .nav-cta-register {
  color: #fff;
  background: var(--brand-primary);
  border: 1.5px solid transparent;
  /* Clear gap between the login and register buttons */
  margin-left: 10px;
}

.header-nav .nav-cta-register:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ===== Unread Badge ===== */
.nav-conversations {
  position: relative;
}

.unread-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  animation: badgePopIn 0.3s ease;
}

.unread-badge.has-unread {
  display: inline-block;
}

@keyframes badgePopIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* ===== Fav / Admin Badges ===== */
.fav-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

.fav-badge.has-fav {
  display: block;
  animation: pulse-badge 2s infinite;
}

.admin-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* ===== Header Search ===== */
.header-search {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  flex: 1;
  max-width: 420px;
}

.header-search-form {
  display: flex;
  width: 100%;
}

.header-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aab0bc;
  pointer-events: none;
  transition: color 0.2s ease;
}

.header-search:focus-within .header-search-icon {
  color: var(--brand-primary);
}

.header-search-input {
  flex: 1;
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 36px;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px 0 0 10px;
  font-size: 0.95rem;
  background: #f4f5f7;
  transition: var(--transition-normal);
  min-width: 0;
  font-family: "Inter", sans-serif;
}

.header-search-input::placeholder {
  color: #aab0bc;
  font-weight: 400;
}

.header-search-input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: var(--transition-fast);
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.header-search-btn:hover {
  background: var(--brand-secondary);
}

.header-search-btn-icon {
  width: 16px;
  height: 16px;
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

/* Chevron indicator on dropdown toggles */
.nav-dropdown > .dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > .dropdown-toggle::after,
.nav-dropdown.open > .dropdown-toggle::after,
.nav-dropdown:focus-within > .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  /* top: 100% (not calc(100% + 8px)) keeps the menu's top edge touching the
     toggle, so there is no hover dead-zone between the button and the menu:
     moving the mouse from the button down into the menu never drops :hover.
     The former 8px gap is absorbed as padding-top inside the menu itself. */
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* 8px visual gap + 6px original padding */
  padding: 14px 6px 6px;
  min-width: 210px;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  text-decoration: none;
  color: #444;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}

.dropdown-menu .nav-link:hover {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--brand-primary);
}

.dropdown-menu .nav-link.nav-link-active {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  color: var(--brand-primary);
  font-weight: 600;
}

.dropdown-menu .nav-link.nav-logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* Logout is a CSRF-protected POST form (a GET link would allow logout CSRF).
   The submit button keeps the exact same look as the other menu links. */
.dropdown-menu .nav-logout-form {
  display: block;
}

.dropdown-menu .nav-logout-form .nav-link {
  width: 100%;
  text-align: left;
}

.dropdown-menu .nav-link .nav-link-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-menu .nav-link .fav-badge {
  display: none;
  position: static;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
}

.dropdown-menu .nav-link .fav-badge.has-fav {
  display: inline-flex;
}

.dropdown-menu .nav-link .admin-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
  animation: none;
}

.dropdown-menu .nav-link .unread-badge.has-unread {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
}

.nav-admin {
  position: relative;
}

/* ===== Profile Switcher ===== */
.dropdown-menu-wide {
  min-width: 260px;
  white-space: normal;
}

.nav-profile-item {
  width: 100%;
}

.nav-profile-item .ps-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-item .ps-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-profile-item .ps-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-item .ps-role {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-profile-item .ps-role.provider {
  color: var(--brand-primary);
}

.nav-profile-item .ps-role.seeker {
  color: var(--text-muted);
}

.nav-profile-item .ps-active {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-manage {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 10px !important;
  border-radius: 0 !important;
}

/* ===== Hamburger Menu Button ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  z-index: 210;
  position: relative;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #666;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span + span {
  margin-top: 5px;
}

/* Hamburger -> X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Nav Drawer & Backdrop ===== */
.nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Responsive: Tablet & Mobile
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .header-container {
    row-gap: var(--gap-md);
  }
  .header-search {
    max-width: 100%;
    margin: 0.5rem 0;
    width: 100%;
    order: 3;
  }
  .header-search-input {
    font-size: 1rem;
    padding: 0.65rem 0.85rem 0.65rem 38px;
  }
  .header-search-btn {
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
  }
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav.mobile-open {
    right: 0;
  }
  .header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: #444;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
  }
  .header-nav .nav-link:not(.nav-cta):not(.nav-link-active):hover {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
  }
  .header-nav .nav-link:active {
    background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
  }
  .header-nav .nav-link.nav-link-active {
    background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    color: var(--brand-primary);
    font-weight: 600;
  }
  /* Hide the underline bar and chevron in the drawer */
  .header-nav > a.nav-link::after,
  .nav-dropdown > .dropdown-toggle::after {
    display: none;
  }
  /* CTAs stretch full width in the drawer */
  .header-nav .nav-cta {
    justify-content: center;
    margin: 6px 0 0;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
  .header-nav .nav-cta-login {
    margin-left: 0;
  }
  /* Badges inside mobile nav links */
  .header-nav .nav-link .fav-badge {
    display: none;
    position: static;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  .header-nav .nav-link .fav-badge.has-fav {
    display: inline-flex;
  }
  .header-nav .nav-link .admin-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  .header-nav .nav-link .unread-badge.has-unread {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  /* Flatten dropdowns on mobile */
  .nav-dropdown {
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
    padding-top: 4px;
  }
  .nav-dropdown > .dropdown-toggle {
    padding: 10px 16px 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    pointer-events: none;
    border-radius: 0;
  }
  .nav-dropdown > .dropdown-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 16px !important;
    min-width: auto !important;
    background: transparent !important;
    white-space: normal !important;
    pointer-events: auto !important;
  }
  .dropdown-menu .nav-link {
    padding: 10px 16px;
    font-size: var(--font-base);
  }
}
@media (max-width: 480px) {
  .header-container {
    padding: 10px 12px;
    gap: 4px;
  }
  .header-logo {
    font-size: 1rem;
    gap: 4px;
    max-width: 60%;
  }
  .header-logo img {
    height: 22px;
  }
  .header-site-name {
    max-width: 80px;
    font-size: 1rem;
  }
  .hamburger {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
  .hamburger span {
    width: 18px;
  }
  .hamburger span + span {
    margin-top: 4px;
  }
  /* Hamburger -> X animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .header-search {
    margin: 0.3rem 0;
  }
  .header-search-input {
    padding: 0.5rem 0.75rem 0.5rem 34px;
    font-size: var(--font-base);
  }
  .header-search-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-base);
  }
  .header-nav {
    width: 100vw;
    max-width: 100%;
    right: -100%;
    padding: 60px 12px 20px;
    gap: 2px;
  }
  .header-nav.mobile-open {
    right: 0;
  }
  .header-nav .nav-link {
    padding: 10px 12px;
    font-size: var(--font-base);
  }
}
.verify-banner {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  box-shadow: 0 2px 10px rgba(133, 100, 4, 0.08);
}

.verify-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.verify-banner-msg {
  font-size: var(--font-sm);
  color: #7a5d03;
  line-height: 1.45;
}

.verify-banner-msg a {
  color: #7a5d03;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verify-banner-msg a:hover {
  text-decoration-thickness: 2px;
}

.verify-banner-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  color: #7a5d03;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.verify-banner-close:hover {
  opacity: 1;
  background: rgba(133, 100, 4, 0.1);
}

.verify-banner-close:focus-visible {
  outline: 2px solid #7a5d03;
  outline-offset: 2px;
}

.footer {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 0;
  flex-shrink: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: var(--font-base);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: var(--font-base);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.footer-trust {
  display: flex;
  gap: var(--gap-lg);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--gap-lg);
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* Shared confirmation / alert dialog — replaces native confirm()/alert().
   Rendered once per page via base.html ({{component "confirm_dialog" .}}). */
.confirm-dialog {
  /* Explicitly center the dialog: the global '* { margin: 0 }' reset in
     app.css overrides the UA stylesheet's margin: auto that normally
     centers a <dialog>, leaving it stuck in the top-left corner. */
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  border-radius: 18px;
  max-width: 420px;
  width: calc(100vw - 32px);
  background: var(--card-bg, #fff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.confirm-dialog::backdrop {
  background: rgba(15, 20, 35, 0.55);
  backdrop-filter: blur(2px);
}

.confirm-dialog[open] {
  animation: confirm-pop 0.24s cubic-bezier(0.18, 0.89, 0.32, 1.18);
}

@keyframes confirm-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-dialog[open] {
    animation: none;
  }
}
.confirm-dialog-card {
  position: relative;
  padding: 28px 26px 24px;
  text-align: center;
}

.confirm-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f6fa;
  border: 1px solid #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 14px;
}

.confirm-dialog.danger .confirm-dialog-icon {
  background: #fef2f2;
  border-color: #fecaca;
}

.confirm-dialog-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-color, #1a1f2e);
}

.confirm-dialog-message {
  margin: 0 0 20px;
  color: #5a6272;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.confirm-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.confirm-dialog-actions .btn {
  margin: 0;
  min-width: 110px;
  justify-content: center;
}

/* Destructive confirmations get a red confirm button (added via the
   `danger: true` option in confirmDialog/confirmFormSubmit). */
.confirm-dialog.danger .confirm-dialog-confirm {
  background: var(--red-600, #dc2626);
  color: #fff;
}

.confirm-dialog.danger .confirm-dialog-confirm:hover {
  background: #b91c1c;
}

@media (max-width: 480px) {
  .confirm-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .confirm-dialog-actions .btn {
    width: 100%;
  }
}
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  padding: 0.75rem 1rem;
  background: var(--brand-dark, #2d1f1a);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  font-size: var(--font-sm);
}

.cookie-consent-visible {
  display: block;
}

.cookie-consent-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  margin: 0;
  line-height: 1.5;
  flex: 1 1 320px;
}

.cookie-consent-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  text-decoration: none;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cookie-consent .btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}

.cookie-consent .btn-primary:hover {
  background: #c05432;
}

.cookie-consent .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cookie-consent .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }
  .cookie-consent-actions {
    justify-content: center;
  }
}
.search-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Filter bar */
.search-filters {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 24px;
  margin: -24px auto 24px;
  max-width: 1000px;
  position: relative;
  z-index: 10;
}

.search-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.search-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-filter-group label {
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.search-filter-group input,
.search-filter-group select {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  background: white;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.search-filter-group input:focus,
.search-filter-group select:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.search-filter-row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.search-filter-row .search-filter-group {
  flex: 1;
}

.search-filter-row .search-filter-budget {
  max-width: 120px;
}

.search-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

.search-filter-actions .btn {
  padding: 10px 24px;
  font-size: var(--font-base);
}

.btn-outline-sm {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-sm:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Save search bar */
.save-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.save-search-bar .save-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 280px;
}

.save-search-bar .save-search-form input[name=name] {
  flex: 1 1 auto;
  padding: 9px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  background: white;
  transition: border-color 0.2s;
  min-width: 0;
}

.save-search-bar .save-search-form input[name=name]:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.save-search-bar .save-search-form .btn {
  margin: 0;
  white-space: nowrap;
}

.save-search-link {
  white-space: nowrap;
}

/* Type toggle */
.search-type-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.search-type-toggle a {
  padding: 10px 16px;
  font-size: var(--font-sm);
  text-decoration: none;
  color: var(--text-secondary);
  border-right: 1px solid #e5e7eb;
  transition: all 0.2s;
  white-space: nowrap;
}

.search-type-toggle a:last-child {
  border-right: none;
}

.search-type-toggle a.active {
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
}

.search-type-toggle a:hover:not(.active) {
  background: var(--gray-100);
}

/* Active filter chips */
.search-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  margin-bottom: 16px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 5px 12px;
  background: #fdf0e8;
  color: #d4603a;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

.search-chip a {
  color: #d4603a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.search-chip a:hover {
  color: #c05432;
}

/* Results grid -- both profile and job results render the shared card
   components (profile_card / job_card), so every cell uses one grid column. */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.search-results-count {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: var(--font-base);
}

.search-results-count strong {
  color: #1f2937;
}

@media (max-width: 768px) {
  .search-filters-grid {
    grid-template-columns: 1fr;
  }
  .search-filters {
    padding: 14px;
  }
}
.no-results-recovery {
  text-align: center;
  margin: 8px 0 24px;
  padding: 0 16px;
}

.no-results-recovery-title {
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.no-results-recovery-subtitle {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 16px 0 8px;
}

.no-results-recovery-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.no-results-recovery-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  font-size: var(--font-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.no-results-recovery-chip:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}
