/* Kit SOS — estilo */
:root {
  --bg: #fff7f1;
  --ink: #26233a;
  --muted: #7a7690;
  --card: #ffffffcc;
  --line: #2a244010;
  --brand: #ff6b4a;
  --brand2: #ff9a3c;
  --shadow: 0 10px 30px -12px #5a2d1a2e, 0 2px 6px #5a2d1a0d;
  --r: 26px;
  color-scheme: light;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { touch-action: pan-x pan-y; } /* sem zoom por pinça nem toque duplo */
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.4; min-height: 100vh; overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* fundo com bolhas */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 18s ease-in-out infinite; }
.blobs i:nth-child(1) { width: 380px; height: 380px; background: #ffb38a; top: -80px; left: -100px; }
.blobs i:nth-child(2) { width: 340px; height: 340px; background: #9ad4ff; top: 35%; right: -140px; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 320px; height: 320px; background: #cbb6ff; bottom: -80px; left: 10%; animation-delay: -11s; }
@keyframes float { 50% { transform: translate(30px, -40px) scale(1.08); } }

/* hero */
.hero { padding: max(62px, calc(env(safe-area-inset-top) + 50px)) 18px 56px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 60%, #ffc54d 100%);
  border-radius: 0 0 44px 44px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: #ffffff22; }
.hero::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.hero::after { width: 140px; height: 140px; bottom: -60px; left: -40px; }
.hero-inner { position: relative; max-width: 560px; margin: 0 auto; }
.logo { display: block; width: 120px; height: 120px; margin: 6px auto 10px; border-radius: 28px; box-shadow: 0 14px 30px -10px #7a1a0a88, 0 0 0 3px #ffffff66; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero h1.old { margin: 0; font-size: clamp(38px, 10vw, 54px); letter-spacing: -1px; font-weight: 900; }
.hero h1 span { background: #fff; color: var(--brand); padding: 0 12px; border-radius: 16px; display: inline-block; transform: rotate(-3deg); }
.hero p { margin: 12px auto 0; max-width: 420px; font-weight: 600; opacity: .95; }

.install { margin-top: 16px; padding: 12px 22px; border-radius: 99px; background: #fff; color: var(--brand); font-weight: 900; font-size: 16px; box-shadow: 0 10px 22px -8px #7a1a0a77; animation: pulse 2.2s ease-in-out infinite; }
.install[hidden], .ios-tip[hidden] { display: none; }
.install:active { transform: scale(.94); }
@keyframes pulse { 50% { transform: scale(1.05); } }
.hero .ios-tip { margin-top: 14px; padding: 10px 14px; border-radius: 18px; background: #ffffff2e; font-size: 14px; }

.wrap { max-width: 760px; margin: -34px auto 0; padding: 0 14px 40px; position: relative; display: grid; gap: 16px; }

/* cartões */
.card { background: var(--card); backdrop-filter: blur(14px); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h2 { margin: 0 0 14px; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 12px; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 6px 14px -4px #ff6b4a88; }

/* dias */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip { display: grid; place-items: center; padding: 12px 4px; border-radius: 20px; background: #ff6b4a14; border: 2px solid transparent; transition: .2s; }
.chip b { font-size: 24px; font-weight: 900; line-height: 1; }
.chip small { color: var(--muted); font-weight: 700; font-size: 11px; margin-top: 3px; }
.chip:active { transform: scale(.94); }
.chip.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 10px 20px -8px #ff6b4a99; transform: translateY(-2px); }
.chip.on small { color: #ffffffd9; }
.custom-days { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: var(--muted); font-weight: 700; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #00000008; border-radius: 18px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 14px; font-size: 22px; font-weight: 900; background: var(--card); box-shadow: 0 2px 6px #0000001a; transition: transform .12s; color: var(--brand); }
.stepper button:active { transform: scale(.85); }
.stepper output { min-width: 34px; text-align: center; font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink); }

/* pessoas */
.people { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px; background: color-mix(in srgb, var(--c) 45%, transparent); border: 2px solid transparent; transition: .2s; }
.person.active { border-color: color-mix(in srgb, var(--c) 100%, #000 18%); background: color-mix(in srgb, var(--c) 80%, transparent); box-shadow: 0 8px 18px -10px #0004; }
.avatar { font-size: 34px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #ffffffb0; flex: none; transition: transform .25s; }
.person.active .avatar { transform: scale(1.08) rotate(-4deg); }
.pinfo { flex: 1; min-width: 0; display: grid; }
.pinfo b { font-weight: 900; font-size: 16px; }
.pinfo small { color: var(--muted); font-weight: 700; font-size: 12px; }

.family { margin-top: 14px; min-height: 52px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; font-size: 34px; padding: 10px; border-radius: 20px; background: #00000007; }
.family em { font-size: 14px; color: var(--muted); font-style: normal; font-weight: 700; }
.pop { display: inline-block; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } }

/* extras */
.extras { display: grid; gap: 10px; }
.switch, .pets { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #00000007; cursor: pointer; }
.pets { justify-content: space-between; cursor: default; }
.lbl { display: grid; flex: 1; }
.lbl b { font-weight: 800; }
.lbl small { color: var(--muted); font-weight: 600; font-size: 12px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 52px; height: 30px; border-radius: 20px; background: #b9b4c8; position: relative; transition: .25s; flex: none; order: 2; }
.track i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0004; transition: .25s cubic-bezier(.3, 1.5, .5, 1); }
.switch input:checked + .track { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.switch input:checked + .track i { transform: translateX(22px); }
.switch .lbl { order: 1; }
.switch input:focus-visible + .track { outline: 3px solid #ff6b4a66; outline-offset: 2px; }

/* resultado */
#result { display: grid; gap: 16px; }
.empty { text-align: center; color: var(--muted); font-weight: 700; }
.empty .big { font-size: 56px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { display: grid; justify-items: center; padding: 14px 6px; border-radius: 22px; color: #fff; box-shadow: var(--shadow); }
.stat span { font-size: 26px; }
.stat b { font-size: 26px; font-weight: 900; line-height: 1.1; }
.stat small { font-weight: 700; opacity: .9; font-size: 12px; }
.s-people { background: linear-gradient(135deg, #7c8cff, #5b6cf0); }
.s-days { background: linear-gradient(135deg, #ff9a3c, #ff6b4a); }
.s-kcal { background: linear-gradient(135deg, #ffc233, #ff9f1c); }
.s-items { background: linear-gradient(135deg, #2dd4a3, #1fae85); }

.water { background: linear-gradient(135deg, #2fa4ff, #3a6bff); color: #fff; border: 0; overflow: hidden; position: relative; }
.water-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.water small { font-weight: 800; opacity: .85; text-transform: uppercase; letter-spacing: .6px; font-size: 11px; }
.water h3 { margin: 2px 0; font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.water p { margin: 0; font-weight: 700; opacity: .95; }
.drop { font-size: 64px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 10px #0003); }
.bottles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; align-items: flex-end; }
.bottle { width: 22px; height: 44px; animation: rise .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { from { transform: translateY(14px) scale(.6); opacity: 0; } }
.b-body { fill: #ffffff40; stroke: #fff; stroke-width: 1.4; }
.b-water { fill: #9be3ff; }
.b-cap { fill: #fff; }
.b-shine { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: .7; fill: none; }
.bottles .more { align-self: center; font-weight: 900; background: #ffffff33; padding: 6px 12px; border-radius: 14px; }

/* progresso */
.progress { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 24px; background: var(--card); backdrop-filter: blur(16px); box-shadow: var(--shadow); border: 1px solid var(--line); flex-wrap: wrap; }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.rb { stroke: #00000012; }
.rf { stroke: #22b573; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.ptxt { flex: 1; display: grid; min-width: 120px; }
.ptxt b { font-weight: 900; }
.ptxt small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pact { display: flex; gap: 6px; }
@media (max-width: 480px) { .bt { display: none; } .progress { flex-wrap: nowrap; padding: 8px 10px; } .ring { width: 44px; height: 44px; } .btn { padding: 10px 12px; font-size: 18px; } .ptxt { min-width: 0; } }
.btn { padding: 9px 14px; border-radius: 16px; font-weight: 800; font-size: 14px; background: #ff6b4a1a; color: var(--brand); transition: .15s; }
.btn:active { transform: scale(.93); }

/* navegação por categoria */
.catnav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; text-decoration: none; font-weight: 800; font-size: 14px; color: #fff; background: var(--c); box-shadow: 0 8px 16px -8px var(--c); }

/* categorias e itens */
.cat { scroll-margin-top: 92px; }
.cat h3 { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; font-size: 22px; font-weight: 900; }
.cicon { display: grid; place-items: center; width: 40px; height: 40px; font-size: 22px; border-radius: 14px; background: var(--c); box-shadow: 0 8px 16px -8px var(--c); }
.cat h3 em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); background: #00000009; padding: 3px 10px; border-radius: 99px; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { position: relative; overflow: hidden; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--card); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 4px 14px -8px #0003; transition: .25s; }
.item.done { opacity: .55; }
.item.done .iname { text-decoration: line-through; }
.check { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--c) 60%, transparent); display: grid; place-items: center; transition: .25s cubic-bezier(.3, 1.6, .5, 1); background: transparent; }
.check svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: .3s .05s; }
.item.done .check { background: var(--c); border-color: var(--c); transform: scale(1.1); }
.item.done .check svg { stroke-dashoffset: 0; }
.iicon { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--c) 18%, transparent); transition: transform .25s; }
.item:hover .iicon { transform: rotate(-8deg) scale(1.08); }
.imain { min-width: 0; cursor: pointer; }
.iname { font-weight: 800; font-size: 15px; line-height: 1.25; }
.iextra { color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 2px; }
.itip { max-height: 0; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 600; transition: max-height .3s, margin .3s; }
.item.open .itip { max-height: 160px; margin-top: 6px; }
.qty { text-align: center; min-width: 66px; padding: 6px 10px; border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.qty b { display: block; font-size: 24px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.qty small { font-weight: 800; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; display: block; line-height: 1.15; }
@media (max-width: 420px) {
  .item { gap: 8px; padding: 9px 10px 9px 8px; }
  .check { width: 26px; height: 26px; }
  .iicon { width: 44px; height: 44px; font-size: 26px; border-radius: 15px; }
  .iname { font-size: 14px; }
  .qty { min-width: 58px; padding: 5px 8px; }
  .qty b { font-size: 21px; }
}

.foot { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; padding: 0 24px max(28px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: #26233a; color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 800; opacity: 0; pointer-events: none; transition: .3s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid #ff6b4a88; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* impressão */
@media print {
  .blobs, .hero p, .logo, .progress, .catnav, .toast, .card:not(.water):not(.empty), .stats, .foot { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: none; color: #000; padding: 0; border-radius: 0; }
  .hero h1 span { background: none; color: #000; transform: none; }
  .wrap { margin: 0; }
  .item { box-shadow: none; break-inside: avoid; }
  .itip { max-height: none !important; font-size: 11px; }
  .water { color: #000; background: none; border: 1px solid #ccc; }
  .bottles, .drop { display: none; }
}

/* ───────── seletor de idioma */
.lang { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 3; display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: #ffffff2e; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px #ffffff55; }
.lang button { min-width: 38px; padding: 7px 8px; border-radius: 99px; font-weight: 900; font-size: 12px; letter-spacing: .5px; color: #fff; transition: .2s; }
.lang button.on { background: #fff; color: var(--brand); box-shadow: 0 4px 10px -3px #7a1a0a66; }
.lang button:not(.on):active { transform: scale(.92); }

/* ───────── faixa "funciona offline" */
.offline-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: 22px; text-align: left; color: #26233a;
  background: linear-gradient(135deg, #ffffff, #fff4e8); box-shadow: 0 14px 28px -12px #7a1a0a88, 0 0 0 3px #ffffff55; position: relative; overflow: hidden; }
.offline-badge::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, #ffffffcc, transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.ob-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #1fd08f, #12a874); box-shadow: 0 8px 16px -6px #12a874aa; }
.ob-icon svg { width: 26px; height: 26px; fill: #fff; stroke: #fff; stroke-width: 2; stroke-linecap: round; fill-opacity: 1; }
.ob-icon svg path { fill: none; }
.ob-icon .w1 { animation: wave 2.4s ease-in-out infinite; }
.ob-icon .w2 { animation: wave 2.4s ease-in-out .2s infinite; }
.ob-icon .w3 { animation: wave 2.4s ease-in-out .4s infinite; }
@keyframes wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ob-icon .slash { stroke: #ff6b4a; stroke-width: 2.6; filter: drop-shadow(0 0 0 #fff); }
.ob-text { display: grid; line-height: 1.15; padding-right: 2px; }
.ob-text b { font-weight: 900; font-size: 17px; letter-spacing: .3px; text-transform: uppercase; background: linear-gradient(135deg, #12a874, #0d8a5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-text small { margin-top: 2px; font-weight: 700; font-size: 12px; color: #6b6780; }
.ob-ok { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #12a874; color: #fff; font-weight: 900; font-size: 13px; animation: okpulse 2.4s ease-out infinite; }
@keyframes okpulse { 0% { box-shadow: 0 0 0 0 #12a87477; } 70%, 100% { box-shadow: 0 0 0 10px #12a87400; } }
@media print { .lang, .offline-badge { display: none !important; } }

/* ───────── etiqueta "essencial" no canto superior esquerdo do card */
.item.ess { padding-top: 30px; }
.tag { position: absolute; top: 0; left: 0; z-index: 1; padding: 4px 30px 4px 12px; border-radius: 22px 0 16px 0;
  font-size: 10px; font-weight: 900; line-height: 1.2; text-transform: uppercase; letter-spacing: .7px; color: #fff; text-shadow: 0 1px 2px #0003;
  background: linear-gradient(135deg, var(--c) 0%, var(--c) 50%, transparent 100%); pointer-events: none; }

/* ───────── botões do topo (tema + idioma) */
.topctl { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.topctl .lang { position: static; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ffffff2e; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px #ffffff55; transition: transform .2s; overflow: hidden; position: relative; }
.theme-btn:active { transform: scale(.88); }
.theme-btn span { position: absolute; font-size: 21px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.theme-btn .sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-btn .moon { transform: rotate(-90deg) scale(.3); opacity: 0; }
:root[data-theme="dark"] .theme-btn .sun { transform: rotate(90deg) scale(.3); opacity: 0; }
:root[data-theme="dark"] .theme-btn .moon { transform: rotate(0) scale(1); opacity: 1; }
@media print { .topctl { display: none !important; } }

/* ───────── MODO NOITE */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15121d; --ink: #f4f1ff; --muted: #a39eb8;
  --card: #221e2fcc; --line: #ffffff14;
  --shadow: 0 10px 30px -12px #000a, 0 2px 6px #0005;
}
:root[data-theme="dark"] .blobs i { opacity: .2; }
:root[data-theme="dark"] .hero { background: linear-gradient(135deg, #2c2057 0%, #9b3f4f 55%, #f0782f 100%); }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after { background: #ffffff14; }
:root[data-theme="dark"] .stepper, :root[data-theme="dark"] .family, :root[data-theme="dark"] .switch, :root[data-theme="dark"] .pets { background: #ffffff0f; }
:root[data-theme="dark"] .stepper button { background: #3a3450; color: #ff9a6c; }
:root[data-theme="dark"] .chip { background: #ff6b4a22; }
:root[data-theme="dark"] .chip.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
:root[data-theme="dark"] .person { background: color-mix(in srgb, var(--c) 16%, transparent); }
:root[data-theme="dark"] .person.active { background: color-mix(in srgb, var(--c) 28%, transparent); border-color: var(--c); }
:root[data-theme="dark"] .avatar { background: #ffffff1c; }
:root[data-theme="dark"] .cat h3 em { background: #ffffff14; }
:root[data-theme="dark"] .rb { stroke: #ffffff26; }
:root[data-theme="dark"] .btn { background: #ff6b4a2b; color: #ff9a6c; }
:root[data-theme="dark"] .num { box-shadow: 0 6px 14px -4px #ff6b4a55; }
:root[data-theme="dark"] .track { background: #5a5470; }
:root[data-theme="dark"] .item { box-shadow: 0 4px 14px -8px #000; }
:root[data-theme="dark"] .toast { background: #f4f1ff; color: #26233a; }

/* estrelas no céu da noite */
.stars { display: none; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
:root[data-theme="dark"] .stars { display: block; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px #ffffffaa; animation: twinkle 3s ease-in-out infinite; }
.stars i:nth-child(1) { top: 14%; left: 12%; } .stars i:nth-child(2) { top: 30%; left: 80%; animation-delay: -.8s; }
.stars i:nth-child(3) { top: 62%; left: 7%; animation-delay: -1.4s; width: 2px; height: 2px; } .stars i:nth-child(4) { top: 20%; left: 56%; animation-delay: -2s; width: 2px; height: 2px; }
.stars i:nth-child(5) { top: 72%; left: 88%; animation-delay: -.3s; } .stars i:nth-child(6) { top: 8%; left: 34%; animation-delay: -1.1s; width: 2px; height: 2px; }
.stars i:nth-child(7) { top: 48%; left: 94%; animation-delay: -2.4s; width: 2px; height: 2px; } .stars i:nth-child(8) { top: 80%; left: 40%; animation-delay: -1.7s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }

/* ───────── rodapé: assinatura Sharksystems */
.foot { padding: 0; max-width: none; }
.foot > p { max-width: 520px; margin: 0 auto 18px; padding: 0 24px; }
.bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 18px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); }
.bar-logo { width: 28px; height: 28px; object-fit: contain; }
.bar-logo.dark { display: none; }
:root[data-theme="dark"] .bar-logo.light { display: none; }
:root[data-theme="dark"] .bar-logo.dark { display: block; }
.bar-app { font-size: 16px; font-weight: 900; letter-spacing: -.2px; background: linear-gradient(135deg, #1c4fd1, #4f6ef7); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .bar-app { background: linear-gradient(135deg, #7c8cff, #a9b6ff); -webkit-background-clip: text; background-clip: text; }
.bar-co { font-size: 15px; font-weight: 600; font-style: italic; color: var(--ink); opacity: .85; }
.bar-ver { font-size: 12px; font-weight: 700; color: var(--muted); }
@media print { .bar { display: none; } }
