﻿@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');

/* ── Light theme: Clarity & Warmth ── */
:root, [data-theme="light"] {
  --bg: #fdf8f0;
  --bg2: #ffffff;
  --bg3: #f5edd8;
  --card: #ffffff;
  --card-hover: #fffcf5;
  --border: #e8dcc4;
  --border-light: #f0e8d4;
  --accent: #ffbb00;
  --accent2: #e8a800;
  --accent-light: rgba(255,187,0,0.12);
  --accent-glow: rgba(255,187,0,0.2);
  --text: #2a2218;
  --text2: #6b5f4c;
  --text3: #8c7f66; /* затемнён для контраста ≥ 4.5:1 (доступность) */
  --success: #5cad6f;
  --success-bg: #edf7ef;
  --info: #e8a800;
  --info-bg: #fef8e6;
  --danger: #c45a5a;
  --danger-bg: #faedef;
  --warm1: #fff4d6;
  --warm2: #fef9ed;
  --gradient-warm: linear-gradient(135deg, #fff100 0%, #ffbb00 100%);
  --gradient-hero: linear-gradient(160deg, #fdf8f0 0%, #fff4d6 30%, #fef0c0 60%, #fef9ed 100%);
  --shadow-sm: 0 1px 3px rgba(42,34,24,0.06);
  --shadow-md: 0 4px 16px rgba(42,34,24,0.08);
  --shadow-lg: 0 8px 32px rgba(42,34,24,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --header-bg: rgba(253,248,240,0.88);
  --phone-screen-bg: linear-gradient(180deg, #fff4d6 0%, #fef9ed 100%);
  --phone-card-bg: #ffffff;
}

/* ── Dark theme: Deep Night & Gold ── */
[data-theme="dark"] {
  --bg: #1a1408;
  --bg2: #241e10;
  --bg3: #2e2618;
  --card: #282010;
  --card-hover: #342a18;
  --border: #4a3e28;
  --border-light: #3a3020;
  --accent: #ffbb00;
  --accent2: #ffd040;
  --accent-light: rgba(255,187,0,0.15);
  --accent-glow: rgba(255,187,0,0.2);
  --text: #f0e8d4;
  --text2: #b0a48e;
  --text3: #6e6450;
  --success: #6ecf8e;
  --success-bg: rgba(110,207,142,0.12);
  --info: #ffd040;
  --info-bg: rgba(255,208,64,0.12);
  --danger: #e87d7d;
  --danger-bg: rgba(232,125,125,0.12);
  --warm1: rgba(255,187,0,0.1);
  --warm2: rgba(255,187,0,0.06);
  --gradient-warm: linear-gradient(135deg, #fff100 0%, #ffbb00 100%);
  --gradient-hero: linear-gradient(160deg, #1a1408 0%, #241e10 40%, #1e1808 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --header-bg: rgba(26,20,8,0.90);
  --phone-screen-bg: linear-gradient(180deg, #241e10 0%, #1a1408 100%);
  --phone-card-bg: #282010;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px;            /* base size — slightly larger than 16px default */
  overflow-x: hidden;         /* clips fixed-position overflow (walking cat) to stop layout jumping */
}

body {
  font-family: 'Raleway', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
  transition: background .5s ease, color .5s ease;
}

/* ── Views ── */
.view { display: none; }
.view.active { display: block; }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg, rgba(232,240,250,0.85));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.logo-text-brand {
  background: linear-gradient(135deg, #fff100, #ffbb00);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.header-actions { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 50px; font-size: .9rem; font-weight: 500;
  border: none; cursor: pointer; transition: all .25s; font-family: inherit;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-warm); color: #2a2218;
  box-shadow: 0 2px 12px rgba(255,187,0,0.3);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,187,0,0.4); }
.btn-secondary {
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg3); }
.btn-ghost { background: transparent; color: var(--text2); padding: 8px 16px; }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════
   LANDING PAGE
   ═══════════════════════════ */

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: url('clouds-hero.jpg') center/cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253,248,240,0.55) 0%, rgba(253,248,240,0.75) 60%, rgba(253,248,240,0.95) 100%);
}
[data-theme="dark"] .hero { background-image: url('clouds-hero.jpg'); }
[data-theme="dark"] .hero::before {
  background: linear-gradient(180deg, rgba(26,20,8,0.5) 0%, rgba(26,20,8,0.75) 60%, rgba(26,20,8,0.95) 100%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text h1 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 3rem; font-weight: 600; line-height: 1.15;
  color: var(--text); margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal; font-weight: 800;
  color: #2a2218;
  background: linear-gradient(135deg, #fff100, #ffbb00);
  padding: 2px 16px; border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 16px rgba(255,187,0,0.3);
}
.hero-text p {
  font-size: 1.1rem; color: var(--text2); line-height: 1.7; margin-bottom: 32px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.phone-mockup {
  width: 280px; height: 560px; background: var(--bg2);
  border-radius: 36px; border: 3px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255,187,0,0.08);
  overflow: hidden; position: relative;
}
.phone-screen {
  padding: 32px 16px 20px; height: 100%;
  background: var(--phone-screen-bg, linear-gradient(180deg, #fff4d6 0%, #fef9ed 100%));
  display: flex; flex-direction: column; gap: 10px;
}
/* Override for carousel slides — positioning handled by .phone-slide */
.phone-carousel .phone-screen { padding: 0; height: auto; background: none; }
.phone-line { height: 10px; border-radius: 5px; background: var(--border-light); }
.phone-line.short { width: 60%; }
.phone-line.accent { background: var(--accent-light); width: 80%; }
.phone-card {
  background: var(--ps-card-bg, rgba(255,255,255,0.85)); border-radius: 10px; padding: 10px 12px;
  border: 1px solid var(--ps-border, rgba(42,34,24,0.12));
  animation: phoneCardIn .5s ease both;
}
.phone-card:nth-child(3) { animation-delay: .15s; }
.phone-card:nth-child(4) { animation-delay: .3s; }
.phone-card:nth-child(5) { animation-delay: .45s; }
@keyframes phoneCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.phone-card-title { font-size: 10px; font-weight: 700; margin-bottom: 8px; color: var(--ps-text, #2a2218); }
.phone-dots { display: flex; gap: 6px; }
.phone-dot { width: 24px; height: 24px; border-radius: 50%; }

/* ── Phone mockup animations ── */
/* Mood dots bounce in one by one */
.mood-anim .phone-dot {
  animation: moodPop .3s cubic-bezier(.34,1.56,.64,1) both;
}
.mood-anim .phone-dot:nth-child(1) { animation-delay: .3s; }
.mood-anim .phone-dot:nth-child(2) { animation-delay: .42s; }
.mood-anim .phone-dot:nth-child(3) { animation-delay: .54s; }
.mood-anim .phone-dot:nth-child(4) { animation-delay: .66s; }
@keyframes moodPop {
  from { opacity: 0; transform: scale(0) rotate(-30deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
/* Selected mood pulses */
.mood-anim .phone-dot.selected-mood {
  animation: moodPop .3s cubic-bezier(.34,1.56,.64,1) both,
             moodPulse 1.8s ease-in-out .5s infinite;
  box-shadow: 0 0 0 3px rgba(255,187,0,0.3);
}
@keyframes moodPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255,187,0,0.3); }
  50%      { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,187,0,0.15); }
}

/* Brain dump typing lines */
.braindump-anim .typing-line {
  height: 8px; border-radius: 4px; background: var(--border-light);
  margin-top: 6px; transform-origin: left;
  animation: typeLine .7s ease both;
  --target-w: 90%;
}
.braindump-anim .typing-line:nth-child(2) { animation-delay: .55s; --target-w: 100%; }
.braindump-anim .typing-line:nth-child(3) { animation-delay: .85s; --target-w: 70%; }
.braindump-anim .typing-line:nth-child(4) { animation-delay: 1.15s; --target-w: 45%; }
@keyframes typeLine {
  0%   { max-width: 0; opacity: 0; }
  10%  { opacity: 1; }
  100% { max-width: 100%; opacity: 1; }
}
.braindump-anim .cursor-blink {
  display: inline-block; width: 2px; height: 10px;
  background: var(--accent); margin-left: 2px; vertical-align: middle;
  animation: cursorBlink .8s step-end infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Vase coins drop in */
.vase-anim .vase-coin {
  width: 20px; height: 20px; border-radius: 50%;
  animation: coinDrop .4s cubic-bezier(.22,.68,.36,1.2) both;
}
.vase-anim .vase-coin:nth-child(1) { animation-delay: .7s; }
.vase-anim .vase-coin:nth-child(2) { animation-delay: .95s; }
.vase-anim .vase-coin:nth-child(3) { animation-delay: 1.2s; }
@keyframes coinDrop {
  0%   { opacity: 0; transform: translateY(-20px) rotate(-15deg) scale(.5); }
  60%  { opacity: 1; transform: translateY(3px) rotate(5deg) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
/* Sparkle on coin land */
.vase-anim .vase-coin::after {
  content: '✦'; position: absolute; top: -6px; right: -6px;
  font-size: 8px; color: #ffbb00; opacity: 0;
  animation: sparkle .4s ease both;
}
.vase-anim .vase-coin { position: relative; }
.vase-anim .vase-coin:nth-child(1)::after { animation-delay: .95s; }
.vase-anim .vase-coin:nth-child(2)::after { animation-delay: 1.2s; }
.vase-anim .vase-coin:nth-child(3)::after { animation-delay: 1.45s; }
@keyframes sparkle {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.5) rotate(20deg); }
  100% { opacity: 0; transform: scale(0) rotate(45deg); }
}

/* Progress bar fill in header */
.phone-progress-bar {
  height: 10px; border-radius: 5px; background: var(--ps-card-bg, rgba(255,255,255,0.6));
  overflow: hidden; position: relative; border: 1px solid var(--ps-border, rgba(42,34,24,0.1));
}
.phone-progress-fill {
  height: 100%; border-radius: 5px; width: 0;
  background: linear-gradient(90deg, #fff100, #ffbb00);
  animation: progressGrow 1s ease 1.4s both;
}
@keyframes progressGrow {
  from { width: 0; }
  to   { width: 72%; }
}
.phone-progress-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 1.5s ease infinite 2.2s;
  transform: translateX(-100%);
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Streak fire wiggle */
.phone-streak { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.phone-streak-fire {
  font-size: 16px; animation: fireWiggle 1.2s ease-in-out infinite 1.5s;
}
@keyframes fireWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-8deg) scale(1.1); }
  50%  { transform: rotate(6deg) scale(1.15); }
  75%  { transform: rotate(-4deg) scale(1.05); }
}

/* ── Phone Carousel ── */
.phone-carousel {
  position: relative; height: 100%; overflow: hidden;
  background: var(--phone-screen-bg, linear-gradient(180deg, #fff4d6 0%, #fef9ed 100%));
}
.phone-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(20px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  padding: 32px 16px 36px;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
  overflow: hidden;
}
.phone-slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
}
.phone-slide.exit-left {
  opacity: 0; transform: translateX(-20px);
}
.phone-dots-nav {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0 4px; position: absolute; bottom: 8px; left: 0; right: 0;
}
.phone-dot-nav {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: all .3s;
}
.phone-dot-nav.active {
  background: var(--accent); width: 18px; border-radius: 3px;
}

/* ── Phone screen inner styles ── */
/* Boost contrast inside phone mockup */
.phone-carousel .phone-slide {
  --ps-card-bg: rgba(255,255,255,0.85);
  --ps-text: #2a2218;
  --ps-text2: #5a4e3a;
  --ps-text3: #8a7e6a;
  --ps-border: rgba(42,34,24,0.12);
  --ps-bg: rgba(255,255,255,0.5);
}
[data-theme="dark"] .phone-carousel .phone-slide {
  --ps-card-bg: rgba(40,32,16,0.85);
  --ps-text: #f0e8d4;
  --ps-text2: #c8bca4;
  --ps-text3: #968a74;
  --ps-border: rgba(255,187,0,0.15);
  --ps-bg: rgba(40,32,16,0.5);
}
.ps-header {
  font-size: 11px; font-weight: 700; color: var(--ps-text, var(--text));
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ps-border, var(--border-light));
}

/* Breathing screen */
.ps-breath-circle {
  width: 100px; height: 100px; border-radius: 50%; margin: 8px auto 10px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  animation: psBreathAnim 8s ease-in-out infinite;
}
@keyframes psBreathAnim {
  0%, 100% { transform: scale(1); border-color: var(--accent); }
  25%  { transform: scale(1.2); border-color: #fff100; }
  50%  { transform: scale(1.2); border-color: #ffbb00; }
  75%  { transform: scale(1); border-color: var(--accent); }
}
.ps-breath-text { font-size: 12px; font-weight: 700; color: var(--accent2); }
.ps-breath-label { text-align: center; font-size: 9px; color: var(--ps-text3, var(--text3)); margin-bottom: 10px; }
.ps-breath-steps { display: flex; flex-direction: column; gap: 6px; }
.ps-breath-step {
  font-size: 9px; color: var(--ps-text2, var(--text2)); padding: 6px 10px;
  background: var(--ps-card-bg, var(--bg)); border-radius: 6px;
  display: flex; justify-content: space-between;
}
.ps-breath-step.active { background: var(--accent-light); color: var(--accent2); font-weight: 600; }
.ps-breath-step span { color: var(--ps-text3, var(--text3)); }
.ps-btn-row { margin-top: 10px; }
.ps-btn-mock {
  padding: 8px; border-radius: 20px; text-align: center;
  font-size: 9px; font-weight: 600;
  background: var(--ps-card-bg, var(--bg)); color: var(--ps-text2, var(--text2)); border: 1px solid var(--ps-border, var(--border-light));
}
.ps-btn-mock.accent {
  background: var(--gradient-warm); color: #2a2218; border: none;
}

/* Analytics screen */
.ps-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ps-stat-box {
  text-align: center; padding: 8px 4px;
  background: var(--ps-card-bg, var(--bg)); border-radius: 8px;
  border: 1px solid var(--ps-border, transparent);
}
.ps-stat-num { font-size: 16px; font-weight: 800; color: var(--accent2); }
.ps-stat-lbl { font-size: 7px; color: var(--ps-text3, var(--text3)); margin-top: 2px; }
.ps-chart-mock { margin-bottom: 10px; }
.ps-chart-line {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: chartDraw 1.5s ease .3s both;
}
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
.ps-section-bars { display: flex; flex-direction: column; gap: 6px; }
.ps-bar-item { display: flex; align-items: center; gap: 6px; }
.ps-bar-item span { font-size: 8px; color: var(--ps-text2, var(--text2)); width: 60px; flex-shrink: 0; }
.ps-bar { flex: 1; height: 8px; background: var(--ps-card-bg, var(--bg)); border-radius: 4px; overflow: hidden; }
.ps-bar-f {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #fff100, #ffbb00);
  width: 0; animation: psBarGrow .8s ease .5s both;
}
@keyframes psBarGrow { to { width: var(--w); } }

/* AI screen */
.ps-ai-card {
  display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start;
}
.ps-ai-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ps-card-bg, var(--bg)); display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
  border: 1px solid var(--ps-border, transparent);
}
.ps-ai-bubble {
  flex: 1; padding: 8px 10px;
  background: var(--ps-card-bg, var(--bg)); border-radius: 0 10px 10px 10px;
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--ps-border, transparent);
}
.ps-ai-line {
  height: 6px; border-radius: 3px;
  background: var(--ps-border, var(--border-light)); opacity: .6;
  animation: aiLineShimmer 1.5s ease infinite alternate;
}
.ps-ai-line:nth-child(2) { animation-delay: .2s; }
.ps-ai-line:nth-child(3) { animation-delay: .4s; }
.ps-ai-line:nth-child(4) { animation-delay: .6s; }
@keyframes aiLineShimmer {
  0%   { opacity: .5; }
  100% { opacity: 1; }
}

/* Achievements screen */
.ps-ach-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px;
}
.ps-ach {
  text-align: center; padding: 8px 4px;
  background: var(--ps-card-bg, var(--bg)); border-radius: 8px;
  border: 1px solid var(--ps-border, var(--border-light));
  opacity: .4; filter: grayscale(1);
  transition: all .4s;
}
.ps-ach.unlocked { opacity: 1; filter: none; border-color: var(--accent); background: var(--ps-card-bg, var(--bg)); }
.ps-ach span { font-size: 18px; display: block; margin-bottom: 2px; }
.ps-ach small { font-size: 7px; color: var(--ps-text2, var(--text2)); font-weight: 500; }
.ps-quote-mini {
  display: flex; gap: 6px; padding: 10px;
  background: var(--ps-card-bg, var(--bg)); border-radius: 10px; align-items: flex-start;
  border: 1px solid var(--ps-border, transparent);
}
.ps-quote-mark { font-size: 18px; color: var(--accent); line-height: 1; }
.ps-quote-text { font-size: 9px; color: var(--ps-text2, var(--text2)); line-height: 1.4; font-style: italic; }

/* Stats bar */
.stats-bar {
  padding: 48px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-num {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 2rem; font-weight: 600; color: var(--accent2);
}
.stat-label { font-size: .85rem; color: var(--text2); margin-top: 4px; }

/* Features */
.features {
  padding: 80px 0;
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 2rem; font-weight: 600; margin-bottom: 12px;
}
.section-header p { color: var(--text2); max-width: 560px; margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px 24px;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text2); line-height: 1.6; }

/* Journey */
/* Journey — cloud-themed section */
.journey {
  padding: 80px 0; position: relative; overflow: hidden;
  background: url('clouds-hero.jpg') center/cover no-repeat fixed;
}
.journey::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253,248,240,0.82) 0%, rgba(253,248,240,0.7) 50%, rgba(253,248,240,0.85) 100%);
}
[data-theme="dark"] .journey::before {
  background: linear-gradient(180deg, rgba(26,20,8,0.82) 0%, rgba(26,20,8,0.7) 50%, rgba(26,20,8,0.85) 100%);
}
.journey > * { position: relative; z-index: 1; }

/* Floating mini-clouds inside journey */
.journey-cloud {
  position: absolute; border-radius: 100px; z-index: 0;
  background: rgba(255,255,255,0.35);
  filter: blur(6px);
  animation: journeyCloudDrift var(--dur) linear infinite;
}
[data-theme="dark"] .journey-cloud {
  background: rgba(255,220,140,0.08);
}
@keyframes journeyCloudDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 200px)); }
}
.journey-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 48px;
}
.journey-step {
  text-align: center; padding: 24px 16px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-warm); color: #2a2218;
  box-shadow: 0 4px 12px rgba(255,187,0,0.25);
  animation: stepFloat 3s ease-in-out infinite;
}
.journey-step:nth-child(2) .step-num { animation-delay: .4s; }
.journey-step:nth-child(3) .step-num { animation-delay: .8s; }
.journey-step:nth-child(4) .step-num { animation-delay: 1.2s; }
.journey-step:nth-child(5) .step-num { animation-delay: 1.6s; }
.journey-step:nth-child(6) .step-num { animation-delay: 2.0s; }
.journey-step:nth-child(7) .step-num { animation-delay: 2.4s; }
.journey-step:nth-child(8) .step-num { animation-delay: 2.8s; }
@keyframes stepFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(255,187,0,0.25); }
  50%      { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(255,187,0,0.18); }
}
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin: 0 auto 14px;
}
.journey-step h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.journey-step p { font-size: .82rem; color: var(--text2); }

