/*
 * Mobile Pro profile surface
 * Visual contract is intentionally ported from /profil.
 * The selectors stay inside #view-profile so the Mobile Pro shell is untouched.
 */
#view-profile.mobile-pro-profile-source {
  --profile-canvas: #fff;
  --profile-surface: #fff;
  --profile-surface-soft: #f7faff;
  --profile-ink: #132238;
  --profile-muted: #66788f;
  --profile-line: #d9e4ef;
  --profile-blue: #1769e8;
  --profile-blue-dark: #0d54c6;
  --profile-blue-soft: #eaf3ff;
  background: var(--profile-canvas);
  color: var(--profile-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#view-profile.mobile-pro-profile-source .profile-hero {
  height: clamp(196px, 55vw, 270px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #dcecff 0%, #eef6ff 48%, #d4e7fa 100%);
  box-shadow: none;
}
#view-profile.mobile-pro-profile-source .profile-hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 42%, rgba(0,0,0,.22));
}
#view-profile.mobile-pro-profile-source .profile-hero img.ph-img {
  z-index: 2;
}
#view-profile.mobile-pro-profile-source .profile-cover-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font: 700 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
#view-profile.mobile-pro-profile-source .profile-cover-edit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-profile.mobile-pro-profile-source .profile-avatar-area {
  position: relative;
  z-index: 5;
  display: block;
  min-height: 0;
  margin: -54px 0 0;
  padding: 0 15px;
  background: #fff;
}
#view-profile.mobile-pro-profile-source .profile-av-outer {
  position: relative;
  width: 108px;
  height: 108px;
}
#view-profile.mobile-pro-profile-source .profile-av-ring {
  position: absolute;
  inset: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(10,32,61,.18);
}
#view-profile.mobile-pro-profile-source .profile-av-wrap {
  position: absolute;
  inset: 4px;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769e8, #63b3ff);
  cursor: pointer;
}
#view-profile.mobile-pro-profile-source .profile-av {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #101c2d;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769e8, #63b3ff);
  color: #fff;
  font-size: 36px;
  font-weight: 800;
}
#view-profile.mobile-pro-profile-source .profile-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1769e8;
  color: #fff;
  box-shadow: 0 3px 8px rgba(23,105,232,.25);
}
#view-profile.mobile-pro-profile-source .profile-avatar-edit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-profile.mobile-pro-profile-source .profile-info-card {
  padding: 8px 15px 12px;
  border: 0;
  background: #fff;
  text-align: center;
}
#view-profile.mobile-pro-profile-source .profile-thought {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 5px;
  padding: 8px 13px;
  border: 1px solid var(--profile-line);
  border-radius: 22px;
  background: var(--profile-surface-soft);
  color: var(--profile-muted);
  font: 600 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
#view-profile.mobile-pro-profile-source .profile-thought svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--profile-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-profile.mobile-pro-profile-source .profile-name-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#view-profile.mobile-pro-profile-source .profile-name {
  margin: 0;
  color: var(--profile-ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
#view-profile.mobile-pro-profile-source #mob-verified-badge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 50%;
  background: #1769e8;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
#view-profile.mobile-pro-profile-source .profile-bio {
  min-height: 21px;
  margin: 5px 0 9px;
  color: var(--profile-muted);
  font: 500 15px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}
#view-profile.mobile-pro-profile-source .profile-bio-editable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
}
#view-profile.mobile-pro-profile-source .profile-bio-editable:focus-visible {
  outline: 2px solid var(--profile-blue);
  outline-offset: 3px;
  border-radius: 6px;
}
#view-profile.mobile-pro-profile-source .profile-meta-line,
#view-profile.mobile-pro-profile-source .profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 7px;
  color: var(--profile-muted);
  font: 500 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}
#view-profile.mobile-pro-profile-source .profile-meta-line > svg,
#view-profile.mobile-pro-profile-source .profile-meta-item > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-profile.mobile-pro-profile-source .profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#view-profile.mobile-pro-profile-source .profile-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
#view-profile.mobile-pro-profile-source .profile-stat-box {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  text-align: center;
}
#view-profile.mobile-pro-profile-source .profile-stat-val {
  color: var(--profile-ink);
  font: 800 22px/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}
