/* Pyrk member mobile experience - UI only. No backend logic changes. */
.member-mobile-experience-pro {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.member-app-hero-card,
.member-next-card,
.member-progress-card,
.member-info-card,
.member-quick-tile {
  position: relative;
  border: 1px solid rgba(15, 121, 85, 0.16);
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(241,255,249,0.9));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  overflow: hidden;
}

.member-app-hero-card {
  padding: 1.3rem;
  background: radial-gradient(circle at top right, rgba(16,185,129,.22), transparent 38%),
              linear-gradient(135deg, #0f172a 0%, #114236 56%, #15845f 100%);
  color: #fff;
  min-height: 220px;
}

.member-app-hero-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -70px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
}

.member-app-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-app-avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}

.member-app-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-app-label {
  margin: 0 0 .25rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 900;
  color: #16885f;
}

.member-app-hero-card .member-app-label {
  color: rgba(210, 255, 235, .9);
}

.member-app-identity h2,
.member-next-card h3,
.member-progress-card h3,
.member-info-card h3 {
  margin: 0;
  color: #111827;
  line-height: 1.1;
}

.member-app-identity h2 {
  color: #fff;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
}

.member-app-identity p:last-child,
.member-card-muted {
  margin: .35rem 0 0;
  color: #64748b;
  line-height: 1.55;
}

.member-app-hero-card .member-app-identity p:last-child {
  color: rgba(255,255,255,.75);
}

.member-app-status-row,
.member-app-actions,
.member-card-footer,
.member-card-head,
.member-progress-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.member-app-status-row {
  margin-top: 1.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.member-app-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 900;
  text-transform: capitalize;
}

.member-app-status-pill.light {
  background: rgba(209,250,229,.95);
  color: #065f46;
}

.member-app-actions {
  margin-top: 1.25rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.member-app-action,
.member-card-button,
.member-card-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .75rem 1rem;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15,23,42,.12);
}

.member-app-action.primary,
.member-card-button {
  color: #fff;
  background: linear-gradient(135deg, #11875f, #16a36d);
}

.member-app-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.member-quick-tile {
  padding: 1rem .75rem;
  text-decoration: none;
  color: #111827;
  display: grid;
  gap: .22rem;
  min-height: 112px;
}

.member-quick-tile span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e9fff5;
  color: #0f7e58;
  font-size: 1.3rem;
}

.member-quick-tile strong {
  font-size: .98rem;
}

.member-quick-tile small {
  color: #64748b;
  font-weight: 700;
}

.member-app-main-grid,
.member-app-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 1rem;
}

.member-app-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-next-card,
.member-progress-card,
.member-info-card {
  padding: 1.15rem;
}

.member-card-head {
  align-items: flex-start;
}

.member-live-dot {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .43rem .65rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: .78rem;
  font-weight: 900;
}

.member-live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.member-live-dot.muted-dot {
  background: #eef2ff;
  color: #334155;
}

.member-next-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0;
}

.member-next-meta span {
  display: grid;
  gap: .2rem;
  border: 1px solid rgba(15, 121, 85, 0.12);
  border-radius: 18px;
  padding: .85rem;
  background: rgba(255,255,255,.7);
}

.member-next-meta strong {
  color: #111827;
  font-size: 1rem;
}

.member-next-meta small {
  color: #64748b;
  font-weight: 800;
}

.member-card-button {
  margin-top: .85rem;
  width: fit-content;
}

.member-progress-ring-mini {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #fff 0 55%, transparent 56%), conic-gradient(#11875f var(--member-progress, 0%), #e2e8f0 0);
  color: #0f7e58;
  font-weight: 950;
  border: 1px solid rgba(15, 121, 85, 0.12);
}

.member-progress-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 .75rem;
}

.member-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #11875f, #18b77a);
  border-radius: inherit;
  transition: width .35s ease;
}

.member-card-footer {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(15, 121, 85, 0.12);
  color: #64748b;
  font-weight: 800;
}

