/* SOS Fome Noturna — Design System */
:root {
  --bg: #FFF9F6;
  --primary: #642C59;
  --primary-700: #4E2046;
  --secondary: #A9719B;
  --sos: #8D2948;
  --card: #FFFFFF;
  --text: #2D252B;
  --muted: #756A72;
  --success: #577A61;
  --line: #F0E3EA;
  --tint: #F7EDF3;
  --tint-2: #FBF3F6;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 8px 28px rgba(100, 44, 89, 0.08);
  --shadow-lg: 0 18px 50px rgba(100, 44, 89, 0.16);
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Poppins', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }

/* --------------------------------------------------------- shell */
.shell { min-height: 100vh; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 620px) {
  body { background: radial-gradient(1200px 700px at 15% 0%, #F3E2EC 0%, transparent 60%), radial-gradient(900px 700px at 100% 100%, #EFDDE8 0%, transparent 55%), #F7EEF2; }
  .shell { max-width: 440px; margin: 0 auto; box-shadow: 0 0 0 1px #EEDDE7, var(--shadow-lg); }
}
.screen { padding: 24px 20px 40px; animation: fadeUp .35s ease both; }
.shell.with-nav .screen { padding-bottom: calc(var(--nav-h) + 40px + var(--safe-b)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- tipografia */
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lead { font-size: 16px; color: var(--muted); }
.quote { font-style: normal; color: var(--text); }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.mt-0 { margin-top: 0 !important; }
.hidden { display: none !important; }

/* --------------------------------------------------------- topbar */
.topbar { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; min-height: 40px; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--primary); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.topbar .title { font-weight: 600; font-size: 15px; flex: 1; text-align: center; margin-right: 50px; }

/* --------------------------------------------------------- cards */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.tint { background: var(--tint-2); box-shadow: none; }
.card.primary { background: linear-gradient(145deg, #74356A, var(--primary) 55%, #4E2046); color: #fff; border: none; }
.card.primary .eyebrow { color: #E7C6DC; }
.card.primary .muted { color: #EBD7E5; }
.card.sos { background: linear-gradient(150deg, #A13456, var(--sos)); color: #fff; border: none; }
.card.success { background: #EEF4EF; border-color: #DCE8DF; box-shadow: none; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.stat .label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 6px; line-height: 1.2; }
.stat .value.sm { font-size: 17px; }
.stat.wide { grid-column: span 2; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* --------------------------------------------------------- botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 20px; border-radius: 18px; border: none;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(100, 44, 89, .22); transition: transform .12s ease, opacity .2s, background .2s;
}
.btn:active { transform: scale(.985); }
.btn:hover { background: var(--primary-700); }
.btn[disabled] { opacity: .4; box-shadow: none; pointer-events: none; }
.btn.sos { background: var(--sos); box-shadow: 0 10px 24px rgba(141, 41, 72, .28); }
.btn.sos:hover { background: #7A2140; }
.btn.light { background: #fff; color: var(--primary); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid #E3CFDC; box-shadow: none; }
.btn.ghost:hover { background: var(--tint-2); }
.btn.success { background: var(--success); box-shadow: 0 10px 24px rgba(87, 122, 97, .25); }
.btn.sm { min-height: 44px; font-size: 13px; border-radius: 14px; padding: 10px 16px; }
.btn.inline { width: auto; display: inline-flex; }
.link { background: none; border: none; color: var(--primary); font-weight: 600; padding: 8px; text-decoration: none; }
.link.muted { color: var(--muted); font-weight: 500; }
.btn-stack > * + * { margin-top: 10px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- formulários */
.field { display: block; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, .textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  outline: none; transition: border .2s, box-shadow .2s; font-size: 15px;
}
.textarea { height: auto; min-height: 100px; padding: 14px 16px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(169, 113, 155, .14); }
.form-error { color: var(--sos); font-size: 13.5px; background: #FBEFF2; border-radius: 12px; padding: 10px 14px; }
.form-ok { color: var(--success); font-size: 13.5px; background: #EEF4EF; border-radius: 12px; padding: 10px 14px; word-break: break-all; }

/* --------------------------------------------------------- opções / chips */
.options > * + * { margin-top: 10px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-weight: 500;
  transition: border .15s, background .15s, transform .1s;
}
.option:active { transform: scale(.99); }
.option .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #DCC6D4; flex: none; display: grid; place-items: center; transition: all .15s; }
.option.multi .dot { border-radius: 7px; }
.option.selected { border-color: var(--primary); background: var(--tint); }
.option.selected .dot { background: var(--primary); border-color: var(--primary); }
.option.selected .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.option.multi.selected .dot::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.option .emoji { font-size: 22px; flex: none; }
.option.compact { padding: 13px 16px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 12px; font-weight: 600; }
.pill.success { background: #E6F0E8; color: var(--success); }
.pill.light { background: rgba(255,255,255,.16); color: #fff; }

/* --------------------------------------------------------- progresso */
.progress { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width .5s ease; }
.card.primary .progress { background: rgba(255,255,255,.18); }
.card.primary .progress > span { background: #fff; }
.quiz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz-head .progress { flex: 1; }

/* --------------------------------------------------------- slider */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--secondary) var(--p, 50%), var(--tint) var(--p, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(100,44,89,.25); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.range-value { font-size: 34px; font-weight: 700; color: var(--primary); text-align: center; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* --------------------------------------------------------- nav inferior */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  box-shadow: 0 -8px 30px rgba(100, 44, 89, .06);
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: #A0939C; text-decoration: none; padding: 6px 0; }
.nav a svg { width: 23px; height: 23px; }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav .sos-btn { position: relative; top: -18px; }
.nav .sos-btn .bubble {
  width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #B23D62, var(--sos) 60%, #6E1D37);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(141, 41, 72, .45), 0 0 0 6px #fff; animation: pulse 2.8s ease-in-out infinite;
}
.nav .sos-btn span.lbl { color: var(--sos); font-weight: 600; margin-top: 2px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(141,41,72,.45), 0 0 0 6px #fff, 0 0 0 6px rgba(141,41,72,.0); } 50% { box-shadow: 0 10px 24px rgba(141,41,72,.45), 0 0 0 6px #fff, 0 0 0 13px rgba(141,41,72,.12); } }

/* --------------------------------------------------------- splash / logo */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: radial-gradient(600px 500px at 50% 30%, #7A3870 0%, transparent 70%), linear-gradient(180deg, #5A2751, #3B1636); color: #fff; }
.splash .phrase { margin-top: 34px; font-size: 16px; color: #EBD7E5; animation: fadeUp .8s .5s both; }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo svg { width: 110px; height: 110px; animation: float 4s ease-in-out infinite; }
.logo .sos { font-size: 46px; font-weight: 700; letter-spacing: .12em; line-height: 1; margin-top: 10px; }
.logo .fn { font-size: 14px; font-weight: 600; letter-spacing: .36em; margin-top: 8px; padding-left: .36em; }
.logo .tag { margin-top: 14px; padding: 5px 14px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 11.5px; font-weight: 600; letter-spacing: .24em; padding-left: calc(14px + .24em); opacity: .9; }
.logo.sm svg { width: 64px; height: 64px; }
.logo.sm .sos { font-size: 28px; margin-top: 6px; }
.logo.sm .fn { font-size: 10.5px; }
.logo.sm .tag { font-size: 10px; margin-top: 10px; }
.logo.dark { color: var(--primary); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* --------------------------------------------------------- boas-vindas */
.hero { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 30px 22px 28px; }
.hero .art { flex: 1; display: grid; place-items: center; padding: 20px 0; }
.moon-art { width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #F6E7F0 60%, #EBD3E2); display: grid; place-items: center; box-shadow: inset -18px -18px 40px rgba(100,44,89,.08), var(--shadow); position: relative; }
.moon-art .star { position: absolute; color: var(--secondary); font-size: 14px; }

/* --------------------------------------------------------- loading */
.loading { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 30px; }
.orbit { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--primary); animation: spin 1.1s linear infinite; display: grid; place-items: center; }
.loading-steps { width: 100%; max-width: 300px; text-align: left; }
.loading-steps li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #C2B4BD; transition: color .3s; font-weight: 500; }
.loading-steps li .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #E6D6E0; display: grid; place-items: center; font-size: 12px; color: #fff; flex: none; transition: all .3s; }
.loading-steps li.active { color: var(--text); }
.loading-steps li.done { color: var(--muted); }
.loading-steps li.done .ck { background: var(--success); border-color: var(--success); }

/* --------------------------------------------------------- resultado */
.result-card { text-align: center; padding: 28px 20px; }
.result-card .icon { font-size: 40px; }
.result-card h2 { font-size: 24px; margin-top: 8px; color: #fff; }
.info-card { display: flex; align-items: center; gap: 14px; }
.info-card .ic { width: 46px; height: 46px; border-radius: 15px; background: var(--tint); display: grid; place-items: center; font-size: 22px; flex: none; }

/* --------------------------------------------------------- home */
.greet h1 { font-size: 24px; }
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mood { padding: 14px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 13.5px; line-height: 1.35; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 86px; }
.mood .e { font-size: 22px; }
.mood.help { background: var(--sos); color: #fff; border-color: var(--sos); }
.mood.selected { border-color: var(--primary); background: var(--tint); }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--tint-2); font-size: 14px; animation: fadeUp .3s both; }
.streak-num { font-size: 30px; font-weight: 700; color: var(--primary); }

/* --------------------------------------------------------- plano */
.block { display: flex; gap: 14px; }
.block .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 19px; flex: none; }
.block h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1.5px dashed #DCC6D4; background: #fff; cursor: pointer; font-weight: 500; }
.check input { width: 24px; height: 24px; accent-color: var(--success); flex: none; }
.check.on { border-style: solid; border-color: var(--success); background: #F2F7F3; }
.celebrate { text-align: center; padding: 10px 0; }
.celebrate .big { font-size: 54px; animation: pop .5s ease both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* --------------------------------------------------------- SOS */
.sos-hero { text-align: center; padding: 6px 0 4px; }
.sos-hero .siren { font-size: 42px; }
.sos-hero h1 { color: var(--sos); font-size: 22px; letter-spacing: .02em; margin-top: 6px; }
.steps { display: flex; gap: 8px; }
.steps .s { flex: 1; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 8px 4px; border-radius: 12px; background: var(--tint-2); color: #B7A6B1; }
.steps .s.on { background: var(--primary); color: #fff; }
.steps .s.done { background: #E6F0E8; color: var(--success); }
.r-step .num { width: 30px; height: 30px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; flex: none; }
.timer-wrap { display: grid; place-items: center; padding: 10px 0; position: relative; }
.timer-wrap svg { width: 220px; height: 220px; transform: rotate(-90deg); }
.timer-wrap .t { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.breath { width: 14px; height: 14px; }
.timer-tip { text-align: center; min-height: 48px; color: var(--muted); transition: opacity .4s; }
.recipe-row { display: flex; gap: 14px; align-items: center; }
.recipe-row .thumb { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; flex: none; background: var(--tint); display: grid; place-items: center; font-size: 30px; }
.recipe-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.strategy { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.strategy .e { font-size: 24px; }

/* --------------------------------------------------------- receitas */
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); }
.search .input { padding-left: 46px; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recipe-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; padding: 0; display: flex; flex-direction: column; }
.recipe-card .img { aspect-ratio: 1 / 0.9; background: var(--tint); overflow: hidden; display: grid; place-items: center; font-size: 40px; }
.recipe-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recipe-card:hover .img img { transform: scale(1.04); }
.recipe-card .body { padding: 12px 14px 14px; }
.recipe-card h3 { font-size: 14px; line-height: 1.3; }
.recipe-card .time { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.recipe-hero { margin: -24px -20px 0; height: 300px; position: relative; overflow: hidden; background: var(--tint); }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .icon-btn { position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,.92); }
.recipe-sheet { position: relative; margin: -28px -20px 0; background: var(--bg); border-radius: 28px 28px 0 0; padding: 26px 20px 0; }
.ing-list { padding: 0; margin: 0; list-style: none; }
.ing-list li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ing-list li::before { content: ''; position: absolute; left: 6px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .e { font-size: 38px; margin-bottom: 8px; }

/* --------------------------------------------------------- progresso / gráficos */
.seg { display: flex; background: var(--tint); border-radius: 16px; padding: 4px; }
.seg button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(100,44,89,.1); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bars > * + * { margin-top: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.bar-row .track { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar-row .track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--secondary), var(--primary)); }
.insight { background: linear-gradient(145deg, #74356A, var(--primary)); color: #fff; border: none; }
.insight .eyebrow { color: #E7C6DC; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.badge .b { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--tint-2); filter: grayscale(1); opacity: .45; border: 1.5px dashed #DCC6D4; }
.badge.on { color: var(--text); }
.badge.on .b { filter: none; opacity: 1; background: linear-gradient(145deg, #FFF, #F4E3EE); border: 1.5px solid #E7C6DC; box-shadow: var(--shadow); }

/* --------------------------------------------------------- jornada */
.phase-head { display: flex; align-items: center; gap: 10px; }
.phase-num { width: 34px; height: 34px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.day-list { margin-top: 12px; }
.day-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 4px; border: none; background: none; text-align: left; border-bottom: 1px solid var(--line); }
.day-item:last-child { border-bottom: none; }
.day-item .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; background: var(--tint-2); color: #B7A6B1; border: 1.5px solid var(--line); }
.day-item.done .n { background: var(--success); color: #fff; border-color: var(--success); }
.day-item.current .n { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 5px rgba(100,44,89,.12); }
.day-item.locked { opacity: .55; }
.day-item .t { flex: 1; font-weight: 500; font-size: 14px; }
.day-item .t small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.day-item svg { width: 18px; height: 18px; color: var(--muted); }
.trophy { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #FDF6E9; margin-top: 12px; font-weight: 500; font-size: 14px; }
.trophy .e { font-size: 26px; }

/* --------------------------------------------------------- final */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.compare .v { font-size: 38px; font-weight: 700; line-height: 1.1; }
.compare .before .v { color: var(--secondary); }
.compare .after .v { color: var(--success); }
.compare .arrow { color: var(--muted); font-size: 24px; }

/* --------------------------------------------------------- perfil */
.avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(145deg, var(--secondary), var(--primary)); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 600; overflow: hidden; position: relative; border: 4px solid #fff; box-shadow: var(--shadow); cursor: pointer; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .cam { position: absolute; bottom: 0; left: 0; right: 0; height: 26px; background: rgba(45,37,43,.45); display: grid; place-items: center; }
.avatar .cam svg { width: 14px; height: 14px; }
.menu { padding: 6px 0; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 20px; background: none; border: none; text-align: left; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--tint-2); display: grid; place-items: center; color: var(--primary); flex: none; }
.menu-item .ic svg { width: 18px; height: 18px; }
.menu-item .chev { margin-left: auto; color: #C9B8C3; width: 18px; height: 18px; }
.menu-item.danger { color: var(--sos); }
.menu-item.danger .ic { color: var(--sos); background: #FBEFF2; }
.setting { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: none; }
.setting .txt { flex: 1; }
.setting .txt small { display: block; color: var(--muted); font-size: 12.5px; }
.time-input { border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 8px; background: #fff; font-weight: 600; color: var(--primary); width: 92px; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #E6D9E1; transition: .2s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.toggle input:checked + span { background: var(--success); }
.toggle input:checked + span::after { transform: translateX(20px); }
.legal { font-size: 14px; color: var(--muted); }
.legal h3 { color: var(--text); margin: 18px 0 6px; }

/* --------------------------------------------------------- toast & modal */
#toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; width: calc(100% - 32px); max-width: 408px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 12px; align-items: center; animation: toastIn .35s ease both; pointer-events: auto; }
.toast .e { font-size: 22px; }
.toast strong { display: block; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(45, 37, 43, .45); z-index: 90; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); width: 100%; max-width: 440px; border-radius: 28px 28px 0 0; padding: 26px 22px calc(26px + var(--safe-b)); max-height: 92vh; overflow-y: auto; animation: sheetUp .3s ease both; }
.modal .grab { width: 44px; height: 5px; border-radius: 99px; background: #E3D3DD; margin: -10px auto 18px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 620px) { .modal-bg { align-items: center; } .modal { border-radius: 28px; } }
.care-icon { width: 64px; height: 64px; border-radius: 50%; background: #FBEFF2; display: grid; place-items: center; font-size: 30px; margin: 0 auto; }

@media (max-width: 360px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 23px; }
  .mood-grid, .grid-2 { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
