/* Dedicated professional web member profile. Additive; existing mobile/dashboard profile remains unchanged. */
.member-web-profile-page {
  padding-bottom: 3rem;
}
.member-profile-page-hero {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(31, 150, 107, .17), transparent 35%),
    linear-gradient(135deg, #ffffff, #f5fbf8);
  border: 1px solid rgba(18, 133, 104, .13);
}
.member-profile-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}
.member-profile-page-notice {
  margin: 1rem 0;
}
.member-profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 1rem;
  margin: 1rem 0;
}
.member-profile-hero-card-pro,
.member-profile-readiness-card {
  border-radius: 28px;
  padding: 1.35rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
.member-profile-hero-card-pro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.17), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #0f5f4c 65%, #148467 100%);
}
.member-profile-hero-card-pro::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  bottom: -110px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.member-profile-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.member-profile-avatar-pro {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 1000;
  box-shadow: 0 15px 35px rgba(0,0,0,.22);
}
.member-profile-avatar-pro.editable {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  border-color: rgba(18, 133, 104, .25);
  background: linear-gradient(135deg, #e5f8f1, #f7fffc);
  color: #0f6f57;
  box-shadow: none;
}
.member-profile-avatar-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-profile-label {
  margin: 0 0 .25rem;
  color: inherit;
  opacity: .72;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.member-profile-hero-top h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}
.member-profile-hero-top p:not(.member-profile-label) {
  margin: .25rem 0 0;
  color: rgba(255,255,255,.75);
}
.member-profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}
.member-profile-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .68rem;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
}
.member-profile-status-pill.soft {
  background: rgba(255,255,255,.09);
}
.member-profile-kpis-pro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.25rem;
}
.member-profile-kpis-pro div {
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
}
.member-profile-kpis-pro strong,
.member-profile-kpis-pro span {
  display: block;
}
.member-profile-kpis-pro strong {
  font-size: 1.35rem;
}
.member-profile-kpis-pro span {
  margin-top: .1rem;
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 800;
}
.member-profile-readiness-card {
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}
.member-profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.member-profile-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.member-profile-card-head > strong {
  color: #0f7a5c;
  font-size: 1.65rem;
}
.member-profile-progress-track {
  height: 10px;
  margin: 1rem 0 .75rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f0;
}
.member-profile-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #15a171, #0d7658);
  transition: width .35s ease;
}
.member-profile-readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin-top: 1rem;
}
.member-profile-readiness-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .1rem .5rem;
  align-items: center;
  padding: .58rem;
  border-radius: 14px;
  background: #f7f9f8;
}
.member-profile-readiness-item > span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 1000;
}
.member-profile-readiness-item strong { font-size: .78rem; }
.member-profile-readiness-item small { color: #64748b; font-size: .68rem; }
.member-profile-readiness-item.is-ready > span { background: #dff7ec; color: #08734f; }
.member-profile-readiness-item.is-missing > span { background: #fff3d8; color: #a15c00; }
.member-profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 1rem;
  align-items: start;
}
.member-profile-edit-panel {
  scroll-margin-top: 92px;
}
.member-profile-edit-head {
  align-items: flex-start;
}
.member-profile-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .35rem .68rem;
  border-radius: 999px;
  background: #e8f8f1;
  color: #0c7153;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}
.member-profile-save-state.is-dirty {
  background: #fff3d8;
  color: #965900;
}
.member-web-profile-form {
  display: grid;
  gap: 1rem;
}
.member-profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px dashed rgba(18, 133, 104, .28);
  border-radius: 22px;
  background: #f7fcfa;
}
.member-profile-upload-button { cursor: pointer; }
.member-profile-fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background: #fff;
}
.member-profile-fieldset.safety {
  background: linear-gradient(180deg, #fff, #fbfdfc);
}
.member-profile-fieldset legend {
  padding: 0 .4rem;
  color: #0f172a;
  font-size: .88rem;
  font-weight: 1000;
}
.member-profile-fieldset label {
  font-weight: 850;
}
.member-profile-fieldset label > span {
  color: #ba1a1a;
}
.member-profile-fieldset input,
.member-profile-fieldset select,
.member-profile-fieldset textarea {
  font-size: 16px;
}
.member-profile-fieldset textarea {
  min-height: 125px;
  resize: vertical;
}
.member-web-photo-consent {
  margin-top: .9rem;
  padding: .85rem;
  border: 1px solid rgba(18, 133, 104, .17);
  border-radius: 16px;
  background: rgba(18, 133, 104, .055);
}
.member-profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  padding-top: .25rem;
}
.member-profile-sidebar {
  display: grid;
  gap: 1rem;
}
.member-profile-details-card {
  margin: 0;
}
.member-profile-summary-list {
  display: grid;
  gap: .45rem;
}
.member-profile-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .68rem .75rem;
  border-radius: 15px;
  background: #f7f9f8;
}
.member-profile-summary-row span { color: #64748b; font-size: .8rem; }
.member-profile-summary-row strong { max-width: 60%; text-align: right; font-size: .82rem; overflow-wrap: anywhere; }
.member-profile-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .85rem;
}
.member-profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.member-profile-chip {
  display: inline-flex;
  align-items: center;
  padding: .52rem .72rem;
  border-radius: 999px;
  background: #e8f7f1;
  color: #0d7055;
  font-size: .76rem;
  font-weight: 900;
}
.member-profile-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.member-profile-activity-card { margin: 0; }
.member-profile-activity-list {
  display: grid;
  gap: .55rem;
}
.member-profile-activity-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .7rem;
  align-items: center;
  padding: .72rem;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 16px;
  background: #fff;
}
.member-profile-activity-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef8f4;
  font-size: 1.05rem;
}
.member-profile-activity-row strong,
.member-profile-activity-row small { display: block; }
.member-profile-activity-row strong { font-size: .86rem; }
.member-profile-activity-row small { margin-top: .15rem; color: #64748b; font-size: .72rem; }
.member-profile-empty {
  padding: 1rem;
  border: 1px dashed rgba(15, 23, 42, .14);
  border-radius: 16px;
  text-align: center;
  background: #fafbfb;
}
.member-profile-empty strong,
.member-profile-empty p { display: block; }
.member-profile-empty p { margin: .25rem 0 0; color: #64748b; font-size: .8rem; }
.text-link {
  color: #0f795a;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}
@media (max-width: 1050px) {
  .member-profile-overview-grid,
  .member-profile-content-grid { grid-template-columns: 1fr; }
  .member-profile-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .member-profile-page-hero { align-items: flex-start; }
  .member-profile-page-actions { width: 100%; justify-content: flex-start; }
  .member-profile-sidebar,
  .member-profile-activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .member-web-profile-page { padding-left: .7rem; padding-right: .7rem; }
  .member-profile-page-actions { display: grid; grid-template-columns: 1fr; }
  .member-profile-page-actions .btn { width: 100%; }
  .member-profile-hero-card-pro,
  .member-profile-readiness-card { border-radius: 23px; padding: 1rem; }
  .member-profile-hero-top { align-items: flex-start; }
  .member-profile-avatar-pro { width: 72px; height: 72px; flex-basis: 72px; border-radius: 22px; }
  .member-profile-kpis-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile-readiness-list { grid-template-columns: 1fr; }
  .member-profile-photo-editor { align-items: flex-start; }
  .member-profile-fieldset { padding: .85rem; border-radius: 19px; }
  .member-profile-fieldset .form-grid.two { grid-template-columns: 1fr; }
  .member-profile-form-actions { position: sticky; bottom: 0; z-index: 10; margin: 0 -.5rem -.5rem; padding: .75rem .5rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid rgba(15,23,42,.08); }
  .member-profile-form-actions .btn { flex: 1; }
  .member-profile-account-actions { grid-template-columns: 1fr; }
}
