/* Demo-identical profile UI (mobile app) — wired to live data */
.app-profile {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.app-profile .pcov {
  position: relative;
  height: 148px;
  margin: 0 0 52px;
  background: center / cover no-repeat #ebe6de;
  border-radius: 0;
}

.app-profile .pcov__av {
  position: absolute;
  left: 18px;
  bottom: -40px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--surface, #fdfbf7);
  background: center / cover no-repeat #ebe6de;
  box-shadow: 0 8px 20px rgba(63, 58, 51, 0.12);
}

.app-profile .pcov__edit {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(22, 30, 28, 0.45);
  color: #fffaf4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.app-profile .phead {
  padding: 0 18px 12px;
}

.app-profile .phead h1 {
  margin: 0;
  font-family: var(--display, var(--serif));
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.app-profile .phead__status {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 600;
}

.app-profile .phead__bio {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.app-profile .pstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 18px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.app-profile .pstat {
  text-align: center;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 4px;
  color: inherit;
}

.app-profile .pstat strong {
  display: block;
  font-family: var(--display, var(--serif));
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--text-heading);
}

.app-profile .pstat span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-profile .pacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px 8px;
}

.app-profile .pacts--stack {
  grid-template-columns: 1fr;
  padding: 16px 0 0;
}

.app-profile .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.app-profile .cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.app-profile .cta--ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px rgba(52, 143, 133, 0.45);
}

.app-profile .cta--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.app-profile .psubs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 18px 0;
  margin: 0 0 4px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.app-profile .psubs::-webkit-scrollbar {
  display: none;
}

.app-profile .psub {
  flex: 0 0 auto;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.app-profile .psub.is-on {
  color: var(--text-heading);
}

.app-profile .psub.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.app-profile .ppanel {
  padding: 14px 18px 20px;
}

.app-profile .ppanel[hidden] {
  display: none !important;
}

.app-profile .pline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.app-profile .pline span:first-child {
  color: var(--text-muted);
}

.app-profile .pline span:last-child {
  color: var(--text-heading);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.app-profile .app-profile__search {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.app-profile .lk-profile__friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-profile .friend,
.app-profile .lk-social-friend,
.app-profile .lk-profile__friends-list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.app-profile .friend__av,
.app-profile .lk-social-friend__av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: center / cover no-repeat #ebe6de;
  flex: 0 0 auto;
  object-fit: cover;
}

.app-profile .friend__name {
  margin: 0;
  font-weight: 700;
  color: var(--text-heading);
}

.app-profile .friend__meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-profile .friend__btn {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 4px 0;
}

.app-profile .lk-social-friend__acts {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-profile .lk-profile__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-profile .lk-profile__gallery li,
.app-profile .lk-profile__gallery-item {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}

.app-profile .lk-profile__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-profile .lk-profile__section-head h2,
.app-profile .lk-profile__aside-h {
  font-family: var(--display, var(--serif));
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--text-heading);
  margin: 16px 0 8px;
}

.app-profile .lk-profile__booking-list,
.app-profile .lk-profile__visit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-profile .lk-profile__booking,
.app-profile .lk-profile__visit,
.app-profile .lk-profile__booking-list > li,
.app-profile .lk-profile__visit-list > li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

/* Mobile: hide legacy LK chrome around profile */
@media (max-width: 860px) {
  body.has-app-tabbar .lk-profile__page-head,
  body.has-app-tabbar .lk-profile__mode-switch,
  body.has-app-tabbar .lk-profile__profile-aside,
  body.has-app-tabbar .lk-sidebar-col {
    display: none !important;
  }

  body.has-app-tabbar .lk-align,
  body.has-app-tabbar .lk-main-inner,
  body.has-app-tabbar .lk-page-body,
  body.has-app-tabbar .site-account-main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  body.has-app-tabbar .lk-profile {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (min-width: 861px) {
  .app-profile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 10px 28px rgba(63, 58, 51, 0.07));
  }

  .app-profile .pcov {
    border-radius: 0;
  }
}
