/*
Theme Name: Heeps
Theme URI: https://theheeps.com
Author: The Heeps
Description: Custom theme for The Heeps — free, privacy-first dating. Dark app surfaces, warm friendly content pages. BuddyPress + GamiPress ready.
Version: 0.3.72
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Private — The Heeps. All rights reserved.
Text Domain: heeps
*/

/* ——— Heeps design tokens v0.2.0: the split ———
   App surfaces (discover, cards, hero): dark dusk, warm accents.
   Content pages (onboarding, articles): warm cream, friendly light. */
:root {
  --heeps-dusk: #1a1033;
  --heeps-dusk-deep: #120b24;
  --heeps-dusk-card: #221741;
  --heeps-dusk-elevated: #2b1e52;
  --heeps-ember: #ff6b4a;
  --heeps-flame: #f43f5e;
  --heeps-gold: #f5b942;
  --heeps-beacon: #8b5cf6;
  --heeps-cream: #fff8f0;
  --heeps-trust: #3ecf8e;
  --heeps-ink: #241a38;
  --heeps-ink-on-dark: #fff8f0;
  --heeps-muted: #8a7fa3;
  --heeps-muted-on-dark: #b9aed4;
  --heeps-line: rgba(255, 180, 120, .14);
  --heeps-radius-card: 22px;
  --heeps-font-display: "Nunito", system-ui, sans-serif;
  --heeps-font-body: "Inter", system-ui, sans-serif;
  --heeps-shadow-warm: 0 14px 40px rgba(255, 107, 74, .14);
}

* { box-sizing: border-box; }

/* v0.3.54 2026-09-30: images never overflow their containers (activity photo-change entries etc.) */
img { max-width: 100%; height: auto; }

body {
  margin: 0;
  font-family: var(--heeps-font-body);
  background: var(--heeps-cream);
  color: var(--heeps-ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--heeps-font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--heeps-flame); }
a:hover { color: var(--heeps-ember); }

.heeps-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header — dark, shared chrome */
.heeps-header {
  background: var(--heeps-dusk);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.heeps-header .heeps-wrap { display: flex; align-items: center; justify-content: space-between; }
.heeps-logo { font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.5rem; color: #fff; text-decoration: none; }
.heeps-logo span { color: var(--heeps-ember); }
.heeps-nav a { color: #fff; text-decoration: none; margin-left: 22px; font-weight: 600; opacity: .9; }
.heeps-nav a:hover { opacity: 1; color: var(--heeps-gold); }

/* Hamburger — hidden on desktop, owns the nav on mobile */
.heeps-menu-toggle { display: none; }

/* Buttons */
.heeps-btn {
  display: inline-block;
  font-family: var(--heeps-font-display);
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 1.05rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.heeps-btn-primary {
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, .35);
}
.heeps-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 30px rgba(244, 63, 94, .45); }
.heeps-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .4); }
.heeps-btn-ghost:hover { border-color: #fff; color: #fff; }

/* Hero — dark app surface */
.heeps-hero {
  background:
    radial-gradient(1000px 520px at 70% -10%, rgba(255, 107, 74, .20), transparent 60%),
    radial-gradient(800px 500px at 15% 20%, rgba(139, 92, 246, .14), transparent 60%),
    linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep));
  color: #fff;
  padding: 80px 0 56px;
  text-align: center;
}
.heeps-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; color: var(--heeps-cream); }
.heeps-hero h1 .free { color: var(--heeps-gold); }
.heeps-hero p.lead { font-size: 1.2rem; color: var(--heeps-muted-on-dark); max-width: 640px; margin: 0 auto 2em; }
.heeps-hero .heeps-btn + .heeps-btn { margin-left: 12px; }

/* Feature cards — warm light */
.heeps-features { padding: 40px 0 70px; }
.heeps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1020px) {
  .heeps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .heeps-grid { grid-template-columns: 1fr; }
}
.heeps-card {
  background: #fff;
  border-radius: var(--heeps-radius-card);
  padding: 30px 26px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .10);
}
.heeps-card .icon { font-size: 2rem; margin-bottom: .4em; }
.heeps-card h3 { font-size: 1.25rem; margin-bottom: .3em; color: var(--heeps-ink); }
.heeps-card p { color: var(--heeps-muted); margin: 0; }

/* Rank ladder — dark app surface */
.heeps-ranks { background: linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep)); color: #fff; padding: 70px 0 110px; text-align: center; }
.heeps-ranks h2 { color: var(--heeps-cream); }
.heeps-rank-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.heeps-rank-link { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.heeps-rank-link:hover .heeps-rank { transform: translateY(-2px); }
.heeps-rank {
  font-family: var(--heeps-font-display);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  color: #1a1033;
  background: var(--rank-color, var(--heeps-gold));
}
.heeps-rank.phoenix { background: linear-gradient(135deg, var(--heeps-gold), var(--heeps-flame)); color: #fff; }
.heeps-rank-vip {
  background: linear-gradient(135deg, #f5b942, #ffe9b0);
  color: #5b3a00; border-color: #f5b942;
  box-shadow: 0 0 0 2px rgba(245, 185, 66, .35), 0 6px 18px rgba(245, 185, 66, .35);
}

/* Profile / discover cards — dark app surface */
.heeps-profile-card {
  background: var(--heeps-dusk-card);
  border: 1px solid var(--heeps-line);
  border-radius: var(--heeps-radius-card);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .35);
  position: relative;
}
.heeps-profile-card img.avatar-art { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.heeps-profile-card .scrim {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  background: linear-gradient(transparent, rgba(18, 11, 36, .94));
}
.heeps-rank-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--heeps-font-display); font-weight: 800; font-size: .8rem;
  background: var(--rank-color, var(--heeps-gold)); color: #1a1033;
  padding: 6px 14px; border-radius: 999px;
}
.heeps-verified { color: var(--heeps-trust); font-weight: 700; font-size: .85rem; }

/* Onboarding / panels — warm light content surface */
.heeps-panel {
  background: #fff;
  border-radius: var(--heeps-radius-card);
  padding: 34px 30px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .10);
}
.heeps-panel h2, .heeps-panel h3 { color: var(--heeps-ink); }
.heeps-panel p { color: var(--heeps-muted); }
.heeps-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.heeps-style-card {
  background: var(--heeps-cream);
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
  padding-bottom: 12px;
}
.heeps-style-card:hover { transform: translateY(-3px); }
.heeps-style-card.selected {
  border-color: var(--heeps-ember);
  box-shadow: var(--heeps-shadow-warm);
}
.heeps-style-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.heeps-style-card .label { font-family: var(--heeps-font-display); font-weight: 800; color: var(--heeps-ink); padding: 10px 6px 0; }

