/* Tom de Presente — sistema visual */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --creme: #FFF8EF; --creme-2: #FDF1E4; --rosa: #F9E3DC; --rosa-2: #F3D2C8; --branco: #FFFFFF;
  --vinho: #5B1A32; --vinho-2: #7A2A47; --coral: #E2574C; --coral-2: #C9443A; --ouro: #F2B84B; --verde: #2E7D5B; --erro: #B3261E;
  --texto: #2B1720; --texto-2: #5E4650; --texto-3: #8C7680;
  --linha: #EBD9CF; --linha-2: #F1E4DB;
  --raio: 20px; --raio-s: 12px;
  --sombra: 0 14px 40px rgba(91, 26, 50, .12); --sombra-s: 0 4px 14px rgba(91, 26, 50, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--creme); color: var(--texto); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
a { color: var(--vinho); text-decoration: underline; text-decoration-color: rgba(91, 26, 50, .3); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--vinho); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.accent { color: var(--coral); }
.muted { color: var(--texto-2); }
.faint { color: var(--texto-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin: 0 0 .6em; }
.lead { font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--texto-2); max-width: 640px; }
.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
.wrap-m { width: min(840px, 100% - 32px); }
.wrap-s { width: min(680px, 100% - 32px); }
section { padding: 56px 0; }
.ok { color: var(--verde); }
.err { color: var(--erro); font-size: .92rem; min-height: 0; margin: 6px 0; }
.err:empty { display: none; }
.notice { background: var(--rosa); border-radius: var(--raio-s); padding: 12px 14px; }
.divider { height: 1px; background: var(--linha); margin: 24px 0; border: 0; }