#view-profile.mobile-pro-profile-source .profile-stat-lbl {
  margin-top: 2px;
  color: var(--profile-muted);
  font: 700 10px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#view-profile.mobile-pro-profile-source .profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 10px 15px 16px;
  background: #fff;
}
#view-profile.mobile-pro-profile-source .profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 14px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
#view-profile.mobile-pro-profile-source .profile-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-profile.mobile-pro-profile-source .profile-action-primary {
  background: #1769e8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(23,105,232,.2);
}
#view-profile.mobile-pro-profile-source .profile-action-secondary,
#view-profile.mobile-pro-profile-source .profile-action-share {
  border-color: #d9e4ef;
  background: #fff;
  color: #1769e8;
}
#view-profile.mobile-pro-profile-source .profile-action-share {
  padding: 8px;
}
#view-profile.mobile-pro-profile-source .profile-tabs-bar {
  margin-top: 0;
  border-top: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
  background: #fff;
}

@media (max-width: 380px) {
  #view-profile.mobile-pro-profile-source .profile-actions {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }
  #view-profile.mobile-pro-profile-source .profile-action {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }
  #view-profile.mobile-pro-profile-source .profile-stats-row {
    gap: 18px;
  }
}

/* The same source-first identity is also visible on the Mobile Pro home view. */
#home-profile-card.mobile-pro-profile-source-home {
  --profile-line: #d9e4ef;
  --profile-muted: #66788f;
  --profile-ink: #132238;
  --profile-blue: #1769e8;
  background: #fff;
  color: var(--profile-ink);
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-cover {
  height: clamp(196px, 55vw, 270px);
  background: linear-gradient(135deg, #dcecff 0%, #eef6ff 48%, #d4e7fa 100%);
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-cover-btn svg {
  width: 19px;
  height: 19px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-content {
  padding: 0 15px 16px;
  background: #fff;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-avatar-row {
  margin-top: -54px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-avatar-button {
  width: 108px;
  height: 108px;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(10,32,61,.18);
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-copy {
  padding-top: 8px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-thought {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 5px;
  padding: 8px 13px;
  border: 1px solid var(--profile-line);
  border-radius: 22px;
  background: #f7faff;
  color: var(--profile-muted);
  font: 600 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-thought svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--profile-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-name {
  margin-top: 0;
  color: var(--profile-ink);
  font-size: 28px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-bio {
  min-height: 21px;
  margin: 5px 0 9px;
  color: var(--profile-muted);
  font: 500 15px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-meta {
  gap: 7px 16px;
  margin-top: 7px;
  color: var(--profile-muted);
  font-size: 14px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stats {
  gap: 25px;
  margin-top: 12px;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stat {
  align-items: center;
  min-width: 58px;
  text-align: center;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stat-value {
  color: var(--profile-ink);
  font: 800 22px/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stat-label {
  color: var(--profile-muted);
  font: 700 10px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stats,
#view-profile.mobile-pro-profile-source .profile-stats-row {
  align-items: flex-start;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stat-value,
#view-profile.mobile-pro-profile-source .profile-stat-val {
  display: block;
  min-height: 23px;
  line-height: 23px;
  white-space: nowrap;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-stat-label,
#view-profile.mobile-pro-profile-source .profile-stat-lbl {
  display: block;
  min-height: 12px;
  line-height: 12px;
  white-space: nowrap;
}
#home-profile-card.mobile-pro-profile-source-home .home-profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 10px;
}
#home-profile-card.mobile-pro-profile-source-home .profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 14px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
}
#home-profile-card.mobile-pro-profile-source-home .profile-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home-profile-card.mobile-pro-profile-source-home .profile-action-primary {
  background: #1769e8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(23,105,232,.2);
}
#home-profile-card.mobile-pro-profile-source-home .profile-action-secondary,
#home-profile-card.mobile-pro-profile-source-home .profile-action-share {
  border-color: #d9e4ef;
  background: #fff;
  color: #1769e8;
}
#home-profile-card.mobile-pro-profile-source-home .profile-action-share {
  padding: 8px;
}

@media (max-width: 380px) {
  #home-profile-card.mobile-pro-profile-source-home .home-profile-actions {
    gap: 6px;
  }
  #home-profile-card.mobile-pro-profile-source-home .profile-action {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }
}