/* ---- Form controls, dressed in theme colors ---- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1ff 100%);
  border: 1.5px solid rgba(139, 92, 246, .35);
  border-radius: 12px;
  color: var(--heeps-ink);
  padding: 11px 15px;
  font-family: var(--heeps-font-body);
  font-size: .98rem;
  max-width: 100%;
  box-shadow: inset 0 1px 3px rgba(26, 16, 51, .06);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, textarea:hover, select:hover {
  border-color: rgba(139, 92, 246, .6);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--heeps-beacon);
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18), inset 0 1px 3px rgba(26, 16, 51, .04);
}
::placeholder { color: var(--heeps-muted); opacity: .75; }

/* Full-width fields in stacked BuddyPress forms */
#buddypress .standard-form input[type="text"],
#buddypress .standard-form input[type="search"],
#buddypress .standard-form input[type="email"],
#buddypress .standard-form input[type="password"],
#buddypress .standard-form input[type="number"],
#buddypress .standard-form input[type="tel"],
#buddypress .standard-form input[type="url"],
#buddypress .standard-form input[type="date"],
#buddypress .standard-form textarea,
#buddypress .standard-form select {
  width: 100%;
}

/* Checkboxes + radios in theme purple */
#buddypress input[type="checkbox"],
#buddypress input[type="radio"] {
  accent-color: var(--heeps-beacon);
  width: 1.05rem;
  height: 1.05rem;
}

/* Logged-in user menu — avatar icon, upper right (greentv.com pattern) */
.heeps-user-menu { position: relative; margin-left: 18px; }
.heeps-user-avatar {
  background: linear-gradient(135deg, var(--heeps-dusk-card), var(--heeps-dusk));
  border: 2px solid var(--heeps-ember); border-radius: 50%;
  cursor: pointer; padding: 0; line-height: 0; text-decoration: none;
  width: 44px; height: 44px; overflow: hidden; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--heeps-gold); font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.2rem;
  transition: transform .15s ease, border-color .15s ease;
}
.heeps-user-avatar:hover { transform: scale(1.06); border-color: var(--heeps-gold); }
.heeps-user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.heeps-user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--heeps-dusk-card); border: 1px solid var(--heeps-line);
  border-radius: 16px; min-width: 220px; padding: 8px; z-index: 200;
  box-shadow: 0 18px 44px rgba(10, 6, 24, .5);
  margin: 0; list-style: none; white-space: nowrap;
}
/* Bridge the hover gap so the panel doesn't vanish between button and menu */
.heeps-user-dropdown::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.heeps-user-menu:hover .heeps-user-dropdown,
.heeps-user-menu:focus-within .heeps-user-dropdown { display: block; }
/* Phones: the first tap follows the avatar to the profile. The long menu
   (profile, timeline, photo, and the rest) stays a desktop hover. */
@media (max-width: 899px) {
  .heeps-user-dropdown { display: none !important; pointer-events: none; }
  .heeps-nav .heeps-nav-logout { display: inline; }
}
.heeps-nav-logout { display: none; }
.heeps-user-dropdown a {
  display: block; color: var(--heeps-cream); text-decoration: none;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; margin: 0; font-size: .95rem;
  line-height: 1.4;
}
.heeps-user-dropdown a:hover { background: rgba(255, 107, 74, .16); color: #fff; }

/* How it works */
.heeps-hero-slim { padding: 70px 0 80px; }
.heeps-eyebrow {
  font-family: var(--heeps-font-display); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; color: var(--heeps-gold); margin-bottom: 1em;
}
.heeps-how { padding: 70px 0; background: var(--heeps-cream); }
.heeps-how-step {
  display: flex; gap: 26px; align-items: flex-start;
  background: #fff; border-radius: var(--heeps-radius-card);
  padding: 34px 32px; margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .08);
}
.heeps-how-num {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff; font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.heeps-how-step h2 { color: var(--heeps-ink); font-size: 1.5rem; }
.heeps-how-step p { color: #4a3f63; }
.heeps-how-cta {
  text-align: center; background: linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep));
  border-radius: var(--heeps-radius-card); padding: 54px 30px; margin-top: 34px; color: #fff;
}
.heeps-how-cta h2 { color: var(--heeps-cream); }
.heeps-how-cta p { color: var(--heeps-muted-on-dark); }

@media (max-width: 640px) {
  .heeps-how-step { flex-direction: column; gap: 14px; padding: 26px 22px; }
}

