/* =========================================================
   Balo — PROFILE (profile.php)
   Scoped to .pf-body; NO page background edits.
   ========================================================= */

:root{
  --pf-max: 1080px;
  --radius: 18px;
  --gap: clamp(16px, 2.2vw, 24px);

  --text: var(--zen-text, #e9eefb);
  --muted: var(--zen-muted, #9aa6b0);

  --card-bd: var(--zen-card-bd, rgba(148,163,184,.12));
  --shadow: var(--zen-shadow, 0 10px 30px rgba(0,0,0,.36));

  --input-bg: color-mix(in srgb, #0b1224 72%, transparent);
  --input-bd: rgba(148,163,184,.22);
  --input-bd-focus: rgba(129,140,248,.65);
}

/* Shell spacing — do not paint background */
.pf-body .pf-wrap{
  padding: clamp(16px, 3.5vw, 32px) 16px clamp(28px, 5vw, 56px);
}

/* HERO */
.pf-body .pf-hero{
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 16px clamp(20px, 4vw, 40px);
  isolation: isolate;
}
.pf-body .pf-logo{
  display:inline-block;
  width:160px; height:160px; border-radius:50%; object-fit:cover;
}
.pf-body .pf-shimmer{
  position:absolute; inset:0; pointer-events:none; mix-blend-mode:screen;
  background:
    radial-gradient(880px 520px at 20% -8%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(760px 460px at 80% -12%, rgba(255,214,165,.06), transparent 60%);
}
.pf-body .pf-title{
  color: var(--text);
  font-size: clamp(28px, 5.2vw, 48px);
  line-height:1.1;
  margin: 12px 0 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pf-body .pf-sub{
  color: var(--text);
  opacity: .95;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 70ch;
  margin: 0 auto;
}

/* CARDS */
.pf-body .pf-card{
  max-width: var(--pf-max);
  margin: 18px auto 0 auto;
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.pf-body .pf-h2{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height:1.2;
  color: var(--text);
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ABOUT header */
.pf-body .pf-header{
  display:grid; gap: var(--gap);
  grid-template-columns: 120px 1fr;
  align-items:center;
}
@media (max-width: 720px){
  .pf-body .pf-header{ grid-template-columns: 1fr; text-align:center; }
}
.pf-body .pf-avatar{
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.pf-body .pf-name{
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 6px;
  color: var(--text);
}
.pf-body .pf-bio{
  margin: 0 0 10px; color: var(--text); opacity: .95;
}
.pf-body .muted{ color: var(--muted); }

/* Actions */
.pf-body .pf-actions{ display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width: 720px){ .pf-body .pf-actions{ justify-content:center; } }

.pf-body .btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  border:1px solid rgba(148,163,184,.22);
  color:#fff; text-decoration:none; cursor:pointer;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(99,102,241,.20), rgba(99,102,241,0)),
    linear-gradient(180deg, rgba(39,55,110,.92), rgba(20,31,64,.95));
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.pf-body .btn:hover{
  transform: translateY(-1px);
  border-color: rgba(129,140,248,.55);
  box-shadow: 0 0 40px 6px rgba(99,102,241,.25);
}
.pf-body .btn-alt{
  background: transparent !important;
  border-color: rgba(148,163,184,.34);
  color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-weight:700;
}

/* Grids */
.pf-body .pf-grid{
  display:grid; gap: var(--gap);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1040px){
  .pf-body .pf-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .pf-body .pf-grid{ grid-template-columns: 1fr; }
}
.pf-body .pf-empty{
  color: var(--muted);
  border: 1px dashed var(--card-bd);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.pf-body .pf-count{
  display:inline-block; min-width: 1.75em; text-align:center;
  font-size: .9em; font-weight: 700;
  color: #fff; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(99,102,241,.95), rgba(67,56,202,.95));
}

/* Right rail */
.pf-body #pf-right-rail .muted{ color: var(--muted); }

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .pf-body .btn { transition: none !important; }
}
/* Glowing animated story ring on profile avatar */
body.pf-body .pf-avatar-wrap.has-story {
  border-radius: 999px;
  padding: 3px;
  background:
    radial-gradient(circle at 0% 0%,   rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.9),  transparent 60%),
    radial-gradient(circle at 50% 100%,rgba(255,255,255,.75), transparent 65%);
  background-size: 160% 160%;
  background-position:
    0% 0%,
    100% 0%,
    50% 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.65),
    0 0 18px rgba(255,255,255,.55);
  cursor: pointer;
  transition:
    box-shadow 140ms ease-out,
    transform 140ms ease-out;
  animation: mk-story-ring-wave 3.4s ease-in-out infinite;
}

/* Hover: stronger glow + slightly faster wave */
body.pf-body .pf-avatar-wrap.has-story:hover,
body.pf-body .pf-avatar-wrap.has-story:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.95),
    0 0 26px rgba(255,255,255,.95);
  animation-duration: 2.4s;
}
@keyframes mk-story-ring-wave {
  0% {
    background-position:
      0% 0%,
      100% 0%,
      50% 100%;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.6),
      0 0 16px rgba(255,255,255,.5);
  }
  35% {
    background-position:
      30% 20%,
      80% 10%,
      40% 90%;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.8),
      0 0 22px rgba(255,255,255,.75);
  }
  70% {
    background-position:
      60% 80%,
      40% 0%,
      70% 40%;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.7),
      0 0 26px rgba(255,255,255,.85);
  }
  100% {
    background-position:
      0% 0%,
      100% 0%,
      50% 100%;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.6),
      0 0 16px rgba(255,255,255,.5);
  }
}
/* Small "Story" pill on avatar */
body.pf-body .pf-avatar-wrap.has-story {
  position: relative;
}

