:root {
  --bg: #f7f2ea;
  --bg-soft: #fbf8f3;
  --card: #ffffff;
  --ink: #2a221c;
  --muted: #8b7b6e;
  --tan: #b39a7d;
  --purple: #7a6aa8;
  --purple-soft: #cfc4e8;
  --purple-deep: #5f5088;
  --btn: #2b2724;
  --line: rgba(90, 70, 55, 0.1);
  --shadow: 0 10px 28px rgba(70, 50, 35, 0.08);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: calc(64px + var(--safe-bottom));
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input { font: inherit; }
button { border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(ellipse 80% 40% at 80% -5%, rgba(180, 170, 220, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 30% at 10% 0%, rgba(210, 190, 160, 0.2), transparent 50%),
    var(--bg);
}

.screen {
  display: none;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + 12px);
  animation: fadeIn .28s ease;
}
.screen.is-active { display: block; }
.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: 0;
  overflow: auto;
}
.screen-overlay.is-active { display: flex; flex-direction: column; }
.app:has(.screen-overlay.is-active) .tabbar { display: none; }

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 20px 8px;
}
.topbar-simple { justify-content: center; }
.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-lockup strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a88b6a;
}
.brand-lockup span {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #b39a7d;
  margin-top: 3px;
}
.heart-inline {
  display: inline-flex;
  width: 0.72em;
  height: 0.72em;
  color: var(--purple);
  vertical-align: middle;
  margin-left: 2px;
}
.heart-inline svg { width: 100%; height: 100%; }
.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--purple-deep);
}
.topbar-home .icon-btn {
  width: 38px;
  height: 38px;
}
.topbar-home .icon-btn svg {
  width: 26px;
  height: 26px;
}
.topbar-home .icon-btn__dot {
  top: 6px;
  right: 7px;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot,
.icon-btn__dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  border: 0;
  box-shadow: none;
}
.icon-btn.light, .back-btn.light { color: #fff; }

.scroll {
  padding: 4px 20px 24px;
}
.greeting {
  text-align: center;
}
.greeting h1 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 32px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.greeting .heart { color: var(--purple); font-weight: 400; }
.daily-quote {
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  max-width: 32ch;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(15px, 4vw, 17px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  quotes: "\201E" "\201C";
}
.daily-quote::before {
  content: open-quote;
  margin-right: 0.12em;
  color: var(--purple-soft);
  font-size: 1.15em;
  line-height: 0;
  vertical-align: -0.08em;
}
.daily-quote::after {
  content: close-quote;
  margin-left: 0.08em;
  color: var(--purple-soft);
  font-size: 1.15em;
  line-height: 0;
  vertical-align: -0.08em;
}

.topbar-home {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.topbar-home > .icon-btn[data-open-menu] {
  grid-column: 1;
  justify-self: start;
}
.topbar-home .brand-logo {
  grid-column: 2;
  justify-self: center;
}
.topbar-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.karma-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-deep);
  white-space: nowrap;
}
.karma-chip__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.topbar-home .topbar-actions .icon-btn {
  flex: 0 0 auto;
}

.streak-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.streak-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.streak-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.xp-panel {
  grid-column: 2;
  justify-self: end;
  width: min(210px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: right;
}
.xp-level {
  font-size: 12px;
  font-weight: 800;
  color: var(--purple-deep);
  line-height: 1.2;
}
.xp-progress {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}
.xp-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ece6dc;
  overflow: hidden;
}
.xp-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b39a7d, var(--purple));
  transition: width 0.4s ease;
}
.streak-fire {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}
.streak-fire .ico-img,
.streak-fire img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(232, 100, 30, 0.22));
}

.ico-img {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.category-hero__art .ico-img,
.category-hero__art img {
  width: 64px;
  height: 64px;
}
.badge-orb .ico-img,
.badge-orb img {
  width: 72px;
  height: 72px;
}
.tab-ico .ico-img,
.tab-ico img {
  width: 28px;
  height: 28px;
}
.course-card__icon .ico-img,
.course-card__icon img {
  width: 32px;
  height: 32px;
}

.tab-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.tab-ico svg {
  width: 24px;
  height: 24px;
  display: block;
}
.tab.is-active .tab-ico {
  background: #efe8f7;
  color: var(--purple-deep);
  transform: translateY(-1px);
}
.tab:not(.is-active) .tab-ico {
  color: #b0a094;
}
.tab:not(.is-active) .tab-ico .tab-fill {
  opacity: 0.85;
}
.streak-pill strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1;
}
.streak-pill > div > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.streak-meta {
  display: none;
}

