/* ============================================================
   Profile identity pages + admin preview — Premium design
   Pufaan Digital Card · EPIC-009 Premium Redesign.
   Apple / Linear / Popl-inspired: minimal, warm, elegant, fast.
   ============================================================ */

/* ---------- Page canvas (premium warm gradient + light) ---------- */
.profile-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) 1rem clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(30, 58, 47, 0.12), transparent 60%),
    radial-gradient(760px 420px at 108% 96%, rgba(161, 127, 90, 0.16), transparent 62%),
    radial-gradient(520px 360px at -6% 88%, rgba(161, 127, 90, 0.1), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f1ea 100%);
}

/* Very subtle grain (CSS-only) */
.profile-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(30, 58, 47, 0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
  z-index: 0;
}

.profile-page__inner {
  position: relative;
  z-index: 1;
  max-width: 32.5rem; /* 520px */
  margin: 0 auto;
  width: 100%;
}

.profile-page__powered {
  text-align: center;
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.profile-page__powered a {
  color: var(--color-text-tertiary, #8a8680);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.profile-page__powered a:hover,
.profile-page__powered a:focus-visible {
  color: var(--color-primary, #1e3a2f);
}

/* ---------- Floating premium card ---------- */
.profile-page .profile-card {
  animation: profile-card-enter 0.6s var(--ease-emphasized, cubic-bezier(0.3, 0, 0, 1)) both;
}

@keyframes profile-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  color: #1c1a17;
  border: 1px solid rgba(30, 24, 16, 0.06);
  box-shadow:
    0 1px 2px rgba(30, 24, 16, 0.04),
    0 18px 44px rgba(30, 24, 16, 0.07),
    0 44px 110px rgba(30, 24, 16, 0.09);
  transition: transform var(--duration-slow) var(--ease-emphasized),
    box-shadow var(--duration-slow) var(--ease-emphasized);
}

.profile-card:hover {
  box-shadow:
    0 1px 2px rgba(30, 24, 16, 0.04),
    0 22px 52px rgba(30, 24, 16, 0.08),
    0 56px 128px rgba(30, 24, 16, 0.1);
  transform: translateY(-2px);
}

/* ---------- Banner ---------- */
.profile-card__banner {
  height: clamp(8.5rem, 22vw, 11rem);
  background-size: cover;
  background-position: center;
  background-color: #e7e1d6;
}

.profile-card__banner--empty {
  height: 4.5rem;
  background: linear-gradient(120deg, #efe9de, #ddd4c4);
}

.profile-card__body {
  padding: 1.6rem 2rem 2rem;
}

/* ---------- Hero ---------- */
.profile-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.profile-card__banner:not([hidden]) + .profile-card__body .profile-card__hero {
  margin-top: -3.6rem;
}

.profile-card__hero .profile-card__avatar-frame {
  position: relative;
  flex-shrink: 0;
  width: clamp(6rem, 22vw, 7.5rem); /* 96–120px */
  height: clamp(6rem, 22vw, 7.5rem);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 58, 47, 0.18), rgba(161, 127, 90, 0.18));
  padding: 4px;
  box-shadow: 0 8px 24px rgba(30, 24, 16, 0.16), 0 2px 6px rgba(30, 24, 16, 0.06);
  animation: profile-avatar-zoom 0.7s var(--ease-emphasized, cubic-bezier(0.3, 0, 0, 1)) 0.12s both;
}

@keyframes profile-avatar-zoom {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-card__avatar {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: #efe9de;
  border: 3px solid #ffffff;
}

.profile-card__avatar--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 2.4rem;
  font-weight: var(--font-weight-semibold);
  color: #3d3428;
  background: linear-gradient(135deg, #e9e2d5, #d6ccbb);
}

/* ---------- Company logo (rounded-square, not circular) ---------- */
.profile-card__hero .profile-card__avatar-frame--logo {
  border-radius: var(--radius-xl, 20px);
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(30, 24, 16, 0.14), 0 2px 6px rgba(30, 24, 16, 0.05);
}

.profile-card__avatar--logo {
  border-radius: calc(var(--radius-xl, 20px) - 6px);
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(30, 24, 16, 0.08);
}

.profile-card__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Name + verified badge ---------- */
.profile-card__name {
  margin: 0;
  display: block;
  text-align: center;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.9rem, 7vw, 2.125rem); /* 34px */
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-bold);
  color: #17150f;
  /* Never clip a long name — let it wrap to a second line so the full name
     is always readable (both ends used to get cut with centered nowrap). */
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  max-width: 100%;
}

.profile-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary, #1e3a2f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 47, 0.35);
}

