.pf-id,
.pf-ring {
  position: relative;
}

/* The availability dot is the green indicator specified in the C21 reference. */
.pf-ring::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 7%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: #65b932;
}

.pf-available {
  color: var(--maroon-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.pf-tools {
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  display: flex;
  gap: var(--s1);
}

.pf-tool {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--maroon-deep);
  background: var(--card);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.pf-tool svg {
  width: 24px;
  height: 24px;
}

.pf-tool[aria-pressed="true"] svg {
  fill: currentColor;
}

.pf-about {
  margin-inline: var(--s4);
  padding-inline: var(--s2);
}

.pf-about p {
  font-size: 16px;
  line-height: 1.65;
}

.pf-about:not(.expanded) p {
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 48px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

#pf-about-toggle {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pf-all-reviews {
  margin-inline: var(--s4);
  padding-inline: var(--s2);
}

.pf-all-reviews svg {
  width: 18px;
  height: 18px;
}

.pf-reply {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin: var(--s3) 0 0 var(--s1);
  padding-left: var(--s2);
  border-left: 2px solid var(--gold-deep);
  color: var(--maroon-deep);
  font-size: 15px;
  line-height: 1.5;
}

.pf-reply img {
  flex: none;
  object-fit: cover;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
}

.sheet.pf-reviews {
  text-align: left;
}

.pf-reviews header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s2);
}

.pf-review-list {
  display: grid;
  gap: var(--s2);
}

.pf-review-list .rev {
  width: 100%;
}

.pf .gifts .gift .gn {
  font-size: 14px;
}

.pf-gift-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  text-align: left;
}