/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 48px auto 0;
}
.price-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all .3s; position: relative;
}
.price-card.featured {
  border-color: var(--accent); box-shadow: 0 4px 24px rgba(255,187,0,0.15);
  transform: scale(1.03);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-warm); color: #2a2218;
  padding: 4px 16px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.price-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.price-amount {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 2.2rem; font-weight: 600; color: var(--accent2);
}
.price-period { font-size: .82rem; color: var(--text3); }
.price-features { list-style: none; margin: 20px 0; text-align: left; }
.price-features li {
  padding: 6px 0; font-size: .88rem; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* CTA */
.cta {
  padding: 80px 0;
  background: url('clouds-hero.jpg') center/cover no-repeat;
  text-align: center; position: relative;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253,248,240,0.8) 0%, rgba(253,248,240,0.7) 100%);
}
[data-theme="dark"] .cta::before {
  background: linear-gradient(180deg, rgba(26,20,8,0.82) 0%, rgba(26,20,8,0.75) 100%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 2rem; font-weight: 600; margin-bottom: 16px;
}
.cta p { color: var(--text2); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center; font-size: .82rem; color: var(--text3);
}

/* ═══════════════════════════
   AUTH VIEW
   ═══════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px;
}
.auth-card {
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-lg);
  padding: 40px 36px; width: 100%; max-width: 420px;
}
.auth-card h2 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.6rem; font-weight: 600; text-align: center; margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center; color: var(--text2); font-size: .9rem; margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--text2); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem;
  color: var(--text); font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.form-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text3); }
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text3);
  padding: 4px; font-size: 1.1rem; line-height: 1;
  transition: color .2s;
}
.password-toggle:hover { color: var(--text); }
.form-error {
  display: none; margin-top: 6px; font-size: .8rem; color: var(--danger);
}
.form-error.visible { display: block; }
.auth-switch {
  text-align: center; margin-top: 20px; font-size: .85rem; color: var(--text2);
}
.auth-switch a {
  color: var(--accent2); text-decoration: none; font-weight: 500; cursor: pointer;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-alert {
  display: none; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; margin-bottom: 16px;
}
.auth-alert.error { display: block; background: var(--danger-bg); color: var(--danger); }
.auth-alert.success { display: block; background: var(--success-bg); color: var(--success); }

/* ═══════════════════════════
   DASHBOARD
   ═══════════════════════════ */
.dashboard-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}
.dashboard-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.user-greeting { font-size: .9rem; color: var(--text2); }
.user-greeting strong { color: var(--text); font-weight: 600; }

