#filterOffcanvas.offcanvas-end {
  --bs-offcanvas-width: min(420px, 90vw);
}


  .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-white);
    border-bottom: 1px solid var(--gray-200);
  }

  .offcanvas-body {
    padding-bottom: 5rem;
  }

  .offcanvas-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--bg-white);
    border-top: 1px solid var(--gray-200);
    padding: .75rem 1rem;
  }

  #filterOffcanvas .form-label {
    margin-bottom: .25rem;
  }

  /* Reusable yellow primary pill button (Filter, Profil ansehen, etc.) */
  .btn-primary-pill {
    background-color: var(--brand-primary);
    color: var(--text-dark);
    border-radius: var(--radius-pill);
    border: none;
    padding: 0.4rem 1.15rem;
    box-shadow: var(--shadow-brand-sm);
    font-weight: 600;
  }

  .btn-primary-pill:hover {
    background-color: var(--brand-hover);
    box-shadow: 0 6px 16px rgba(244, 170, 36, 0.45);
    color: var(--text-dark);
  }

  .btn-primary-pill:active {
    background-color: var(--brand-active);
    box-shadow: 0 3px 8px rgba(244, 170, 36, 0.4);
  }

  /* Header meta text */
  .results-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  /* ==================================================================
     EXPERIMENTAL -- full-bleed photo tile (see DESIGN_GUIDE.md section
     7, which this branch deliberately doesn't follow: the whole point
     is comparing this against the restrained, photo-header-in-a-light-
     card version on dev). Whole tile is a link; name/age/location sit
     directly on the photo behind a gradient scrim, Hinge/Tinder-style.
     ================================================================== */
  .profile-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-200);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .profile-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }

  .profile-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
  }

  .profile-tile:hover .profile-tile-img {
    transform: scale(1.05);
  }

  .profile-tile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-300);
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 600;
  }

  .profile-tile-chip {
    position: absolute;
    top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .profile-tile-chip.status-chip {
    right: 0.6rem;
  }

  .profile-tile-chip.birthday-chip {
    left: 0.6rem;
  }

  .profile-tile-scrim {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    /* Slightly taller/darker than a name+age+location scrim needs,
       now that a bio snippet sits at the bottom of the info stack
       too -- keeps it legible over any photo. */
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      transparent 80%
    );
    pointer-events: none;
  }

  .profile-tile-info {
    color: #fff;
  }

  .profile-tile-name {
    display: block;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .profile-tile-age {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 0.35rem;
  }

  .profile-tile-loc {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.1rem;
  }

  .profile-tile-bio {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;
  }

  .card-footer {
    border-top: none;
  }

/* No entrance animation. This went through two versions that each
   depended on something completing (a JS class toggle via
   IntersectionObserver, then a CSS animation reaching its end
   keyframe) before cards would show up at all -- and both got
   reported as, or reproduced as, cards stuck permanently invisible.
   A decorative scroll-in effect isn't worth a single failure mode for
   content this central to the page, so: no hidden starting state,
   nothing has to "finish" for a card to be visible. */
.profile-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-online {
  background: var(--status-online);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-online 1.5s infinite;
}

@keyframes pulse-online {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1.6);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
/* Welcome modal styling */
.welcome-modal {
  border-radius: var(--radius-xl);
  border: none;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.welcome-modal-header {
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  background: var(--brand-gradient);
  color: var(--text-darkest);
}

.welcome-modal-header .welcome-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.welcome-modal-header .welcome-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.welcome-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1.4rem;
}

.welcome-modal-body {
  padding: 1.3rem 1.5rem 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.welcome-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.welcome-section-text {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.welcome-list {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.welcome-list li + li {
  margin-top: 0.2rem;
}

.welcome-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.welcome-pill {
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  background: var(--gray-100);
  color: var(--gray-500);
}

.welcome-highlight {
  background: #fff7e6;
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  border: 1px dashed var(--brand-primary);
  margin-bottom: 1rem;
}

.welcome-modal-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.2rem;
}

/* Smaller on phones */
@media (max-width: 575.98px) {
  .welcome-modal-header {
    padding: 1rem 1.2rem;
  }
  .welcome-modal-body {
    padding: 1rem 1.2rem 1.2rem;
  }
}


/* Better select styling */
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  padding: 0.6rem 2.5rem 0.6rem 0.75rem;
  transition: all 0.2s ease;
  background-color: var(--bg-white);
}

.form-select:hover {
  border-color: var(--gray-400);
}

.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(244, 170, 36, 0.15);
  outline: none;
}

/* Limit dropdown height */
.form-select {
  min-height: 42px;
  max-width: 100%;
}

.form-select option:first-child {
  color: var(--gray-400);
}

/* Limit visible options in dropdown */
.form-select[size] {
  max-height: 250px;
}

/* .profile-tile uses aspect-ratio, so it already scales with the
   column width at every breakpoint without a manual height override. */
@media (max-width: 575.98px) {
  .profile-tile {
    aspect-ratio: 4 / 5;
  }
}