body.pf-body .pf-story-pill {
  position: absolute;
  bottom: 4px;
  right: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Hint text under actions */
body.pf-body .pf-story-hint {
  margin-top: 8px;
  font-size: 13px;
}

/* Story modal */
body.pf-body .pf-story-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.14), rgba(0,0,0,0.92));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

body.pf-body .pf-story-modal.open {
  display: flex;
}

body.pf-body .pf-story-modal-inner {
  position: relative;
  max-width: min(480px, 100%);
  max-height: 80vh;
  background: rgba(10, 16, 32, 0.92);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pf-body .pf-story-media {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  display: block;
}

body.pf-body .pf-story-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Optional: stop body scroll when story is open */
body.pf-story-open {
  overflow: hidden;
}
/* Profile — soft lilac, self-care mood */
body.zen-calm.pf-body {
  --zen-accent-rgb: 129,140,248;  /* indigo-lilac glow */
  --zen-accent-2-rgb: 244,114,182;/* pink focus aura */
  --zen-cta-glow: var(--zen-accent-rgb);
  --zen-cta-glow-alt: var(--zen-accent-2-rgb);
  --zen-cta-pad-x: 24px;
  --zen-cta-pad-y: 12px;
}

body.zen-calm.pf-body .cta-gem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--zen-cta-pad-y) var(--zen-cta-pad-x);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: .2px;
  font: 600 .98rem/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--zen-text, #0f172a);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.25));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.5),
    0 4px 12px rgba(15,23,42,.08);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  transition:
    transform .35s ease,
    filter .35s ease,
    box-shadow .35s ease;
  will-change: transform, filter, box-shadow;
  animation: baloPulseZenProfile 10s ease-in-out infinite;
  animation-delay: .3s;
}

body.zen-calm.pf-body .cta-gem::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(
    60% 65% at 50% 50%,
    rgba(var(--zen-cta-glow), .30),
    rgba(var(--zen-cta-glow), 0) 70%
  );
  filter: blur(13px);
  opacity: .8;
  pointer-events: none;
  will-change: transform, opacity, filter;
  animation: baloGlowDriftProfile 12s ease-in-out infinite alternate;
}

/* Hover & focus */
body.zen-calm.pf-body .cta-gem:hover,
body.zen-calm.pf-body .cta-gem:focus-visible {
  transform: translateY(-1px) scale(1.012);
  filter: brightness(1.04);
  box-shadow:
    0 8px 18px rgba(15,23,42,.12),
    inset 0 1px 1px rgba(255,255,255,.6);
  outline: none;
}

body.zen-calm.pf-body .cta-gem:hover::before,
body.zen-calm.pf-body .cta-gem:focus-visible::before {
  transform: scale(1.01);
}

body.zen-calm.pf-body .cta-gem + .cta-gem {
  margin-left: 10px;
}

/* Focus ring */
body.zen-calm.pf-body .cta-gem:focus-visible {
  box-shadow:
    0 0 0 6px rgba(var(--zen-accent-2-rgb, 34,197,94), .14),
    0 8px 18px rgba(15,23,42,.08);
  transform: translateY(-1px) scale(1.01);
}

/* Animations */
@keyframes baloPulseZenProfile {
  0%   { filter: brightness(1) saturate(1); transform: translateY(0) scale(1); }
  50%  { filter: brightness(1.03) saturate(1.02); transform: translateY(-0.25px) scale(1.006); }
  100% { filter: brightness(1) saturate(1); transform: translateY(0) scale(1); }
}