.dashboard-body {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px;
}

/* Progress bar */
.progress-banner {
  background: var(--warm2); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 28px; display: flex; align-items: center; gap: 24px;
}
.progress-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--pct, 0%), var(--border-light) var(--pct, 0%));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.progress-circle-inner {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--warm2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--accent2);
}
.progress-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.progress-info p { font-size: .85rem; color: var(--text2); }

/* Section tabs */
.sections-nav {
  display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px;
  margin-bottom: 28px;
}
.section-tab {
  padding: 10px 18px; border-radius: 50px; font-size: .82rem; font-weight: 500;
  background: var(--bg2); border: 1px solid var(--border-light);
  color: var(--text2); cursor: pointer; transition: all .25s;
  white-space: nowrap; font-family: inherit;
}
.section-tab .tab-emoji {
  display: inline-block; transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.section-tab:hover .tab-emoji { transform: scale(1.3) rotate(-8deg); }
.section-tab.active .tab-emoji { animation: tabEmojiPulse 2s ease-in-out infinite; }
@keyframes tabEmojiPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25) rotate(-6deg); }
  50% { transform: scale(1.1) rotate(4deg); }
  75% { transform: scale(1.2) rotate(-3deg); }
}
.section-tab:hover { background: var(--bg3); color: var(--text); }
.section-tab.active {
  background: var(--gradient-warm); color: #2a2218;
  border-color: transparent; font-weight: 700;
}

/* Section content */
.section-panel { display: none; }
.section-panel.active { display: block; }

.panel-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.panel-card h3 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 6px;
}
.panel-card > p { font-size: .88rem; color: var(--text2); margin-bottom: 20px; }
.field-group { margin-bottom: 18px; }
.field-label {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.field-hint {
  display: block; font-size: .78rem; color: var(--text3);
  margin-bottom: 8px; font-style: italic;
}
.field-textarea {
  width: 100%; padding: 12px 16px; min-height: 90px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; font-family: inherit;
  color: var(--text); line-height: 1.6;
  transition: border-color .25s, box-shadow .25s;
}
.field-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.save-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text3); margin-top: 6px;
}
.save-indicator.saved { color: var(--success); }
.save-indicator.error { color: var(--danger); }

/* Group heading — закон Хика (дробление длинных разделов) */
.field-group-heading {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: .98rem; color: var(--accent2);
  margin: 22px 0 4px;
}
.field-group-heading:first-child { margin-top: 4px; }