.profile-card__verified-svg {
  width: 0.95rem;
  height: 0.95rem;
}

.profile-card__username {
  margin: 0;
  color: var(--color-text-tertiary, #8a8680);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}

.profile-card__roleline {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
}

.profile-card__title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  color: #2b251c;
  line-height: 1.3;
}

.profile-card__company {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: #6a6152;
  line-height: 1.3;
}

/* No stray separator dot between title and company — a clean gap only
   (fixes "company has a . and two spaces ahead"). */
.profile-card__title:not([hidden]) + .profile-card__company::before {
  content: none;
}

.profile-card__brand {
  margin: 0.45rem 0 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(30, 24, 16, 0.1);
  border-radius: var(--radius-full, 9999px);
  padding: 0.24rem 0.8rem;
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a4234;
  background: rgba(255, 255, 255, 0.7);
}

.profile-card__meta {
  margin: 0.35rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--color-text-tertiary, #7c7568);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* Hide the whole meta row (icon + text) when the location span is empty. */
.profile-card__meta:has([data-pv-location][hidden]) {
  display: none;
}

.profile-card__meta-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary, #1e3a2f);
}

.profile-card__meta-svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Headline / bio (About) ---------- */
.profile-card__about {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #faf8f3, #f4f0e8);
  border: 1px solid rgba(30, 24, 16, 0.05);
}

.profile-card__about-title {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary, #7c7568);
}

.profile-card__headline {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  font-weight: var(--font-weight-semibold);
  color: #262219;
  line-height: 1.45;
}

.profile-card__bio {
  margin: 0.55rem 0 0;
  color: #544c3f;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---------- Action buttons ---------- */
.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-card__actions--primary {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

/* "Save contact" spans the full row — the hero green CTA. */
.profile-card__action--save {
  grid-column: 1 / -1;
  min-height: 3.25rem;
  border-radius: 16px;
  background: var(--color-primary, #1e3a2f);
  color: #fff;
  border: 1px solid var(--color-primary, #1e3a2f);
  box-shadow: 0 12px 28px rgba(30, 58, 47, 0.3);
  font-size: 1.02rem;
  font-weight: var(--font-weight-bold);
}

.profile-card__action--save:hover {
  background: var(--color-primary-hover, #163029);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(30, 58, 47, 0.34);
}

.profile-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 14px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  transition: transform var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

/* Keep button text readable + non-overlapping when many actions exist. */
.profile-card__action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__action:hover {
  transform: translateY(-1px);
}

.profile-card__action:active {
  transform: translateY(0) scale(0.98);
}

.profile-card__action-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.profile-card__action--quick {
  background: #f4f0e8;
  color: #2b251c;
  border: 1px solid rgba(30, 24, 16, 0.07);
  font-weight: var(--font-weight-semibold);
}

.profile-card__action--quick:hover {
  background: #ece5d8;
}

.profile-card__action--primary {
  font-weight: var(--font-weight-semibold);
}

.profile-card__action--secondary {
  font-weight: var(--font-weight-medium);
}

/* ---------- Social hub (circular icons) ---------- */
.profile-card__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.profile-card__socials .profile-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background: #f4f0e8;
  color: var(--color-primary, #1e3a2f);
  border: 1px solid rgba(30, 24, 16, 0.06);
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.profile-card__socials .profile-card__link:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--color-primary, #1e3a2f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 58, 47, 0.3);
}

.profile-card__socials .profile-card__link .profile-card__link-label {
  display: none;
}

.profile-card__socials .profile-card__link-icon {
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-card__social-icon {
  display: inline-flex;
}

/* ---------- Contact action cards ---------- */
.profile-card__contacts {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.profile-card__contact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  color: #2b251c;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(30, 24, 16, 0.07);
  box-shadow: 0 1px 2px rgba(30, 24, 16, 0.03);
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.profile-card__contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 24, 16, 0.08);
  border-color: rgba(30, 24, 16, 0.12);
}

.profile-card__contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 58, 47, 0.09);
  color: var(--color-primary, #1e3a2f);
  flex-shrink: 0;
}

.profile-card__contact-svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-card__contact-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.profile-card__contact-title {
  font-size: 0.98rem;
  font-weight: var(--font-weight-semibold);
  color: #29231a;
}

.profile-card__contact-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-tertiary, #8a8174);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__contact-chevron {
  display: inline-flex;
  color: var(--color-text-tertiary, #b0a894);
  flex-shrink: 0;
}

.profile-card__contact-chevron-svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Links ---------- */
.profile-card__links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.profile-card__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #f4f0e8;
  color: #241f18;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(30, 24, 16, 0.05);
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.profile-card__link:hover {
  transform: translateY(-1px);
  background: #ece4d7;
  box-shadow: 0 6px 16px rgba(30, 24, 16, 0.07);
  border-color: rgba(30, 24, 16, 0.1);
}

.profile-card__link:focus-visible,
.profile-card__action:focus-visible,
.profile-card__contact-card:focus-visible,
.profile-card__chip:focus-visible,
.profile-card__product:focus-visible,
.profile-card__section-row a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.profile-card__link-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--color-primary, #1e3a2f);
  border: 1px solid rgba(30, 24, 16, 0.06);
  flex-shrink: 0;
}

.profile-card__link-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-card__link-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__link-arrow {
  display: inline-flex;
  color: var(--color-text-tertiary, #8a8174);
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  flex-shrink: 0;
}

.profile-card__link:hover .profile-card__link-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.profile-card__link-arrow-svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Sections ---------- */
.profile-card__sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-card__section {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #faf8f3;
  border: 1px solid rgba(30, 24, 16, 0.06);
  box-shadow: 0 1px 2px rgba(30, 24, 16, 0.03);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.profile-card__section:hover {
  transform: translateY(-1px);
}

.profile-card__section-title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-tertiary, #6b6358);
}

.profile-card__section-text {
  margin: 0;
  color: inherit;
  font-size: 0.97rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* Brochure (document link) — a tappable button under the section text. */
.profile-card__brochure {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-card__brochure-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.profile-card__section-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary, #554c3f);
}

.profile-card__gallery {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-card__gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
  background: #ebe4d8;
}

.profile-card__section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.profile-card__section-row {
  font-size: 0.94rem;
  color: #3d3428;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-card__section-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-sm, 4px);
  background: rgba(30, 58, 47, 0.08);
  color: var(--color-primary, #1e3a2f);
  flex-shrink: 0;
}

.profile-card__section-row-svg {
  width: 0.95rem;
  height: 0.95rem;
}

.profile-card__section-row a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border-radius: var(--radius-sm, 4px);
  transition: color var(--duration-fast) var(--ease-standard);
}

.profile-card__section-row a:hover {
  color: var(--color-link, #1e3a2f);
}

.profile-card__empty {
  margin: 0.25rem 0 0;
  color: var(--color-text-tertiary, #8a8174);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- Products (premium grid) ---------- */
.profile-card__section--products {
  padding: 1.15rem 1.2rem;
}

.profile-card__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-card__product {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(30, 24, 16, 0.06);
  color: #241f18;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(30, 24, 16, 0.03);
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.profile-card__product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 24, 16, 0.09);
}

.profile-card__product-media {
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  overflow: hidden;
  background: #efe9de;
}

.profile-card__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card__product-media--empty {
  display: grid;
  place-items: center;
  color: rgba(30, 58, 47, 0.4);
}

.profile-card__product-empty-svg {
  width: 1.6rem;
  height: 1.6rem;
}

.profile-card__product-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: #29231a;
  line-height: 1.3;
}

.profile-card__product-desc {
  font-size: 0.82rem;
  color: var(--color-text-tertiary, #7c7568);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card__product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary, #1e3a2f);
  margin-top: auto;
}

.profile-card__product-cta-svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* ---------- Bottom utility chips (glass) ---------- */
.profile-card__utilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(30, 24, 16, 0.07);
}

.profile-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4a4234;
  border: 1px solid rgba(30, 24, 16, 0.08);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.profile-card__chip:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 24, 16, 0.1);
}

.profile-card__chip:active {
  transform: scale(0.97);
}

.profile-card__chip-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary, #1e3a2f);
  flex-shrink: 0;
}

/* ============================================================
   Themes
   ============================================================ */
.profile-card--theme-ink {
  background: #131715;
  color: #f4f1ea;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card--theme-ink:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 22px 52px rgba(0, 0, 0, 0.45),
    0 56px 128px rgba(0, 0, 0, 0.5);
}

.profile-card--theme-ink .profile-card__avatar-frame {
  background: linear-gradient(135deg, rgba(244, 241, 234, 0.22), rgba(244, 241, 234, 0.08));
}

.profile-card--theme-ink .profile-card__avatar {
  border-color: #131715;
}

.profile-card--theme-ink .profile-card__name {
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__username,
.profile-card--theme-ink .profile-card__meta {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__meta-icon {
  color: #9fc9b3;
}

.profile-card--theme-ink .profile-card__headline {
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__bio {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__about {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card--theme-ink .profile-card__about-title {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__title {
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__company {
  color: #d6d0c5;
}

.profile-card--theme-ink .profile-card__brand {
  border-color: rgba(244, 241, 234, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__action--quick {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f1ea;
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-card--theme-ink .profile-card__action--quick:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-card--theme-ink .profile-card__socials .profile-card__link {
  background: rgba(255, 255, 255, 0.06);
  color: #9fc9b3;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card--theme-ink .profile-card__socials .profile-card__link:hover {
  background: #2f5843;
  color: #fff;
}

.profile-card--theme-ink .profile-card__contact-card {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f1ea;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card--theme-ink .profile-card__contact-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #9fc9b3;
}

.profile-card--theme-ink .profile-card__contact-title {
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__contact-subtitle {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__link {
  background: #1d2421;
  color: #f4f1ea;
  border-color: rgba(255, 255, 255, 0.06);
}

.profile-card--theme-ink .profile-card__link:hover {
  background: #27302c;
}

.profile-card--theme-ink .profile-card__link-icon {
  background: #131715;
  color: #9fc9b3;
}

.profile-card--theme-ink .profile-card__section {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card--theme-ink .profile-card__section-title {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__section-row {
  color: #e7e2d8;
}

.profile-card--theme-ink .profile-card__section-row-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #9fc9b3;
}

.profile-card--theme-ink .profile-card__product {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__product-name {
  color: #f4f1ea;
}

.profile-card--theme-ink .profile-card__product-desc {
  color: #b7b2a8;
}

.profile-card--theme-ink .profile-card__chip {
  background: rgba(255, 255, 255, 0.06);
  color: #e7e2d8;
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-card--theme-ink .profile-card__chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-card--theme-ink .profile-card__utilities {
  border-top-color: rgba(244, 241, 234, 0.12);
}

.profile-card--theme-sand {
  background: #f8f2e6;
}

.profile-card--theme-forest {
  background: #edf3ee;
}

/* ============================================================
   Toast
   ============================================================ */
.profile-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(1rem);
  background: #1a1a1a;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-standard);
  z-index: 40;
}

.profile-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   QR modal (public profile sharing)
   ============================================================ */
.profile-qr {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.profile-qr.is-open {
  display: flex;
}

.profile-qr__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 11, 0.55);
  backdrop-filter: blur(3px);
}

.profile-qr__panel {
  position: relative;
  width: min(360px, 100%);
  background: var(--color-bg-elevated, #fff);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.profile-qr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.profile-qr__head h2 {
  margin: 0;
  font-size: var(--text-h4);
  font-weight: var(--font-weight-semibold);
}

.profile-qr__canvas {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

body.has-qr-modal {
  overflow: hidden;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
  .profile-page {
    padding: 1.5rem 0.9rem 2.5rem;
  }

  .profile-card {
    border-radius: 24px;
  }

  .profile-card__hero .profile-card__avatar-frame {
    width: 6rem;
    height: 6rem;
  }

  .profile-card__banner:not([hidden]) + .profile-card__body .profile-card__hero {
    margin-top: -3.2rem;
  }

  .profile-card__name {
    font-size: 1.8rem;
  }

  .profile-card__body {
    padding: 1.3rem 1.3rem 1.6rem;
  }

  .profile-card__actions {
    gap: 0.45rem;
  }

  .profile-card__action {
    min-width: 0;
    padding: 0 0.85rem;
    white-space: nowrap;
  }

  .profile-card__action span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-card__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet / desktop: give the card a touch more room */
@media (min-width: 600px) {
  .profile-page__inner {
    max-width: 33rem;
  }
}

@media (min-width: 900px) {
  .profile-card__body {
    padding: 1.75rem 2.25rem 2.1rem;
  }

  .profile-card__hero .profile-card__avatar-frame {
    width: 7.5rem;
    height: 7.5rem;
  }

  .profile-card__action {
    min-height: 3rem;
  }
}

@media (min-width: 1200px) {
  .profile-page__inner {
    max-width: 33rem;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .profile-page .profile-card,
  .profile-card__hero .profile-card__avatar-frame {
    animation: none;
  }

  .profile-card,
  .profile-card:hover,
  .profile-card__action,
  .profile-card__link,
  .profile-card__contact-card,
  .profile-card__chip,
  .profile-card__product,
  .profile-card__section,
  .profile-card__section-row a,
  .profile-card__socials .profile-card__link,
  .profile-card__link .profile-card__link-arrow,
  .profile-card__link:hover .profile-card__link-arrow,
  .profile-toast {
    transition: none;
    transform: none;
  }
}

/* ============================================================
   Profile Image uploader (shared by onboarding + portal)
   ============================================================ */
.profile-image-uploader {
  display: grid;
  gap: 0.75rem;
}

.profile-image-uploader__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem 1rem;
  border: 2px dashed rgba(30, 24, 16, 0.28);
  border-radius: var(--radius-lg, 12px);
  background: #fbf8f2;
  color: #4a433a;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.profile-image-uploader__drop:hover,
.profile-image-uploader__drop:focus-visible,
.profile-image-uploader__drop.is-dragover {
  border-color: var(--color-primary, #2f6b4f);
  background: #f4efe5;
}

.profile-image-uploader__drop.is-dragover {
  transform: translateY(-1px);
}

.profile-image-uploader__drop.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.profile-image-uploader__drop-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary, #2f6b4f);
  color: #fff;
}

.profile-image-uploader__drop-svg {
  width: 1.4rem;
  height: 1.4rem;
}

.profile-image-uploader__drop-label {
  font-weight: 640;
  color: #29231a;
}

.profile-image-uploader__drop-hint {
  font-size: 0.82rem;
  color: #736a5d;
}

.profile-image-uploader__drop-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--color-primary, #2f6b4f);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-image-uploader__drop-resolution {
  font-size: 0.78rem;
  color: #8a8174;
}

.profile-image-uploader__preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-image-uploader__preview-thumb {
  flex-shrink: 0;
}

.profile-image-uploader__preview-thumb img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  object-fit: cover;
  border: 2px solid rgba(30, 24, 16, 0.08);
  background: #ebe4d8;
}

.profile-image-uploader__preview-actions {
  display: flex;
  gap: 0.5rem;
}

.profile-image-uploader__status {
  font-size: 0.84rem;
  color: #4a433a;
  min-height: 1.1em;
}

.profile-image-uploader__status.is-error {
  color: #a33;
}

@media (prefers-reduced-motion: reduce) {
  .profile-image-uploader__drop {
    transition: none;
  }
}

/* ============================================================
   Profile lead form — "Get in touch" on the public tap page.
   Matches the premium card design language (warm canvas, rounded
   elevated surface, green primary) so the form reads as part of
   the Tap Experience instead of a raw browser default form.
   ============================================================ */
.profile-lead {
  display: flex;
  justify-content: center;
  padding: 0 1rem clamp(2.5rem, 7vw, 4rem);
  background: transparent;
}

.profile-lead__inner {
  width: 100%;
  max-width: 32.5rem; /* 520px — same as the profile card */
}

.profile-lead__card {
  border-radius: 24px;
  background: #ffffff;
  color: #1c1a17;
  border: 1px solid rgba(30, 24, 16, 0.06);
  box-shadow:
    0 1px 2px rgba(30, 24, 16, 0.04),
    0 18px 44px rgba(30, 24, 16, 0.07);
  padding: clamp(1.4rem, 4vw, 2rem);
}

.profile-lead__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #1c1a17;
}

.profile-lead__intro {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b6358;
}

.profile-lead__form {
  display: grid;
  gap: 1rem;
}

.profile-lead__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-lead__field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a433a;
}

.profile-lead__field > span {
  color: #4a433a;
}

.profile-lead__field input,
.profile-lead__field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(30, 24, 16, 0.16);
  border-radius: 12px;
  background: #fbf8f2;
  color: #1c1a17;
  font: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-lead__field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.5;
}

.profile-lead__field input:focus,
.profile-lead__field textarea:focus {
  outline: none;
  border-color: var(--color-primary, #2f6b4f);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.18);
}

.profile-lead__field input::placeholder,
.profile-lead__field textarea::placeholder {
  color: #a49b8d;
}

.profile-lead__consent {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8a8174;
}

.profile-lead__submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--color-primary, #2f6b4f);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  justify-self: start;
  transition:
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-lead__submit:hover {
  background: var(--color-primary-hover, #163029);
  transform: translateY(-1px);
}

.profile-lead__submit:active {
  transform: translateY(0) scale(0.98);
}

.profile-lead__submit:focus-visible {
  outline: 2px solid var(--color-focus-ring, #2f6b4f);
  outline-offset: 2px;
}

.profile-lead__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-lead__status {
  margin: 0;
  font-size: 0.85rem;
  color: #4a433a;
  min-height: 1.1em;
}

.profile-lead__status.is-error {
  color: #b42318;
}

.profile-lead__status.is-visible {
  min-height: 1.1em;
}

@media (max-width: 480px) {
  .profile-lead {
    padding: 0 0.9rem 2.5rem;
  }

  .profile-lead__card {
    border-radius: 20px;
    padding: 1.3rem 1.2rem 1.5rem;
  }

  .profile-lead__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .profile-lead__submit {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-lead__submit {
    transition: none;
    transform: none;
  }
}

/* ── Exchange contact modal (Basic+ visitor flow) ───────────────────────── */
.profile-exchange[hidden] {
  display: none !important;
}

.profile-exchange {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}

.profile-exchange__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}

.profile-exchange__dialog {
  position: relative;
  width: min(100%, 28rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  z-index: 1;
}

.profile-exchange__card {
  background: var(--surface-elevated, #fff);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.18);
  padding: var(--space-5);
}

.profile-exchange__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
}

.profile-exchange__title {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
}

.profile-exchange__intro,
.profile-exchange__hint,
.profile-exchange__consent {
  margin: 0 0 var(--space-3);
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.45;
}

.profile-exchange__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr;
}

.profile-exchange__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.profile-exchange__field--full {
  grid-column: 1 / -1;
}

.profile-exchange__field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 0.5rem);
  font: inherit;
}

.profile-exchange__req {
  color: var(--brand-primary, #0f766e);
  font-style: normal;
}

.profile-exchange__opt {
  color: var(--text-secondary, #94a3b8);
  font-weight: normal;
}

.profile-exchange__submit {
  width: 100%;
  margin-top: var(--space-2);
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--radius-md, 0.5rem);
  background: var(--brand-primary, #0f766e);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.profile-exchange__status {
  min-height: 1.25rem;
  margin: var(--space-2) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
}

.profile-exchange__status.is-error {
  color: #b91c1c;
}

body.profile-exchange-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile-exchange__grid {
    grid-template-columns: 1fr;
  }
}

/* Lead Capture Mode — inline public form (Plus, enabled) */
.profile-lead-capture {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  padding: 0 1rem 2rem;
}

.profile-lead-capture__card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.profile-lead-capture__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.profile-lead-capture__intro,
.profile-lead-capture__hint,
.profile-lead-capture__consent {
  margin: 0 0 0.75rem;
  color: var(--text-secondary, #64748b);
  font-size: 0.92rem;
}

.profile-lead-capture__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-lead-capture__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.profile-lead-capture__field--full {
  grid-column: 1 / -1;
}

.profile-lead-capture__field input {
  border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.profile-lead-capture__req {
  color: #b91c1c;
  font-style: normal;
}

.profile-lead-capture__opt {
  color: var(--text-secondary, #64748b);
  font-size: 0.85em;
}

.profile-lead-capture__submit {
  margin-top: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: var(--brand-primary, #0f172a);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.profile-lead-capture__status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
}

.profile-lead-capture__status.is-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .profile-lead-capture__grid {
    grid-template-columns: 1fr;
  }
}
