@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --pink: #c47e8a; --pink-light: #f2d5d9; --pink-pale: #fdf0f2;
  --rose: #d4889a; --blush: #e8b4bc;
  --brown: #7a5c4f; --brown-dark: #5c3d30; --brown-med: #9a7b6b;
  --beige: #f5ebe0; --beige-dark: #ddd0c0;
  --cream: #fdf8f4; --cream-card: #ffffff;
  --tan: #c9a98c; --text: #4a3728; --text-light: #8a7262; --text-muted: #b09a8a;
  --border: #e8ddd3; --green: #7a9e7e; --green-bg: #eef5ef;
  --blue: #7a8fa8; --blue-bg: #eef2f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
.container { max-width: 960px; margin: 0 auto; padding: 32px 24px; padding-bottom: 100px; }

/* ── Header ── */
.header { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--beige-dark); }
.header h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 800; color: var(--brown-dark); letter-spacing: -0.5px; margin-bottom: 6px; }
.header .subtitle { font-size: 0.95rem; color: var(--pink); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* ── Goals ── */
.goals-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.goal-badge { background: var(--pink-pale); border: 1px solid var(--pink-light); border-radius: 24px; padding: 7px 16px; font-size: 0.78rem; font-weight: 600; color: var(--brown); display: flex; align-items: center; gap: 7px; }
.goal-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

/* ── Section titles ── */
.section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--beige-dark); }
.section-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: -10px; margin-bottom: 16px; }

/* ── Card base ── */
.card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(122,92,79,0.06); }

/* ── Toast ── */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--brown-dark); color: white; padding: 12px 28px; border-radius: 14px; font-size: 0.85rem; font-weight: 600; z-index: 1000; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
.footer-tips { text-align: center; padding: 20px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--beige-dark); margin-top: 8px; }
.footer-tips strong { color: var(--brown); }

/* ── Bottom Nav (mobile) / Top Nav (desktop) ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--cream-card); border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 0; z-index: 900; box-shadow: 0 -2px 12px rgba(122,92,79,0.08); }
.nav-item { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 12px; text-decoration: none; color: var(--text-muted); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; border-top: 3px solid transparent; }
.nav-item:hover { color: var(--brown); background: var(--beige); }
.nav-item.active { color: var(--pink); border-top-color: var(--pink); }
.nav-icon { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: 0.65rem; }

@media (min-width: 768px) {
  .bottom-nav { position: static; border-top: none; border-bottom: 1px solid var(--border); box-shadow: none; margin-bottom: 24px; background: transparent; }
  .nav-item { border-top: none; border-bottom: 3px solid transparent; padding: 12px 16px 10px; }
  .nav-item.active { border-top-color: transparent; border-bottom-color: var(--pink); }
  .container { padding-bottom: 32px; }
}

/* ── Fade-in animation ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; max-width: 300px; margin: 0 auto; }

/* ── Stat cards ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(122,92,79,0.04); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--brown-dark); line-height: 1; }
.stat-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 6px; }
.stat-card.highlight { background: var(--pink-pale); border-color: var(--pink-light); }
.stat-card.highlight .stat-value { color: var(--pink); }