/* AI loading state */
.ai-result.ai-loading {
  display: flex; align-items: center; gap: 10px; color: var(--text2);
}
.ai-spinner {
  width: 16px; height: 16px; flex: 0 0 16px;
  border: 2px solid var(--accent-light);
  border-top-color: var(--accent); border-radius: 50%;
  animation: ai-spin .7s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* Toasts */
.toast-host {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--card, #fff); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .88rem; opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--success); background: var(--success-bg); color: var(--text); }
.toast-error { border-color: var(--danger); background: var(--danger-bg); color: var(--text); }
.toast-action {
  border: none; background: var(--accent); color: #2a2218;
  font-weight: 700; font-size: .82rem; padding: 6px 12px;
  border-radius: var(--radius-xs); cursor: pointer; font-family: inherit;
}

/* Options chips */
.options-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
  padding: 8px 16px; border-radius: 50px; font-size: .82rem;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all .25s;
  font-family: inherit;
}
.option-chip:hover { border-color: var(--accent); color: var(--text); }
.option-chip.selected {
  background: var(--accent-light); border-color: var(--accent);
  color: var(--accent2); font-weight: 500;
}

/* Mood tracker */
.mood-picker { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mood-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg2);
  font-size: 22px; cursor: pointer; transition: all .25s;
  display: flex; align-items: center; justify-content: center;
}
.mood-btn:hover { transform: scale(1.15); border-color: var(--accent); }
.mood-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); transform: scale(1.1); }

.mood-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.mood-calendar-header {
  font-size: .7rem; font-weight: 600; text-align: center;
  color: var(--text3); padding: 4px 0;
}
.mood-day {
  aspect-ratio: 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: var(--bg3); color: var(--text3);
  cursor: pointer; transition: all .2s; position: relative;
}
.mood-day:hover { transform: scale(1.1); box-shadow: var(--shadow-sm); z-index: 2; }
.mood-day.filled { color: #fff; font-size: 14px; }
.mood-day.today { border: 2px solid var(--accent); }
.mood-day.selected-day { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.08); z-index: 2; }
.mood-day.future { opacity: .3; pointer-events: none; }
/* Day mood picker dropdown */
.day-mood-picker {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; display: flex; gap: 4px; z-index: 100;
  box-shadow: var(--shadow-lg);
  animation: dayPickerIn .2s ease;
}
.day-mood-picker::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--bg2); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
@keyframes dayPickerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px) scale(.9); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.day-mood-picker button {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
  background: var(--bg); font-size: 16px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.day-mood-picker button:hover { border-color: var(--accent); transform: scale(1.15); }
.day-mood-picker button.picked { border-color: var(--accent); background: var(--accent-light); }

/* Vase */
.vase-container { display: flex; gap: 24px; flex-wrap: wrap; }
.vase-input-area { flex: 1; min-width: 200px; }
.vase-visual { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.vase-svg { width: 220px; height: 280px; }
.vase-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.vase-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  font-size: .9rem; font-family: inherit; color: var(--text);
}
.vase-input-row input:focus { outline: none; border-color: var(--accent); }
.vase-items { list-style: none; }
.vase-items li {
  padding: 10px 14px; background: var(--warm2);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem;
}
.vase-items li button {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 1rem; padding: 2px 6px;
}
.vase-items li button:hover { color: var(--danger); }

/* Breathing */
.breathing-circle {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--accent-light); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.2rem; color: var(--accent2);
  transition: transform 4s ease-in-out;
}
.breathing-circle.inhale { transform: scale(1.3); }
.breathing-circle.exhale { transform: scale(1); }
.breathing-controls { text-align: center; }

/* AI feedback */
.ai-btn {
  margin-top: 16px;
}
.ai-result {
  margin-top: 16px; padding: 16px;
  background: var(--warm2); border-radius: var(--radius-sm);
  font-size: .9rem; line-height: 1.7; color: var(--text);
  display: none;
  white-space: pre-wrap;
}
.ai-result.visible { display: block; }

/* ═══════════════════════════
   THEME TOGGLE & DECORATIONS
   ═══════════════════════════ */

/* Toggle button */
.theme-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg2);
  cursor: pointer; position: fixed;
  bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: var(--shadow-md);
  transition: all .4s ease;
}
.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════
   GLOBAL SKY / NIGHT BACKGROUND
   ═══════════════════════════ */

/* Fixed full-page layers behind everything */
.sky-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}

/* ── Light: clouds — generated by JS ── */
.clouds-layer { position: absolute; inset: 0; }
.dyn-cloud {
  position: absolute;
  border-radius: 100px;
  background: rgba(255,244,214,0.45);
  animation: drift var(--dur) linear infinite var(--delay);
  filter: blur(var(--blur, 4px));
  opacity: var(--op, .4);
}
.dyn-cloud::before, .dyn-cloud::after {
  content: ''; position: absolute;
  border-radius: 50%;
  background: rgba(255,244,214,0.4);
}
@keyframes drift {
  from { left: calc(-1 * var(--w) - 80px); }
  to { left: calc(100vw + 80px); }
}

[data-theme="dark"] .clouds-layer { display: none; }

/* ── Mood Weather: Rain ── */
.rain-layer {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.5s ease;
}
.sky-bg.mood-rain .rain-layer { opacity: 1; }
.sky-bg.mood-rain .clouds-layer .dyn-cloud {
  background: rgba(120, 130, 150, 0.5);
  filter: blur(6px);
}
.sky-bg.mood-rain .clouds-layer .dyn-cloud::before,
.sky-bg.mood-rain .clouds-layer .dyn-cloud::after {
  background: rgba(120, 130, 150, 0.4);
}

.raindrop {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.5));
  animation: rainfall var(--dur) linear infinite var(--delay);
  opacity: var(--op, 0.4);
  border-radius: 0 0 2px 2px;
}
@keyframes rainfall {
  0% { transform: translateY(-20px); opacity: 0; }
  10% { opacity: var(--op, 0.4); }
  90% { opacity: var(--op, 0.4); }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Dark overlay when raining */
.rain-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60,65,80,0.15) 0%, rgba(40,45,60,0.08) 100%);
  transition: opacity 1.5s ease; opacity: 0; pointer-events: none;
}
.sky-bg.mood-rain .rain-overlay { opacity: 1; }

/* ── Mood Weather: Clearing / Sunshine ── */
.sun-layer {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #fff680 0%, #ffbb00 40%, rgba(255,187,0,0) 70%);
  box-shadow: 0 0 60px rgba(255,187,0,0.4), 0 0 120px rgba(255,241,0,0.2);
  opacity: 0; transition: opacity 2s ease, transform 2s ease;
  pointer-events: none;
}
.sky-bg.mood-clear .sun-layer {
  opacity: 1; transform: translateX(-50%) scale(1.1);
}
.sun-rays {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(255,241,0,0.1) 0%, transparent 60%);
  animation: sunPulse 3s ease-in-out infinite alternate;
  opacity: 0; transition: opacity 2s ease;
}
.sky-bg.mood-clear .sun-rays { opacity: 1; }
@keyframes sunPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Brighten clouds on clearing */
.sky-bg.mood-clear .clouds-layer .dyn-cloud {
  background: rgba(255, 250, 230, 0.6);
  filter: blur(3px);
}

/* Transition: rain → clear */
.sky-bg.mood-clearing .rain-layer { opacity: 0; }
.sky-bg.mood-clearing .rain-overlay { opacity: 0; }
.sky-bg.mood-clearing .sun-layer { opacity: 1; transform: translateX(-50%) scale(1.1); }
.sky-bg.mood-clearing .sun-rays { opacity: 1; }

[data-theme="dark"] .rain-layer { opacity: 0 !important; }
[data-theme="dark"] .sun-layer { opacity: 0 !important; }
[data-theme="dark"] .sun-rays { opacity: 0 !important; }
[data-theme="dark"] .rain-overlay { opacity: 0 !important; }

/* ── Dark: stars & moon across entire page ── */
.night-layer {
  position: absolute; inset: 0; display: none;
}
[data-theme="dark"] .night-layer { display: block; }

