:root {
  --purple: #6c4ce6;
  --purple-dark: #4329bd;
  --purple-soft: #eee9ff;
  --ink: #22223b;
  --muted: #6d6d80;
  --green: #168354;
  --green-soft: #d9f7e7;
  --red: #a43636;
  --red-soft: #ffe0e0;
  --yellow: #ffc94d;
  --card: rgba(255, 255, 255, .96);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f7f4ff;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, #fff2bc 0 7%, transparent 7.5%),
    radial-gradient(circle at 91% 16%, #d9f7ea 0 8%, transparent 8.5%),
    linear-gradient(180deg, #f7f4ff 0%, #eef8ff 100%);
}
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }
.app-shell {
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 30px) 42px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  font-size: 28px;
  box-shadow: 0 10px 26px rgba(108, 76, 230, .25);
}
.brand h1 { margin: 0; font-size: clamp(23px, 4.5vw, 36px); }
.brand p { margin: 3px 0 0; color: var(--muted); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  border: 0;
  border-radius: 999px;
  background: white;
  padding: 11px 15px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 7px 22px rgba(35, 30, 70, .11);
}
.pill.primary { background: var(--purple); color: white; }
.card {
  background: var(--card);
  border: 1px solid rgba(108, 76, 230, .10);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(45, 38, 90, .12);
  padding: clamp(20px, 4vw, 38px);
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.hero h2 { font-size: clamp(30px, 6vw, 52px); margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0 0 22px; }
.hero-art {
  min-height: 180px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eee9ff, #dff7ff);
  font-size: clamp(68px, 12vw, 120px);
}
.primary-btn, .secondary-btn, .choice-btn {
  border: 0;
  border-radius: 18px;
  font-weight: 900;
  cursor: pointer;
}
.primary-btn {
  min-height: 58px;
  padding: 0 24px;
  color: white;
  background: var(--purple);
  box-shadow: 0 9px 22px rgba(108, 76, 230, .25);
}
.secondary-btn {
  min-height: 48px;
  padding: 0 18px;
  color: var(--purple-dark);
  background: var(--purple-soft);
}
.primary-btn:focus-visible, .secondary-btn:focus-visible, .choice-btn:focus-visible,
.pill:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 4px solid rgba(108, 76, 230, .25);
  outline-offset: 2px;
}
.section-title {
  margin: 28px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.section-title h3 { margin: 0; font-size: 24px; }
.section-title span { color: var(--muted); }
.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.day-card {
  min-height: 132px;
  border: 0;
  border-radius: 22px;
  padding: 16px;
  text-align: left;
  background: white;
  box-shadow: 0 10px 24px rgba(40, 35, 80, .09);
  cursor: pointer;
}
.day-card strong { display: block; font-size: 21px; margin-bottom: 7px; }
.day-card span { color: var(--muted); line-height: 1.35; }
.day-card.active { background: linear-gradient(145deg, #7456e9, #5d40d3); color: white; }
.day-card.active span { color: rgba(255,255,255,.84); }
.day-card.done { box-shadow: inset 0 0 0 3px #75d8a8, 0 10px 24px rgba(40,35,80,.09); }
.day-card.locked { opacity: .55; cursor: default; }
.progress-track {
  width: 100%;
  height: 14px;
  background: #e9e6f4;
  border-radius: 999px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--purple);
  transition: width .25s ease;
}
.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.activity-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 900;
}
.activity-count { color: var(--muted); font-weight: 800; }
.question-wrap { text-align: center; padding: 12px 0 4px; }
.question-title { font-size: clamp(24px, 5vw, 39px); margin: 8px 0 10px; }
.question-text {
  color: var(--muted);
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto 24px;
}
.math-display {
  font-size: clamp(42px, 10vw, 76px);
  font-weight: 950;
  margin: 24px 0;
}
.emoji-equations {
  display: inline-grid;
  gap: 9px;
  padding: 18px 24px;
  border-radius: 22px;
  background: #fff9df;
  font-size: clamp(25px, 5vw, 38px);
  font-weight: 900;
  margin-bottom: 20px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.choice-btn {
  min-height: 76px;
  padding: 10px;
  background: #f0edff;
  color: var(--purple-dark);
  font-size: clamp(22px, 4vw, 31px);
  box-shadow: inset 0 0 0 2px rgba(108, 76, 230, .11);
}
.choice-btn.selected-correct { background: var(--green-soft); color: #12633f; }
.choice-btn.selected-wrong { background: var(--red-soft); color: var(--red); }
.answer-input, .writing-input {
  width: min(620px, 100%);
  border: 3px solid #ded8f6;
  border-radius: 18px;
  background: white;
  color: var(--ink);
}
.answer-input {
  height: 76px;
  padding: 0 18px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
}
.writing-input {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
  font-size: 19px;
  line-height: 1.5;
}
.feedback {
  min-height: 48px;
  margin: 18px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}
.feedback.good { color: var(--green); }
.feedback.bad { color: var(--red); }
.activity-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.reading-box {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: left;
  padding: 22px;
  border-radius: 20px;
  background: #f5fbff;
  line-height: 1.65;
  font-size: 18px;
}
.summary {
  text-align: center;
}
.summary-badge {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff2bc;
  font-size: 60px;
}
.summary h2 { font-size: clamp(30px, 6vw, 48px); margin: 8px 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 24px auto;
}
.stat {
  border-radius: 18px;
  background: #f6f4ff;
  padding: 18px 10px;
}
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(30, 25, 55, .55);
}
.modal {
  width: min(580px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: white;
  border-radius: 26px;
  padding: 25px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal h2 { margin-top: 0; }
.parent-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.parent-table th, .parent-table td {
  padding: 11px 8px;
  border-bottom: 1px solid #e9e6f4;
  text-align: left;
}
.small-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.install-note {
  margin-top: 18px;
  padding: 15px;
  border-radius: 18px;
  background: #eef8ff;
  color: #28536a;
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 135px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { align-items: flex-start; }
  .brand p { display: none; }
  .top-actions { flex-direction: column-reverse; align-items: flex-end; }
  .pill { padding: 9px 12px; }
  .day-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .day-card { min-height: 112px; padding: 13px; }
}
.gate-shell { display: grid; place-items: center; }
.gate-card { width: min(560px, 100%); text-align: center; }
.gate-card h1 { font-size: clamp(30px, 6vw, 46px); margin: 10px 0; }
.gate-card p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.login-card .answer-input { display: block; margin: 20px auto; max-width: 320px; letter-spacing: .25em; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sync-pill { font-size: 13px; color: var(--muted); }
@media (max-width: 620px) { .sync-pill { display: none; } }


.version-label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.hero-day-title { display: inline-block; margin-bottom: 7px; font-weight: 900; color: var(--purple-dark); }
.day-card { position: relative; }
.day-card .day-emoji { font-size: 30px; display: block; margin-bottom: 9px; }
.day-card .day-progress { display: block; height: 7px; background: #e8e5f2; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.day-card .day-progress i { display: block; height: 100%; background: var(--purple); }
.day-card.done .day-progress i { background: #38b979; }
.day-card.current { box-shadow: inset 0 0 0 3px var(--purple), 0 10px 24px rgba(40,35,80,.09); }
.day-card.locked .day-emoji { filter: grayscale(1); }
.challenge-badge { display: inline-flex; margin: 7px 0 0; padding: 6px 10px; border-radius: 999px; background: #fff2bc; color: #7b5a00; font-weight: 900; font-size: 14px; }
.feedback.tip { color: #765900; background: #fff9df; border-radius: 15px; padding: 12px; }
.day-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; color:var(--muted); margin:8px 0 16px; }
.day-meta span { background:#f6f4ff; padding:7px 11px; border-radius:999px; font-weight:800; }
.parent-days { width:100%; border-collapse:collapse; font-size:14px; }
.parent-days th, .parent-days td { padding:9px 6px; border-bottom:1px solid #ece8f5; text-align:left; }
.parent-days .yes { color:var(--green); font-weight:900; }
.parent-writing { margin:12px 0 20px; }
.parent-writing summary { cursor:pointer; font-weight:900; padding:10px; background:#f6f4ff; border-radius:12px; }
.parent-writing .reading-box { margin-top:8px; font-size:16px; }
.big-total { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:15px 0; }
.big-total div { background:#f6f4ff; padding:14px; border-radius:16px; text-align:center; }
.big-total strong { display:block; font-size:24px; }
.back-day { margin-bottom:15px; }
@media (max-width:600px) {
  .parent-days th:nth-child(3), .parent-days td:nth-child(3) { display:none; }
  .big-total { grid-template-columns:1fr; }
}


/* Versie 4.1: veilige reset in het ouderpaneel */
.danger-zone {
  margin: 24px 0 10px;
  padding: 18px;
  border: 2px solid #f2b4b4;
  border-radius: 18px;
  background: #fff6f6;
}
.danger-zone h3 { margin: 0 0 7px; color: #8f2525; }
.danger-zone p { margin: 0 0 14px; color: #704242; line-height: 1.5; }
.danger-btn {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 0 18px;
  background: #b83232;
  color: white;
  font-weight: 900;
  cursor: pointer;
}
.danger-btn:hover, .danger-btn:focus-visible {
  background: #982828;
  outline: 4px solid rgba(184, 50, 50, .20);
  outline-offset: 2px;
}


/* Versie 4.2: persoonlijke begroeting en algemene installatiehulp */
.welcome-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 950;
}
.welcome-line span {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: welcome-wave 1.2s ease-in-out 1;
}
@keyframes welcome-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  50% { transform: rotate(-8deg); }
  75% { transform: rotate(14deg); }
}
.next-mission {
  margin: 16px 0 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f6f4ff;
  border: 1px solid rgba(108, 76, 230, .11);
}
.next-mission strong {
  display: block;
  margin: 3px 0 5px;
  font-size: clamp(20px, 4vw, 28px);
}
.next-mission p {
  margin: 0;
}
.install-note p {
  margin: 8px 0 13px;
}
.install-note .secondary-btn {
  margin: 4px 6px 0 0;
}
.install-help-modal {
  width: min(700px, 100%);
}
.install-help-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.install-device {
  padding: 16px 18px;
  border: 2px solid #ece8f7;
  border-radius: 18px;
  background: #faf9ff;
}
.install-device.current {
  border-color: var(--purple);
  background: var(--purple-soft);
  box-shadow: 0 7px 20px rgba(108, 76, 230, .10);
}
.install-device.current::before {
  content: "Dit apparaat";
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.install-device h3 {
  margin: 0 0 7px;
}
.install-device p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}


/* Versie 5.0: twee pogingen en herhaling aan het einde */
.attempt-status {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 2px;
}
.attempt-status span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f0eef7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.attempt-status span.used {
  background: var(--purple-soft);
  color: var(--purple-dark);
}
.feedback.final-error {
  padding: 15px;
  border-radius: 16px;
  background: var(--red-soft);
  line-height: 1.5;
}
.feedback.final-error span {
  color: #704242;
  font-size: 16px;
}
.review-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.review-intro h2 {
  margin: 10px 0;
  font-size: clamp(28px, 6vw, 44px);
}
.review-intro > p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.review-label {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff2bc;
  color: #765900;
  font-weight: 900;
}
.review-area-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.review-area-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6f4ff;
  color: var(--purple-dark);
  font-weight: 900;
}
.review-card {
  border: 3px solid rgba(255, 201, 77, .65);
}
.review-tag {
  background: #fff2bc;
  color: #765900;
}
.review-track > span {
  background: #e2a91f;
}
.review-message {
  display: inline-block;
  margin: 14px 0 2px;
  padding: 10px 14px;
  border-radius: 15px;
  background: #fff9df;
  color: #765900;
  font-weight: 800;
}
.review-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 820px;
}
.parent-modal {
  width: min(860px, 100%);
}
.parent-total {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.parent-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.parent-days {
  min-width: 650px;
}
@media (max-width: 760px) {
  .review-stats, .parent-total { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .review-stats, .parent-total { grid-template-columns: 1fr; }
}


/* Versie 5.1: avatars */
.avatar-top-button,
.avatar-main-button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.avatar-top-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 7px 22px rgba(35, 30, 70, .14);
}
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff2bc, #eee9ff);
  border: 3px solid #fff;
  box-shadow: 0 7px 20px rgba(45, 38, 90, .16);
}
.profile-avatar img,
.avatar-choice-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-avatar.avatar-error::after {
  content: "🌈";
}
.avatar-small {
  width: 52px;
  height: 52px;
  font-size: 29px;
}
.avatar-large {
  width: 104px;
  height: 104px;
  font-size: 58px;
}
.home-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.home-profile h2 {
  margin-top: 4px;
}
.avatar-main-button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 112px;
}
.avatar-main-button > span:last-child {
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 900;
}
.avatar-main-button:hover .profile-avatar,
.avatar-main-button:focus-visible .profile-avatar,
.avatar-top-button:hover .profile-avatar,
.avatar-top-button:focus-visible .profile-avatar {
  outline: 4px solid rgba(108, 76, 230, .25);
  transform: translateY(-2px);
}
.avatar-main-button:focus-visible,
.avatar-top-button:focus-visible {
  outline: none;
}
.avatar-modal {
  width: min(760px, 100%);
}
.avatar-loading {
  text-align: center;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 12px 0 24px;
}
.avatar-choice {
  min-height: 154px;
  border: 3px solid transparent;
  border-radius: 20px;
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  background: #f7f5ff;
  color: var(--ink);
  cursor: pointer;
}
.avatar-choice:hover,
.avatar-choice:focus-visible {
  border-color: #b9abf4;
  outline: none;
  transform: translateY(-2px);
}
.avatar-choice.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
}
.avatar-choice-preview {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  font-size: 48px;
  box-shadow: 0 7px 18px rgba(45, 38, 90, .12);
}
.avatar-choice > span:nth-child(2) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.avatar-choice strong {
  color: var(--purple-dark);
  font-size: 13px;
}
.avatar-empty {
  margin: 12px 0 24px;
  padding: 18px;
  border-radius: 18px;
  background: #f5fbff;
  color: #28536a;
}
.avatar-empty p {
  margin-bottom: 0;
}
.avatar-parent-note {
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f5fbff;
  border: 1px solid #cce8f5;
}
.avatar-parent-note h3 {
  margin-top: 0;
}
.avatar-parent-note p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .home-profile {
    align-items: flex-start;
  }
  .avatar-large {
    width: 86px;
    height: 86px;
    font-size: 48px;
  }
  .avatar-main-button {
    min-width: 92px;
  }
  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sync-pill {
    display: none;
  }
}


/* Versie 5.2: avatarwinkel */
.avatar-store-modal {
  width: min(860px, 100%);
}
.avatar-store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.avatar-store-header h2 {
  margin-bottom: 5px;
}
.avatar-store-header p {
  margin-top: 0;
  color: var(--muted);
}
.wallet-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(105px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #fff8d9;
  border: 2px solid #f1d56a;
  flex: 0 0 auto;
}
.wallet-card > div {
  min-width: 105px;
  text-align: center;
  padding: 8px;
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.wallet-card strong,
.wallet-card span {
  display: block;
}
.wallet-card strong {
  font-size: 22px;
}
.wallet-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.avatar-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 26px;
}
.avatar-shop-card {
  min-height: 210px;
  padding: 14px 10px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  border: 3px solid transparent;
  border-radius: 22px;
  background: #f8f6ff;
  text-align: center;
}
.avatar-shop-card.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
}
.avatar-shop-card.locked {
  background: #fbfafc;
}
.avatar-shop-name {
  max-width: 100%;
  min-height: 38px;
  display: grid;
  place-items: center;
  line-height: 1.2;
}
.avatar-status {
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}
.avatar-status.free {
  color: #12633f;
  background: var(--green-soft);
}
.avatar-status.owned {
  color: var(--purple-dark);
  background: var(--purple-soft);
}
.avatar-status.price {
  color: #765100;
  background: #fff0a8;
}
.avatar-shop-btn {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
}
.choose-btn {
  color: white;
  background: var(--purple);
}
.buy-btn {
  color: #573800;
  background: var(--yellow);
}
.locked-btn,
.selected-btn {
  color: var(--muted);
  background: #eae7ef;
  cursor: default;
}
.parent-wallet {
  width: fit-content;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  margin: 0 0 18px;
}
.catalog-modal {
  width: min(800px, 100%);
}
.catalog-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.catalog-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #f8f7fc;
  border: 1px solid #e9e5f4;
}
.catalog-preview {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 16px rgba(45,38,90,.12);
}
.catalog-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-fields {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 9px 12px;
}
.catalog-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.catalog-fields input[type="text"],
.catalog-fields input[type="number"] {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 2px solid #ddd7ee;
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.catalog-active {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
.catalog-active input {
  width: 20px;
  height: 20px;
}
.catalog-fields small {
  grid-column: 1 / -1;
  color: var(--muted);
}
@media (max-width: 760px) {
  .avatar-store-header {
    display: grid;
  }
  .avatar-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .avatar-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wallet-card,
  .parent-wallet {
    width: 100%;
  }
  .catalog-row {
    grid-template-columns: 70px 1fr;
  }
  .catalog-preview {
    width: 64px;
    height: 64px;
  }
  .catalog-fields {
    grid-template-columns: 1fr;
  }
  .catalog-active,
  .catalog-fields small {
    grid-column: 1;
  }
}


/* Versie 5.3: seizoenscatalogus */
.avatar-season {
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f6ff;
  color: #235d78;
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-status.retired {
  color: #5f536b;
  background: #eeeaf2;
  font-size: 11px;
}


/* V6.0: family pairing and multiple child profiles */
.pair-card .family-code-input { text-transform: uppercase; letter-spacing: .16em; }
.profile-gate { width: min(820px,100%); }
.profile-gate-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:22px; }
.profile-gate-head h1 { margin:0; }
.profile-gate-head p { margin:5px 0 0; color:var(--muted); }
.profile-select-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:22px 0; }
.profile-select-card { min-height:190px; border:3px solid transparent; border-radius:24px; background:#f7f5ff; display:grid; place-items:center; align-content:center; gap:9px; padding:16px; color:var(--ink); cursor:pointer; }
.profile-select-card:hover,.profile-select-card:focus-visible { border-color:var(--purple); outline:none; transform:translateY(-2px); }
.profile-select-card strong { font-size:22px; }
.profile-select-card span:last-child { color:var(--muted); font-size:13px; }
.profile-select-avatar { width:100px; height:100px; font-size:56px; }
.pin-avatar { width:112px; height:112px; margin:0 auto 12px; font-size:62px; }
@media(max-width:680px){.profile-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-actions .pill{font-size:12px;padding:9px 10px}.profile-gate-head{display:grid}}


/* V7.0B.3 — non-destructive practice mode */
.practice-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  margin: 0 0 15px;
  padding: 13px 16px;
  border: 2px solid #b8a9ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4f0ff, #fff);
  color: #514270;
  box-shadow: 0 8px 20px rgba(76, 55, 137, .08);
}

.practice-banner strong {
  color: #4d34b8;
  white-space: nowrap;
}

.practice-banner span {
  line-height: 1.45;
}

.practice-pill {
  background: #eee8ff;
  color: #5036b9;
  border-color: #d5c9ff;
}

.practice-summary {
  border: 2px solid #cfc2fa;
}

@media(max-width:620px){
  .practice-banner {
    grid-template-columns: 1fr;
  }

  .practice-banner strong {
    white-space: normal;
  }
}

/* V7.0C.1 — incremental program updates */
.day-card.update-pending {
  border-color: #9b84ea;
  background: linear-gradient(145deg,#f5f1ff,#ffffff);
}
.day-card.update-pending .day-progress i {
  background: linear-gradient(90deg,#7657df,#a18af0);
}
.day-card.update-pending strong {
  color: #5339b6;
}
.gate-card code {
  display: inline-block;
  margin: 6px 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0edf7;
  overflow-wrap: anywhere;
}