.category-stack {
  display: grid;
  gap: 12px;
}
.category-hero {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 16px 14px 14px;
  border-radius: 24px;
  color: #fff;
  text-align: left;
  width: 100%;
  box-shadow: 0 14px 28px rgba(60, 40, 30, 0.12);
}
.category-hero.tone-love {
  background: linear-gradient(135deg, #9a6f8e 0%, #6d4a66 100%);
}
.category-hero.tone-money {
  background: linear-gradient(135deg, #c9a06a 0%, #8f6a3d 100%);
}
.category-hero.tone-health {
  background: linear-gradient(135deg, #7ea38a 0%, #4f7260 100%);
}
.category-hero__art {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 16px rgba(20, 10, 5, 0.22));
}
.category-hero__art .ico-cat,
.category-hero__art svg { width: 72px; height: 72px; display: block; }
.category-hero__copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
}
.category-hero__copy span {
  display: block;
  margin-top: 4px;
  opacity: 0.88;
  font-size: 13px;
  font-weight: 600;
}
.category-hero__go {
  font-size: 28px;
  opacity: 0.8;
  line-height: 1;
}

.badge-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100px;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.badge-rail::-webkit-scrollbar { display: none; }
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.badge-orb {
  width: 76px;
  height: 76px;
  border-radius: 0;
  display: grid;
  place-items: center;
  place-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(40, 30, 20, 0.16));
}
.badge-orb .ico-badge,
.badge-orb svg {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0;
}
.badge-item.is-locked .badge-orb {
  filter: grayscale(1) brightness(1.05) opacity(0.48);
}
.badge-item strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.badge-item span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.25;
}
.text-link.muted {
  color: var(--muted);
  pointer-events: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(22, 16, 24, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 240px));
  z-index: 80;
  width: min(320px, 88vw);
  transform: translateX(-108%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none !important; }