/* Unlock explainers + teaser grids (Events / Groups) */
.heeps-unlock-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 14px;
}
.heeps-unlock-step {
  background: #fff; border-radius: var(--heeps-radius-card);
  padding: 24px; box-shadow: 0 12px 32px rgba(26, 16, 51, .08);
  display: flex; gap: 14px; align-items: flex-start;
}
.heeps-unlock-step span {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff; font-family: var(--heeps-font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.heeps-unlock-step p { color: #4a3f63; margin: 0; font-size: .95rem; }
.heeps-unlock-note { color: #6b5f86; font-size: .9rem; margin-bottom: 30px; }
.heeps-points-bar { margin-bottom: 30px; }
.heeps-points-track {
  height: 12px; border-radius: 999px; background: #e9e2f4; overflow: hidden; margin-bottom: 8px;
}
.heeps-points-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--heeps-ember), var(--heeps-gold));
  transition: width .4s ease;
}
.heeps-points-bar p { color: #4a3f63; font-size: .95rem; }
.heeps-teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px;
}
.heeps-teaser-card {
  background: #fff; border-radius: var(--heeps-radius-card); overflow: hidden;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.heeps-teaser-card:not(.locked):hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(26, 16, 51, .16); }
.heeps-teaser-thumb { position: relative; }
.heeps-teaser-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
/* Override heeps-app's contain+dark-bg on /groups/ — flags must fill, no bars. */
.heeps-teaser-thumb img { object-fit: cover !important; background: transparent !important; }
.heeps-teaser-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 16px;
  background: rgba(16, 8, 32, .78);
}
.heeps-teaser-lock p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .92); }
.heeps-teaser-lock .heeps-group-lock { position: static; background: none; padding: 0; border-radius: 0; }
.heeps-lock-word { margin: 0; font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; }
.heeps-lock-earn { color: #f5b942; font-weight: 800; text-decoration: none; }
.heeps-lock-earn:hover { color: #fff; }

/* Profile Groups tab — flag cards. The flag stays visible; the countdown sits on it. */
.heeps-pg { margin: 8px 0 36px; }
.heeps-pg-head h2 {
  margin: 0 0 .25rem; color: var(--heeps-ink); font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.heeps-pg-head p, .heeps-pg-empty { margin: 0 0 1rem; color: #6b5f86; }
.heeps-pg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.heeps-pg-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(36, 26, 56, .06);
  box-shadow: 0 14px 34px rgba(26, 16, 51, .1);
}
.heeps-pg-card.is-open:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26, 16, 51, .14); }
.heeps-pg-flag { position: relative; aspect-ratio: 3 / 2; background: #140c22; }
.heeps-pg-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heeps-pg-flag-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: #f5b942; font-size: 2.4rem; font-weight: 800;
}
.heeps-pg-lock {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(20,12,34,.05) 0%, rgba(20,12,34,.28) 38%, rgba(20,12,34,.88) 100%);
  color: #fff;
}
.heeps-pg-lock .heeps-group-lock {
  position: static; inset: auto; z-index: 1; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; gap: 3px;
  margin: 0; padding: 0; width: 100%; text-align: left;
  background: none; border-radius: 0; font-size: .86rem; font-weight: 650;
}
.heeps-pg-lock .heeps-lock-word { font-size: .78rem; letter-spacing: .16em; }
.heeps-pg-lock p { margin: 0; color: #fff; line-height: 1.3; }
.heeps-pg-body { padding: 14px 16px 16px; }
.heeps-pg-body h3 { margin: 0 0 .2rem; color: var(--heeps-ink); font-size: 1.05rem; }
.heeps-pg-meta { margin: 0 0 .7rem; color: #6b5f86; font-size: .86rem; }
.heeps-pg-card.is-locked .heeps-pg-body { padding-bottom: 16px; }
@media (max-width: 640px) {
  .heeps-pg-grid { grid-template-columns: 1fr; }
  .heeps-pg-flag { aspect-ratio: 16 / 9; }
}
.heeps-teaser-body { padding: 20px 22px 24px; }
.heeps-teaser-body h3 { color: var(--heeps-ink); font-size: 1.2rem; margin-bottom: .3em; }
.heeps-teaser-meta { color: #6b5f86; font-size: .9rem; margin-bottom: .6em; }
.heeps-example-tag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  background: var(--heeps-dusk); color: var(--heeps-gold);
  padding: 4px 10px; border-radius: 999px; margin: 0;
}
.heeps-btn-small { padding: 10px 22px; font-size: .9rem; }

@media (max-width: 720px) {
  .heeps-unlock-steps { grid-template-columns: 1fr; }
}

/* Footer — dark shared chrome */
.heeps-footer { background: var(--heeps-dusk); color: rgba(255, 255, 255, .65); padding: 40px 0; font-size: .9rem; }
.heeps-footer a { color: rgba(255, 255, 255, .85); }
.heeps-footer a:hover { color: var(--heeps-gold); }

/* Discover deck actions */
.heeps-deck-actions { display: flex; gap: 18px; justify-content: center; margin-top: 22px; }
.heeps-deck-actions button {
  width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.6rem; box-shadow: 0 8px 22px rgba(26, 16, 51, .25);
  transition: transform .15s ease;
}
.heeps-deck-actions button:hover { transform: scale(1.08); }
.heeps-nope { background: #fff; color: var(--heeps-ink); }
.heeps-super { background: var(--heeps-gold); color: #1a1033; }
.heeps-like { background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame)); color: #fff; }

/* Content pages — warm light */
.heeps-page { padding: 60px 0; }
.heeps-page .entry { max-width: 760px; margin: 0 auto; }
.heeps-page .entry h2, .heeps-page .entry h3 { color: var(--heeps-ink); }
.heeps-page .entry p, .heeps-page .entry li { color: #4a3f63; }

/* Discover embed */
.heeps-discover { padding: 3rem 0; }
.heeps-discover .heeps-wrap { max-width: 1100px; }

@media (max-width: 640px) {
  /* Hamburger takes over the nav on mobile */
  .heeps-menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: transparent; border: 2px solid rgba(255, 255, 255, .25); border-radius: 12px;
    cursor: pointer; flex: 0 0 auto;
  }
  .heeps-menu-toggle span {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  body.heeps-nav-open .heeps-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.heeps-nav-open .heeps-menu-toggle span:nth-child(2) { opacity: 0; }
  body.heeps-nav-open .heeps-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .heeps-header .heeps-wrap { flex-wrap: nowrap; }
  .heeps-logo, .heeps-menu-toggle { position: relative; z-index: 2; }
  .heeps-header .heeps-nav { display: none; }
  body.heeps-nav-open .heeps-header .heeps-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--heeps-dusk-deep);
    border-top: 1px solid var(--heeps-line);
    box-shadow: 0 24px 48px rgba(10, 5, 25, .5);
    padding: 8px 20px 20px;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }
  body.heeps-nav-open .heeps-header .heeps-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  body.heeps-nav-open .heeps-header .heeps-nav li { margin: 0; float: none; }
  body.heeps-nav-open .heeps-header .heeps-nav a {
    display: block; margin: 0; padding: 14px 4px;
    font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: static; float: none;
  }
  body.heeps-nav-open .heeps-header .heeps-nav li:last-child a,
  body.heeps-nav-open .heeps-header .heeps-nav > a:last-child { border-bottom: none; }
  .heeps-hero { padding: 48px 0 36px; }
  .heeps-hero .heeps-btn { display: block; margin: 0 auto 12px; max-width: 340px; }
  .heeps-hero .heeps-btn + .heeps-btn { margin-left: auto; }
  .heeps-hero .heeps-btn:last-child { margin-bottom: 0; }
  .heeps-panel { padding: 24px 20px; }
}

/* BuddyPress member pages — greentv.com two-row tab layout */
.heeps-bp { background: var(--heeps-cream); padding: 34px 0 70px; min-height: 60vh; }
.heeps-bp-tabrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.heeps-bp-tab {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: #fff; color: var(--heeps-ink); text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 2px solid rgba(26, 16, 51, .1); transition: all .15s ease;
}
.heeps-bp-tab:hover { border-color: var(--heeps-ember); color: var(--heeps-ember); }
.heeps-bp-tab.is-active {
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  border-color: transparent; color: #fff;
}
.heeps-bp-tabrow--heeps .heeps-bp-tab { background: var(--heeps-dusk-card); color: var(--heeps-cream); border-color: var(--heeps-line); }
.heeps-bp-tabrow--heeps .heeps-bp-tab:hover { border-color: var(--heeps-gold); color: var(--heeps-gold); }
.heeps-bp-tabrow--heeps .heeps-bp-tab.is-active {
  background: linear-gradient(135deg, var(--heeps-gold), var(--heeps-ember));
  color: #1a1033; border-color: transparent;
}
.heeps-bp-body {
  background: #fff; border-radius: var(--heeps-radius-card);
  padding: 34px 32px; margin-top: 18px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .08);
}
/* v0.3.47 2026-09-30: tighten the empty space above the profile cover
   (was 52px = 34px .heeps-bp padding-top + 18px .heeps-bp-body margin-top;
   now 28px). Scoped to profile pages so other layouts are untouched. */
body.buddypress.bp-user .heeps-bp { padding-top: 20px; }
body.buddypress.bp-user .heeps-bp .heeps-bp-body { margin-top: 8px; }

/* BP profile internals — fold into the greentv-style layout */
.heeps-bp #object-nav { display: none; } /* replaced by our tab rows above */
.heeps-bp #subnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.heeps-bp #subnav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--heeps-cream); color: var(--heeps-ink); text-decoration: none;
  border: 2px solid rgba(26, 16, 51, .1);
}
.heeps-bp #subnav .current a, .heeps-bp #subnav a:hover { border-color: var(--heeps-ember); color: var(--heeps-ember); }
.heeps-bp #item-header { margin-bottom: 6px; }
.heeps-bp #header-cover-image { min-height: 160px; border-radius: 18px; background-color: var(--heeps-dusk); }
.heeps-bp #item-header-avatar img { border-radius: 50%; border: 4px solid #fff; width: 120px; height: 120px; object-fit: cover; }
/* Beat BP Nouveau's `.single-headers #item-header-avatar a img { width:auto; height:auto }`
   and its inline-cover border rule: tie their specificity so theme order wins. */