.moon {
  position: absolute; top: 5%; right: 10%;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff680 0%, #ffcc00 50%, #ffbb00 100%);
  box-shadow: 0 0 30px rgba(255,187,0,0.3), 0 0 80px rgba(255,187,0,0.1);
  animation: moonPulse 5s ease-in-out infinite alternate;
}
.moon::before {
  content: ''; position: absolute;
  top: 8px; right: 6px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg);
  opacity: .35;
}
@keyframes moonPulse {
  0% { box-shadow: 0 0 30px rgba(255,237,179,0.3), 0 0 80px rgba(255,237,179,0.08); filter: brightness(1); }
  100% { box-shadow: 0 0 50px rgba(255,237,179,0.45), 0 0 120px rgba(255,237,179,0.12); filter: brightness(1.08); }
}

.bg-star {
  position: absolute; border-radius: 50%;
  background: #fff;
}
.bg-star.twinkle-slow { animation: twinkle 4s ease-in-out infinite alternate; }
.bg-star.twinkle-med  { animation: twinkle 2.5s ease-in-out infinite alternate; }
.bg-star.twinkle-fast { animation: twinkle 1.5s ease-in-out infinite alternate; }
@keyframes twinkle {
  0% { opacity: .2; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Shooting star */
.shooting-star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  opacity: 0;
}
.shooting-star::after {
  content: ''; position: absolute;
  top: 0; right: 0;
  width: 40px; height: 1px;
  background: linear-gradient(to left, #fff, transparent);
  transform-origin: right center;
  transform: rotate(0deg);
}

/* Hero relative for decoration layers */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .price-card.featured { transform: none; }
  .journey-steps { grid-template-columns: 1fr; gap: 12px; }
  .journey-step { display: flex; align-items: center; gap: 16px; text-align: left; padding: 12px 0; }
  .step-num { margin: 0; flex-shrink: 0; }
  .section-header h2 { font-size: 1.6rem; }
  .auth-card { padding: 28px 20px; }
  .panel-card { padding: 20px; }
  .progress-banner { flex-direction: column; text-align: center; }
  .vase-container { flex-direction: column; }
  .vase-visual { width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 0 60px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .header-actions .btn span.hide-mobile { display: none; }
  .btn-lg { padding: 12px 24px; }
  .dashboard-body { padding: 20px 16px; }
  .mood-btn { width: 40px; height: 40px; font-size: 18px; }
}

/* ── Streak & Quote Banner ── */
.streak-quote-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.streak-card, .quote-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.streak-card { display: flex; align-items: center; gap: 16px; position: relative; }
.share-card-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent-light); border: 1px solid var(--border-light);
  border-radius: 10px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--accent); transition: all .25s;
}
.share-card-btn:hover { background: var(--accent); color: var(--bg); transform: scale(1.1); }
.streak-fire { font-size: 2.2rem; line-height: 1; }
.streak-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.streak-info p { font-size: .82rem; color: var(--text2); }
.streak-num { font-family: 'Raleway', sans-serif; font-weight: 800; color: var(--accent2); font-size: 1.4rem; font-weight: 700; }
.quote-card { font-style: italic; color: var(--text2); font-size: .9rem; line-height: 1.6; position: relative; padding-left: 40px; }
.quote-card::before { content: '\201C'; position: absolute; left: 16px; top: 12px; font-size: 2.5rem; color: var(--accent); font-family: 'Raleway', sans-serif; font-weight: 800; line-height: 1; }
.quote-author { display: block; margin-top: 8px; font-style: normal; font-size: .78rem; color: var(--text3); font-weight: 500; }

/* ── Weekly Summary ── */
.weekly-summary-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.weekly-summary-card h3 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.weekly-summary-text { font-size: .9rem; color: var(--text2); line-height: 1.7; white-space: pre-wrap; }

