/* ===== LILA PLAY — tokens (provisórios até chegar a identidade visual oficial) ===== */
:root {
  --primary: #7C4DEB;
  --primary-dark: #5B2FC9;
  --primary-soft: #F1EBFF;
  --navy: #2A1A6E;
  --ink: #2B2B33;
  --muted: #84849A;
  --line: #ECE7F2;
  --bg: #FFFBF7;
  --card: #FFFFFF;
  --accent: #FF7A59;
  --success: #2FA866;
  --gold: #E8B21A;
  --gold-soft: #FFF5D9;
  --danger: #E5374B;
  --radius: 18px;
  --shadow: 0 2px 12px rgba(60, 30, 110, .07);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --z: 1;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--ink); background: #EEE8F7; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }

.device { height: 100%; display: flex; align-items: center; justify-content: center; }
.app { position: relative; width: 390px; height: 844px; max-height: 100vh; background: var(--bg); border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px rgba(40, 20, 90, .25); display: flex; flex-direction: column; }
@media (max-width: 500px) { .app { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; } }

/* Acessibilidade */
.app .scroll, .app .sheet-body { zoom: var(--z); }
.app.hc { --muted: #4A4A5A; --line: #B9B3C6; --ink: #111; }
.app.hc .card { border: 1.5px solid #8C84A0; }

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.scroll::-webkit-scrollbar { width: 0; }
.pad { padding: 20px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

h1 { font-size: 26px; font-weight: 900; margin: 0 0 10px; line-height: 1.2; color: var(--navy); }
h2 { font-size: 20px; font-weight: 900; margin: 0; color: var(--navy); }
h3 { font-size: 17px; font-weight: 800; margin: 0; }
p { line-height: 1.45; }
.label { font-weight: 800; font-size: 15px; margin: 18px 0 8px; display: block; }
.link { color: var(--primary); font-weight: 800; }
.u { text-decoration: underline; font-weight: 800; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 28px; color: var(--primary); letter-spacing: .5px; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); position: relative; display: grid; place-items: center; }
.logo .mark::after { content: ''; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }
.logo .mark i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); top: -4px; right: -4px; border: 2px solid #fff; }
.logo b { color: var(--accent); font-weight: 900; }
.logo.sm { font-size: 16px; gap: 6px; } .logo.sm .mark { width: 20px; height: 20px; border-radius: 6px; } .logo.sm .mark::after { border-left-width: 7px; border-top-width: 4px; border-bottom-width: 4px; margin-left: 2px; } .logo.sm .mark i { width: 7px; height: 7px; border-width: 1px; }
.logo.white { color: #fff; } .logo.white .mark { background: #fff; } .logo.white .mark::after { border-left-color: var(--primary); }

/* Botões */
.btn { display: block; width: 100%; padding: 15px 20px; border-radius: 999px; font-weight: 900; font-size: 17px; text-align: center; transition: transform .08s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(124, 77, 235, .28); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 89, .3); }
.btn-success { background: var(--success); color: #fff; font-size: 20px; padding: 18px; }
.btn-ghost { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { display: inline-block; width: auto; padding: 9px 16px; font-size: 14px; }
.btn:disabled, .btn.off { background: #D3D0DB !important; color: #fff !important; box-shadow: none; pointer-events: none; }
.btn-link { display: block; margin: 14px auto 0; font-weight: 800; text-decoration: underline; font-size: 15px; color: var(--muted); }
.footer { padding: 12px 20px 20px; background: var(--bg); border-top: 1px solid var(--line); }
.footer.clean { border-top: 0; }

/* Campos */
.input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #fff; }
.input:focus { border-color: var(--primary); }
textarea.input { resize: none; height: 70px; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: left; line-height: 1.4; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.sm { padding: 6px 12px; font-size: 13px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 17px; text-align: left; margin-bottom: 12px; }
.opt .oi { font-size: 26px; }
.opt.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.seg { display: flex; background: #EFEBF5; border-radius: 12px; padding: 3px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); font-weight: 900; color: var(--ink); }
.tri { display: flex; gap: 6px; margin-top: 10px; }
.tri button { flex: 1; padding: 8px 4px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; background: #fff; }
.tri button.on.y { background: var(--success); border-color: var(--success); color: #fff; }
.tri button.on.m { background: var(--gold); border-color: var(--gold); color: #fff; }
.tri button.on.n { background: #9C93B4; border-color: #9C93B4; color: #fff; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: #D3D0DB; position: relative; flex-shrink: 0; transition: .2s; }
.toggle::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 21px; }

/* Cartões */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #F1ECF6; }
.card.p { padding: 16px; }
.section { padding: 16px 20px 4px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-title .link { font-size: 14px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 12px; margin: 0 -20px; }
.hscroll::-webkit-scrollbar { height: 0; }

/* Pilares */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.picon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.lock { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; }

/* Onboarding */
.progress { height: 6px; background: #EAE4F3; border-radius: 99px; margin: 16px 20px 0; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; }
.onb-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.back-btn { font-size: 28px; line-height: 1; color: var(--primary); width: 32px; height: 32px; }
.hero { width: 230px; height: 230px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 100px; position: relative; background: radial-gradient(circle at 30% 30%, #FFE7D9, #F1EBFF 70%); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; }
.hero::before { width: 18px; height: 18px; background: var(--gold); top: 18px; right: 22px; }
.hero::after { width: 12px; height: 12px; background: #E8457C; bottom: 26px; left: 14px; }
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: linear-gradient(160deg, #F6F0FF, #FFF3EC); }
.splash p { color: var(--muted); max-width: 280px; }

/* Barra superior / inferior */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); z-index: 2; border-bottom: 1px solid var(--line); }
.topbar h3 { flex: 1; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.icon-btn.on { background: var(--primary-soft); border-color: var(--primary); }
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; gap: 10px; }
.kid-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: 14px; }
.kid-switch .av { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 15px; }
.tabbar { display: flex; border-top: 1px solid var(--line); background: #fff; padding: 8px 4px 14px; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.tabbar .ti { font-size: 22px; filter: grayscale(1) opacity(.55); }
.tabbar button.on { color: var(--primary); }
.tabbar button.on .ti { filter: none; }
.tabbar .sos .ti { filter: none; }
.tabbar .sos { color: var(--danger); }

/* Hoje */
.today-card { overflow: hidden; }
.today-cover { height: 170px; display: grid; place-items: center; font-size: 84px; position: relative; }
.today-cover .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: var(--navy); }
.today-cover .lockbadge { position: absolute; right: 12px; top: 12px; }
.meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.alt-row { display: flex; gap: 10px; }
.alt { flex: 1; padding: 12px; text-align: left; position: relative; }
.alt small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.alt b { font-size: 14px; display: block; }
.week { display: flex; justify-content: space-between; margin-top: 12px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.week i { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #D8D0E6; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.week i.on { background: var(--primary); border: 0; color: #fff; }
.week .today i { border-color: var(--primary); }
.tip { background: linear-gradient(135deg, #FFF1E8, #FDE6EE); border: 0; }
.fab { position: absolute; right: 18px; bottom: 86px; background: var(--accent); color: #fff; font-weight: 900; padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255, 122, 89, .4); z-index: 5; font-size: 15px; }

/* Atividade */
.video { position: relative; height: 330px; background: #1E1633; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video .frame { height: 100%; aspect-ratio: 9/16; background: linear-gradient(180deg, #FFE7D9, #E9DDFF); display: grid; place-items: center; font-size: 90px; position: relative; }
.video .frame .bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
.video .caption { position: absolute; bottom: 40px; left: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 6px; text-align: center; }
.video .vbtn { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 16px; }
.sci { margin: -26px 16px 0; position: relative; padding: 14px 16px; }
.sci .k { font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.block { margin: 10px 16px; overflow: hidden; }
.block-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 900; font-size: 16px; width: 100%; text-align: left; }
.block-h .bi { font-size: 20px; }
.block-b { padding: 0 16px 16px; line-height: 1.5; }
.block-b ol { margin: 0; padding-left: 20px; } .block-b li { margin: 6px 0; }
.variation { display: flex; gap: 8px; margin-top: 12px; }
.variation div { flex: 1; border-radius: 12px; padding: 10px; font-size: 13.5px; }
.quote { background: var(--primary-soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-style: italic; }
.act-actions { display: flex; justify-content: space-around; padding: 6px 16px 0; }
.act-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.act-actions .a { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 18px; }
.act-actions .on .a { background: var(--primary-soft); border-color: var(--primary); }
.playing { background: #1E1633; color: #fff; }
.playing .big { font-size: 30px; font-weight: 900; line-height: 1.3; text-align: center; padding: 0 24px; }
.clock { font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; }

/* Fechamento e recompensa */
.moods { display: flex; justify-content: space-between; }
.moods button { font-size: 40px; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--line); filter: grayscale(.6); }
.moods button.on { border-color: var(--primary); background: var(--primary-soft); filter: none; transform: scale(1.08); }
.photo-add { width: 84px; height: 84px; border-radius: 16px; border: 2px dashed #CFC4E3; display: grid; place-items: center; font-size: 28px; color: var(--primary); flex-shrink: 0; background: #fff; position: relative; overflow: hidden; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex-shrink: 0; position: relative; }
.thumb-wrap { position: relative; }
.thumb-wrap button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; }
.reward { background: linear-gradient(170deg, #7C4DEB, #B57BF2); color: #fff; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.reward h1 { color: #fff; }
.grow-bar { width: 100%; background: rgba(255,255,255,.25); border-radius: 99px; height: 12px; overflow: hidden; }
.grow-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width 1s ease-out; }
.celebrate-card { width: 290px; border-radius: 24px; padding: 26px 20px; text-align: center; background: linear-gradient(160deg, #FFF5D9, #FFE7D9); color: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.25); }

/* Explorar */
.search-box { margin: 10px 20px 6px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; color: var(--muted); }
.search-box input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 20px; }
.filters::-webkit-scrollbar { height: 0; }
.filters select { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 700; background: #fff; flex-shrink: 0; }
.filters select.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.act-row { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 20px 10px; cursor: pointer; }
.act-row .em { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.act-row b { display: block; font-size: 15px; }
.trail { flex-shrink: 0; width: 170px; padding: 14px; cursor: pointer; }
.trail .em { font-size: 34px; }
.trail b { display: block; margin: 8px 0 4px; font-size: 14.5px; line-height: 1.25; }

/* SOS */
.sos-head { background: linear-gradient(135deg, #FFE3E6, #FFF1E8); padding: 22px 20px 18px; }
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
.sos-tile { padding: 16px 12px; text-align: center; font-weight: 900; position: relative; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.sos-tile .em { font-size: 32px; }
.sos-tile .lock { position: absolute; top: 10px; right: 10px; }
.say { background: #fff; border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 10px 12px; margin: 8px 0; font-weight: 700; }

/* Evolução */
.subtabs { display: flex; gap: 6px; padding: 6px 20px 10px; }
.subtabs button { flex: 1; padding: 9px 6px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); background: #fff; border: 1.5px solid var(--line); }
.subtabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat-row { display: flex; gap: 10px; }
.stat { flex: 1; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--navy); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ms-item { padding: 12px 14px; margin-bottom: 10px; }
.ms-item p { margin: 0; font-weight: 700; font-size: 15px; }
.area-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-weight: 900; }
.soft-alert { background: #FFF4E5; border: 1px solid #F6D9A8; border-radius: 16px; padding: 14px 16px; }

/* Álbum */
.album-head { display: flex; align-items: center; gap: 8px; padding: 0 20px 6px; overflow-x: auto; }
.album-head::-webkit-scrollbar { height: 0; }
.album-head .btn { white-space: nowrap; flex-shrink: 0; }
.month-h { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 12px 20px 8px; font-weight: 900; color: var(--navy); display: flex; justify-content: space-between; align-items: baseline; }
.moment { margin: 0 20px 14px; overflow: hidden; cursor: pointer; }
.moment.mark { border: 2px solid var(--gold); box-shadow: 0 4px 18px rgba(232, 178, 26, .25); }
.moment .ph { display: grid; gap: 2px; }
.moment .ph img { width: 100%; height: 200px; object-fit: cover; display: block; }
.moment .ph.n2 { grid-template-columns: 1fr 1fr; } .moment .ph.n2 img { height: 150px; }
.moment .ph.n3 { grid-template-columns: 1fr 1fr 1fr; } .moment .ph.n3 img { height: 110px; }
.moment .noph { height: 90px; display: grid; place-items: center; font-size: 40px; }
.moment .body { padding: 12px 14px; }
.moment .age { font-size: 12px; font-weight: 900; color: var(--primary); }
.moment .cap { margin: 6px 0 0; font-size: 15px; }
.moment .q { margin: 6px 0 0; font-style: italic; color: #5A4A7A; }
.mark-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gold); color: #fff; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.reacts span { background: var(--primary-soft); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.retro { margin: 6px 20px 14px; padding: 16px; background: linear-gradient(135deg, var(--navy), #5B2FC9); color: #fff; border: 0; cursor: pointer; }
.retro h3 { color: #fff; }
.guest-banner { background: var(--navy); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guest-banner button { background: #fff; color: var(--navy); padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; flex-shrink: 0; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member .av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; }
.role { font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Perfil */
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-weight: 700; }
.list-row:last-child { border-bottom: 0; }
.list-row span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Paywall */
.pw-top { background: linear-gradient(170deg, #F6F0FF, #FFF3EC); padding: 14px 20px 20px; }
.benefit { display: flex; gap: 12px; align-items: center; margin: 12px 0; font-weight: 800; }
.benefit .bi { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow); flex-shrink: 0; }
.plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; margin-bottom: 10px; width: 100%; text-align: left; position: relative; }
.plan.on { border-color: var(--primary); background: var(--primary-soft); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9C0DA; flex-shrink: 0; }
.plan.on .radio { border: 7px solid var(--primary); }
.plan .badge { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px; }
.tl { display: flex; flex-direction: column; gap: 0; margin: 14px 0; }
.tl div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.tl i { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); margin-top: 3px; flex-shrink: 0; position: relative; }
.tl div:not(:last-child) i::after { content: ''; position: absolute; left: 6px; top: 14px; width: 2px; height: 26px; background: #D9CDF3; }
.tl div { min-height: 40px; }
.seal { display: flex; gap: 10px; align-items: center; background: var(--gold-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 800; }

/* Overlays */
.overlay { position: absolute; inset: 0; background: rgba(30, 22, 51, .55); z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; animation: fade .2s; }
.overlay.centered { justify-content: center; align-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.sheet { background: var(--bg); border-radius: 24px 24px 0 0; max-height: 92%; display: flex; flex-direction: column; animation: up .25s ease-out; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; font-weight: 900; font-size: 18px; color: var(--navy); }
.x { width: 30px; height: 30px; border-radius: 50%; background: #E3DDEC; color: var(--navy); display: grid; place-items: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.sheet-body { padding: 6px 20px 20px; overflow-y: auto; }
.dialog { background: #fff; border-radius: 22px; width: 300px; text-align: center; overflow: hidden; padding: 24px 20px 18px; }
.dialog h3 { margin: 10px 0 6px; font-size: 19px; }
.toast { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; z-index: 100; animation: fade .2s; max-width: 90%; text-align: center; }
.disclaimer { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 24px 18px; }

/* Livro da infância: imprimir / salvar como PDF */
@media print {
  body * { visibility: hidden; }
  .printable, .printable * { visibility: visible; }
  .printable { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; zoom: 1; }
}
.filters .chip { white-space: nowrap; flex-shrink: 0; }

/* ===== Animações de interação e recompensa ===== */
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }
.bump { animation: bump .32s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.screen.enter { animation: enter .24s ease-out; }
.confetti-piece { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; z-index: 200; pointer-events: none; font-style: normal; animation-name: fall; animation-timing-function: cubic-bezier(.25,.6,.4,1); animation-fill-mode: forwards; }
.confetti-piece.dot { width: 10px; height: 10px; border-radius: 50%; }
.confetti-piece.heart, .confetti-piece.star { width: auto; height: auto; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 880px) rotate(var(--rot)); opacity: .85; } }
.burst-piece { position: absolute; z-index: 210; pointer-events: none; font-style: normal; font-size: 16px; transform: translate(-50%, -50%); animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(.4); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } }
.heart-beat { display: inline-block; animation: beat 1.3s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.celebrate-card { animation: popin .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.celebrate-card .big-emoji { display: inline-block; animation: wiggle .6s ease-in-out 3; }
.week i.on { animation: none; }
.week i.just { animation: bump .5s ease-out .3s both; }
.app.noanim *, .app.noanim *::before, .app.noanim *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .bump, .screen.enter, .heart-beat, .celebrate-card, .celebrate-card .big-emoji { animation: none !important; } }
