:root {
  --sage: #8fbc8f;
  --sage-deep: #5f8f6a;
  --sky: #a8d8ea;
  --sky-deep: #6eb5d0;
  --cream: #fff8e8;
  --cream-deep: #f3e6c8;
  --ink: #2f3a33;
  --ink-soft: #5a6b60;
  --card: #ffffff;
  --terra: #e08a6b;
  --pond: #4a9bb5;
  --grass: #7cb87c;
  --shadow: 0 10px 28px rgba(47, 58, 51, 0.12);
  --radius: 22px;
  --font: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, #cfe9d4 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 80%, #b8dff0 0%, transparent 50%),
    linear-gradient(160deg, #e8f4ec 0%, #f7f1e3 45%, #d9eef6 100%);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* ===== Stage ===== */
.stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.stage-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stage-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-meta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(95, 143, 106, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-deep);
}

.pill-meta.link {
  text-decoration: none;
}

.stage-aside {
  padding-top: 48px;
  max-width: 220px;
}

.aside-title {
  margin: 0 0 10px;
  font-weight: 800;
}

.stage-aside ol {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.aside-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .stage-aside {
    max-width: 390px;
    padding-top: 8px;
  }
  .stage-header {
    width: 100%;
    max-width: 390px;
  }
}

/* ===== iPhone frame ===== */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 48px;
  background: #1c1c1e;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2a2c,
    0 25px 60px rgba(30, 50, 40, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
}

.phone-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  z-index: 20;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--cream);
}

.screen {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  background: var(--cream);
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  z-index: 5;
}

.status-bar.light {
  color: #1f3a2a;
}

.status-icons {
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ===== Scene + Walk / Prayer sprites ===== */
.scene-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(47, 58, 51, 0.08)),
    url("assets/bg-garden.jpg") center 28% / cover no-repeat;
}

.onboard-hero.scene-hero {
  height: 250px;
}

.home-top.scene-hero {
  height: 280px;
  flex-shrink: 0;
}

.reminder-bg.scene-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 28px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.12) 0%, rgba(255, 248, 232, 0.88) 68%, #fff8e8 100%),
    url("assets/bg-garden.jpg") center 35% / cover no-repeat;
}

/* Walk sprite */
.sprite.nur-walk {
  --frame-w: 108px;
  --frame-h: 135px;
  --frames: 4;
  position: absolute;
  left: 24px;
  bottom: 36px;
  width: var(--frame-w);
  height: var(--frame-h);
  background-image: url("assets/nur-walk-sprites.png");
  background-repeat: no-repeat;
  background-size: calc(var(--frame-w) * var(--frames)) var(--frame-h);
  background-position: 0 0;
  z-index: 4;
  filter: drop-shadow(0 8px 10px rgba(40, 60, 40, 0.22));
  animation: sprite-play 0.55s steps(4) infinite;
  pointer-events: none;
  will-change: left, transform;
  transform: scaleX(1);
  transform-origin: center bottom;
}

.sprite.nur-walk.home-walk {
  --frame-w: 120px;
  --frame-h: 150px;
  bottom: 44px;
}

.sprite.nur-walk.big-walk {
  position: relative;
  left: 18% !important;
  bottom: auto;
  margin: 0 auto 8px;
  --frame-w: 130px;
  --frame-h: 162px;
}

.sprite.nur-walk.face-left {
  transform: scaleX(-1);
}

@keyframes sprite-play {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-w) * var(--frames) * -1) 0;
  }
}

/* Prayer pose sprite — played once via JS frame stepper */
.sprite.prayer-sprite {
  --frame-w: 180px;
  --frame-h: 225px;
  --frames: 4;
  width: var(--frame-w);
  height: var(--frame-h);
  margin: 0 auto;
  background-image: url("assets/poses/takbir.png");
  background-repeat: no-repeat;
  background-size: calc(var(--frame-w) * var(--frames)) var(--frame-h);
  background-position: 0 0;
  animation: none;
  filter: drop-shadow(0 10px 14px rgba(40, 60, 40, 0.2));
}

/* ===== Onboarding ===== */
.onboard-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
}

/* legacy decorative sky helpers kept unused */