/* ── Manul Companion (Dashboard) ── */
.manul-companion {
  position: fixed; bottom: 16px; right: 16px; z-index: 200;
  width: 80px; height: 80px; cursor: pointer;
  transition: transform .3s; display: none;
}
.manul-companion.visible { display: block; }
.manul-companion:hover { transform: scale(1.1); }
.manul-companion-body {
  width: 60px; height: 50px; margin: 10px auto 0; position: relative;
}
.mc-face {
  width: 44px; height: 40px; border-radius: 50%;
  background: linear-gradient(170deg, #d4be9a, #b8a070);
  position: absolute; top: -10px; left: 8px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.mc-eyes { display: flex; gap: 8px; margin-top: -2px; }
.mc-eye { width: 8px; height: 10px; background: #3a2e1a; border-radius: 50%; position: relative; }
.mc-eye::after { content: ''; width: 3px; height: 3px; background: #fff; border-radius: 50%; position: absolute; top: 2px; right: 1px; }
.mc-body-oval {
  width: 50px; height: 34px; border-radius: 50%;
  background: linear-gradient(170deg, #c4aa82, #a08a60);
  position: absolute; bottom: 0; left: 5px;
}
.mc-ears { position: absolute; top: -16px; left: 8px; width: 44px; display: flex; justify-content: space-between; }
.mc-ear { width: 12px; height: 10px; border-radius: 50% 50% 20% 20%; background: #c4a880; }
.mc-ear-l { transform: rotate(-15deg); }
.mc-ear-r { transform: rotate(15deg); }
.mc-tail {
  width: 30px; height: 8px; border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #a08a60, #c4aa82);
  position: absolute; bottom: 8px; right: -16px;
  transform-origin: left; animation: mcTailWag 2s ease-in-out infinite;
}
@keyframes mcTailWag { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(12deg); } }
.manul-companion.mc-happy .mc-eye { height: 5px; border-radius: 0 0 50% 50%; }
.manul-companion.mc-sad .mc-ear-l { transform: rotate(-30deg) translateY(3px); }
.manul-companion.mc-sad .mc-ear-r { transform: rotate(30deg) translateY(3px); }
.manul-companion.mc-sleepy .mc-eye { height: 3px; border-radius: 50%; }
.manul-companion.mc-sleepy .mc-body-oval { animation: mcBreathe 3s ease-in-out infinite; }
@keyframes mcBreathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
.mc-accessory { position: absolute; z-index: 5; pointer-events: none; }
.mc-bow { top: -18px; left: 14px; font-size: 14px; }
.mc-crown { top: -22px; left: 11px; font-size: 16px; }
.mc-cape {
  width: 36px; height: 20px; border-radius: 0 0 50% 50%;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  position: absolute; bottom: -4px; left: 12px; z-index: -1;
  animation: mcCapeFlow 2s ease-in-out infinite;
}
@keyframes mcCapeFlow { 0%, 100% { transform: scaleX(1) skewX(0deg); } 50% { transform: scaleX(1.1) skewX(3deg); } }
.mc-bubble {
  position: absolute; bottom: 85px; right: 0; min-width: 150px; max-width: 210px;
  background: var(--bg2); border: 2px solid var(--accent);
  border-radius: 14px 14px 4px 14px; padding: 8px 12px;
  font-size: .75rem; color: var(--text); line-height: 1.4;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: all .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
.mc-bubble.visible { opacity: 1; transform: translateY(0) scale(1); }
.mc-bubble::after {
  content: ''; position: absolute; bottom: -8px; right: 16px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 8px solid var(--accent);
}

/* ── Malinois Companion ── */
.mali-companion {
  position: fixed; bottom: 16px; right: 16px; z-index: 200;
  width: 80px; height: 80px; cursor: pointer;
  transition: transform .3s; display: none;
}
.mali-companion.visible { display: block; }
.mali-companion:hover { transform: scale(1.1); }
.mali-companion-body {
  width: 60px; height: 55px; margin: 6px auto 0; position: relative;
}
.mali-face {
  width: 40px; height: 44px; border-radius: 46% 46% 42% 42%;
  background: linear-gradient(170deg, #d4a65a, #b8863a);
  position: absolute; top: -14px; left: 10px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mali-face::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 18px; border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #c4963a, #a87828);
}
.mali-mask {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 20px; border-radius: 40%;
  background: #2a1a0a; opacity: .7;
}
.mali-eyes { display: flex; gap: 10px; margin-top: -4px; z-index: 2; position: relative; }
.mali-eye { width: 7px; height: 9px; background: #2a1a0a; border-radius: 50%; position: relative; }
.mali-eye::after { content: ''; width: 3px; height: 3px; background: #fff; border-radius: 50%; position: absolute; top: 2px; right: 1px; }
.mali-nose {
  width: 8px; height: 6px; background: #1a0e04; border-radius: 40% 40% 50% 50%;
  margin-top: 1px; z-index: 2; position: relative;
}
.mali-mouth {
  width: 12px; height: 4px; border-bottom: 2px solid #8a5a2a;
  border-radius: 0 0 50% 50%; margin-top: -1px; z-index: 2; position: relative;
}
.mali-body-oval {
  width: 46px; height: 36px; border-radius: 50% 50% 46% 46%;
  background: linear-gradient(170deg, #c49a52, #a87a34);
  position: absolute; bottom: 0; left: 7px;
}
.mali-chest {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 14px; border-radius: 50%;
  background: linear-gradient(180deg, #d4b87a, #c4a460);
}
.mali-ears { position: absolute; top: -18px; left: 6px; width: 48px; display: flex; justify-content: space-between; }
.mali-ear {
  width: 14px; height: 20px; border-radius: 30% 30% 50% 50%;
  background: linear-gradient(180deg, #2a1a0a, #8a5a2a);
}
.mali-ear-l { transform: rotate(-8deg); transform-origin: bottom center; }
.mali-ear-r { transform: rotate(8deg); transform-origin: bottom center; }
.mali-tail {
  width: 28px; height: 7px; border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #a87a34, #c49a52);
  position: absolute; bottom: 12px; right: -14px;
  transform-origin: left; animation: maliTailWag 0.4s ease-in-out infinite;
}
@keyframes maliTailWag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
.mali-legs { position: absolute; bottom: -6px; left: 8px; width: 44px; display: flex; justify-content: space-between; }
.mali-leg {
  width: 8px; height: 10px; border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #a87a34, #8a6228);
}
.mali-tongue {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 0; background: #e86070; border-radius: 0 0 50% 50%;
  z-index: 3; transition: height .3s;
}
.mali-companion:hover .mali-tongue,
.mali-companion.mali-happy .mali-tongue { height: 8px; }
.mali-companion.mali-happy .mali-eye { height: 5px; border-radius: 0 0 50% 50%; }
.mali-companion.mali-happy .mali-tail { animation-duration: 0.2s; }
.mali-companion.mali-sad .mali-ear-l { transform: rotate(-20deg) translateY(4px); }
.mali-companion.mali-sad .mali-ear-r { transform: rotate(20deg) translateY(4px); }
.mali-companion.mali-sad .mali-tail { animation: none; transform: rotate(-20deg); }
.mali-companion.mali-sleepy .mali-eye { height: 3px; border-radius: 50%; }
.mali-companion.mali-sleepy .mali-body-oval { animation: mcBreathe 3s ease-in-out infinite; }
.mali-accessory { position: absolute; z-index: 5; pointer-events: none; }
.mali-bow { top: -22px; left: 16px; font-size: 14px; }
.mali-crown { top: -26px; left: 12px; font-size: 16px; }
.mali-cape {
  width: 36px; height: 20px; border-radius: 0 0 50% 50%;
  background: linear-gradient(135deg, #e67e22, #d35400);
  position: absolute; bottom: -4px; left: 12px; z-index: -1;
  animation: mcCapeFlow 2s ease-in-out infinite;
}
.mali-bubble {
  position: absolute; bottom: 85px; right: 0; min-width: 150px; max-width: 210px;
  background: var(--bg2); border: 2px solid var(--accent);
  border-radius: 14px 14px 4px 14px; padding: 8px 12px;
  font-size: .75rem; color: var(--text); line-height: 1.4;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: all .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
.mali-bubble.visible { opacity: 1; transform: translateY(0) scale(1); }
.mali-bubble::after {
  content: ''; position: absolute; bottom: -8px; right: 16px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 8px solid var(--accent);
}

/* ── Companion Switch Button ── */
.companion-switch {
  position: fixed; bottom: 100px; right: 22px; z-index: 201;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--accent-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: transform .2s, background .2s;
}
.companion-switch.visible { display: flex; }
.companion-switch:hover { transform: scale(1.15); background: var(--accent-light); }

/* ── Daily Challenge ── */
.challenge-card {
  background: linear-gradient(135deg, var(--warm1), var(--warm2));
  border: 1px solid var(--accent); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.challenge-card::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-light); opacity: .5;
}
.challenge-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.challenge-header span { font-size: 1.4rem; }
.challenge-header h4 { font-size: .9rem; font-weight: 700; }
.challenge-text { font-size: .85rem; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.challenge-actions { display: flex; gap: 8px; align-items: center; }
.challenge-done-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--success-bg); color: var(--success);
  border-radius: 20px; font-size: .8rem; font-weight: 600;
}

/* ── Time-of-day Ritual ── */
.ritual-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ritual-overlay.active { opacity: 1; pointer-events: auto; }
.ritual-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: 32px; max-width: 460px; width: 92%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .3s;
}
.ritual-overlay.active .ritual-card { transform: translateY(0); }
.ritual-icon { font-size: 3rem; text-align: center; margin-bottom: 12px; }
.ritual-title { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.3rem; text-align: center; margin-bottom: 6px; }
.ritual-subtitle { font-size: .85rem; color: var(--text2); text-align: center; margin-bottom: 20px; }
.ritual-field { margin-bottom: 14px; }
.ritual-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.ritual-field textarea {
  width: 100%; padding: 10px 14px; min-height: 60px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .88rem; font-family: inherit;
  color: var(--text); line-height: 1.5;
}
.ritual-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ritual-mood-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.ritual-mood-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg); font-size: 20px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.ritual-mood-btn:hover { transform: scale(1.15); border-color: var(--accent); }
.ritual-mood-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); transform: scale(1.1); }
.ritual-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

/* ── Unlockable Themes ── */
.themes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px;
}
.theme-option {
  border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
  border: 2px solid var(--border-light); cursor: pointer; transition: all .3s;
  position: relative; overflow: hidden;
}
.theme-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.theme-option.locked { opacity: .5; cursor: not-allowed; filter: grayscale(.5); }
.theme-option.locked::after { content: '🔒'; position: absolute; top: 6px; right: 6px; font-size: 13px; }
.theme-swatch { width: 100%; height: 36px; border-radius: 8px; margin-bottom: 6px; }
.theme-option-name { font-size: .78rem; font-weight: 600; }
.theme-option-req { font-size: .68rem; color: var(--text3); }

/* ── Progress Map ── */
.progress-map {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px;
}
@media (max-width: 600px) { .progress-map { grid-template-columns: repeat(2, 1fr); } }
.map-island {
  background: var(--bg); border: 2px solid var(--border-light);
  border-radius: var(--radius); padding: 16px 10px; text-align: center;
  transition: all .4s; position: relative; overflow: hidden;
}
.map-island.bloomed {
  border-color: var(--accent); background: var(--warm1);
}
.map-island.bloomed::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, var(--accent-light) 0%, transparent 70%);
}
.map-island-icon { font-size: 2rem; margin-bottom: 6px; display: block; transition: transform .3s; }
.map-island.bloomed .map-island-icon { animation: islandPulse 2s ease-in-out infinite; }
@keyframes islandPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.map-island-name { font-size: .78rem; font-weight: 600; }
.map-island-bar {
  height: 4px; background: var(--border-light); border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.map-island-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--gradient-warm); transition: width .6s ease;
}

/* ── Weekly Digest Card ── */
.digest-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.digest-share-img {
  background: var(--gradient-warm); border-radius: var(--radius-sm);
  padding: 20px; color: #2a2218; margin-bottom: 12px; position: relative;
}
.digest-share-img h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.digest-stats-row { display: flex; gap: 16px; flex-wrap: wrap; }
.digest-stat { text-align: center; }
.digest-stat-val { font-size: 1.4rem; font-weight: 800; }
.digest-stat-lbl { font-size: .7rem; opacity: .7; }
.digest-emoji-row { margin-top: 10px; font-size: 1.2rem; letter-spacing: 4px; }

/* ── Secret Stone ── */
.secret-stone-card {
  background: linear-gradient(135deg, var(--warm1), var(--accent-light));
  border: 2px dashed var(--accent); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; text-align: center;
  animation: secretGlow 2s ease-in-out infinite alternate;
  cursor: pointer;
}
@keyframes secretGlow {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  100% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}
.secret-stone-card .stone-icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ── Time Capsule ── */
.capsule-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.capsule-locked {
  text-align: center; padding: 16px; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px dashed var(--border);
}
.capsule-locked .lock-icon { font-size: 2rem; margin-bottom: 6px; }
.capsule-list { list-style: none; }
.capsule-list li {
  padding: 12px; background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: .88rem;
}
.capsule-list li.sealed { opacity: .6; font-style: italic; }

/* ── Pair Challenge ── */
.pair-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.pair-invite-code {
  display: inline-block; padding: 8px 20px;
  background: var(--gradient-warm); color: #2a2218;
  border-radius: 20px; font-weight: 700; font-size: 1.1rem;
  letter-spacing: 2px; margin: 8px 0;
}
.pair-streak-compare {
  display: flex; gap: 24px; justify-content: center; margin-top: 12px;
}
.pair-person { text-align: center; }
.pair-person-name { font-size: .8rem; color: var(--text2); margin-top: 4px; }
.pair-person-streak { font-size: 1.6rem; font-weight: 800; color: var(--accent2); }

/* ── Seasonal Event Banner ── */
.seasonal-banner {
  background: var(--gradient-warm); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px; position: relative;
  overflow: hidden; color: #2a2218;
}
.seasonal-banner::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.seasonal-banner h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.seasonal-banner p { font-size: .82rem; opacity: .8; }
.seasonal-progress { height: 6px; background: rgba(0,0,0,.1); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.seasonal-progress-fill { height: 100%; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .5s; }

/* ── Mood Playlist ── */
.mood-playlist {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.mood-playlist h3 { font-family:'Raleway',sans-serif; font-weight:800; font-size:1.1rem; margin-bottom:8px; }
.playlist-items { display: flex; flex-direction: column; gap: 10px; }
.playlist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.playlist-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.playlist-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.playlist-item-info { flex: 1; }
.playlist-item-title { font-weight: 600; font-size: .9rem; color: var(--text); }
.playlist-item-desc { font-size: .78rem; color: var(--text2); margin-top: 2px; }
.playlist-mood-tag {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  font-size: .72rem; font-weight: 600; margin-bottom: 10px;
  background: var(--gradient-warm); color: #2a2218;
}

/* ── Weekly Goals ── */
.weekly-goals {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.weekly-goals h3 { font-family:'Raleway',sans-serif; font-weight:800; font-size:1.1rem; margin-bottom:10px; }
.goal-list { list-style: none; }
.goal-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: .88rem; transition: opacity .3s;
}
.goal-item.completed { opacity: .55; text-decoration: line-through; }
.goal-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .2s;
  font-size: .7rem;
}
.goal-check.done { background: var(--accent); color: #fff; }
.goal-input-row { display: flex; gap: 8px; margin-top: 10px; }
.goal-input-row input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-size: .85rem;
}
.goal-progress-bar { height: 6px; background: var(--bg); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.goal-progress-fill { height: 100%; border-radius: 3px; background: var(--gradient-warm); transition: width .5s; }
.goal-summary {
  text-align: center; padding: 16px; background: var(--bg);
  border-radius: var(--radius-sm); margin-top: 10px;
}
.goal-summary-icon { font-size: 2rem; margin-bottom: 4px; }

/* ── Secret Sections ── */
.secret-sections {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.secret-sections h3 { font-family:'Raleway',sans-serif; font-weight:800; font-size:1.1rem; margin-bottom:10px; }
.secret-item {
  padding: 16px; background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 10px; position: relative; overflow: hidden;
}
.secret-item.locked {
  cursor: default;
}
.secret-item.locked::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.1));
  backdrop-filter: blur(2px); border-radius: inherit;
}
.secret-item.unlocked {
  border: 1px solid var(--accent); cursor: pointer;
  animation: secretUnlock .6s ease;
}
@keyframes secretUnlock {
  0% { transform: scale(.95); opacity: .5; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
.secret-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.secret-item-icon { font-size: 1.4rem; }
.secret-item-title { font-weight: 700; font-size: .9rem; color: var(--text); }
.secret-item-desc { font-size: .8rem; color: var(--text2); }
.secret-item-req {
  font-size: .72rem; color: var(--text3); margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}
.secret-item-req .req-bar { flex: 1; height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; max-width: 80px; }
.secret-item-req .req-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width .5s; }

/* ── Profile Panel ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.profile-item { padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.profile-item-label { font-size: .78rem; color: var(--text3); margin-bottom: 4px; }
.profile-item-value { font-size: .95rem; font-weight: 500; color: var(--text); }

/* ── Export demo toast ── */
.demo-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 24px;
  box-shadow: var(--shadow-lg); z-index: 300;
  font-size: .9rem; color: var(--text);
  opacity: 0; transition: all .3s ease;
  pointer-events: none;
}
.demo-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  .streak-quote-row { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}

/* ── Mood Chart ── */
.mood-chart-wrap {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.mood-chart-wrap h3 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.mood-chart { position: relative; width: 100%; height: 200px; }
.mood-chart svg { width: 100%; height: 100%; }
.mood-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.mood-chart-legend span { font-size: .78rem; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.mood-chart-legend span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── Section Stats ── */
.stats-panel { margin-bottom: 20px; }
.stats-bars { display: flex; flex-direction: column; gap: 12px; }
.stat-bar-row { display: flex; align-items: center; gap: 12px; }
.stat-bar-label { width: 140px; font-size: .82rem; color: var(--text2); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-bar-track { flex: 1; height: 24px; background: var(--bg); border-radius: 12px; overflow: hidden; position: relative; }
.stat-bar-fill { height: 100%; border-radius: 12px; background: var(--gradient-warm); transition: width .6s ease; min-width: 2px; }
.stat-bar-pct { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .72rem; font-weight: 600; color: var(--text); }
.stat-summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
.stat-summary-item {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.stat-summary-num { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.8rem; font-weight: 700; color: var(--accent2); }
.stat-summary-label { font-size: .78rem; color: var(--text2); margin-top: 4px; }

/* ── Achievements ── */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.achievement {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
  opacity: .4; filter: grayscale(1); transition: all .4s;
}
.achievement.unlocked { opacity: 1; filter: none; background: var(--card); border-color: var(--accent); }
.achievement.unlocked .ach-icon { transform: scale(1.1); }
.ach-icon { font-size: 2rem; margin-bottom: 8px; display: block; transition: transform .3s; }
.ach-title { font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.ach-desc { font-size: .75rem; color: var(--text3); }
.achievement.unlocked .ach-desc { color: var(--text2); }
.ach-date { font-size: .7rem; color: var(--accent); margin-top: 4px; display: none; }
.achievement.unlocked .ach-date { display: block; }

/* ── Onboarding Overlay ── */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.onboarding-overlay.active { opacity: 1; pointer-events: auto; }
.onboarding-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: 40px 36px; max-width: 480px; width: 90%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px); transition: transform .3s;
}
.onboarding-overlay.active .onboarding-card { transform: translateY(0); }
.onb-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.onb-title { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.onb-text { font-size: .92rem; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }
.onb-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all .3s; }
.onb-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.onb-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Mobile hamburger ── */
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--text); padding: 4px 8px;
}
.dash-mobile-menu {
  display: none; position: absolute; top: 64px; right: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px;
  box-shadow: var(--shadow-lg); z-index: 150; min-width: 180px;
  flex-direction: column; gap: 4px;
}
.dash-mobile-menu.open { display: flex; }
.dash-mobile-menu .btn { justify-content: flex-start; width: 100%; border-radius: var(--radius-xs); }

@media (max-width: 768px) {
  .dash-desktop-actions { display: none !important; }
  .mobile-menu-btn { display: block; }
  .stat-summary-grid { grid-template-columns: 1fr 1fr; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .onboarding-card { padding: 28px 20px; }
  .sections-nav { gap: 6px; }
  .section-tab { padding: 8px 14px; font-size: .78rem; }
  .dashboard-header-inner { position: relative; }
}
@media (max-width: 480px) {
  .stat-summary-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .streak-card { flex-direction: column; text-align: center; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .5s ease forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #2a2218; border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }

/* ═══════════════════════════
   MANUL CAT — cartoony style
   ═══════════════════════════ */
#manulCat {
  position: fixed; z-index: 9999; pointer-events: auto;
  bottom: 0; width: 120px; height: 100px;
  transform: scaleX(-1); cursor: pointer;
}
#manulCat.gone { display: none; }
/* Click reaction popups */
.manul-popup {
  position: absolute; top: -30px; left: 50%;
  transform: translateX(-50%) scaleX(-1);
  background: var(--bg2, #fff); border: 2px solid var(--accent, #ffbb00);
  border-radius: 16px 16px 4px 16px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  pointer-events: none; opacity: 0; z-index: 10;
  animation: manulPopup 1.6s ease forwards;
}
@keyframes manulPopup {
  0% { opacity: 0; transform: translateX(-50%) scaleX(-1) translateY(5px) scale(.7); }
  15% { opacity: 1; transform: translateX(-50%) scaleX(-1) translateY(-8px) scale(1.05); }
  70% { opacity: 1; transform: translateX(-50%) scaleX(-1) translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(-1) translateY(-20px) scale(.8); }
}
#manulCat.jumped .manul {
  animation: manulJump .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes manulJump {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-40px) rotate(-15deg) scaleX(1.15) scaleY(.85); }
  50% { transform: translateY(-50px) rotate(10deg) scaleX(.9) scaleY(1.15); }
  70% { transform: translateY(-20px) rotate(-5deg); }
  85% { transform: translateY(5px) scaleY(.9) scaleX(1.1); }
  100% { transform: translateY(0) rotate(0deg) scaleX(1) scaleY(1); }
}
#manulCat.dizzy .manul {
  animation: manulSpin .6s cubic-bezier(.34,1.56,.64,1);
}
@keyframes manulSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(360deg) scale(1.2); }
  100% { transform: rotate(720deg) scale(1); }
}
#manulCat.puffed .m-body {
  transform: scaleX(1.4) scaleY(1.3); transition: transform .2s;
}
#manulCat.puffed .m-head {
  transform: scaleX(1.2) scaleY(1.3) translateY(-6px); transition: transform .2s;
}
#manulCat.flatcat .manul {
  animation: manulFlat .7s ease;
}
@keyframes manulFlat {
  0% { transform: scaleY(1) scaleX(1); }
  20% { transform: scaleY(.3) scaleX(1.6) translateY(20px); }
  50% { transform: scaleY(.2) scaleX(1.8) translateY(24px); }
  80% { transform: scaleY(1.3) scaleX(.8) translateY(-10px); }
  100% { transform: scaleY(1) scaleX(1) translateY(0); }
}
.manul { position: relative; width: 100%; height: 100%; }