.drawer-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(12px + var(--safe-top)) 14px calc(14px + var(--safe-bottom));
  background:
    radial-gradient(ellipse 120% 45% at 0% 0%, rgba(180, 160, 220, 0.22), transparent 58%),
    linear-gradient(180deg, #fdfaf5 0%, #f7f2ea 100%);
  box-shadow: 16px 0 40px rgba(30, 20, 40, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.65);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.drawer-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(80, 50, 120, 0.14);
}
.drawer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.15;
}
.drawer-brand span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.drawer-close svg { width: 20px; height: 20px; }
.drawer-user {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 12px 12px 10px;
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(135deg, rgba(122, 106, 168, 0.16), rgba(201, 160, 106, 0.12));
  border: 1px solid rgba(122, 106, 168, 0.12);
  box-shadow: var(--shadow);
}
.drawer-user:active { transform: scale(0.985); }
.drawer-user__avatar {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ebe4f5, #ddd2ef);
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.drawer-user__avatar img,
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.drawer-user__avatar.has-photo img,
.avatar.has-photo img {
  display: block;
}
.drawer-user__avatar.has-photo,
.avatar.has-photo {
  color: transparent;
}
.drawer-user__meta {
  min-width: 0;
}
.drawer-user__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-user__meta span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-user__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4a853, #c9923a);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drawer-user__chev {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.drawer-sections {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 14px;
  align-content: start;
  padding-right: 2px;
}
.drawer-section__label {
  margin: 0 0 8px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-group {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(90, 70, 55, 0.08);
  box-shadow: var(--shadow);
}
.drawer-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px 10px 12px;
  text-align: left;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.drawer-row + .drawer-row {
  border-top: 1px solid rgba(90, 70, 55, 0.08);
}
.drawer-row:active { background: rgba(122, 106, 168, 0.06); }
.drawer-row__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.drawer-row__ico .ico-img,
.drawer-row__ico img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.drawer-row__ico--svg {
  color: var(--purple-deep);
}
.drawer-row__ico--svg svg {
  width: 22px;
  height: 22px;
  display: block;
}
.drawer-row__label {
  min-width: 0;
}
.drawer-row__hint {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.drawer-row--accent .drawer-row__label {
  color: var(--purple-deep);
}
.drawer-row--muted .drawer-row__label {
  font-weight: 600;
  color: var(--muted);
}
.drawer-foot {
  margin-top: 12px;
}
.drawer-credit {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.drawer-credit a { text-decoration: underline; }

/* legacy category grid kept for safety */
.category-grid { display: none; }

.today-practice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(122, 106, 168, 0.14), rgba(255,255,255,0.9)),
    #fff;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.today-practice__copy .eyebrow { margin: 0 0 6px; }
.today-practice__copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}
.today-practice__copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.featured-course {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.featured-course--laska {
  background-image:
    linear-gradient(90deg, rgba(55, 35, 50, 0.82) 0%, rgba(109, 74, 102, 0.28) 55%, rgba(109, 74, 102, 0.08) 100%),
    url("/app/images/featured-laska.png?v=3d1");
}
.featured-course--penize {
  background-image:
    linear-gradient(90deg, rgba(70, 48, 28, 0.82) 0%, rgba(143, 106, 61, 0.28) 55%, rgba(143, 106, 61, 0.08) 100%),
    url("/app/images/featured-penize.png?v=3d1");
}
.featured-course--zdravi {
  background-image:
    linear-gradient(90deg, rgba(35, 52, 44, 0.82) 0%, rgba(79, 114, 96, 0.28) 55%, rgba(79, 114, 96, 0.08) 100%),
    url("/app/images/featured-zdravi.png?v=3d1");
}
.featured-course .eyebrow { color: rgba(255,255,255,0.72); margin: 0; }
.featured-course strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 72%;
}
.featured-course .featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  opacity: 0.88;
}
.featured-course .bar {
  width: 100%;
  background: rgba(255,255,255,0.22);
}
.featured-course .bar > i {
  background: linear-gradient(90deg, #e4d4f5, #fff);
}
.featured-course .btn-dark {
  align-self: flex-start;
  background: #fff;
  color: var(--btn);
}
.featured-empty {
  padding: 22px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.today-practice .mini-play,
.practice-card .mini-play,
.next-card .mini-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn);
  color: #fff;
  flex: 0 0 auto;
}
.today-practice .mini-play svg,
.practice-card .mini-play svg,
.next-card .mini-play svg {
  width: 18px;
  height: 18px;
}
.practice-card .mini-play,
.next-card .mini-play {
  width: 42px;
  height: 42px;
  background: #efe8f7;
  color: var(--purple-deep);
}
.next-card .mini-play {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.hero-card {
  position: relative;
  margin-top: 22px;
  padding: 24px 22px 20px;
  border-radius: 26px;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(55, 40, 55, 0.15), rgba(35, 28, 32, 0.72)),
    url("/images/HeroMobile.png") center 35% / cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-card p {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-dark:active { transform: scale(0.98); opacity: 0.92; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 12px; }
.hero-card .btn-dark { align-self: flex-start; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.section-head h2,
.section-label {
  margin: 0;
  color: var(--tan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.course-list { display: grid; gap: 12px; }
.course-list--full {
  display: grid;
  gap: 16px;
}
.journey-lead {
  margin: 0 0 18px;
  max-width: 34ch;
}
.journey-course {
  min-height: 196px;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}
.journey-course .featured-desc {
  max-width: 24ch;
}
.course-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.course-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #ebe4f5;
  color: var(--purple-deep);
}
.course-card__icon.tone-tan { background: #f0e6d8; color: #9a7a55; }
.course-card__icon.tone-mist { background: #e8e4f0; color: #7a6aa8; }
.course-card__body { min-width: 0; }
.course-card__body strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-card__body span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.course-card__progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 56px;
}
.course-card__progress b {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
}
.bar {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: #ece6dc;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b8bc4, var(--purple));
}

.install-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: #efe8f7;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.install-card strong { display: block; font-size: 14px; }
.install-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.lead.center { text-align: center; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chip.is-active {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.practice-grid { display: grid; gap: 12px; }
.practice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.practice-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}
.practice-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.avatar {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ebe4f5;
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}
.profile-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
}
.profile-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.menu-list {
  display: grid;
  gap: 8px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  text-align: left;
}

/* COURSE DETAIL */
.screen-course {
  background: var(--bg-soft);
}
.screen-course.is-active {
  display: flex;
  flex-direction: column;
}
.course-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 16px 10px;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.course-nav__title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.course-nav__spacer {
  width: 40px;
}
.course-detail {
  flex: 1;
  padding: 12px 20px calc(120px + var(--safe-bottom));
}
.course-cover {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px 20px 20px;
  border-radius: 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px rgba(45, 32, 28, 0.2);
}
.course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.08) 0%, rgba(20, 14, 18, 0.55) 100%);
  pointer-events: none;
}
.course-cover > * {
  position: relative;
  z-index: 1;
}
.course-cover__tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.course-cover h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 92%;
}
.course-cover__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 94%;
}
.course-progress {
  margin-top: 16px;
}
.course-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.course-progress__track {
  display: flex;
  gap: 5px;
}
.course-progress__seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(90, 70, 55, 0.12);
}
.course-progress__seg.is-done {
  background: var(--purple);
}
.course-progress__seg.is-current {
  background: linear-gradient(90deg, var(--purple), rgba(122, 106, 168, 0.35));
}
.course-program {
  margin-top: 28px;
}
.course-program__head {
  margin-bottom: 16px;
}
.course-program__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.course-program__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 34ch;
}
.course-modules {
  display: grid;
  gap: 10px;
}
.course-day {
  width: 100%;
  text-align: left;
  transition: transform .12s ease;
}
.course-day:active:not(.is-locked) {
  transform: scale(0.985);
}
.course-day--next {
  display: grid;
  gap: 8px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(122, 106, 168, 0.2) 0%, rgba(255,255,255,0.98) 52%, #fff 100%);
  box-shadow: 0 14px 36px rgba(80, 60, 100, 0.14);
  border: 1px solid rgba(122, 106, 168, 0.16);
}
.course-day__kicker {
  margin: 0;
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.course-day__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.course-day__teaser {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.course-day__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(35, 28, 24, 0.18);
}
.course-day--done,
.course-day--later {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.course-day--done {
  background: linear-gradient(135deg, rgba(72, 155, 108, 0.1), #fff);
  border-color: rgba(72, 155, 108, 0.22);
}
.course-day--later.is-waiting {
  background: linear-gradient(135deg, rgba(91, 143, 199, 0.12), #fff);
  border-color: rgba(91, 143, 199, 0.24);
}
.course-day--later.is-premium {
  background: linear-gradient(135deg, rgba(201, 162, 55, 0.14), #fff);
  border-color: rgba(184, 146, 58, 0.3);
}
.course-day--later.is-available {
  opacity: 0.72;
}
.course-day__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(72, 155, 108, 0.16);
  color: #3d8a5f;
  font-size: 14px;
  font-weight: 700;
}
.course-day__num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.course-day--later.is-waiting .course-day__num {
  background: rgba(91, 143, 199, 0.16);
  color: #4a7eb5;
}
.course-day--later.is-premium .course-day__num {
  background: rgba(201, 162, 55, 0.18);
  color: #9a7a35;
}
.course-day__mini {
  flex: 1;
  min-width: 0;
}
.course-day__mini-label {
  display: block;
  color: var(--tan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.course-day--done .course-day__mini-label {
  color: #4a9d6e;
}
.course-day__mini strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-day__mini span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.course-day__done-tag {
  flex-shrink: 0;
  color: #3d8a5f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-day--later.is-waiting .course-day__mini-label {
  color: #4a7eb5;
}
.course-day--later.is-waiting .course-day__mini span {
  color: #5b8fc7;
  font-weight: 600;
}
.course-day--later.is-premium .course-day__mini-label {
  color: #a8842e;
}
.course-day--later.is-premium .course-day__mini span {
  color: #b8923a;
  font-weight: 600;
}
.course-day__icon {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.65;
  display: grid;
  place-items: center;
}
.course-day--later.is-waiting .course-day__icon {
  color: #4a7eb5;
  opacity: 1;
}
.course-day--later.is-premium .course-day__icon {
  color: #a8842e;
  opacity: 1;
}
.sticky-cta--course {
  background: linear-gradient(180deg, rgba(251, 248, 243, 0), rgba(251, 248, 243, 0.94) 28%, var(--bg-soft));
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 18px 0 8px;
  color: var(--tan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.eyebrow.light { color: rgba(255,255,255,0.7); }

.sticky-cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 16px 20px calc(16px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
}
.sticky-cta .btn-dark { width: 100%; }
.reader-cta .btn-ghost,
.reader-cta .btn-dark { width: 100%; }

/* PLAYER */
.screen-player {
  background: #3a2a4a;
  color: #fff;
}
.player {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(12px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 50% 28%, rgba(180, 120, 200, 0.35), transparent 42%),
    linear-gradient(180deg, #4a3558 0%, #2d2038 55%, #24182c 100%);
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.orb-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 280px;
}
.orb {
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.35), transparent 28%),
    radial-gradient(circle at 50% 50%, #c9a0d8, #6b4d8a 60%, transparent 72%);
  filter: blur(0.2px);
  box-shadow: 0 0 80px rgba(180, 120, 200, 0.35);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.92; }
  50% { transform: scale(1.04); opacity: 1; }
}
.orb-copy {
  position: absolute;
  text-align: center;
  padding: 0 24px;
}
.orb-copy h1 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
}
.player-controls { margin-top: auto; }
.seek input[type="range"] {
  width: 100%;
  accent-color: #d4b8e8;
}
.seek-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}
.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 22px 0 28px;
}
.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  color: #3a2a4a;
  font-size: 18px;
  box-shadow: 0 0 0 10px rgba(255,255,255,0.08);
}
.seek-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.next-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  color: #fff;
}
.next-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  margin-top: 2px;
}
.next-card span[data-next-meta] {
  display: block;
  margin-top: 2px;
  opacity: 0.65;
  font-size: 12px;
}

/* PAYWALL */
.paywall-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: calc(14px + var(--safe-top)) 16px 8px;
}
.paywall-top h1 {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.paywall-body {
  padding-bottom: 130px;
  background:
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(170, 150, 200, 0.22), transparent 60%);
}
.paywall-body h2 {
  margin: 8px 20px 10px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
}
.paywall-body h2 em {
  font-style: italic;
  color: var(--purple);
  font-weight: 500;
}
.plan {
  display: block;
  position: relative;
  margin: 12px 0;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.plan--featured {
  margin-top: 28px;
  border-color: var(--purple-soft);
}
.plan.is-selected {
  border-color: var(--purple);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}
.plan-price {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.plan ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}
.plan-check,
.plan-radio {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-soft);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}
.plan.is-selected .plan-check,
.plan.is-selected .plan-radio {
  background: var(--purple);
  border-color: var(--purple);
}
.save {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe8f7;
  color: var(--purple-deep);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.legal a,
.legal button {
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.auth-box {
  margin: auto;
  padding: 32px 24px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.auth-box h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  margin: 0 0 10px;
}
.auth-box p {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}
.auth-box .btn-dark { width: 100%; margin-bottom: 14px; }
.auth-form {
  display: grid;
  gap: 12px;
  text-align: left;
  margin-bottom: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  outline: none;
}
.field input:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 4px rgba(122, 106, 168, 0.12);
}
.form-error,
.form-success {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.form-error { color: #b42318; }
.form-success { color: #3d7a4a; }

/* READER */
.screen-reader {
  background: var(--bg-soft);
}
.screen-reader.is-active {
  display: flex;
  flex-direction: column;
}
.reader-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 16px 10px;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.reader-nav__title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reader-nav__spacer {
  width: 40px;
}
.reader-progress {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: rgba(90, 70, 55, 0.1);
  overflow: hidden;
}
.reader-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  border-radius: inherit;
  transition: width .25s ease;
}
.reader-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 20px 140px;
  scroll-behavior: smooth;
}
.reader-eyebrow {
  margin: 0 0 8px;
  color: var(--tan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reader-body > h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 6.5vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  max-width: 20ch;
}
.reader-body > h1.reader-title--chat {
  margin-bottom: 14px;
  font-size: clamp(22px, 5.5vw, 26px);
  max-width: 22ch;
}

/* Interactive lesson chat */
.reader-chat {
  margin: 0 0 8px;
}
.reader-chat__thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 40vh;
  padding-bottom: 8px;
}
.chat-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: chatIn .28s ease;
}
.chat-row--guide {
  align-self: stretch;
  max-width: 92%;
}
.chat-row--you {
  justify-content: flex-end;
  align-self: flex-end;
  max-width: 82%;
}
.chat-face {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.chat-face svg { width: 100%; height: 100%; display: block; }
.chat-col {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.chat-name {
  padding-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
}
.chat-bubble--guide {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.chat-bubble--you {
  background: var(--btn);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px rgba(35, 28, 24, 0.14);
}
.chat-card {
  width: 100%;
  padding: 16px 16px 14px;
  border-radius: 20px;
  animation: chatIn .28s ease;
}
.chat-card--task {
  background: linear-gradient(145deg, rgba(179, 154, 125, 0.18), #fff 55%);
  border: 1px solid rgba(179, 154, 125, 0.22);
  box-shadow: var(--shadow);
}
.chat-card--quote {
  background: linear-gradient(135deg, rgba(122, 106, 168, 0.14), rgba(255,255,255,0.96));
  border: 1px solid rgba(122, 106, 168, 0.14);
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}
.chat-card__label {
  display: block;
  margin: 0 0 8px;
  color: #9a7a55;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chat-card--task p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.chat-card--quote p { margin: 0; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.reader-chat__choices {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(122, 106, 168, 0.08);
  border: 1px dashed rgba(122, 106, 168, 0.28);
  animation: chatIn .28s ease;
}
.reader-chat__prompt {
  margin: 0 0 10px;
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reader-chat__options {
  display: grid;
  gap: 8px;
}
.chat-option {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid rgba(122, 106, 168, 0.2);
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.chat-option:active {
  transform: scale(0.985);
  background: rgba(122, 106, 168, 0.1);
  border-color: var(--purple);
}
.reader-chat__hint {
  margin: 16px 0 0;
  text-align: center;
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 600;
  animation: hintPulse 1.6s ease-in-out infinite;
}
.reader-chat__hint.is-choice {
  color: #9a7a55;
  animation: none;
}
.reader-chat__hint strong {
  font-weight: 800;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(2px); }
}

.reader-content {
  display: block;
}
.reader-content .topbar,
.reader-content .brand,
.reader-content .back-link,
.reader-content .hero,
.reader-content .progress-meta,
.reader-content .progress-bar,
.reader-content nav {
  display: none !important;
}
.reader-content .lesson-grid,
.reader-content .slide-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.slide-block {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  text-align: left;
}
.slide-block--lesson {
  background: #fff;
  border-color: rgba(90, 70, 55, 0.06);
}
.slide-block--practice {
  background: linear-gradient(145deg, rgba(122, 106, 168, 0.14), #fff 58%);
  border-color: rgba(122, 106, 168, 0.16);
}
.slide-block--reflection {
  background: linear-gradient(145deg, rgba(179, 154, 125, 0.18), #fff 55%);
  border-color: rgba(179, 154, 125, 0.22);
}
.slide-block--quote {
  margin-top: 4px;
  padding: 20px 20px 18px;
  border: none;
  background: linear-gradient(135deg, rgba(122, 106, 168, 0.12), rgba(255,255,255,0.96));
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.35;
  text-align: left;
}
.slide-block-label {
  display: block;
  margin: 0 0 10px;
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.slide-block--reflection .slide-block-label {
  color: #9a7a55;
}
.slide-step,
.reader-content .card-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 0 12px;
  border-radius: 11px;
  background: rgba(122, 106, 168, 0.12);
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.slide-block--practice .slide-step,
.slide-block--practice .card-number {
  background: rgba(122, 106, 168, 0.18);
}
.slide-block--reflection .slide-step,
.slide-block--reflection .card-number {
  background: rgba(179, 154, 125, 0.2);
  color: #9a7a55;
}
.reader-content h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}
.slide-block--practice h3 {
  color: var(--purple-deep);
}
.slide-block--reflection h3 {
  color: #8a6840;
}
.reader-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.reader-content .slide-quote span,
.reader-content blockquote span {
  display: block;
}
.reader-content textarea,
.reader-content [data-reflection] {
  width: 100%;
  min-height: 110px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(179, 154, 125, 0.25);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  resize: vertical;
  font: inherit;
  line-height: 1.5;
}
.reader-content .reflection-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.reader-content .reflection-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #9a7a55;
}
.reader-content .reflection-card,
.reader-content .task-card {
  display: block !important;
  grid-template-columns: none !important;
}
.reader-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
}
.reader-content br {
  display: block;
  content: "";
  margin-top: 0.55em;
}
.reader-cta {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  background: linear-gradient(180deg, rgba(251, 248, 243, 0), rgba(251, 248, 243, 0.94) 28%, var(--bg-soft));
}
.reader-cta .btn-ghost,
.reader-cta .btn-dark { width: 100%; }
.btn-ghost {
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.btn-ghost:disabled,
.reader-cta .btn-dark:disabled {
  opacity: 0.45;
  cursor: default;
}

.lock-panel {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.lock-panel .day-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(210, 198, 235, 0.7);
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lock-panel h2 {
  margin: 14px 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}
.lock-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.lock-countdown {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--purple-deep);
}
.lock-panel .btn-dark { width: 100%; }

/* SETTINGS / CHECKOUT / LEGAL */
.settings-body,
.checkout-body,
.legal-body {
  padding-bottom: 40px;
}
.settings-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.settings-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}
.settings-card p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.settings-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(210, 198, 235, 0.65);
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.checkout-body h2 {
  margin: 8px 0 8px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}
.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.payment-element {
  min-height: 24px;
  padding: 4px 0 8px;
}
.legal-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-body h1,
.legal-body h2,
.legal-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}
.legal-body h1 { font-size: 28px; }
.legal-body h2 { font-size: 22px; margin-top: 1.4em; }
.legal-body p { margin: 0.7em 0; color: var(--ink); }
.legal-body a { color: var(--purple-deep); }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  height: var(--tabbar-h);
  padding: 8px 10px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 30;
}
.screen-overlay ~ .tabbar,
.app:has(.screen-overlay.is-active) .tabbar {
  display: none;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #b0a094;
  font-size: 10px;
  font-weight: 700;
}
.tab.is-active { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 12px);
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--btn);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 481px) {
  .app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 60px rgba(80, 60, 40, 0.08);
  }
}

/* Karma chip button */
.karma-chip {
  cursor: pointer;
  border: 0;
  font: inherit;
}
.karma-chip:active { transform: scale(0.97); }
.karma-pop {
  animation: karmaPop 0.55s ease;
}
@keyframes karmaPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); color: #7a4f9e; }
  100% { transform: scale(1); }
}