.sheet {
  flex: 1;
  background: var(--card);
  border-radius: 28px 28px 0 0;
  margin-top: -18px;
  position: relative;
  z-index: 4;
  padding: 22px 22px 28px;
  box-shadow: 0 -8px 24px rgba(47, 58, 51, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 6px;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

.lead.tight {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 8px 0 6px;
}

.field,
.area {
  width: 100%;
  border: 2px solid #e6efdf;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fbfaf4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus,
.area:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(143, 188, 143, 0.25);
}

.area {
  resize: none;
  margin-bottom: 4px;
}

.age-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-deep);
  min-height: 1.2em;
}

.choice-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfaf4;
  border: 2px solid #e6efdf;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}

.choice.on {
  border-color: #f07850;
  background: #fff0e8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: linear-gradient(180deg, #ff9f6b 0%, #f07850 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 120, 80, 0.35);
  margin-top: 10px;
}

.btn.soft {
  background: #fff;
  color: #2f6f8f;
  border: 2px solid #b8dff0;
}

.btn.ghost {
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 4px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5e4d6;
}

.dot.on {
  background: var(--sage-deep);
  width: 20px;
  border-radius: 999px;
}

/* ===== Home ===== */
.home-top {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.float-pills {
  position: absolute;
  top: 42px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 6;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(47, 58, 51, 0.1);
}

.coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6d98a, #c48a2e);
}

.greet {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  text-align: center;
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  color: #1f3a2a;
  z-index: 5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  background: rgba(255, 248, 232, 0.72);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 12px;
}

.home-body {
  flex: 1;
  overflow: auto;
  padding: 0 16px 88px;
  margin-top: -16px;
  position: relative;
  z-index: 5;
}

.progress-card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bar {
  height: 8px;
  background: #efe6d2;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7fbf86, #5f9a68);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.menu-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card {
  display: grid;
  grid-template-columns: 56px 1fr 20px;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  border: 2px solid transparent;
}

.menu-card.menu-jadwal {
  background: linear-gradient(135deg, #e8f7ff, #ffffff);
  border-color: #b5e0f5;
}

.menu-card.menu-belajar {
  background: linear-gradient(135deg, #eef9e6, #ffffff);
  border-color: #c5e8b0;
}

.menu-card.menu-jurnal {
  background: linear-gradient(135deg, #fff0e8, #ffffff);
  border-color: #f5c9b0;
}

.menu-card:active {
  transform: scale(0.985);
}

.menu-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(47, 58, 51, 0.08);
  overflow: hidden;
}

.menu-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-text strong {
  font-size: 0.98rem;
}

.menu-text small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.chev {
  font-size: 1.4rem;
  color: var(--sage-deep);
  font-weight: 700;
}

/* ===== Tabbar ===== */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ebe4d4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px 16px;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8a968c;
}

.tab svg {
  display: none;
}

.tab-img,
.tab::before {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tab:not(:has(.tab-img))::before {
  content: "";
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.tab[data-go="home"]::before { background-image: url("assets/icons/home.png"); }
.tab[data-go="jadwal"]::before { background-image: url("assets/icons/jadwal.png"); }
.tab[data-go="belajar"]::before { background-image: url("assets/icons/belajar.png"); }
.tab[data-go="jurnal"]::before { background-image: url("assets/icons/jurnal.png"); }
.tab[data-go="kalender"]::before { background-image: url("assets/icons/kalender.png"); }

.tab.on {
  color: #e07848;
}

/* ===== Shared page ===== */
.topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 8px 12px 4px;
}

.topbar h2 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sage-deep);
  background: #eef5ea;
}

.page-pad {
  flex: 1;
  overflow: auto;
  padding: 8px 16px 88px;
}

.jurnal-pad,
.gerak-pad {
  padding-bottom: 28px;
}

/* ===== Jadwal ===== */
.next-card {
  position: relative;
  border-radius: 24px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  min-height: 190px;
  box-shadow: var(--shadow);
}

.next-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 40, 50, 0.15), rgba(20, 30, 40, 0.55)),
    url("assets/bg-masjid-dzuhur.jpg") center 40% / cover no-repeat;
  transition: background-image 0.35s ease;
}