@keyframes baloGlowDriftProfile {
  0%   { transform: translate3d(0, 0, 0) scale(1);   opacity: .75; filter: blur(13px); }
  50%  { transform: translate3d(-1px, 1px, 0) scale(1.04); opacity: .95; filter: blur(15px); }
  100% { transform: translate3d(0, 0, 0) scale(1.01); opacity: .80; filter: blur(14px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.zen-calm.pf-body .cta-gem,
  body.zen-calm.pf-body .cta-gem::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Small screens */
@media (max-width: 520px) {
  body.zen-calm.pf-body .cta-gem {
    padding: 11px 18px;
    font-size: .94rem;
  }
}
/* ============================================
   PROFILE — inner listing cards (mentors / skills / services)
   Keeps existing layout, just makes content tidy + readable.
   ============================================ */

body.pf-body .pf-card-item {
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid rgba(148,163,184,.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Slight hover lift but not flashy */
body.pf-body .pf-card-item:hover {
  border-color: rgba(148,163,184,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.32);
  transform: translateY(-1px);
}

/* Title: offer name, mentorship title, service name */
body.pf-body .pf-item-title {
  margin: 0 0 2px;
  font-size: .96rem;
  font-weight: 600;
  color: var(--text);
}

/* Tag line under title (Wants, Expertise, Category / Areas) */
body.pf-body .pf-item-tag {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

body.pf-body .pf-item-tag strong {
  font-weight: 600;
  color: #e5e7eb;
}

/* Main description snippet */
body.pf-body .pf-item-text {
  margin: 4px 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text);
}

/* Meta row: price + edit link */
body.pf-body .pf-item-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
}

body.pf-body .pf-price {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.5);
  /* Softer base so it works in day + night */
  background: color-mix(in srgb, var(--card-bd, rgba(148,163,184,.25)) 45%, transparent);
  color: var(--text);
  font-weight: 600;
}


/* "Edit in Dashboard" — small calm pill on the right */
body.pf-body .pf-edit-link {
  text-decoration: none;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.28);
  font-size: .8rem;
  white-space: nowrap;
}

body.pf-body .pf-edit-link:hover {
  color: var(--text);
  border-color: rgba(148,163,184,.6);
}

/* Small helper for service areas line so it doesn’t shout */
body.pf-body .pf-areas {
  color: var(--muted);
  font-weight: 400;
}
/* ============================================
   PROFILE — Day look overrides
   Triggered when balo-night is NOT present.
   Keeps the same layout, just brightens cards.
   ============================================ */

body.pf-body:not(.balo-night) .pf-card-item {
  background: rgba(248, 250, 252, 0.96); /* soft near-white */
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body.pf-body:not(.balo-night) .pf-card-item:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* Text colours: calmer for light mode */
body.pf-body:not(.balo-night) .pf-item-title {
  color: #0f172a; /* slate-900-ish */
}

body.pf-body:not(.balo-night) .pf-item-text {
  color: #111827;
}

body.pf-body:not(.balo-night) .pf-item-tag,
body.pf-body:not(.balo-night) .pf-areas {
  color: #4b5563; /* slate-600 */
}

/* Price pill in day mode */
body.pf-body:not(.balo-night) .pf-price {
  background: rgba(239, 246, 255, 0.98); /* soft blue-ish chip */
  border-color: rgba(129, 140, 248, 0.7);
  color: #111827;
}

/* Edit link pill — subtle outline in day mode */
body.pf-body:not(.balo-night) .pf-edit-link {
  border-color: rgba(148, 163, 184, 0.7);
  color: #4b5563;
}

body.pf-body:not(.balo-night) .pf-edit-link:hover {
  color: #111827;
}
/* Make "Wants:" label clearer in day mode */
body.pf-body:not(.balo-night) .pf-item-tag strong {
  color: #111827;         /* dark slate text */
  font-weight: 700;
}

/* ==========================================================
   Profile Enhancement — Zen Professional Layout
   ========================================================== */

/* Enhanced Overview / Stats Section */
.pf-body #pf-right-rail {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.06), transparent 65%),
    rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(12px) saturate(120%);
  animation: overviewGlow 6s ease-in-out infinite;
}

@keyframes overviewGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.25); }
}

body.pf-body:not(.balo-night) #pf-right-rail {
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgba(248, 250, 252, 0.8), transparent 65%),
    #ffffff;
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.15);
}

/* Enhanced overview list */
.pf-body .pf-overview-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-body .pf-overview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(129, 140, 248, 0.15);
  transition: all 0.2s ease;
}

.pf-body .pf-overview-list li:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateX(3px);
}

body.pf-body:not(.balo-night) .pf-overview-list li {
  background: rgba(239, 246, 255, 0.6);
  border-color: rgba(129, 140, 248, 0.25);
}