.featured-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
  max-width: 28ch;
}

/* Karma fly animation */
.karma-fly-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}
.karma-fly-gem {
  position: fixed;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  background: url("/app/icons/ui/diamond.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(80, 40, 100, 0.35));
  animation: karmaFly 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes karmaFly {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  15% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.55); opacity: 0; }
}

/* App sheets */
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(var(--tabbar-h) + 16px);
  background: rgba(30, 20, 25, 0.38);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.app-sheet-backdrop.is-open { opacity: 1; }
.app-sheet {
  width: min(100%, 420px);
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
  transform: translateY(16px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.app-sheet-backdrop.is-open .app-sheet { transform: translateY(0); }
.app-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.app-sheet__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}
.app-sheet__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Check-in centered modal */
[data-checkin-backdrop] {
  place-items: center;
  padding: 20px;
}
[data-checkin-backdrop] .app-sheet {
  transform: scale(0.94);
  opacity: 0.92;
}
[data-checkin-backdrop].is-open .app-sheet {
  transform: scale(1);
  opacity: 1;
}
[data-checkin-backdrop] .app-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.app-checkin {
  position: relative;
  text-align: center;
  padding-top: 28px;
}
.app-checkin .eyebrow { margin-bottom: 6px; }
.app-checkin h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
}
.checkin-emoji-row {
  display: grid;
  gap: 10px;
}
.checkin-emoji-btn {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: left;
  cursor: pointer;
}
.checkin-emoji-btn:active { transform: scale(0.98); }
.checkin-emoji-btn__icon { font-size: 28px; line-height: 1; }
.checkin-emoji-btn__label { font-size: 14px; font-weight: 600; color: var(--text); }
.checkin-reward-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Karma store in-game shop */
.screen-karma {
  background:
    radial-gradient(ellipse 120% 50% at 50% -15%, rgba(140, 110, 200, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 40% at 100% 20%, rgba(201, 160, 106, 0.18), transparent 50%),
    linear-gradient(180deg,
      #2a2238 0%,
      #241e30 24%,
      #2f2940 34%,
      #6f6678 44%,
      #c8bfb0 52%,
      #efe8dc 58%,
      #f7f2ea 66%,
      #f7f2ea 100%);
}
.screen-karma .paywall-top h1 { color: rgba(255,255,255,0.72); }
.screen-karma .back-btn { color: #fff; }
.karma-body {
  padding: 0 16px 36px;
  background: transparent;
}
.karma-store-hero {
  padding: 8px 4px 20px;
  text-align: center;
  color: #fff;
}
.karma-hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.karma-hud::before,
.karma-hud::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 10px;
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}
.karma-hud::before {
  top: -2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}
.karma-hud::after {
  bottom: -2px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}
.karma-hud > * {
  position: relative;
  z-index: 1;
}
.karma-hud__glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(180, 140, 255, 0.35), transparent 70%);
  z-index: -1;
  animation: karmaHudPulse 2.4s ease-in-out infinite;
}
@keyframes karmaHudPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.karma-hud__icon {
  filter: drop-shadow(0 2px 6px rgba(255, 220, 120, 0.5));
}
.karma-hud strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.karma-hud span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.karma-store-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.karma-store-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.82;
}
.karma-pack-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.karma-store-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 196px;
  padding: 14px 10px 12px;
  border-radius: 22px;
  border: 2px solid rgba(255,255,255,0.65);
  background: linear-gradient(165deg, #fff 0%, #f8f2ff 55%, #efe6ff 100%);
  box-shadow:
    0 10px 24px rgba(60, 40, 90, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.karma-store-card.has-ribbon {
  padding-top: 30px;
}
.karma-store-card:active { transform: scale(0.97); }
.karma-store-card.is-loading { opacity: 0.72; pointer-events: none; }
.karma-store-card__shine {
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 120%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}
.karma-store-card__ribbon {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a6f8e, #7a6aa8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(80, 50, 100, 0.28);
  white-space: nowrap;
  line-height: 1.2;
}
.karma-store-card--best .karma-store-card__ribbon {
  background: linear-gradient(90deg, #d4a853, #c9923a);
  font-size: 9px;
  padding: 4px 8px;
}
.karma-store-card--mega .karma-store-card__ribbon {
  background: linear-gradient(90deg, #7ea38a, #4f7260);
}
.karma-store-card__art {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.karma-store-card__icon {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 6px 10px rgba(80, 50, 120, 0.18));
}
.karma-store-card__icon--starter {
  width: 58px;
  height: 58px;
}
.karma-store-card__icon--popular,
.karma-store-card__icon--mega {
  width: 72px;
  height: 72px;
}
.karma-store-card__icon--best {
  width: 72px;
  height: 72px;
}
.karma-store-card--best .karma-store-card__icon {
  animation: gemFloat 2.2s ease-in-out infinite;
}
.karma-store-card__amount {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.karma-store-card__unit {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.karma-store-card__save {
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(122, 106, 168, 0.12);
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 800;
}
.karma-store-card__buy {
  width: 100%;
  margin-top: 8px;
  padding: 11px 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3a3532 0%, #2b2724 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(40, 30, 20, 0.28);
  cursor: pointer;
}
.karma-store-card__buy span { display: block; }
.karma-store-card--starter {
  border-color: rgba(179, 154, 125, 0.45);
  background: linear-gradient(165deg, #fff 0%, #faf6f0 100%);
}
.karma-store-card--popular {
  border-color: rgba(154, 111, 142, 0.55);
  box-shadow:
    0 0 0 1px rgba(154, 111, 142, 0.2),
    0 12px 28px rgba(109, 74, 102, 0.22);
  animation: cardGlowPopular 2.8s ease-in-out infinite;
}
.karma-store-card--best {
  border-color: rgba(201, 160, 106, 0.75);
  background: linear-gradient(165deg, #fffdf8 0%, #fff4dc 45%, #ffe9b8 100%);
  box-shadow:
    0 0 0 2px rgba(201, 160, 106, 0.35),
    0 14px 32px rgba(143, 106, 61, 0.28);
  animation: cardGlowBest 2.4s ease-in-out infinite;
}
.karma-store-card--mega {
  border-color: rgba(126, 163, 138, 0.55);
  background: linear-gradient(165deg, #fff 0%, #eef8f1 55%, #dceee3 100%);
}
@keyframes cardGlowPopular {
  0%, 100% { box-shadow: 0 0 0 1px rgba(154, 111, 142, 0.2), 0 12px 28px rgba(109, 74, 102, 0.18); }
  50% { box-shadow: 0 0 0 2px rgba(154, 111, 142, 0.35), 0 14px 32px rgba(109, 74, 102, 0.28); }
}
@keyframes cardGlowBest {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201, 160, 106, 0.3), 0 14px 32px rgba(143, 106, 61, 0.22); }
  50% { box-shadow: 0 0 0 3px rgba(201, 160, 106, 0.5), 0 16px 36px rgba(143, 106, 61, 0.35); }
}
@keyframes gemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.karma-store-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.karma-shop-msg {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(122, 79, 158, 0.08);
  color: var(--purple-deep);
  font-size: 13px;
  line-height: 1.45;
}

/* Notifications screen */
.notif-body { padding: 16px 16px 32px; display: grid; gap: 16px; }
.notif-hero {
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(122, 79, 158, 0.12), rgba(199, 146, 84, 0.1));
  border: 1px solid rgba(122, 79, 158, 0.12);
  text-align: center;
}
.notif-hero[hidden] { display: none !important; }
.notif-hero__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 26px;
  margin-bottom: 12px;
}
.notif-hero h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
.notif-hero p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.notif-status { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.notif-feed { display: grid; gap: 10px; }
.notif-feed[hidden] { display: none !important; }
.notif-feed-empty {
  padding: 28px 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.notif-feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.notif-feed-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(122, 79, 158, 0.08);
  font-size: 18px;
}
.notif-feed-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.notif-feed-item span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.notif-feed-item time { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* Luna in app */
.app-luna {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + 16px);
  z-index: 80;
}
.app-luna-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.app-luna.is-open .app-luna-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.app-luna-panel {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: calc(var(--tabbar-h) + 12px);
  max-width: 420px;
  margin: 0 auto;
  height: min(62vh, 520px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-luna.is-open .app-luna-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.app-luna-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.app-luna-head strong { display: block; font-size: 15px; }
.app-luna-head span { display: block; font-size: 12px; color: var(--muted); }
.app-luna-avatar, .app-luna-toggle__orb {
  width: 42px;
  height: 42px;
  display: block;
}
.app-luna-toggle__orb { width: 56px; height: 56px; }
.app-luna-messages {
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--bg-soft);
}
.app-luna-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.app-luna-msg--bot {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
}
.app-luna-msg--user {
  justify-self: end;
  background: var(--btn);
  color: #fff;
}
.app-luna-gate {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.app-luna-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.app-luna-form input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
}
.app-luna-form button {
  width: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--btn);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.app-luna-toggle {
  width: 56px;
  height: 56px;
  margin-left: auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(60, 40, 30, 0.22));
}
.app-luna.is-open .app-luna-toggle { opacity: 0; pointer-events: none; }