.next-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px 18px 18px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.next-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.next-name {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.next-time {
  margin: 0 0 14px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.next-content .btn.soft {
  background: rgba(255, 255, 255, 0.95);
  color: #2f6f8f;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.prayer-list,
.motion-list,
.goal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prayer-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(47, 58, 51, 0.06);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.prayer-item.active {
  border-color: #f0a070;
  background: #fff8f2;
}

.prayer-item:active {
  transform: scale(0.99);
}

.motion-item,
.goal-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(47, 58, 51, 0.06);
}

.motion-item {
  grid-template-columns: 44px 1fr 16px;
  text-align: left;
  width: 100%;
}

.dot-prayer {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.prayer-item .name {
  font-weight: 800;
}

.prayer-item .meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.prayer-item .time {
  font-weight: 800;
  color: var(--pond);
}

/* ===== Reminder ===== */
.reminder-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  z-index: 2;
}

.reminder-tag {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--terra);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reminder-copy {
  margin: 0 0 18px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ===== Belajar / Gerakan ===== */
.motion-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #8fbc8f, #5f9a68);
}

.gerak-stage {
  height: 220px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 248, 232, 0.55)),
    url("assets/bg-garden.jpg") center 55% / cover no-repeat;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.langkah-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.langkah-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.9rem;
}

.langkah-list li {
  margin-bottom: 6px;
}

.langkah-list li:last-child {
  margin-bottom: 0;
}

.figure {
  position: relative;
  width: 90px;
  height: 110px;
}

.fig-head {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 36px;
  background: #f0c9a0;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.fig-body {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 44px;
  height: 50px;
  background: #6eb5a0;
  border-radius: 16px;
  transform: translateX(-50%);
}

.fig-glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 240, 180, 0.7), transparent 70%);
  animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.sujud-anim .fig-head {
  top: 58px;
  animation: sujudHead 2.8s ease-in-out infinite;
}

.sujud-anim .fig-body {
  top: 70px;
  width: 70px;
  height: 28px;
  border-radius: 20px;
  animation: sujudBody 2.8s ease-in-out infinite;
}

@keyframes sujudHead {
  0%,
  100% {
    top: 58px;
  }
  50% {
    top: 52px;
  }
}

@keyframes sujudBody {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    transform: translateX(-50%) scaleX(1.05);
  }
}

.ruku-anim .fig-body {
  height: 36px;
  top: 55px;
  transform: translateX(-50%) rotate(20deg);
  transform-origin: top center;
}

.berdiri-anim .fig-body {
  height: 58px;
}

.bacaan-card,
.touch-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.bacaan-label,
.touch-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bacaan-ar {
  margin: 0 0 6px;
  font-size: 1.35rem;
  text-align: right;
  line-height: 1.5;
  font-weight: 700;
}

.bacaan-lat {
  margin: 0 0 4px;
  font-weight: 800;
}

.bacaan-arti,
.touch-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 600;
}

.nav-gerak {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ===== Jurnal ===== */
.goals-card {
  background: #fff6d8;
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.goals-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.goal-item {
  background: #fff;
  cursor: pointer;
}

.goal-item.done {
  opacity: 0.72;
}

.goal-item.done .goal-name {
  text-decoration: line-through;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #c9d6c4;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.goal-item.done .check {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.goal-item.done .check::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.goal-name {
  font-weight: 800;
}

.goal-pts {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--terra);
}

.followup {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ===== Kalender ===== */
.cal-card {
  background: var(--card);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 800;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef5ea;
  color: var(--sage-deep);
  font-size: 1.2rem;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.cal-day.muted {
  color: #b5beb6;
}

.cal-day.today {
  background: #e8f4ea;
}

.cal-day.selected {
  background: var(--sage-deep);
  color: #fff;
}

.cal-day .mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage-deep);
}

.cal-day.selected .mark {
  background: #fff;
}

.history-card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.history-body {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 600;
}

.history-body .entry {
  background: #fbfaf4;
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
}

.history-body .entry strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.muted {
  margin: 0;
  color: var(--ink-soft);
}

::selection {
  background: #c9e8b8;
  color: var(--ink);
}