.member-card-footer a {
  min-height: 34px;
  padding: .45rem .75rem;
  background: #e9fff5;
  color: #0f7e58;
  box-shadow: none;
}

@media (max-width: 900px) {
  .member-app-main-grid,
  .member-app-info-grid {
    grid-template-columns: 1fr;
  }

  .member-app-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-mobile-experience-pro {
    margin-top: .75rem;
  }

  .member-app-hero-card,
  .member-next-card,
  .member-progress-card,
  .member-info-card {
    border-radius: 24px;
  }

  .member-app-identity {
    align-items: flex-start;
  }

  .member-app-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .member-app-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .member-app-action,
  .member-card-button {
    width: 100%;
  }

  .member-next-meta {
    grid-template-columns: 1fr;
  }

  .member-quick-tile {
    min-height: 100px;
  }
}

/* Profile points block used by the native app Profile shortcut */
.member-profile-points-pro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin:12px 0;
  border-radius:18px;
  border:1px solid rgba(8,127,91,.16);
  background:linear-gradient(135deg, rgba(8,127,91,.10), rgba(255,255,255,.92));
}
.member-profile-points-pro strong{
  font-size:1.55rem;
  line-height:1;
  color:#087f5b;
  letter-spacing:-.03em;
}
.member-profile-points-pro span{
  color:#475569;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.74rem;
}
body.pyrk-native-app #memberProfileSection{
  scroll-margin-top:110px;
}


/* v3: priority action and full mobile profile options */
.member-priority-walk-action{margin:18px 0 22px;}
.member-priority-walk-action[hidden]{display:none!important;}
.priority-walk-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px;border-radius:28px;background:linear-gradient(135deg,#063d34,#0a8d68 58%,#e9fff6);color:#fff;box-shadow:0 24px 60px rgba(6,61,52,.22);overflow:hidden;}
.priority-walk-card:before{content:"";position:absolute;inset:-40% -20% auto auto;width:190px;height:190px;border-radius:999px;background:rgba(255,255,255,.16);}
.priority-walk-icon{width:56px;height:56px;border-radius:22px;display:grid;place-items:center;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.22);font-size:1.5rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.2);}
.priority-walk-copy{position:relative;min-width:0;}
.priority-walk-copy .member-app-label{color:#d9fff1;margin:0 0 4px;}
.priority-walk-copy h2{margin:0 0 5px;color:#fff;font-size:1.35rem;line-height:1.05;}
.priority-walk-copy p{margin:0;color:rgba(255,255,255,.88);font-weight:800;line-height:1.35;}
.priority-walk-copy small{color:rgba(255,255,255,.76);font-weight:800;}
.priority-walk-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 16px;border-radius:18px;background:#fff;color:#087f5b;text-decoration:none;font-weight:1000;box-shadow:0 12px 28px rgba(0,0,0,.12);white-space:nowrap;}
.member-profile-hub-card{grid-column:1/-1;}
.member-profile-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;}
.member-profile-option-grid a{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:13px;border-radius:18px;border:1px solid rgba(8,127,91,.12);background:linear-gradient(180deg,#fff,#f8fffb);text-decoration:none;color:#102033;box-shadow:0 10px 26px rgba(16,32,51,.05);}
.member-profile-option-grid a span{width:38px;height:38px;border-radius:15px;display:grid;place-items:center;background:#eafaf3;color:#087f5b;font-weight:1000;}
.member-profile-option-grid a strong{font-size:.94rem;font-weight:1000;line-height:1.1;}
.member-profile-option-grid a small{display:block;color:#64748b;font-size:.72rem;font-weight:800;line-height:1.25;margin-top:2px;}
@media (max-width:700px){.priority-walk-card{grid-template-columns:1fr;align-items:start}.priority-walk-icon{width:48px;height:48px}.priority-walk-btn{width:100%}.member-profile-option-grid{grid-template-columns:1fr}.member-priority-walk-action{margin-top:10px}}
body.pyrk-native-app .member-priority-walk-action{scroll-margin-top:118px;}