/* Body — rounder, chubby */
.m-body {
  position: absolute; bottom: 10px; left: 22px;
  width: 58px; height: 38px; border-radius: 50%;
  background: linear-gradient(170deg, #d4be9a 0%, #b8a070 55%, #9a8258 100%);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08);
  transition: border-radius .4s;
}
.m-body::before {
  content: ''; position: absolute; top: 8px; left: 8px; right: 8px; height: 22px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(80,55,20,0.1) 8px, rgba(80,55,20,0.1) 10px);
  border-radius: 40%;
}
.m-body::after {
  content: ''; position: absolute; bottom: 4px; left: 10px;
  width: 38px; height: 18px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230,215,190,0.4) 0%, transparent 70%);
}

/* Head — BIG and round, cartoon style */
.m-head {
  position: absolute; bottom: 34px; left: -2px;
  width: 54px; height: 48px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(175deg, #dcc8a8 0%, #c4aa82 100%);
  z-index: 2;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.m-head::after {
  content: ''; position: absolute; bottom: 2px; left: 4px; right: 4px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230,215,190,0.5) 0%, transparent 70%);
}

/* Ears — small & round like manul */
.m-ear {
  position: absolute; z-index: 1; bottom: 74px;
  width: 16px; height: 12px;
  border-radius: 50% 50% 20% 20%;
  background: #c4a880;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.m-ear-l { left: 2px; transform: rotate(-15deg); }
.m-ear-r { left: 34px; transform: rotate(15deg); }
.m-ear::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 10px; height: 6px; border-radius: 50%;
  background: #e8d4b8;
}