/* ---------- cabeçalho e rodapé ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha-2); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--texto-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.on { background: var(--rosa); color: var(--vinho); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--vinho); color: #fff; font-weight: 700; text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--linha); border-radius: 10px; width: 40px; height: 40px; color: var(--vinho); cursor: pointer; }
.drawer { display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 39; background: var(--creme); border-bottom: 1px solid var(--linha); padding: 8px 16px 18px; box-shadow: var(--sombra); max-height: calc(100vh - 66px); overflow: auto; }
.drawer.open { display: grid; }
.drawer a { padding: 12px 6px; border-bottom: 1px solid var(--linha-2); text-decoration: none; color: var(--texto); font-weight: 500; }
@media (max-width: 900px) { .nav, .hide-s { display: none; } .menu-btn { display: grid; place-items: center; } }
.top .btn { white-space: nowrap; }
@media (max-width: 480px) { #top-user .btn-ghost { display: none; } .top .wrap { gap: 10px; } }
@media (max-width: 420px) { .logo img { height: 32px; } .top-cta { padding: 8px 14px; font-size: .88rem; } }
.foot { background: var(--vinho); color: #F7E6EA; padding: 48px 0 28px; margin-top: 40px; }
.foot a { color: #F7E6EA; text-decoration: none; display: block; padding: 3px 0; opacity: .9; }
.foot a:hover { opacity: 1; color: #fff; }
.foot img { filter: brightness(0) invert(1); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--ouro); }
.foot p { color: #E9CDD5; font-size: .95rem; }
.foot .legal { display: grid; gap: 6px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; color: #E1C3CC; }
.foot .legal a { display: inline; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- botões, campos e painéis ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; background: var(--coral); color: #fff; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(226, 87, 76, .28); transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--coral-2); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-s { padding: 9px 16px; font-size: .9rem; box-shadow: none; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--vinho); border: 1.5px solid var(--linha); box-shadow: none; }
.btn-ghost:hover { background: var(--rosa); color: var(--vinho); }
.btn-soft { background: var(--rosa); color: var(--vinho); box-shadow: none; }
.btn-soft:hover { background: var(--rosa-2); color: var(--vinho); }
.btn-dark { background: var(--vinho); box-shadow: 0 6px 18px rgba(91, 26, 50, .25); }
.btn-dark:hover { background: var(--vinho-2); }
.link-btn { background: none; border: 0; color: var(--vinho); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.panel { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; box-shadow: var(--sombra-s); }
.panel-glow { box-shadow: var(--sombra); border-color: var(--rosa-2); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .92rem; color: var(--vinho); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--linha); background: var(--branco); color: var(--texto); border-radius: 14px; padding: 13px 14px; font: 400 1rem var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(226, 87, 76, .14); }
.input::placeholder { color: #B9A5AD; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--rosa); color: var(--vinho); font-size: .88rem; font-weight: 500; }
.chip-coupon { background: #FFF1D6; color: #7A4B00; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--rosa); color: var(--vinho); }
.tag.approved, .tag.ok { background: #DFF3E8; color: var(--verde); }
.tag.pending { background: #FFF1D6; color: #7A4B00; }
.tag.refunded, .tag.rejected, .tag.expired { background: #FBE0DE; color: var(--erro); }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.btn-ghost .spin, .btn-soft .spin, .panel .spin.dark { border-color: rgba(91, 26, 50, .2); border-top-color: var(--vinho); }
@keyframes spin { to { transform: rotate(360deg); } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* ---------- modal, toast, cookies ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(43, 23, 32, .45); display: grid; place-items: center; padding: 16px; overflow: auto; animation: fade .2s; }
.modal { position: relative; width: 100%; max-width: 460px; background: var(--creme); border-radius: 24px; padding: 28px 24px 24px; box-shadow: 0 30px 80px rgba(43, 23, 32, .35); max-height: calc(100vh - 32px); overflow: auto; }
.modal .x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--texto-3); cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--vinho); color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--sombra); animation: fade .2s; }
.toast.err { background: var(--erro); }
.t-ic { font-size: 1.1rem; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 12px 16px; box-shadow: var(--sombra); font-size: .92rem; max-width: 720px; margin: 0 auto; }
.consent .row { display: flex; gap: 8px; }
.tabs { display: flex; gap: 6px; background: var(--rosa); border-radius: 999px; padding: 4px; margin: 6px 0 16px; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px; font: 700 .92rem var(--sans); color: var(--vinho); cursor: pointer; }
.tabs button.on { background: var(--branco); box-shadow: var(--sombra-s); }
.admin .tabs { flex-wrap: wrap; border-radius: 18px; }
.admin .tabs button { flex: 1 1 auto; }
.stardust { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.stardust i { position: absolute; width: 9px; height: 9px; border-radius: 2px; animation: confete 1.6s ease-out forwards; }
@keyframes confete { to { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; } }

/* ---------- pagamento ---------- */
.price { font-family: var(--serif); font-weight: 700; color: var(--vinho); font-size: 1.5rem; }
.opts { display: grid; gap: 10px; margin: 12px 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--branco); border: 1.5px solid var(--linha); border-radius: 16px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--texto); transition: border-color .15s, box-shadow .15s; }
.opt:hover { border-color: var(--coral); }
.opt b { display: block; color: var(--vinho); }
.opt small { color: var(--texto-2); }
.opt .p { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--rosa); color: var(--vinho); font-weight: 700; flex: none; }
.opt.best { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(226, 87, 76, .12); }
.opt.best .p { background: var(--coral); color: #fff; }
.opt .spin { border-color: rgba(91, 26, 50, .2); border-top-color: var(--vinho); }
.copy-box { display: flex; gap: 8px; }
.copy-box .input { padding: 10px 12px; font-size: .9rem; }
.qr { width: 220px; height: 220px; margin: 14px auto; background: #fff; border-radius: 14px; padding: 10px; border: 1px solid var(--linha); }
.qr img, .qr svg { width: 100%; height: 100%; }
.waiting { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--texto-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.celebrate { text-align: center; }
.celebrate .big { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }

/* ---------- home ---------- */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--texto-2); font-size: .92rem; }
.trust span::before { content: "✓ "; color: var(--verde); font-weight: 700; }
.hero-card { background: var(--branco); border-radius: 28px; padding: 22px; box-shadow: var(--sombra); border: 1px solid var(--linha); transform: rotate(1.2deg); }
.hero-card .lyr { font-family: var(--serif); color: var(--vinho); font-size: 1.12rem; line-height: 1.55; white-space: pre-line; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-card { transform: none; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px; position: relative; }
.step::before { counter-increment: st; content: counter(st); position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-top: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.style-card { display: block; text-decoration: none; background: var(--branco); border: 1.5px solid var(--linha); border-radius: 18px; padding: 16px; color: var(--texto); transition: border-color .15s, transform .15s; }
.style-card:hover { border-color: var(--coral); transform: translateY(-2px); color: var(--texto); }
.style-card b { display: block; font-family: var(--serif); color: var(--vinho); font-size: 1.15rem; }
.style-card span { font-size: .9rem; color: var(--texto-2); }
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.tier { background: var(--branco); border: 1.5px solid var(--linha); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.tier.best { border-color: var(--coral); box-shadow: var(--sombra); }
.tier .ribbon { position: absolute; top: -13px; right: 20px; background: var(--ouro); color: var(--vinho); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.tier h3 { margin: 0; }
.tier .price { font-size: 2.2rem; }
.tier ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; }
.tier li::before { content: "♪ "; color: var(--coral); font-weight: 700; }
.tier .btn { margin-top: auto; }
@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; } }
.faq details { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--vinho); list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--coral); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--texto-2); }
.band { background: var(--rosa); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--rosa); display: grid; place-items: center; font-size: 1.3rem; }