#buddypress #item-header-cover-image #item-header-avatar img.avatar { width: 140px; height: 140px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; }

/* GreenTV-style profile header: cover full-bleed, avatar + name overlaid upper,
   GamiPress stat boxes overlaid along the bottom of the cover.
   2026-09-30: container grows with its content (min 300px) so the activity /
   online line, member-since, and rank can never be clipped by a fixed height. */
#buddypress #cover-image-container { margin: 0; position: relative; height: auto; min-height: 300px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
/* Remove #item-header side padding so full-bleed -32px margins reach the card edges exactly */
body.buddypress.bp-user #item-header {
  padding-left: 0; padding-right: 0;
  margin: -34px -32px 0;
  position: relative;
  box-sizing: border-box;
  background: #1a1033;
}
/* When the rank summary banner sits above the cover, cancel the negative
   pull-up so there is breathing room between the banner and the cover. */
#buddypress .heeps-public-profile + #item-header #cover-image-container { margin-top: 0; }
#buddypress #header-cover-image {
  /* absolute banner (BP Nouveau) stretches to the full container height */
  height: 100%; min-height: 300px;
  border-radius: var(--heeps-radius-card) var(--heeps-radius-card) 0 0;
  background-size: cover; background-position: center bottom;
  left: 0; right: 0; margin: 0;
  box-sizing: border-box;
}
#buddypress div#item-header {
  position: relative;
}
/* Let BP Nouveau's default float layout handle avatar-over-cover positioning */
#buddypress #item-header-cover-image #item-header-content h2.user-nicename {
  color: #fff; margin: 0 0 4px; font-size: 1.7rem;
  text-shadow: 0 2px 14px rgba(10, 5, 25, .65);
}
#buddypress #item-header-cover-image #item-header-content .activity { color: rgba(255,255,255,.88); }
#buddypress #item-header-cover-image #item-header-content .heeps-member-since { color: rgba(255,255,255,.82); font-size: .9rem; margin: 2px 0 0; }
.heeps-member-rank {
  color: #f3c96b; font-size: .95rem; font-weight: 700; margin: 4px 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.heeps-rank-icon { margin-right: 4px; }

/* Rank progress bar — custom (GamiPress premium add-on replacement, 2026-09-30) */
.heeps-progress {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 0; max-width: 340px;
}
.heeps-progress-icon { border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 8px rgba(243,201,107,.45); }
.heeps-progress-next { filter: grayscale(35%) brightness(.85); box-shadow: none; }
.heeps-progress-track {
  flex: 1 1 auto; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
}
.heeps-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3d, #f3c96b);
  box-shadow: 0 0 10px rgba(243,201,107,.7);
  transition: width .8s ease;
}
.heeps-progress-label { color: rgba(255,255,255,.92); font-size: .85rem; margin: 4px 0 0; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.heeps-progress-label strong { color: #f3c96b; }
@media (max-width: 640px) {
  .heeps-progress { max-width: 100%; }
}

/* Profile tabs sit under the cover, then stick beneath the site header.
   They are not inside #item-header, so the cover card cannot cover the header.
   The bar is solid so the cover cannot show through the labels. */
body.buddypress.bp-user #buddypress > .heeps-bp-tabs {
  margin: 0 -32px 12px;
}
body.buddypress.bp-user #buddypress > .heeps-bp-tabs .heeps-bp-tabrow {
  margin-top: 0;
}
.heeps-bp-tabs {
  position: relative;
  z-index: 6;
  background: #0e091c;
}
.heeps-bp-tabs .heeps-bp-tabrow,
.heeps-bp-tabs .heeps-bp-tabrow + .heeps-bp-tabrow {
  margin-top: 0;
}
@media (min-width: 721px) {
  .heeps-bp-tabs {
    position: sticky;
    top: var(--heeps-bar, 72px);
    z-index: 40;
  }
}