/* Eyes — BIG cartoon eyes */
.m-eye {
  position: absolute; z-index: 4; bottom: 50px;
  width: 16px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff8d0 0%, #f0e090 100%);
  box-shadow: 0 0 6px rgba(240,224,144,0.4);
  transition: height .12s ease;
}
.m-eye-l { left: 8px; }
.m-eye-r { left: 30px; }
.m-pupil {
  position: absolute; top: 4px; left: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #333 0%, #111 100%);
  transition: all .2s;
}
.m-pupil::after {
  content: ''; position: absolute; top: 1px; left: 2px;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
}
.m-eye.blink { height: 3px !important; overflow: hidden; border-radius: 50%; }

/* Nose — pink triangle */
.m-nose {
  position: absolute; z-index: 4; bottom: 44px; left: 22px;
  width: 8px; height: 6px; border-radius: 40% 40% 50% 50%;
  background: #d48080;
}

/* Mouth — cute W */
.m-mouth {
  position: absolute; z-index: 4; bottom: 39px; left: 18px;
  width: 18px; height: 6px;
  border-bottom: 2px solid rgba(160,100,80,0.45);
  border-radius: 0 0 50% 50%;
}

/* Tail — thick & fluffy */
.m-tail {
  position: absolute; bottom: 16px; right: -8px;
  width: 42px; height: 18px;
  border-radius: 6px 50% 45% 6px;
  background: linear-gradient(90deg, #b8a070 0%, #9a8258 80%, #8a7248 100%);
  transform-origin: 0% 50%;
  z-index: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.m-tail::before {
  content: ''; position: absolute; top: 3px; left: 6px; right: 4px; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 6px, rgba(60,40,20,0.12) 6px, rgba(60,40,20,0.12) 8px);
  border-radius: 0 50% 50% 0;
}

/* Legs — stubby & cute */
.m-leg {
  position: absolute; bottom: 0;
  width: 13px; height: 16px;
  border-radius: 4px 4px 6px 6px;
  background: #a08a60;
}
.m-leg-fl { left: 24px; }
.m-leg-fr { left: 38px; }
.m-leg-bl { left: 54px; }
.m-leg-br { left: 66px; }

/* States */
#manulCat.sitting .m-body { border-radius: 50%; height: 34px; }
#manulCat.sitting .m-leg { height: 6px !important; bottom: 0 !important; }
#manulCat.scared .m-tail { transform: rotate(-35deg) scaleY(1.5) scaleX(1.1); }
#manulCat.scared .m-ear-l { transform: rotate(-35deg) translateY(-3px); }
#manulCat.scared .m-ear-r { transform: rotate(35deg) translateY(-3px); }
#manulCat.scared .m-eye { height: 18px !important; }
#manulCat.scared .m-pupil { width: 5px !important; height: 5px !important; }

/* ── History Timeline ── */
.history-toggle { display:flex; align-items:center; gap:8px; font-size:.9rem; width:100%; justify-content:center; }
.history-list { margin-top:16px; display:flex; flex-direction:column; gap:10px; }
.history-date-card { border:1px solid var(--border-light); border-radius:var(--radius-sm); overflow:hidden; background:var(--bg2); }
.history-date-btn {
  display:flex; align-items:center; justify-content:space-between; width:100%; padding:12px 16px;
  background:transparent; border:none; cursor:pointer; font-size:.9rem; color:var(--text); font-family:inherit;
  transition: background .2s;
}
.history-date-btn:hover { background:var(--bg3); }
.history-date-label { font-weight:600; }
.history-date-arrow { transition:transform .25s; font-size:.75rem; color:var(--text3); }
.history-date-card.open .history-date-arrow { transform:rotate(90deg); }
.history-date-content { padding:0 16px 12px; }
.history-entry { padding:8px 0; border-bottom:1px solid var(--border-light); }
.history-entry:last-child { border-bottom:none; }
.history-entry-label { font-size:.78rem; color:var(--text3); margin-bottom:2px; }
.history-entry-value { font-size:.88rem; color:var(--text); line-height:1.45; white-space:pre-wrap; }