:root {
    --bg: #fff3f7;
    --surface: #ffffff;
    --ink: #432b38;
    --muted: #8d6f7c;
    --dark: #a94f73;
    --pink: #e889a8;
    --yellow: #ffd36e;
    --line: #f1d9e2;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-image: radial-gradient(circle at 100% 0%, rgba(244, 184, 205, .26), transparent 28%), radial-gradient(circle at 0% 55%, rgba(255, 211, 110, .12), transparent 24%);
}
.app-shell { max-width: 560px; margin: 0 auto; padding: 22px 18px 96px; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar { margin-bottom: 28px; }
.brand-copy { flex: 1; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #f3b0c4; color: #8f3f63; font-weight: 800; font-size: 22px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 18px; letter-spacing: -.02em; }
h2 { font-size: 25px; line-height: 1.08; letter-spacing: -.04em; }
h3 { font-size: 20px; line-height: 1.12; letter-spacing: -.03em; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 800; margin-bottom: 6px; }
.accent { color: var(--yellow); }
.muted { color: #ffeaf1; line-height: 1.45; font-size: 14px; margin-top: 12px; max-width: 310px; }
.icon-button { border: 0; background: transparent; font-size: 26px; color: var(--muted); }
.hero-card { background: linear-gradient(135deg, #b85b80 0%, #df86a7 100%); color: white; border-radius: 30px; padding: 22px; min-height: 268px; position: relative; overflow: hidden; display: flex; align-items: flex-start; box-shadow: 0 18px 35px rgba(169, 79, 115, .2); }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.hero-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); padding: 7px 10px; border-radius: 999px; font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.hero-sparkle { color: #ffe38a; font-size: 24px; }
.hero-card h2 { max-width: 300px; }
.hero-orb { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe38a, #f5b5c9 57%, rgba(245,181,201,0) 70%); right: -35px; bottom: -55px; opacity: .95; }
.hero-progress { position: relative; margin-top: 22px; font-size: 11px; color: #ffeef4; max-width: 330px; }
.hero-progress strong { float: right; color: #fff; }
.hero-progress i { display: block; height: 5px; background: rgba(255,255,255,.25); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.hero-progress b { display: block; width: 0%; height: 100%; background: #ffe38a; border-radius: inherit; }
.install-banner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 14px; background: #fff; border: 1px solid #f1d5e0; border-radius: 18px; box-shadow: 0 8px 20px rgba(169, 79, 115, .08); }
.install-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #f4b1c7; color: #9b456b; font-weight: 850; }
.install-copy { min-width: 0; flex: 1; }
.install-copy strong, .install-copy span { display: block; }
.install-copy strong { color: #5a3546; font-size: 11px; line-height: 1.25; }
.install-copy span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.install-button { border: 0; background: #e889a8; color: #fff; border-radius: 10px; padding: 9px 10px; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.install-close { border: 0; background: transparent; color: #bd91a2; font-size: 20px; line-height: 1; padding: 2px; cursor: pointer; }
.section-heading { margin: 30px 2px 13px; align-items: end; }
.section-heading h2 { font-size: 21px; }
.day-pill { background: #f8dce6; color: #a04d70; font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 8px 10px; border-radius: 999px; }
.task-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; gap: 15px; box-shadow: 0 10px 28px rgba(46, 34, 30, .05); }
.task-number { color: var(--pink); font-size: 12px; font-weight: 800; }
.task-content p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 10px 0 17px; }
.primary-button { border: 0; border-radius: 13px; background: var(--pink); color: var(--dark); padding: 13px 14px; font-weight: 800; font-size: 13px; width: 100%; text-align: left; cursor: pointer; }
.primary-button span { float: right; font-size: 18px; line-height: 12px; }
.primary-button.done { background: var(--yellow); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.stat-card { background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: 20px; padding: 13px 10px; text-align: center; box-shadow: 0 8px 18px rgba(169, 79, 115, .06); }
.stat-icon { display: block; color: #e889a8; font-size: 16px; margin-bottom: 3px; }
.stat-value { display: block; font-size: 20px; font-weight: 850; }
.stat-label { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.2; }
.bottom-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(calc(100% - 28px), 520px); background: rgba(255, 255, 255, .96); border: 1px solid #f0d8e2; border-radius: 20px; padding: 9px 7px; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 12px 35px rgba(169, 79, 115, .16); }
.nav-item { color: #b58b9b; text-decoration: none; display: grid; justify-items: center; gap: 3px; font-size: 17px; padding: 4px; }
.nav-item small { font-size: 9px; }
.nav-item.active { color: var(--yellow); }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: -13px 0 16px; font-size: 11px; }
.account-actions a { color: #a04d70; text-decoration: none; font-weight: 800; }
.account-actions .account-primary { background: #e889a8; color: white; padding: 9px 12px; border-radius: 11px; }
.account-welcome { justify-content: space-between; color: var(--muted); }
.page-intro { margin: 10px 2px 24px; }
.page-intro h1 { font-size: 32px; letter-spacing: -.045em; color: #432b38; }
.page-intro p:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 9px; max-width: 320px; }
.calendar-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 14px; box-shadow: 0 10px 24px rgba(169,79,115,.07); }
.section-heading.compact { margin: 0 2px 17px; }
.calendar-mark { color: #e889a8; font-size: 22px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar-day { min-height: 58px; border-radius: 13px; background: #fff7fa; color: #b58b9b; display: grid; place-items: center; align-content: center; gap: 2px; position: relative; font-size: 9px; }
.calendar-day b { color: #684556; font-size: 14px; }
.calendar-day.is-done { background: #f6bdd0; }
.calendar-day.is-done b { color: #8f3f63; }
.calendar-day i { position: absolute; right: 4px; top: 3px; color: #a04d70; font-size: 10px; font-style: normal; }
.habits-heading { margin-top: 28px; }
.habit-list { display: grid; gap: 9px; }
.habit-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 18px; padding: 13px; box-shadow: 0 7px 16px rgba(169,79,115,.05); }
.habit-dot { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: #fff0f4; color: #d8799b; font-size: 11px; font-weight: 850; }
.habit-row-copy { flex: 1; min-width: 0; }
.habit-row-copy strong, .habit-row-copy span { display: block; }
.habit-row-copy strong { color: #563444; font-size: 13px; line-height: 1.25; }
.habit-row-copy span { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 4px; }
.habit-check { width: 34px; height: 34px; border: 1px solid #e9bfd0; border-radius: 50%; background: #fff; color: #d8799b; font-size: 18px; cursor: pointer; }
.habit-check.done { background: #e889a8; color: #fff; }
.empty-state { background: #fff; border: 1px dashed #e9bfd0; color: var(--muted); border-radius: 18px; padding: 18px; text-align: center; font-size: 13px; line-height: 1.4; }
.content-list { display: grid; gap: 12px; }
.content-card, .material-card, .goal-card { background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: 19px; box-shadow: 0 9px 22px rgba(169,79,115,.06); }
.content-card h2, .material-card h2, .goal-card h2 { color: #563444; font-size: 20px; margin-top: 8px; }
.content-card p, .material-card p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 9px 0 15px; }
.card-tag { color: #c06a8a; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.program-days { display: grid; gap: 7px; margin-bottom: 15px; }
.program-days span { color: var(--muted); font-size: 11px; }
.program-days b { color: #d8799b; margin-right: 8px; }
.soft-button { border: 0; border-radius: 12px; background: #fff0f4; color: #a04d70; padding: 11px 12px; font-size: 12px; font-weight: 800; width: 100%; text-align: left; }
.soft-button span, .wide-link span { float: right; }
.profile-hero { text-align: center; background: linear-gradient(135deg,#f7c7d7,#fff0f4); border-radius: 26px; padding: 23px 18px; margin-bottom: 13px; }
.profile-avatar { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 22px; background: #fff; color: #d8799b; font-size: 28px; font-weight: 850; }
.profile-hero h1 { color: #563444; font-size: 27px; }
.profile-hero > p:last-child { color: #a96f85; font-size: 12px; margin-top: 6px; }
.goal-card { margin-bottom: 13px; }
.goal-card a { display: block; color: #a04d70; font-size: 12px; font-weight: 800; margin-top: 12px; text-decoration: none; }
.profile-stats { margin-top: 0; }
.wide-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: #684556; font-size: 13px; font-weight: 800; padding: 15px; margin-top: 10px; text-decoration: none; }
.big-stats { margin-top: 0; }
.progress-card { margin-top: 13px; }
.category-stat { margin-top: 15px; color: #684556; font-size: 12px; }
.category-stat b { float: right; color: #a04d70; }
.category-stat i { display: block; height: 7px; background: #fff0f4; border-radius: 10px; margin-top: 7px; overflow: hidden; }
.category-stat em { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg,#e889a8,#ffd36e); border-radius: inherit; }
.premium-banner { display: flex; align-items: center; gap: 11px; background: linear-gradient(135deg,#fff1a8,#f8cad9); color: #684556; border-radius: 18px; padding: 14px; margin-bottom: 13px; text-decoration: none; }
.premium-banner > span { color: #b65e7f; font-size: 22px; }
.premium-banner div { flex: 1; }
.premium-banner strong, .premium-banner small { display: block; }
.premium-banner strong { font-size: 12px; }
.premium-banner small { color: #9c6c7f; font-size: 10px; margin-top: 3px; }
.premium-banner b { color: #a04d70; font-size: 18px; }
.locked-card { opacity: .78; }
.plan-list { display: grid; gap: 12px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: 20px; box-shadow: 0 9px 22px rgba(169,79,115,.06); }
.featured-plan { background: linear-gradient(145deg,#fff1a8,#ffe8ef); border-color: #f0c4d2; }
.plan-card h2 { color: #563444; font-size: 23px; margin-top: 9px; }
.plan-card p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 9px 0 15px; }
.plan-price { display: block; color: #a04d70; font-size: 26px; margin-bottom: 15px; }
.plan-price small { font-size: 11px; font-weight: 500; }
.plan-note { color: #a04d70; background: #fff0f4; border-radius: 12px; padding: 12px; font-size: 12px; font-weight: 800; }
.active-subscription { display: flex; gap: 11px; align-items: center; background: #eaf8ef; color: #43805b; border-radius: 16px; padding: 13px; margin-bottom: 13px; }
.active-subscription > span { font-size: 20px; }
.active-subscription strong, .active-subscription small { display: block; }
.active-subscription strong { font-size: 13px; }
.active-subscription small { font-size: 11px; margin-top: 3px; }
.legal-note { color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; margin: 17px 10px; }
.program-detail-list { display: grid; gap: 9px; }
.program-day-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 13px; }
.program-day-row.completed { background: #fff0f4; }
.program-day-number { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: #f8dce6; color: #a04d70; border-radius: 11px; font-weight: 850; font-size: 13px; }
.program-day-copy { flex: 1; min-width: 0; }
.program-day-copy strong, .program-day-copy span { display: block; }
.program-day-copy strong { color: #563444; font-size: 13px; }
.program-day-copy span { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 4px; }
.material-detail { background: #fff; border: 1px solid var(--line); border-radius: 25px; padding: 21px; box-shadow: 0 10px 24px rgba(169,79,115,.07); }
.material-detail h1 { color: #563444; font-size: 28px; line-height: 1.08; margin-top: 10px; }
.material-description { color: #a04d70; font-size: 14px; line-height: 1.45; margin: 13px 0 20px; }
.material-body { color: #684556; font-size: 14px; line-height: 1.65; }
.auth-shell { max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 28px 18px; display: grid; align-content: center; }
.back-link { color: #a04d70; text-decoration: none; font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.auth-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px; box-shadow: 0 18px 40px rgba(169,79,115,.1); }
.auth-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #f3b0c4; color: #8f3f63; font-size: 24px; font-weight: 850; margin-bottom: 20px; }
.auth-card h1 { font-size: 30px; line-height: 1.05; letter-spacing: -.045em; color: #432b38; }
.auth-lead { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 10px 0 24px; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { color: #684556; font-size: 12px; font-weight: 800; }
.auth-card label span { color: var(--muted); font-weight: 500; }
.auth-card input:not([type="radio"]) { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #efd5df; border-radius: 13px; background: #fffafd; color: var(--ink); font: inherit; outline: none; }
.auth-card input:focus { border-color: #e889a8; box-shadow: 0 0 0 3px rgba(232,137,168,.14); }
.auth-button { border: 0; border-radius: 13px; background: #d8799b; color: white; padding: 14px; font-weight: 850; font-size: 13px; cursor: pointer; text-align: left; }
.auth-button span { float: right; font-size: 18px; line-height: 12px; }
.auth-switch { color: var(--muted); text-align: center; font-size: 12px; margin: 20px 0 0; }
.auth-switch a { color: #a04d70; font-weight: 800; }
.messages { background: #fff0f4; color: #a04d70; border-radius: 12px; padding: 10px 12px; font-size: 12px; margin-bottom: 15px; }
.goal-form { gap: 10px !important; }
.goal-option { display: flex; align-items: center; gap: 10px; border: 1px solid #f0d7e1; border-radius: 16px; padding: 15px; cursor: pointer; background: #fffafd; }
.goal-option:has(input:checked) { border-color: #e889a8; background: #fff0f4; }
.goal-option input { accent-color: #d8799b; }
.goal-option span { flex: 1; font-size: 14px; }
.goal-option b { color: #d8799b; font-size: 17px; }
@media (min-width: 600px) { .app-shell { padding-top: 42px; } }