/* ---------- criar: formulário em etapas ---------- */
.wizard { max-width: 680px; margin: 0 auto; }
.progress { height: 6px; background: var(--rosa); border-radius: 999px; overflow: hidden; margin: 0 0 22px; }
.progress i { display: block; height: 100%; background: var(--coral); width: 0; transition: width .3s; }
.wstep h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; height: 100%; background: var(--branco); border: 1.5px solid var(--linha); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice span b { display: block; color: var(--vinho); }
.choice span small { color: var(--texto-2); font-size: .82rem; }
.choice input:checked + span { border-color: var(--coral); background: #FFF1EE; box-shadow: 0 0 0 3px rgba(226, 87, 76, .12); }
.choice input:focus-visible + span { outline: 2px solid var(--coral); }
.wnav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hint { font-size: .85rem; color: var(--texto-3); }
.counter { font-size: .8rem; color: var(--texto-3); text-align: right; }
.writing { text-align: center; padding: 30px 10px; }
.notes { display: flex; justify-content: center; gap: 10px; font-size: 2rem; color: var(--coral); margin-bottom: 10px; }
.notes span { animation: bob 1.2s ease-in-out infinite; }
.notes span:nth-child(2) { animation-delay: .2s; color: var(--vinho); }
.notes span:nth-child(3) { animation-delay: .4s; color: var(--ouro); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- música: letra, prévia, oferta ---------- */
.song-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.lyrics { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--texto); white-space: pre-line; }
.lyrics .tagl { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-top: 16px; }
.lyrics .tagl:first-child { margin-top: 0; }
.lyrics-edit { font-family: var(--serif); font-size: 1.05rem; min-height: 420px; }
.player { display: flex; align-items: center; gap: 14px; background: var(--vinho); color: #fff; border-radius: 22px; padding: 14px 18px; }
.player button.play { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.player .bar { flex: 1; height: 8px; background: rgba(255, 255, 255, .2); border-radius: 999px; overflow: hidden; cursor: pointer; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--ouro); }
.player .t { font-variant-numeric: tabular-nums; font-size: .88rem; opacity: .9; min-width: 84px; text-align: right; }
.player .cap { font-size: .8rem; opacity: .8; display: block; }
.locked-note { display: flex; gap: 10px; align-items: center; background: #FFF1D6; color: #7A4B00; border-radius: 14px; padding: 10px 14px; font-size: .92rem; margin-top: 10px; }
.gen-box { text-align: center; padding: 34px 18px; }
.gen-box .bar2 { height: 8px; border-radius: 999px; background: var(--rosa); overflow: hidden; margin: 16px auto 8px; max-width: 360px; }
.gen-box .bar2 i { display: block; height: 100%; width: 30%; background: var(--coral); border-radius: 999px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl { display: grid; gap: 10px; }
.side-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .side-grid { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 84px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* ---------- página do presente ---------- */
body[data-page="presente"] { background: radial-gradient(80vw 60vh at 50% -10%, var(--rosa), transparent 70%), var(--creme); }
.gift { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.gift .for { font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.4rem); color: var(--vinho); line-height: 1.1; margin: 8px 0 6px; }
.gift .from { color: var(--texto-2); margin-bottom: 24px; }
.gift .ded { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--vinho-2); background: var(--branco); border-radius: 18px; padding: 18px; border: 1px solid var(--linha); margin: 18px 0; white-space: pre-line; }
.gift .lyrics { text-align: center; margin-top: 26px; }
.gift .player { text-align: left; }
.gift-logo { display: inline-block; margin-bottom: 10px; }
.gift-logo img { height: 34px; }
.unwrap { display: grid; justify-items: center; gap: 10px; margin: 10px auto 0; background: none; border: 0; cursor: pointer; font: 700 1.05rem var(--sans); color: var(--vinho); }
.unwrap .gbox { width: 150px; height: 150px; filter: drop-shadow(0 14px 22px rgba(91, 26, 50, .22)); animation: wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.unwrap:hover .gbox, .unwrap:focus-visible .gbox { animation-duration: .9s; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .unwrap .gbox { animation: none; } }
.qrbox { display: grid; place-items: center; gap: 8px; }
.qrbox svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--linha); }
@media print { .top, .foot, .no-print, .consent, .toasts { display: none !important; } body { background: #fff; } }

/* ---------- conta, painel e blog ---------- */
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--texto); }
.item:hover { border-color: var(--coral); color: var(--texto); }
.item b { color: var(--vinho); }
.empty { text-align: center; padding: 30px; color: var(--texto-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--vinho); }
.stat span { font-size: .82rem; color: var(--texto-2); }
.table-wrap { overflow-x: auto; }
table.cmp, .admin table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--branco); }
.cmp th, .cmp td, .admin th, .admin td { padding: 9px 10px; border-bottom: 1px solid var(--linha-2); text-align: left; vertical-align: top; }
.cmp th, .admin th { color: var(--vinho); font-weight: 700; background: var(--creme-2); }
.admin .sec { margin: 26px 0; }
.admin h2 { font-size: 1.5rem; }
.admin .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.admin .row .field { flex: 1 1 200px; }
.fbar { display: block; height: 10px; background: var(--rosa); border-radius: 999px; overflow: hidden; }
.fbar i { display: block; height: 100%; background: var(--coral); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.chart i { flex: 1; min-width: 3px; background: var(--coral); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; opacity: .85; }
.chart i:hover { opacity: 1; }
.chart i:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--texto); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.tag.draft { background: #E9E4FF; color: #4B3A99; }
.chip-ok { background: #E3F4EA; color: var(--verde); }
.cnt-item { border-top: 1px solid var(--linha-2); padding: 12px 0; display: grid; gap: 6px; }
.cnt-item .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cnt-item .ttl { font-weight: 700; color: var(--vinho); }
.cnt-notes { white-space: pre-wrap; background: var(--creme-2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px; font-size: .85rem; max-height: 360px; overflow: auto; }
.crumbs { font-size: .88rem; color: var(--texto-3); margin-bottom: 14px; }
.crumbs a { color: var(--texto-2); }
.post-section { padding-top: 30px; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.post-meta { color: var(--texto-3); font-size: .9rem; }
.quick-answer { background: #FFF1EE; border-color: var(--rosa-2); margin: 18px 0; }
.quick-answer p:last-child { margin: 0; }
.toc { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 18px; margin: 18px 0; }
.toc-t { font-weight: 700; color: var(--vinho); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.prose { font-size: 1.07rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 4px solid var(--coral); margin: 1em 0; padding: .2em 1em; color: var(--texto-2); }
.cta-box { text-align: center; margin: 26px 0; background: #FFF1EE; border-color: var(--rosa-2); }
.sources { font-size: .88rem; color: var(--texto-2); }
.ai-note { margin-top: 26px; }
.related { margin-top: 36px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.post-card { display: grid; gap: 6px; text-decoration: none; color: var(--texto); }
.post-card b { font-family: var(--serif); color: var(--vinho); font-size: 1.15rem; line-height: 1.3; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.preview-bar { background: #FFF1D6; border-color: #F2D49B; margin-bottom: 16px; }
.post-faq h2 { margin-top: 1.6em; }