.pf-wallet {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s1) var(--s2);
  color: var(--maroon-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pf-wallet svg {
  width: 24px;
  height: 24px;
}

.pf-wallet-value,
.pf-wallet-recharge {
  display: block;
}

.pf-wallet-value {
  white-space: nowrap;
}

.pf-wallet-recharge {
  color: var(--accent);
}

.pf-shortfall {
  text-decoration: none;
}

.pf-gift-sheet .lgp-sub {
  margin-top: var(--s2);
}

/* Shared expert profile layout. */
/* 21 · ज्योतिषी प्रोफ़ाइल (lane C11, ref refs/poochhe/q2-profile.png). Tokens from lagudo.css only. */
    html, body { overflow-x: hidden; }
    a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .pf { overflow-x: clip; }
    #pf-body { padding-bottom: var(--s5); }

    /* Sub-header: ‹ वापस | centered title */
    .pf-sub {
      position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
      min-height: 52px; padding: 0 var(--s3); border-bottom: 1px solid var(--line);
    }
    .pf-sub .back {
      justify-self: start; position: relative; min-height: 48px; min-width: 48px; padding-right: var(--s3);
      font-size: 15px; color: var(--maroon-deep); transition: transform .15s var(--spring);
    }
    .pf-sub .back::after {
      content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 22px; margin-top: -11px; background: var(--line);
    }
    .pf-sub .back:active { transform: scale(.97); }
    .pf-sub h1 { grid-column: 2; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--maroon-deep); white-space: nowrap; }

    /* Identity */
    .pf-id { display: grid; justify-items: center; text-align: center; padding: var(--s3) var(--s4) 0; }
    .pf-ring {
      width: 132px; height: 132px; padding: 4px; border-radius: 50%;
      background: var(--gold-grad); box-shadow: 0 0 0 1px var(--gold-deep), var(--shadow-card);
    }
    .pf-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--sand); border: 2px solid var(--card); }
    .pf-name { margin-top: var(--s2); font-size: 30px; line-height: 1.3; font-weight: 800; color: var(--maroon-deep); }
    .pf-line { margin-top: 2px; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
    .pf-facts {
      display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 6px;
      margin-top: var(--s2); padding: 4px var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill);
      background: var(--card); font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--ink);
    }
    .pf-facts .star { color: var(--gold-deep); }
    .pf-facts b { font-weight: 800; color: var(--accent); white-space: nowrap; }

    /* Chat / call */
    .pf-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: var(--s4) var(--s4) 0; }
    .pf-cta .btn { min-height: 56px; padding: 0 var(--s2); border-radius: var(--r-md); }
    .pf-cta svg { width: 22px; height: 22px; flex: none; }
    .pf-chat { flex-direction: column; gap: 0; line-height: 1.25; }
    .pf-chat .l1 { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; }
    .pf-call { gap: var(--s2); font-size: 18px; border-color: var(--maroon); background: var(--card); }

    /* Sections */
    .pf-sec { margin-top: var(--s3); padding-top: var(--s1); border-top: 1px solid var(--line); }
    .pf-h { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s2) 0 var(--s4); min-height: 48px; }
    .pf-h h2 { font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--maroon-deep); }
    .pf-h .more {
      display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
      color: var(--maroon-deep); transition: transform .15s var(--spring);
    }
    .pf-h .more:active { transform: scale(.97); }
    .pf-h .more svg { width: 20px; height: 20px; }

    /* Sideways rows */
    .row {
      display: flex; gap: var(--s2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
      padding: var(--s1) var(--s4) var(--s2); scroll-padding-inline: var(--s4); scrollbar-width: none;
    }
    .row::-webkit-scrollbar { display: none; }
    .row > * { flex: none; scroll-snap-align: start; }

    .mini {
      display: grid; justify-items: center; width: 88px; padding: var(--s2) var(--s1) var(--s1);
      border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-card);
      text-align: center;
    }
    .mini .ph { width: 60px; height: 60px; padding: 2px; border-radius: 50%; background: var(--gold-grad); }
    .mini .ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--sand); }
    .mini .nm { margin-top: var(--s1); font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--maroon-deep); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .mini .pr { font-size: 14px; line-height: 1.4; font-weight: 800; color: var(--accent); }

    .rev {
      width: min(78vw, 300px); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md);
      background: var(--card); box-shadow: var(--shadow-card);
    }
    .rev p { font-size: 15px; line-height: 1.6; color: var(--ink); }
    .rev .by { margin-top: var(--s1); font-size: 14px; font-weight: 700; color: var(--muted); }

    .gift {
      display: flex; align-items: center; gap: var(--s2); min-height: 64px; padding: var(--s2) var(--s3) var(--s2) var(--s2);
      border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-card);
      text-align: left;
    }
    .gift img { width: 48px; height: 48px; object-fit: contain; }
    /* owner 28 Nov ~8:25 PM: ALL gifts visible together (grid), reviews above them */
    .gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); padding: 0 var(--s4); }
    .gifts .gift { flex-direction: column; align-items: center; text-align: center; gap: 2px; min-height: 0; padding: var(--s2) 2px; }
    .gifts .gift .gt { justify-items: center; }
    .gifts .gift .gn { font-size: 13px; white-space: normal; line-height: 1.25; }
    .rev .st { color: var(--gold-deep); font-size: 14px; letter-spacing: 2px; margin-bottom: 4px; }
    .gift .gt { display: grid; line-height: 1.35; }
    .gift .gn { font-size: 14px; font-weight: 700; color: var(--maroon-deep); white-space: nowrap; }
    .gift .gp { font-size: 15px; font-weight: 800; color: var(--accent); white-space: nowrap; }

    /* Rise in once (motion.js adds .in); staggered */
    .row .press { transition: transform .15s var(--spring), box-shadow .2s; }
    @media (prefers-reduced-motion: reduce) { .pf .reveal { transition: none; } }
    @media (min-width: 768px) {
      .screen { max-width: 100%; }
      .pf-sub, #pf-body { padding-inline: var(--desktop-pad, 32px); }
      .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
      .mini, .rev { width: 100%; }
      .gifts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--desktop-pad, 32px); }
      .pf-about { margin-inline: var(--desktop-pad, 32px); }
    }
    @media (min-width: 1024px) {
      .pf { max-width: var(--desktop-max); margin-inline: auto; }
      .pf-sub { padding-inline: 0; }
      .pf-sub .back { display: none; }
      .pf-sub h1 { grid-column: 1 / -1; justify-self: start; font-size: 24px; }
      #pf-body { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-auto-flow: row; gap: 0 40px; padding: 24px 0 48px; }
      .pf-id { grid-column: 1; grid-row: 1; align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); }
      .pf-tools { top: 12px; right: 12px; }
      .pf-cta { grid-column: 1; grid-row: 2; align-self: start; padding: 18px 20px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--card); }
      .pf-about { grid-column: 1; grid-row: 3; align-self: start; margin: 20px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
      .pf-sec:not(.pf-about) { grid-column: 2; margin-top: 0; padding: 0 0 26px; border-top: 0; }
      .pf-sec:not(.pf-about) + .pf-sec:not(.pf-about) { padding-top: 24px; border-top: 1px solid var(--line); }
      .pf-h { padding-inline: 0; }
      .row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 0; }
      .rev { grid-column: span 2; }
      .gifts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 0; }
      .pf-all-reviews { margin-inline: 0; }
      .mini:hover, .rev:hover, .gift:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
    }