/* BP tab rows below header — GreenTV-style dark bar */
.heeps-bp-tabrow {
  display: flex; gap: 4px; margin: 16px 0 0; flex-wrap: wrap;
  padding: 12px 20px; list-style: none;
  background: #0e091c;
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
/* Ensure cover container matches tabrow width exactly */
/* Duplicate removed - container uses line 459 rule */
.heeps-bp-tabrow--heeps {
  background: #161028;
  border-radius: 0;
  margin-top: 16px;
  padding-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
}
.heeps-bp-tabrow + .heeps-bp-tabrow {
  margin-top: 8px;
}
.heeps-bp-tab {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: transparent; color: rgba(255,255,255,.75);
  text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: all .2s ease; border: none;
}
.heeps-bp-tab:hover {
  background: rgba(255,255,255,.1); color: #fff;
}
.heeps-bp-tab.is-active {
  background: #fff; color: #2d1b4e;
  font-weight: 700;
}
#buddypress #item-header-cover-image #item-header-content .member-header-actions { margin-top: 8px; }
/* GamiPress stat boxes on the cover - in normal flow, not overlapping */
.heeps-cover-stats {
  display: flex; gap: 14px; padding: 16px 36px;
  background: rgba(14, 9, 28, .9);
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
}
.heeps-stat {
  flex: 1 1 0; background: rgba(14, 9, 28, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 16px 10px 12px; text-align: center;
}
.heeps-stat-icon {
  width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 8px;
  background: radial-gradient(circle at 35% 30%, #f6d47e, #d99a2b 70%);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.heeps-stat-value {
  display: block; color: #f3c96b; font-weight: 800; font-size: 1.45rem; line-height: 1.15;
  font-family: var(--heeps-font-display);
}
.heeps-stat-label {
  display: block; margin-top: 4px; color: rgba(255,255,255,.72);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
@media (max-width: 640px) {
  #buddypress #cover-image-container { height: auto; min-height: 0; }
  #buddypress #header-cover-image { height: 100%; min-height: 280px; }

  #buddypress #cover-image-container,
  #buddypress .heeps-bp-tabrow,
  #buddypress .heeps-bp-tabrow--heeps {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
  }
  body.buddypress.bp-user #item-header {
    overflow-x: clip;
  }
  /* Stack the cover overlay so the name, buttons, and rank bar stay inside the photo. */
  .heeps-bp #item-header-cover-image { min-height: 0; padding-bottom: 12px; }
  .heeps-bp #item-header-cover-image #item-header-avatar {
    float: none;
    width: 96px;
    margin: 18px auto 0;
    text-align: center;
  }
  .heeps-bp #item-header-cover-image #item-header-avatar a { display: block; text-align: center; }
  #buddypress #item-header-cover-image #item-header-avatar img.avatar,
  .heeps-bp #item-header-cover-image #item-header-avatar img.avatar {
    width: 96px;
    height: 96px;
  }
  .heeps-bp #item-header-cover-image #item-header-content {
    float: none;
    clear: none;
    width: auto;
    margin: 8px 16px 12px;
    text-align: center;
  }
  #buddypress #item-header-cover-image #item-header-content h2.user-nicename { font-size: 1.25rem; }
  .heeps-bp #item-header-cover-image #item-header-content .heeps-progress {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  #buddypress #item-header-cover-image #item-header-content .member-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  #buddypress #item-header-content .member-header-actions .generic-button,
  .single-headers #item-header-content div.generic-button,
  .single-headers #item-header-content a.button {
    float: none;
    display: inline-block;
    width: auto;
    margin: 0;
  }
  .heeps-cover-stats { padding: 12px 18px; gap: 8px; }
  .heeps-stat { padding: 10px 6px 8px; }
  .heeps-stat-icon { width: 30px; height: 30px; font-size: 15px; margin-bottom: 5px; }
  .heeps-stat-value { font-size: 1.05rem; }
  .heeps-stat-label { font-size: .56rem; }
}
.heeps-bp .heeps-public-profile {
  background: var(--heeps-cream); border-radius: 16px; padding: 20px 22px; margin-bottom: 20px;
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
}
.heeps-bp .heeps-face-letter {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px;
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff; font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Match rows — full-row layout: photo left, bio info right */
.heeps-bp ul.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.heeps-bp ul.item-list > li {
  background: var(--heeps-cream); border-radius: var(--heeps-radius-card);
  border: 2px solid rgba(26, 16, 51, .08); overflow: hidden; margin: 0;
}
.heeps-bp ul.item-list .list-wrap { display: flex; gap: 22px; padding: 20px; align-items: stretch; }
.heeps-bp ul.item-list .item-avatar { flex: 0 0 170px; }
.heeps-bp ul.item-list .item-avatar a { display: block; }
.heeps-bp ul.item-list .item-avatar img {
  width: 170px; height: 190px; object-fit: cover; border-radius: 14px; display: block;
  border: 3px solid #fff; box-shadow: 0 8px 20px rgba(26, 16, 51, .18);
}
.heeps-bp ul.item-list .item { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.heeps-bp ul.item-list .list-title { margin: 0 0 6px; font-size: 1.35rem; }
.heeps-bp ul.item-list .list-title a { color: var(--heeps-ink); text-decoration: none; font-family: var(--heeps-font-display); font-weight: 800; }
.heeps-bp ul.item-list .list-title a:hover { color: var(--heeps-ember); }
.heeps-bp ul.item-list .item-meta { margin: 0 0 10px; font-size: .88rem; opacity: .7; }
.heeps-bp ul.item-list .user-content, .heeps-bp ul.item-list .item-bio { font-size: .95rem; line-height: 1.55; }
.heeps-bp ul.item-list .member-buttons, .heeps-bp ul.item-list .action { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .heeps-bp ul.item-list .list-wrap { flex-direction: column; }
  .heeps-bp ul.item-list .item-avatar { flex-basis: auto; }
  .heeps-bp ul.item-list .item-avatar img { width: 120px; height: 135px; }
}
/* heeps-app custom match cards, if present */
.heeps-match-row { display: flex; gap: 22px; padding: 20px; background: var(--heeps-cream); border-radius: var(--heeps-radius-card); border: 2px solid rgba(26, 16, 51, .08); }
.heeps-social-panel .heeps-match-row .heeps-match-photo { flex: 0 0 16rem; width: 16rem; height: 21rem; border-radius: 1.15rem; overflow: hidden; }
.heeps-social-panel .heeps-match-row .heeps-match-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; border-radius: 0; border: 0; box-shadow: none; }
/* BuddyPress leaves the timeline composer avatar at its file size. */
body #buddypress .activity-update-form #whats-new-avatar { float: left; width: 48px; margin: 0 12px 0 0; }
body #buddypress .activity-update-form #whats-new-avatar img { width: 48px; height: 48px; max-width: 48px; border-radius: 50%; object-fit: cover; display: block; }
body #buddypress .activity-update-form #whats-new-content,
body #buddypress .activity-update-form #whats-new-post-in-box,
body #buddypress .activity-update-form #whats-new-submit { margin-left: 60px; }
@media (max-width: 640px) {
  .heeps-social-panel .heeps-match-row { flex-direction: column; }
  .heeps-social-panel .heeps-match-row .heeps-match-photo { flex: 0 0 auto; width: 100%; height: 18rem; }
}
.heeps-match-row .heeps-match-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

/* Hide BuddyPress default member nav (wonky relative URLs) — theme tab rows are the nav. */
.heeps-bp #buddypress #item-nav,
.heeps-bp #buddypress .bp-navs.user-nav,
.heeps-bp #buddypress ul.item-list-tabs#object-nav {
  display: none !important;
}

/* Hide the broken secondary Activity-menu row (its Friends/Groups links are wonky). */

/* Activity subnav Friends/Groups pills are rewritten via JS to the actual lists. */

/* Hide BP's default subnav on member profiles — the theme has its own tab rows (greentv pattern).
   Exception: Settings screens, where Build's subnav tabs (Dating & Privacy) live. */
.heeps-bp #subnav.bp-subnavs,
.heeps-bp nav#subnav {
  display: none !important;
}
.heeps-bp.heeps-comp-settings #subnav.bp-subnavs,
.heeps-bp.heeps-comp-settings nav#subnav {
  display: block !important;
}

/* Onboarding polish removed 2026-09-29 - was breaking the builder */

/* Messages page header - same BP structure, theme wrapper.
   NOTE 2026-09-30: page-messages.php is not deployed on the server; the live
   /messages/ page renders from page-68.php (ID template). Keep this block
   in sync with that intent and do NOT absolutely position here — .heeps-bp
   also wraps the member profile header via buddypress.php. */
.heeps-bp #item-header-cover-image {
  min-height: 225px;
  margin-bottom: 0;
  padding-bottom: 16px;
  background: transparent;
  border-radius: 16px;
  position: relative;
}
.heeps-bp #item-header-cover-image #item-header-avatar {
  margin-top: 145px;
  float: left;
  overflow: visible;
  width: auto;
  margin-left: 24px;
}
.heeps-bp #item-header-cover-image #item-header-avatar img.avatar {
  width: 140px; height: 140px;
  border: 4px solid #fff; border-radius: 50%;
  object-fit: cover;
}
.heeps-bp #item-header-cover-image #item-header-content {
  clear: both;
  float: left;
  margin-left: 190px;
  margin-top: -140px;
  width: auto;
  color: #fff;
}
.heeps-bp #item-header-cover-image #item-header-content h2.user-nicename {
  color: #fff; margin: 0 0 4px; font-size: 1.7rem;
  text-shadow: 0 2px 14px rgba(10, 5, 25, .65);
}
.heeps-bp #item-header-cover-image #item-header-content .heeps-member-since {
  color: rgba(255,255,255,.82); font-size: .9rem; margin: 2px 0 0;
}

/* v0.3.50 2026-09-30: affiliate testing-resources block (Ulta Lab Tests) */
.heeps-testing-resources {
  margin: 48px 0 8px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #241a4d 0%, #1a1033 100%);
  border: 1px solid rgba(232, 131, 107, .25);
  color: #fff;
}
.heeps-testing-resources h2 { margin: 0 0 12px; font-size: 1.6rem; }
.heeps-testing-resources p { opacity: .92; line-height: 1.6; }
.heeps-testing-resources .heeps-btn { margin-top: 8px; display: inline-block; }
.heeps-affiliate-disclosure { margin-top: 16px; font-size: .8rem; opacity: .65; }