body.pf-body:not(.balo-night) .pf-overview-list li:hover {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(129, 140, 248, 0.4);
}

.pf-body .pf-overview-list li strong {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.pf-body .pf-overview-list li span {
  font-weight: 700;
  color: var(--zen-accent, #60a5fa);
  font-size: 1.1rem;
}

body.pf-body:not(.balo-night) .pf-overview-list li strong {
  color: #0f172a;
}

body.pf-body:not(.balo-night) .pf-overview-list li span {
  color: #4f46e5;
}

/* Enhanced Give Merit Button */
.pf-body .balo-merit-btn {
  position: relative;
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(251, 191, 36, 0.3), transparent),
    linear-gradient(180deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(251, 191, 36, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: meritPulse 4s ease-in-out infinite;
}

@keyframes meritPulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 15px rgba(251, 191, 36, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 191, 36, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2); }
}

.pf-body .balo-merit-btn:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(251, 191, 36, 0.4), transparent),
    linear-gradient(180deg, rgba(245, 158, 11, 1), rgba(217, 119, 6, 1));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(251, 191, 36, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.pf-body .balo-merit-btn:active {
  transform: translateY(0);
}

/* Merit status message */
.pf-body #pf-merits-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}
.pf-body #pf-merits-status:not(:empty) {
  display: block;
}
.pf-body #pf-merits-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.pf-body #pf-merits-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
body.pf-body:not(.balo-night) #pf-merits-status.success {
  background: #d1fae5;
  color: #065f46;
}
body.pf-body:not(.balo-night) #pf-merits-status.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Enhanced profile picture - clickable cursor */
.pf-body .pf-avatar {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.pf-body .pf-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pf-body #pf-right-rail,
  .pf-body .balo-merit-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   ZEN STYLING — Offers/Wants Labels for Profile Cards
   ========================================================= */

/* --- Offers/Wants Labels: Zen glow styling --- */
.pf-body .pf-label {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
}

/* Offers label - Soft emerald zen glow */
.pf-body .pf-label-offers {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow:
    0 0 12px rgba(52, 211, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pfZenPulseOffers 4s ease-in-out infinite;
}

/* Wants label - Soft amber/gold zen glow */
.pf-body .pf-label-wants {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow:
    0 0 12px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pfZenPulseWants 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Zen pulse animations - subtle breathing effect */
@keyframes pfZenPulseOffers {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(52, 211, 153, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 18px rgba(52, 211, 153, 0.35),
      0 0 30px rgba(52, 211, 153, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

@keyframes pfZenPulseWants {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(251, 191, 36, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 18px rgba(251, 191, 36, 0.35),
      0 0 30px rgba(251, 191, 36, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

/* Card title & tag adjustments for label integration */
.pf-body .pf-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.5;
}

.pf-body .pf-item-tag {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.5;
}

/* =========================================================
   DAY MODE — Offers/Wants Labels for Profile
   ========================================================= */

/* Day mode - Offers label */
body.pf-body:not(.balo-night) .pf-label-offers {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow:
    0 0 10px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Day mode - Wants label */
body.pf-body:not(.balo-night) .pf-label-wants {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(180, 83, 9, 0.08) 100%);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow:
    0 0 10px rgba(217, 119, 6, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Reduced motion preference for labels */
@media (prefers-reduced-motion: reduce) {
  .pf-body .pf-label-offers,
  .pf-body .pf-label-wants {
    animation: none !important;
  }
}

/* =========================================================
   MOBILE CENTERING — Profile cards centered on mobile
   ========================================================= */

@media (max-width: 640px) {
  /* Prevent horizontal scroll */
  .pf-body {
    overflow-x: hidden;
  }

  /* Center the grid on mobile */
  .pf-body .pf-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Cards take full width but max at comfortable reading width */
  .pf-body .pf-card-item {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Center the labels on mobile and handle long text */
  .pf-body .pf-item-title,
  .pf-body .pf-item-tag {
    justify-content: center;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }

  .pf-body .pf-item-text {
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .pf-body .pf-item-meta {
    justify-content: center;
  }

  /* Smaller labels on mobile */
  .pf-body .pf-label {
    font-size: 0.6rem;
    padding: 2px 6px;
    margin-bottom: 4px;
  }
}

@media (max-width: 400px) {
  .pf-body .pf-card-item {
    max-width: 100%;
    padding: 10px;
  }

  /* Even smaller labels on very small screens */
  .pf-body .pf-label {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  .pf-body .pf-item-title {
    font-size: 0.9rem;
  }

  .pf-body .pf-item-text {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}
