/* Stride live member profile: page content only, the shell comes from stride-dashboard.css */

.sp-page { gap: 20px; padding-top: 24px; }

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  height: 32px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
}

/* Identity block */
.sp-head { display: flex; align-items: center; gap: 24px; }
.sp-avatar { position: relative; width: 120px; height: 120px; flex: none; }
.sp-app .sp-avatar img { width: 120px; height: 120px; object-fit: cover; }
.sp-mini {
  position: absolute;
  bottom: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--t2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: transform .2s var(--ease), color .2s;
}
.sp-mini--cam { right: 30px; }
.sp-mini--del { right: -4px; }
.sp-mini:hover { transform: scale(1.1); color: var(--p); }
.sp-id { flex: 1; }
.sp-id h3 { margin: 0; font-family: inherit; font-size: 30px; font-weight: 700; line-height: 38px; letter-spacing: -0.4px; color: var(--t1); }
.sp-num { margin-top: 2px; font-size: 14px; color: var(--t3); }
.sp-status { margin-top: 10px; }
.sp-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 38px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--t2);
}

/* Tabs with a sliding underline */
.sp-tabs { position: relative; display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.sp-tabs button { height: 40px; font-size: 14px; font-weight: 500; color: var(--t3); transition: color .2s; }
.sp-tabs button.is-active, .sp-tabs button:hover { color: var(--p); }
.sp-tabs button.is-active { font-weight: 600; }
.sp-ink {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--p);
  transition: transform .35s var(--ease), width .35s var(--ease);
}

/* Money KPIs */
.sp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-kpi { padding: 18px 20px; border-radius: 8px; background: #f4f4f8; transition: background .25s, transform .25s var(--ease); }
.sp-kpi:hover { background: var(--p-100); }
.is-live .sp-kpi.sd-in:hover { transform: translateY(-2px); }
.sp-kpi .k-label { font-size: 13px; font-weight: 500; color: var(--t3); line-height: 18px; }
.sp-kpi .k-value { margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 34px; letter-spacing: -0.3px; }

/* Spending + packages */
.sp-main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
.sp-main h4 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--t1); }
.sp-total { margin-top: 6px; font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.3px; }
.sp-sub { font-size: 13px; color: var(--t3); }
.sp-sub b { margin-left: 4px; color: var(--green); font-weight: 600; }

.sp-chart { margin-top: 14px; height: 168px; }
.sp-chart svg { display: block; width: 100%; height: 168px; overflow: visible; cursor: crosshair; }
.sp-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .7s; }
.is-live .sp-line { stroke-dashoffset: 0; }
.sp-reveal { transform: scaleX(0); transform-origin: 0 0; transform-box: fill-box; transition: transform 1.6s var(--ease) .75s; }
.is-live .sp-reveal { transform: none; }
.sp-guide { stroke: var(--p); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .2s; }
.sp-dot { fill: #fff; stroke: var(--p); stroke-width: 3; opacity: 0; transition: opacity .2s; }
.is-hover .sp-guide, .is-hover .sp-dot { opacity: 1; }
.sp-months { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--t3); }

.sp-packs ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sp-pack {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .25s, background .25s, opacity .6s var(--ease), transform .6s var(--ease);
}
.sp-pack:hover { border-color: var(--p-200); background: #fbfbfe; }
.sp-app .sp-pack img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; }
.sp-pack-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sp-pack-txt b { font-size: 15px; font-weight: 600; }
.sp-pack-txt span { font-size: 13px; color: var(--t3); }

/* Info tiles */
.sp-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.sp-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--p-100); color: var(--p); }
.sp-tile-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-tile-txt span { font-size: 13px; color: var(--t3); }
.sp-tile-txt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-default { padding: 3px 9px; border-radius: 999px; background: var(--p-100); color: var(--p); font-size: 12px; font-weight: 600; }
.sp-chev { color: var(--t3); transition: transform .2s var(--ease), color .2s; }
.sp-tile--link:hover .sp-chev { transform: translateX(3px); color: var(--p); }

@media (prefers-reduced-motion: reduce) {
  .sp-line, .sp-reveal, .sp-ink { transition: none; }
}
