.profile-journey-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: 20px 28px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface));
  box-shadow: 0 12px 30px rgba(48, 38, 110, .06);
}

.profile-journey-copy h2 { margin: 4px 0 6px; font-size: 20px; }
.profile-journey-copy p { max-width: 570px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-progress-summary { align-self: center; padding: 15px; border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.profile-progress-summary strong { display: block; color: var(--primary-strong); font: 800 30px 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px; }
.profile-progress-summary > span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.profile-progress-track { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--line); }
.profile-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #a78bfa); }
.profile-phase-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line)); }
.profile-phase { display: flex; gap: 9px; min-width: 0; color: var(--muted); }
.profile-phase-marker { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 800; }
.profile-phase.is-done .profile-phase-marker { color: #fff; background: var(--primary); }
.profile-phase div { min-width: 0; }
.profile-phase strong, .profile-phase span { display: block; }
.profile-phase strong { color: var(--text); font-size: 11px; }
.profile-phase span { margin-top: 3px; font-size: 10px; line-height: 1.35; }

.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.profile-stat-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.profile-stat-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 11px; border-radius: 10px; color: var(--primary-strong); background: var(--primary-soft); font-size: 16px; font-weight: 800; }
.profile-stat-card strong, .profile-stat-card > span:not(.profile-stat-icon) { display: block; }
.profile-stat-card > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 18px; }
.profile-stat-card > span:not(.profile-stat-icon) { min-height: 28px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.profile-stat-card button, .profile-stat-action { display: inline-flex; align-items: center; min-height: 32px; margin-top: 9px; padding: 0; border: 0; color: var(--primary-strong); background: transparent; font: 700 11px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; }
.profile-stat-card button:hover, .profile-stat-card button:focus-visible, .profile-stat-action:hover, .profile-stat-action:focus-visible { color: var(--primary); text-decoration: underline; }

@media (max-width: 900px) {
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-phase-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
}

@media (max-width: 570px) {
  .profile-journey-card { grid-template-columns: 1fr; padding: 17px; }
  .profile-progress-summary { align-self: stretch; }
  .profile-phase-list { grid-template-columns: 1fr; }
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .profile-stat-card { padding: 12px; }
}

@media (max-width: 360px) {
  .profile-stat-grid { grid-template-columns: 1fr; }
}