/* v0.3.51 2026-09-30: homepage testing band + ad slot placeholder */
.heeps-testing-band { padding: 8px 0 40px; }
.heeps-testing-band .heeps-testing-resources { margin: 0; }
.heeps-ad { display: flex; justify-content: center; }

/* State-group lock: dark overlay on the main list and a member's groups list. */
.heeps-bp li.heeps-group-locked .list-wrap { position: relative; }
.heeps-bp li.heeps-group-locked .heeps-group-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; margin: 0; padding: 16px; text-align: center;
  background: #140c22; color: #fff; border-radius: 14px;
  font-size: .95rem; font-weight: 600;
}
.heeps-bp li.heeps-group-locked .heeps-group-lock p { margin: 0; color: #fff; }


/* Suggested for you — horizontal member rows on the dark theme.
 * Rows/cards use deep purple panels so the theme's light text reads cleanly. */
.heeps-suggested .heeps-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;opacity:.7;margin:0;color:#fff8f0}
.heeps-suggested h1{font-size:clamp(1.6rem,4vw,2.2rem);margin:.35rem 0;letter-spacing:-.02em;color:#fff8f0}
.heeps-suggested h1 .free{color:#7fd6a0}
.heeps-suggested .lead{opacity:.85;max-width:38rem;color:#fff8f0}
.heeps-sugg-filters{background:#241a38;border:1px solid rgba(255,248,240,.12);border-radius:1rem;padding:1rem;margin:1.1rem 0;display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}
.heeps-sugg-filters label{display:grid;gap:.25rem;font-size:.78rem;font-weight:700;color:#fff8f0}
.heeps-sugg-filters label.grow{flex:1 1 12rem}
.heeps-sugg-filters label.chk{display:flex;flex-direction:row;align-items:center;gap:.35rem;font-weight:650}
.heeps-sugg-filters input[type=search],.heeps-sugg-filters select{font:inherit;padding:.45rem .55rem;border-radius:.55rem;border:1px solid rgba(255,248,240,.2);background:#fff;color:#241a38;min-width:0}
.heeps-sugg-count{font-size:.9rem;opacity:.8;margin:.5rem 0 1rem;color:#fff8f0}
.heeps-sugg-list{display:grid;gap:1rem}
.heeps-sugg-row{display:flex;gap:1.1rem;background:#1a1033;border:1px solid rgba(255,248,240,.1);border-radius:1rem;padding:1rem;align-items:flex-start;box-shadow:0 12px 28px rgba(0,0,0,.25)}
.heeps-sugg-photo{flex:0 0 120px;width:120px;height:120px;border-radius:.8rem;overflow:hidden;background:linear-gradient(165deg,#5a3050,#1a1033)}
.heeps-sugg-photo a{display:block;width:100%;height:100%}
.heeps-sugg-photo img{width:120px;height:120px;object-fit:cover;display:block}
.heeps-sugg-fallback{display:grid;place-items:center;width:120px;height:120px;font-size:3rem;font-weight:800;color:#fff8f0}
.heeps-sugg-info{flex:1;min-width:0}
.heeps-sugg-top{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.heeps-sugg-top h2{margin:0;font-size:1.25rem;letter-spacing:-.01em;color:#fff8f0}
.heeps-sugg-points{margin:.2rem 0 0;font-weight:700;font-size:.9rem;color:#f5b942}
.heeps-sugg-sub{margin:.25rem 0;font-size:.88rem;opacity:.85;color:#fff8f0}
.heeps-sugg-bio{margin:.35rem 0 .6rem;line-height:1.5;color:#fff8f0}
.heeps-verified{color:#7fd6a0;font-weight:700}
.heeps-sugg-pager{display:flex;gap:.4rem;flex-wrap:wrap;margin:1.25rem 0}
@media (max-width:560px){
  .heeps-sugg-photo{flex-basis:88px;width:88px;height:88px}
  .heeps-sugg-photo img,.heeps-sugg-fallback{width:88px;height:88px}
  .heeps-sugg-fallback{font-size:2.2rem}
}

/* Rank pills stay on one line in a browser. The phone grid is unchanged. */
@media (min-width: 641px) {
  .heeps-rank-row { flex-wrap: nowrap; gap: 8px; }
  .heeps-rank { padding: 8px 14px; white-space: nowrap; }
}
/* Rank pills — even gutters on a phone. Desktop row stays a centered flex line. */
@media (max-width: 640px) {
  .heeps-rank-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    justify-items: stretch;
    margin-top: 18px;
  }
  .heeps-rank-row.is-start { justify-content: stretch; }
  .heeps-rank-link { display: block; }
  .heeps-rank-row .heeps-rank {
    display: block;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 10px;
  }
  .heeps-how-actions { justify-content: center; }
}

.heeps-rank-row.is-start { justify-content: flex-start; }
.heeps-how-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; margin-top: 8px; }
.heeps-how-actions .heeps-btn { margin: 0; }

/* New members marquee + site activity roll */
.heeps-new-members { padding: 28px 0 8px; overflow: hidden; }
.heeps-new-members h2 { text-align: center; margin: 0 0 14px; font-size: 1.45rem; }
.heeps-marquee { overflow: hidden; }
.heeps-marquee-track { display: flex; width: max-content; animation: heeps-marquee 48s linear infinite; }
.heeps-marquee:hover .heeps-marquee-track,
.heeps-marquee:focus-within .heeps-marquee-track { animation-play-state: paused; }
.heeps-marquee-set { display: flex; gap: 14px; padding-right: 14px; }
.heeps-member-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #1a1033; text-decoration: none;
  border-radius: 999px; padding: 6px 16px 6px 6px;
  box-shadow: 0 8px 20px rgba(26, 16, 51, .08);
  font-weight: 700;
}
.heeps-member-chip img,
.heeps-member-letter { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px; }
.heeps-member-letter {
  display: grid; place-items: center;
  background: #241a38; color: #f5b942; font-weight: 800;
}
@keyframes heeps-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.heeps-activity-roll { padding: 10px 0 36px; }
.heeps-activity-roll h2 { text-align: center; margin: 0 0 6px; }
.heeps-roll-lead { text-align: center; color: #4a3f63; max-width: 40rem; margin: 0 auto 16px; }
.heeps-activity-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 10px; }
.heeps-activity-list li { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 8px 20px rgba(26, 16, 51, .06); }
.heeps-activity-action { margin: 0 0 4px; color: #1a1033; }
.heeps-activity-action a { color: #9a3412; font-weight: 700; }
.heeps-activity-text { margin: 0; color: #4a3f63; }
.heeps-activity-when { margin: 6px 0 0; font-size: .8rem; color: #8a7e99; }
.heeps-roll-more { text-align: center; margin: 14px 0 0; }
.heeps-directory-intro { margin: 0 0 18px; }
@media (prefers-reduced-motion: reduce) {
  .heeps-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .heeps-marquee-set[data-marquee-clone] { display: none; }
}

/* Timeline: labeled Comment button. The count used to be the only visible hit target.
   The action row is not always .activity-meta (AJAX renders it as "-meta"), so target the button itself. */
body #buddypress a.acomment-reply.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--heeps-ink);
  border: 1px solid rgba(26, 16, 51, .22);
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  font-family: var(--heeps-font-body);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}
body #buddypress a.acomment-reply.button:before {
  content: none;
}
body #buddypress a.acomment-reply.button:hover,
body #buddypress a.acomment-reply.button:focus {
  background: var(--heeps-cream);
  color: var(--heeps-ink);
  border-color: var(--heeps-ember);
}
body #buddypress a.acomment-reply.button .heeps-comment-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  background: none;
  color: inherit;
  font-weight: 700;
}
body #buddypress a.acomment-reply.button .comment-count {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--heeps-dusk);
  color: var(--heeps-cream);
  font-size: 0.75rem;
  line-height: 1.35rem;
  text-align: center;
}
/* Hover "Comment" sits above the button. Below it, the next card covered the lower half. */
body #buddypress .activity-list,
body #buddypress .activity-list .activity-item,
body #buddypress .activity-list .activity-content {
  overflow: visible;
}
body #buddypress .activity-list .activity-item:hover,
body #buddypress .activity-list .activity-item:focus-within {
  position: relative;
  z-index: 8;
}
body #buddypress .activity-list a.acomment-reply.button.bp-tooltip:after {
  top: auto;
  bottom: calc(100% + 8px);
  left: 50%;
  margin-top: 0;
  transform: translate(-50%, 0);
  z-index: 40;
}

/* Member Timeline: one member, short rows, small round face, no card fill. */
body.bp-user.activity #buddypress .activity-list.bp-list {
  background: transparent;
  border: 0;
  padding: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 16, 51, .08);
  box-shadow: none;
  margin: 0;
  padding: 8px 0;
  min-height: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-avatar {
  float: left;
  width: 36px;
  margin: 2px 10px 0 0;
  text-align: left;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-avatar img,
body.bp-user.activity #buddypress .activity-list .activity-item div.item-avatar img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-content {
  background: transparent;
  margin: 0;
  padding: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-header {
  width: auto;
  margin: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-inner,
body.bp-user.activity #buddypress .activity-list .activity-item .activity-content blockquote,
body.bp-user.activity #buddypress .activity-list .activity-item .activity-meta.action {
  background: transparent;
  border: 0;
  margin: 2px 0 0;
  padding: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-item .activity-inner p {
  margin: 0;
}
body.bp-user.activity #buddypress .activity-list .activity-inner .bp-member-activity-preview {
  display: none;
}

/* Pip hotfix 2026-10-03, folded from Customizer Additional CSS. */
.heeps-bp-tabrow {
  background: transparent;
  border: 2px solid rgba(245, 185, 66, .45);
  border-radius: 26px;
  overflow: hidden;
  padding: 10px 12px;
  margin: 20px 12px 18px;
  box-shadow: 0 10px 28px rgba(26, 16, 51, .25);
}
.heeps-bp-tabrow .heeps-bp-tab {
  border-radius: 999px;
  background: rgba(26, 16, 51, .85);
  color: var(--heeps-ink-on-dark, #fff8f0);
  border: 2px solid transparent;
}
body.bp-user:not(.my-profile) #subnav,
body.bp-user:not(.my-profile) #item-nav,
body.bp-user:not(.my-profile) .heeps-bp-tabs,
body.bp-user:not(.my-profile) .heeps-bp-tabrow {
  display: none;
}
.heeps-bp-tabrow .heeps-bp-tab:hover {
  border-color: var(--heeps-gold, #f5b942);
  color: var(--heeps-gold, #f5b942);
}
.heeps-bp-tabrow .heeps-bp-tab.is-active {
  background: linear-gradient(135deg, var(--heeps-ember, #ff6b4a), var(--heeps-flame, #f43f5e));
  color: #fff;
  border-color: transparent;
}
#buddypress .activity-list .activity-item,
#buddypress ul.activity-list li.activity-item {
  background: #fff;
  border: 2px solid rgba(26, 16, 51, .1);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(26, 16, 51, .06);
}
#buddypress .ac-form {
  background: var(--heeps-cream, #fff8f0);
  border: 2px solid rgba(26, 16, 51, .12);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}
#buddypress .ac-form .ac-textarea,
#buddypress .ac-form textarea {
  width: 100%;
  border: 2px solid rgba(26, 16, 51, .15);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
#buddypress .ac-form .ac-textarea:focus,
#buddypress .ac-form textarea:focus {
  outline: none;
  border-color: var(--heeps-ember, #ff6b4a);
}
#buddypress .ac-form input[type="submit"],
#buddypress .ac-form button[type="submit"] {
  background: linear-gradient(135deg, var(--heeps-ember, #ff6b4a), var(--heeps-flame, #f43f5e));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  font-weight: 700;
  cursor: pointer;
}
#buddypress .ac-form .ac-reply-cancel {
  display: inline-block;
  border: 2px solid rgba(26, 16, 51, .15);
  border-radius: 999px;
  padding: 8px 20px;
  margin-left: 8px;
  color: var(--heeps-ink, #241a38);
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}
#buddypress #activity-filter-by,
#buddypress select#activity-filter-by {
  border: 2px solid rgba(26, 16, 51, .15);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  max-width: 100%;
}
.heeps-member-card { overflow: hidden; }
.heeps-member-meta { overflow-wrap: break-word; word-break: break-word; }
.heeps-member-meta h2, .heeps-member-meta p { overflow: hidden; text-overflow: ellipsis; }
.heeps-testing-slim {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
  background: #1a1033; border: 2px solid #c9a227; border-radius: 14px;
  padding: 14px 20px; margin: 24px 0;
}
.heeps-testing-slim-text { color: #f5efe0; font-size: 15px; flex: 1 1 240px; }
.heeps-testing-slim-text strong { color: #ffb347; }
.heeps-btn-small { padding: 8px 18px !important; font-size: 14px !important; white-space: nowrap; }
.heeps-sponsored-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #c9a227; opacity: .8; }
.heeps-testing-slim-logo { height: 52px; width: auto; flex: 0 0 auto; border-radius: 8px; background: #fff; padding: 4px; }
.heeps-testing-resources > img:first-child { height: 64px; width: auto; margin-bottom: 12px; background: #fff; border-radius: 10px; padding: 6px; }
@media (max-width: 480px) {
  .heeps-member-meta { padding: 0 .8rem .9rem; }
  .heeps-member-meta h2 { font-size: 1.15rem; line-height: 1.25; }
  .heeps-member-meta .heeps-member-vibe, .heeps-member-meta .heeps-member-sub {
    font-size: .82rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .heeps-member-meta .heeps-btn { padding: 8px 18px; font-size: .85rem; }
  .heeps-chip { font-size: .58rem; }
  .heeps-bp-tabrow { gap: 8px; padding: 8px 10px; }
  .heeps-bp-tabrow .heeps-bp-tab { padding: 8px 14px; font-size: .82rem; }
}

/* Homepage, login, register, public chat, and messages share the starry dusk cover
   with a dark veil. The animated sky sits on top of this. Other pages stay cream. */
body.heeps-home {
  background-color: #120b24;
  background-image:
    linear-gradient(rgba(18, 11, 36, 0.72), rgba(10, 6, 22, 0.82)),
    url("/wp-content/themes/heeps/assets/default-profile-cover.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}
body.heeps-home.heeps-discover-page,
body.register,
body.heeps-public-chat,
body.heeps-messages {
  background:
    linear-gradient(rgba(18, 11, 36, 0.72), rgba(10, 6, 22, 0.82)),
    url("/wp-content/themes/heeps/assets/default-profile-cover.jpg") center center / cover no-repeat fixed !important;
}
body.heeps-home .heeps-hero,
body.heeps-home .heeps-ranks,
body.heeps-home .heeps-features,
body.heeps-home .heeps-discover,
body.heeps-home .heeps-activity-roll,
body.heeps-home .heeps-testing-band {
  background: transparent;
}
body.heeps-home .heeps-activity-roll h2,
body.heeps-home .heeps-roll-lead {
  color: #fff8f0;
}
body.heeps-home .heeps-roll-more a {
  color: #f5b942;
}
body.heeps-public-chat .heeps-wrap > h1 {
  color: #fff;
}

/* Friendship buttons: dark text for readability (2026-10-14) */
#buddypress .member-header-actions .generic-button.friendship-button a,
#buddypress .member-header-actions .generic-button.friendship-button button,
#buddypress .generic-button.friendship-button a,
#buddypress .generic-button.friendship-button button,
.buddypress .friendship-button a,
.buddypress .friendship-button button {
  color: #1a1033 !important;
}
/* Public Message button in member header actions */
#buddypress .member-header-actions .generic-button a,
#buddypress .member-header-actions .generic-button button {
  color: #1a1033 !important;
}

/* Badge mobile responsiveness (2026-10-14)
 * Fix badge pill truncation on mobile. Badges should wrap gracefully
 * and remain readable on small screens.
 */
.heeps-badge-verified,
.heeps-badge-career,
.heeps-badge-vip,
.heeps-badge-upgraded,
.heeps-badge-hiv,
.heeps-tested-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .heeps-badge-verified,
    .heeps-badge-career,
    .heeps-badge-vip,
    .heeps-badge-upgraded,
    .heeps-badge-hiv {
        font-size: .62rem !important;
        padding: .15rem .4rem !important;
        letter-spacing: .02em !important;
        white-space: normal !important;
        text-overflow: clip !important;
        line-height: 1.3;
    }
    .heeps-tested-badge {
        font-size: .68rem !important;
        max-width: 100% !important;
        white-space: normal !important;
    }
    /* Badge container: allow wrapping on mobile */
    #item-header-content .heeps-badge-verified,
    #item-header-content .heeps-badge-career,
    #item-header-content .heeps-badge-vip,
    #item-header-content .heeps-badge-upgraded,
    #item-header-content .heeps-badge-hiv {
        margin-bottom: .2rem;
    }
}

/* ============================================
   HEEPS ICON BADGES — SVG Shield/Trophy Design
   Added 2026-10-14: Replaces text pills with
   gold-outlined SVG shield/trophy icons
   ============================================ */

/* New SVG icon badges (from heeps_cover_chips snippet) */
.heeps-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 .3rem .3rem 0;
    vertical-align: middle;
    position: relative;
    cursor: help;
    transition: transform .2s ease, filter .2s ease;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, .3));
}

.heeps-icon-badge img {
    width: 48px;
    height: 48px;
    display: block;
}

.heeps-icon-badge:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, .5));
}

.heeps-icon-badge-date {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .55rem;
    font-weight: 700;
    color: #D4AF37;
    background: rgba(18, 11, 36, .85);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* Convert plugin text pills to SVG icons */
.heeps-badge-verified,
.heeps-badge-career,
.heeps-badge-vip {
    display: inline-block !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 .3rem .3rem 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    vertical-align: middle;
    cursor: help;
    transition: transform .2s ease, filter .2s ease;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, .3));
}

.heeps-badge-verified:hover,
.heeps-badge-career:hover,
.heeps-badge-vip:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, .5));
}

.heeps-badge-verified {
    background-image: url('assets/badges/verified.svg') !important;
}

.heeps-badge-career {
    background-image: url('assets/badges/career-verified.svg') !important;
}

.heeps-badge-vip {
    background-image: url('assets/badges/vip.svg') !important;
}

/* Tested badge: icon + date text below */
.heeps-tested-badge {
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem .3rem .3rem !important;
    background: rgba(18, 11, 36, .7) !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 12px !important;
    color: #FDE68A !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    max-width: none !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.heeps-tested-badge::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-image: url('assets/badges/tested.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile: smaller badges */
@media (max-width: 480px) {
    .heeps-icon-badge,
    .heeps-badge-verified,
    .heeps-badge-career,
    .heeps-badge-vip {
        width: 36px !important;
        height: 36px !important;
        margin: 0 .2rem .2rem 0 !important;
    }
    .heeps-icon-badge img {
        width: 36px;
        height: 36px;
    }
    .heeps-icon-badge-date {
        font-size: .48rem;
        bottom: -6px;
    }
    .heeps-tested-badge {
        font-size: .65rem !important;
    }
    .heeps-tested-badge::before {
        width: 28px;
        height: 28px;
    }
}


/* GamiPress credibility points hover tooltip on member profiles */
.gamipress-buddypress-points,
.gamipress-buddypress-points-label {
  position: relative;
}
.gamipress-buddypress-points {
  cursor: help;
}
.gamipress-buddypress-points::after {
  content: "Earn credibility points by: uploading photos (+5), completing your profile (+50), making friends, getting matches, participating in group chats, messaging, daily logins (+5/day), 7-day streaks (+25), and earning badges. Climb from Spark to Phoenix!";
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  max-width: 80vw;
  padding: 12px 14px;
  background: #1a1033;
  color: #f5f0e6;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid #d4af37;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
  pointer-events: none;
  text-align: left;
  font-weight: normal;
  white-space: normal;
}
.gamipress-buddypress-points:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
  .gamipress-buddypress-points::after {
    width: 220px;
    font-size: 12px;
  }
}

/* Online status green dot & gated info (2026-10-14) */
.heeps-online-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
}
#item-header-avatar {
  position: relative;
}
.heeps-online-dot-card {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: auto;
  width: 12px;
  height: 12px;
}
/* Swipe/discover cards: green dot for data-online="1" */
article[data-online="1"] .card-face::after,
.heeps-discover-card[data-online="1"]::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  z-index: 10;
}
article[data-online="1"] .card-face,
.heeps-discover-card[data-online="1"] {
  position: relative;
}
/* Gated STD/location info */
.heeps-gated-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 13px;
}
.heeps-gated-std,
.heeps-gated-loc {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 2px 10px;
  color: #e8e0d0;
}
.heeps-gated-lock {
  margin-top: 6px;
  font-size: 12px;
  color: #a0a0a0;
  opacity: 0.8;
}
@media (max-width: 480px) {
  .heeps-online-dot {
    width: 12px;
    height: 12px;
    bottom: 6px;
    right: 6px;
  }
}
