.identity-level {
  display: inline-block;
  margin-top: 10px;
  color: var(--pink-dark);
  font-weight: 650;
  font-size: 13px;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-heading > .profile-signout {
  margin: 0;
}
.level-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 25px;
}
.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.level-panel .eyebrow {
  color: #c7bedb;
}
.level-panel h2 {
  color: #fff;
  font-size: 28px;
}
.level-mark {
  font-size: 25px;
  font-weight: 750;
  width: 52px;
  height: 52px;
  border: 2px solid #9d8eb9;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.level-scale {
  margin-top: 25px;
  background: #ffffff21;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
}
.level-scale > span {
  display: block;
  height: 100%;
  background: var(--pink);
  border-radius: 6px;
}
.level-scale-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #d8d1e4;
  margin-top: 12px;
}
.level-stages {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
}
.level-stages > span {
  color: #bdb3ce;
  font-size: 14px;
  font-weight: 600;
}
.level-stages .active {
  color: #fff;
}
.level-stages small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-top: 6px;
  color: #c7bedb;
}
.level-note {
  color: #c7bedb;
  font-size: 12px;
  margin-top: 22px;
}
.daily-panel,
.privileges-panel,
.intro-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 28px 0;
}
.daily-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.daily-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.daily-heading > .pill {
  white-space: nowrap;
}
.daily-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}
.daily-day {
  border-radius: 12px;
  padding: 16px 10px;
  background: #f1eff5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #655e74;
  font-size: 12px;
  position: relative;
  min-height: 130px;
}
.daily-day strong {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.daily-day small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.daily-day.current {
  background: var(--pink);
  color: white;
  box-shadow: 0 6px 16px #ed168125;
}
.daily-day.claimed {
  background: #eeebf5;
  color: var(--navy);
}
.daily-day.claimed > span:first-child {
  font-size: 17px;
  line-height: 18px;
}
.daily-day.future {
  border: 1px dashed #d4cfdf;
}
.daily-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.daily-bottom .primary-button {
  white-space: nowrap;
}
.privilege-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: 25px;
}
.privilege {
  display: flex;
  gap: 13px;
  align-items: start;
}
.privilege h3 {
  font-size: 15px;
  line-height: 1.4;
  color: var(--navy);
}
.privilege p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.privilege small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.privilege-symbol {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eeeaf5;
  color: #978ba8;
  font-size: 18px;
}
.privilege.unlocked .privilege-symbol {
  background: var(--soft);
  color: var(--pink-dark);
}
.goal-card {
  border-top: 4px solid var(--navy);
}
.goal-card.locked {
  border-top-color: #d7d2e1;
  background: #f9f8fc;
}
.goal-card.completed {
  border-top-color: var(--pink);
}
.goal-card-top {
  align-items: start;
  flex-wrap: wrap;
}
.goal-card-top > strong {
  white-space: nowrap;
}
.goal-card-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.goal-card > p {
  margin-bottom: 25px;
}
.goal-card-bottom .primary-button {
  display: inline-block;
  font-size: 13px;
  padding: 11px 17px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.achievement-card {
  align-items: stretch;
  text-align: left;
  padding: 23px;
  position: relative;
}
.achievement-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.achievement-symbol {
  background: #f3eff9;
  color: var(--navy);
  width: 55px;
  height: 55px;
  font-size: 40px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 15px;
}
.achievement-group {
  font-size: 11px;
  color: var(--muted);
}
.achievement-card h2 {
  font-size: 19px;
  margin-top: 22px;
}
.achievement-card > p {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
  margin-bottom: 18px;
}
.achievement-reward {
  font-size: 14px;
  font-weight: 650;
  color: var(--pink-dark);
  margin-top: auto;
  padding-top: 5px;
}
.achievement-progress {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.achievement-progress progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
.achievement-progress progress::-webkit-progress-bar {
  background: #eeebf4;
}
.achievement-progress progress::-webkit-progress-value {
  background: var(--pink);
}
.achievement-progress progress::-moz-progress-bar {
  background: var(--pink);
}
.achievement-progress > span {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.achievement-earned {
  font-size: 11px;
  color: var(--muted);
  margin-top: 17px;
}
.achievement-card.earned {
  border-color: #ed168155;
  background: #fffafd;
}
.achievement-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}
.achievement-group-label select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--navy);
}
.intro-panel {
  border: 2px solid #ed168155;
}
.intro-panel > p {
  margin-top: 20px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
}
.intro-panel fieldset {
  border: 0;
  margin: 25px 0;
  padding: 0;
}
.intro-panel legend {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 12px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
}
.quiz-option input {
  accent-color: var(--pink);
  width: 18px;
  height: 18px;
  min-height: 0;
}
.intro-panel .primary-button {
  margin-top: 10px;
}
@media (max-width: 1120px) {
  .achievement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .daily-days {
    gap: 9px;
  }
  .daily-day {
    padding: 13px 6px;
  }
  .daily-day > span {
    font-size: 11px;
  }
  .level-panel {
    padding: 25px;
  }
}
@media (max-width: 760px) {
  .profile-heading {
    align-items: start;
    gap: 10px;
  }
  .profile-heading > .profile-signout {
    font-size: 12px;
    text-align: right;
    max-width: 100px;
  }
  .level-panel,
  .daily-panel,
  .privileges-panel,
  .intro-panel {
    padding: 23px 20px;
  }
  .level-panel h2 {
    font-size: 23px;
  }
  .level-scale-caption {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
  }
  .level-stages {
    gap: 12px;
    flex-wrap: wrap;
  }
  .level-stages > span {
    font-size: 12px;
    max-width: 130px;
  }
  .level-stages small {
    font-size: 10px;
  }
  .daily-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .daily-heading h2,
  .privileges-panel h2 {
    font-size: 22px;
  }
  .daily-days {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .daily-day {
    min-height: 116px;
    padding: 12px 5px;
  }
  .daily-day strong {
    font-size: 24px;
  }
  .daily-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .daily-bottom > .primary-button {
    width: 100%;
  }
  .privilege-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .achievement-card {
    padding: 19px 15px;
  }
  .achievement-card h2 {
    font-size: 16px;
  }
  .achievement-card > p {
    font-size: 12px;
  }
  .achievement-card-top {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .achievement-symbol {
    width: 48px;
    height: 48px;
    font-size: 35px;
  }
  .achievement-group-label {
    margin-left: 0;
    width: 100%;
    margin-top: 7px;
  }
  .achievement-group-label select {
    flex: 1;
  }
  .achievement-reward {
    font-size: 13px;
  }
  .page-heading {
    gap: 15px;
    flex-wrap: wrap;
  }
  .page-heading > .partner-link {
    margin-top: 0;
  }
  .program-filters > .history-filter {
    font-size: 12px;
  }
  .goal-grid {
    gap: 16px;
  }
  .intro-panel h2 {
    font-size: 22px;
  }
  .intro-panel .daily-heading {
    flex-direction: row;
  }
  .intro-panel .primary-button {
    width: 100%;
    font-size: 13px;
  }
  .level-note {
    font-size: 11px;
  }
  .privilege p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
.achievement-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #f0ebfb;
  color: var(--navy);
  border: 1px solid #e0d8f0;
}
.achievement-badge svg {
  width: 34px;
  height: 34px;
}
.achievement-badge.badge-story {
  background: #fff0f7;
  color: var(--pink-dark);
  border-color: #f6cce0;
}
.achievement-badge.badge-level {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.achievement-badge.badge-streak {
  background: #fff0f7;
  color: var(--pink-dark);
}
.achievement-badge.badge-intro {
  background: #eeeaf7;
  color: var(--navy);
}
.achievement-card.earned .achievement-badge {
  box-shadow: 0 0 0 3px #ed168115;
}
.loyalty-achievement-list .achievement-badge {
  display: grid;
  margin-bottom: 18px;
  color: var(--navy);
}
.loyalty-achievement-list .badge-story,
.loyalty-achievement-list .badge-streak {
  color: var(--pink-dark);
}
.loyalty-achievement-list .badge-level {
  color: white;
}
@media (max-width: 760px) {
  .achievement-badge {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
  .achievement-badge svg {
    width: 30px;
    height: 30px;
  }
}
