@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');
/* As cores vêm de /css/theme.css (theme-light.css ou theme-dark.css, conforme SITE_THEME). */
:root { --ok: #3fb673; --bad: #dc3545; --radius: 5px; --col: 600px; --shadow-s: 0 4px 3px rgba(0, 0, 0, .08); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.3 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 18px; margin-bottom: 8px; } h2 { font-size: 16px; margin-bottom: 8px; }
button { font-family: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; }
.hidden { display: none !important; }

/* ---------- topo, menu e rodapé ---------- */
.notice { background: var(--notice); color: var(--notice-text); font-size: 11px; font-weight: 600; text-align: center; padding: 4px 12px; }
header.top { background: var(--header-bg); height: 60px; position: sticky; top: 0; z-index: 31; }
.header-content { max-width: var(--col); height: 60px; margin: 0 auto; padding: 0 10px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; color: var(--header-text); font-weight: 600; font-size: 18px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75%; }
.logo img { display: block; height: 45px; width: auto; max-width: 200px; object-fit: contain; }
.toggle-menu { background: none; border: 0; padding: 0; color: #aaaaaa; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; width: 31px; height: 31px; }
.menu { position: fixed; top: 60px; left: -100%; width: 100%; bottom: 0; z-index: 30; padding: 30px 15px; background: var(--drawer-bg); overflow-y: auto; transition: left .2s linear; visibility: hidden; }
.menu.opened { left: 0; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .menu { transition: none; } }
.menu .container { max-width: var(--col); margin: 0 auto; padding: 0 15px; }
.menu .hello { margin: 0 0 30px; font-size: 16px; line-height: 16px; font-weight: 500; color: #fff; }
.menu ul { list-style: none; margin: 0 0 30px; padding: 0; }
.menu li { padding: 15px 0; } .menu li:first-child { padding-top: 0; }
.menu a { display: flex; align-items: center; color: #fff; font-size: 16px; line-height: 20px; text-transform: capitalize; }
.menu a .bi { font-size: 20px; line-height: 1; margin-right: 15px; display: grid; }

.menu .login-link { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; padding: 10px; border: 0; border-radius: 20px; background: #fff; color: #333; font: 500 20px Montserrat, system-ui, sans-serif; cursor: pointer; }
.menu .login-link .bi { font-size: 28px; line-height: 1; margin-right: 10px; display: grid; }
.main-fill { height: 15px; margin-bottom: -15px; background: var(--header-bg); }
body.app main { position: relative; max-width: var(--col); margin: 0 auto; padding: 10px; background: var(--bg); border-radius: 15px; min-height: 60vh; }
body.has-bar main { padding-bottom: 20px; }
body.has-bar { padding-bottom: 130px; }
body.app main > h1 { margin: 6px 0 10px; }
footer { padding: 35px 10px 76px; color: var(--text); font-size: 10px; font-weight: 500; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.footer-social a { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text); font-size: 22px; }
.fab { position: fixed; right: 10px; bottom: 30%; z-index: 25; display: grid; place-items: center; width: 34px; height: 30px; background: #198754; color: #fff; border-radius: 5px; font-size: 20px; }

/* ---------- blocos genéricos ---------- */
.card { background: var(--panel); border-radius: 5px; padding: 12px; box-shadow: var(--shadow-s); }
.list { display: grid; gap: 10px; }
.camp { display: block; color: var(--text); overflow: hidden; padding: 0; }
.camp .body { padding: 10px 12px 12px; font-size: 13px; }
.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover.ph, .hero .ph { display: grid; place-items: center; text-align: center; padding: 16px; font-size: 30px; font-weight: 600; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #3a4250 0%, #1c2029 55%, #0c0e12 100%); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 3.5px 6.5px; border-radius: 4px; background: var(--panel2); color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.tag.ok { background: #d9f3e3; color: #14663a; } .tag.warn { background: #fdeeb5; color: #6b5200; } .tag.bad { background: #fbd9da; color: #8f1d22; }
.bar { height: 7px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------- campanha: topo ---------- */
.hero { position: relative; margin: -10px -10px 0; height: 340px; overflow: hidden; background: #0c0e12; color: #fff; border-radius: 8px 8px 0 0; }
.hero img, .hero .ph { width: 100%; height: 100%; }
.hero img { object-fit: cover; display: block; }
.hero .ph { padding-bottom: 80px; }
.hero .stage { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img, .hero .slide video, .hero .stage .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .slide video { pointer-events: none; }
/* botões do vídeo (referência: 34 px, redondos, preto 40% de opacidade, no topo) */
.hero .slide .vbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: none; gap: 4px; padding: 6px 10px; }
.hero .slide.on .vbar { display: flex; }
.hero .vbar .sp { flex: 1; }
.hero .vbtn { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.hero .vbtn:hover { background: rgba(0, 0, 0, .55); }
.hero .vbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .hero .slide { transition: none; } }
.hero .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .85)); }
.hero h1 { font-size: 15px; font-weight: 500; margin: 6px 0 0; line-height: 19px; }
.hero p { font-size: 12.5px; line-height: 15px; }
.hero .nav { position: absolute; top: 50%; margin-top: -22px; width: 27px; height: 44px; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; z-index: 2; padding: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.hero .nav.prev { left: 10px; } .hero .nav.next { right: 10px; }
.hurry { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; line-height: 10px; font-weight: 600; padding: 3.5px 6.5px; border-radius: 4px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hurry { animation: none; } }
.mine { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 -10px; padding: 6px 0; background: #000; color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-s); }
.mine .bi { font-size: 17px; }
.progress { position: relative; display: flex; margin: 0 -10px; height: 22px; background: #e9ecef; overflow: hidden; }
.progress i { position: relative; display: block; height: 100%; font-style: normal; background-color: var(--primary); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-size: 16px 16px; }
/* percentual centralizado na parte preenchida; com barra muito curta ele fica logo depois dela */
.progress span { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; place-items: center; padding: 0 4px; white-space: nowrap; font-size: 14px; font-weight: 600; color: #fff; }
.progress i.short span { left: 100%; transform: none; color: #444; }
.meta { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; margin: 8px 0; font-size: 12px; font-weight: 600; }
.pill { background: var(--pill); color: #fff; border-radius: 3px; padding: 4px 8px; font-size: 12px; font-weight: 600; margin-right: 12px; }
.pill.price { background: var(--primary); font-size: 15.5px; line-height: 15.5px; padding: 4px 10px; margin: 0; box-shadow: var(--shadow-s); }
.pill.price small { font-size: 12px; margin-right: 3px; }

/* ---------- campanha: grade ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.stat { display: flex; align-items: stretch; background: var(--well); border: 0; border-radius: 5px; overflow: hidden; padding: 0; color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-s); }
.stat span { flex: 1; padding: 7px 4px; text-align: center; }
.stat b { min-width: 34px; padding: 7px 6px; text-align: center; color: #fff; font-weight: 600; }
.stat.free b { background: var(--free); } .stat.res b { background: var(--res); } .stat.paid b { background: var(--paid); }
.stat.on { outline: 2px solid var(--text); }
.numbers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
@media (min-width: 520px) { .numbers { grid-template-columns: repeat(8, 1fr); } }
.numbers.wide { grid-template-columns: repeat(5, 1fr); }
.numbers.long { max-height: 62vh; overflow-y: auto; }
.num { position: relative; font: 500 15px/1 Montserrat, system-ui, sans-serif; padding: 9px 0; border-radius: 5px; border: 2px solid transparent; background: var(--free); color: #fff; cursor: pointer; }
.num:hover { filter: brightness(1.12); }
.num.res { background: var(--res); cursor: default; }
.num.paid { background: var(--paid); cursor: default; }
.num.sel { background: var(--sel); border-color: var(--sel-ring); font-weight: 600; }
.num[data-tip]:hover::after, .num[data-tip]:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); background: #000; color: #fff; font-size: 10px; font-weight: 500; padding: 3px 7px; border-radius: 4px; white-space: nowrap; z-index: 5; pointer-events: none; }
.numbers.f-free .num:not(.free), .numbers.f-res .num:not(.res), .numbers.f-paid .num:not(.paid) { display: none; }

/* ---------- campanha: compra automática (na página) ---------- */
.slogan { background: var(--panel); border-radius: 4px; padding: 5px 10px; margin-bottom: 4px; text-align: center; font-size: 12px; line-height: 12px; font-weight: 600; color: var(--soft); }
.qtybox { display: flex; align-items: center; justify-content: space-between; min-height: 50px; background: var(--panel); border-radius: 5px; padding: 6px 0; margin-bottom: 5px; }
.qtybox .side { flex: 0 0 70px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.qtybox .rnd { border: 0; background: none; padding: 0; font-size: 19px; line-height: 1; color: var(--pill); cursor: pointer; display: grid; }
.qtybox .rnd.clear { color: var(--primary); }
.qtybox .field { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; margin: 0; border: 1px solid var(--line); border-radius: 5px; font-size: 15px; font-weight: 600; color: var(--muted); background: var(--well); cursor: text; }
.qtybox input { width: 3.4em; border: 0; background: transparent; padding: 0; text-align: right; font-size: 15px; font-weight: 600; color: inherit; -moz-appearance: textfield; }
.qtybox input:focus { outline: none; color: var(--text); } .qtybox .field:focus-within { border-color: var(--primary); }
.qtybox input::-webkit-outer-spin-button, .qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; }
/* botões de pacote como na referência: 1 = linha inteira, 2 e 3 lado a lado, 4 = dois por linha, 5 a 8 = três por linha */
.packs { display: flex; flex-wrap: wrap; column-gap: 1%; row-gap: 0; justify-content: space-between; margin-top: 0; }
.packs .pack { flex: 1 1 100%; min-width: 100px; }
.packs.qtd2 .pack, .packs.qtd4 .pack { flex-basis: 49%; }
.packs.qtd3 .pack, .packs.qtd5 .pack, .packs.qtd6 .pack, .packs.qtd7 .pack, .packs.qtd8 .pack { flex-basis: 32.33%; }
.pack { position: relative; height: 55px; border: 0; border-radius: 5px; background: var(--pack-bg); color: var(--pack-text); padding: 0 2px; margin-bottom: 1%; cursor: pointer; box-shadow: var(--shadow-s); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pack b { display: block; font-size: 22px; line-height: 22px; font-weight: 500; white-space: nowrap; margin-bottom: 3px; }
.pack b small { font-size: 12px; font-weight: 500; } .pack b small:first-child { font-size: 16px; }
.pack span { font-size: 10px; line-height: 10px; font-weight: 500; }
.pack.pop { background: color-mix(in srgb, var(--primary) 20%, transparent); border: 2px solid var(--primary); color: var(--text); }
.pack.pop::before { content: 'Popular'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 10px; line-height: 10px; font-weight: 500; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.pack:hover { filter: brightness(1.12); }
.buynow { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; border-radius: 5px; background: var(--primary-grad); color: #fff; padding: 10px; cursor: pointer; box-shadow: var(--shadow-s); }
.buynow:hover:not(:disabled) { filter: brightness(1.1); }
.buynow:disabled { opacity: .55; cursor: not-allowed; }
.buynow .bi { font-size: 25px; line-height: 1; display: grid; }
.buynow .t { flex: 1; min-width: 0; padding-left: 3px; } .buynow .t b { display: block; font-size: 18px; line-height: 23.4px; font-weight: 600; } .buynow .t span { display: block; font-size: 10.7px; line-height: 13.9px; font-weight: 600; }
.buynow .p { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; font-weight: 600; white-space: nowrap; } .buynow .p b { font-size: 17px; font-weight: 600; }

.sec-title { display: flex; align-items: baseline; margin: 15px 0 10px; font-size: 16px; line-height: 16px; font-weight: 600; }
.sec-title .t { padding-right: 7px; }
.sec-title small { font-size: 12px; font-weight: 500; color: var(--soft); }
.sec-title .count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--soft); }
.tier { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 4px; text-align: center; background: var(--primary-grad); color: #fff; border: 0; border-radius: 5px; padding: 7px; margin-bottom: 5px; font-family: inherit; cursor: pointer; }
.tier:hover { filter: brightness(1.1); } .tier .c { display: block; } .tier .p { display: block; }
.tier:nth-child(even) { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary), #000 70%)); }
.tier .p { font-size: 12px; line-height: 16.2px; } .tier .p.hl { font-size: 14.5px; line-height: 19.6px; font-weight: 600; }
.tier .q { display: flex; align-items: center; gap: 5px; }
.tier .ic { font-size: 26px; line-height: 35px; }
.tier .foot { flex: 0 0 100%; }
.tier.on { outline: 2px solid var(--notice); outline-offset: -2px; }
/* linhas de prêmio em 3 colunas: selo à esquerda | valor sempre no centro da linha | ganhador à direita */
.prize { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 30px; background: #fafafa; color: #444; border-radius: 5px; padding: 4px; margin-bottom: 4px; font-size: 11px; line-height: 11px; font-weight: 600; box-shadow: var(--shadow-s); }
.prize .badge { justify-self: start; background: var(--primary); color: #fff; border-radius: 5px; padding: 5px; line-height: 12.1px; letter-spacing: .5px; text-align: center; white-space: nowrap; }
.prize .badge.tnum { width: 62px; } .prize .badge.tnum.z7 { width: 71px; }
.prize .val { justify-self: center; min-width: 90px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prize .badge.wide { min-width: 90px; }
.prize .who { justify-self: end; padding-right: 4px; white-space: nowrap; text-transform: capitalize; }
.prize.won { background: var(--primary); color: #fff; } .prize.won .badge { background: #fff; color: #444; }
.more { width: 100%; height: 30px; border: 0; border-radius: 4px; background: #a9a9a9; color: #fff; font-weight: 500; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px rgba(0, 0, 0, .14), 0 1px 5px rgba(0, 0, 0, .12); }
.more .bi { font-size: 9px; }
.share { display: flex; gap: 10px; margin-bottom: 10px; }
.share a, .share button { width: 30px; height: 30px; border-radius: 4px; border: 0; padding: 0; display: grid; place-items: center; color: #fff; font-size: 16px; cursor: pointer; }
.age { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto 0; padding: 14px 10px; font-size: 11px; color: var(--muted); max-width: var(--col); }
.age .c { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #a9a9a9; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--soft); }
.age b { display: block; color: var(--soft); font-weight: 600; }

details.reg { margin: 15px 0; background: var(--panel); border-radius: 5px; box-shadow: var(--shadow-s); }
details.reg summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--soft); display: flex; align-items: center; justify-content: center; gap: 7px; }
details.reg summary::-webkit-details-marker { display: none; }
details.reg summary .bi { font-size: 16px; transition: transform .15s; }
details.reg[open] summary .bi { transform: rotate(180deg); }
details.reg .in { padding: 10px; font-size: 14px; }
.pre { white-space: pre-wrap; color: var(--text); font-size: 14px; line-height: 17px; }

/* ---------- barra fixa de compra (campanha com grade) ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bar-bg); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.buybar .in { max-width: calc(var(--col) - 20px); margin: 0 auto; }
.buybar h3 { color: var(--accent-text); font-size: 1rem; font-weight: 600; margin: 0; }
.buybar .sub { color: var(--muted); font-size: .76rem; margin: 0 0 8px; }
.buyrow { display: flex; gap: 12px; align-items: stretch; }
.stepper { flex: 1; display: flex; border-radius: 8px; overflow: hidden; background: var(--well); border: 1px solid var(--line); }
.stepper button { width: 42px; border: 0; background: var(--pill); color: #fff; font-size: 1.2rem; cursor: pointer; }
.stepper input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; text-align: center; padding: 8px 0; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem; padding: 8px 12px 8px 16px; cursor: pointer; }
.buy:hover:not(:disabled) { background: var(--primary-hi); }
.buy em { font-style: normal; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .28); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.buy:disabled, .cta:disabled { opacity: .5; cursor: not-allowed; }
.picks { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 auto; min-width: 62px; border: 0; background: var(--chip-bg); color: var(--chip-text); font: 500 .9rem Montserrat, system-ui, sans-serif; padding: 7px 10px; border-radius: 5px; cursor: pointer; }
.cta { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; border: 0; border-radius: 10px; background: var(--cta); color: #fff; padding: 9px 16px 9px 12px; cursor: pointer; }
.cta:hover:not(:disabled) { background: var(--cta-hi); }
.cta .arrow { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--cta); display: grid; place-items: center; font-weight: 800; }
.cta .t { flex: 1; min-width: 0; } .cta .t b { display: block; font-size: 1rem; font-weight: 700; text-transform: uppercase; } .cta .t span { font-size: .7rem; opacity: .9; }
.cta .p { text-align: right; font-size: .7rem; white-space: nowrap; } .cta .p b { display: block; font-size: .9rem; }
.barmsg { color: var(--bad); font-size: .8rem; font-weight: 600; margin-top: 6px; }
.barmsg:empty { display: none; }


/* ---------- modais (medidas da referência) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); overflow-y: auto; }
.sheet { width: calc(100% - 20px); max-width: 580px; margin: 10px; max-height: calc(100% - 20px); display: flex; flex-direction: column; background: var(--panel); color: var(--text); border-radius: 4px; box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12); }
.sheet-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px; height: 50px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.icon-btn { width: 34px; height: 34px; margin-right: -11px; display: grid; place-items: center; background: none; border: 0; color: #9e9e9e; font-size: 16px; cursor: pointer; border-radius: 50%; padding: 0; }
.icon-btn:hover { background: rgba(128, 128, 128, .15); }
.sheet-body { padding: 16px; overflow-y: auto; font-size: 13px; }
.upsell { display: flex; flex-direction: column; align-items: center; background: linear-gradient(#fef5cd, #fde6a4, #fbdc7b); color: #5b5b5b; border-radius: 4px; padding: 15px; text-align: center; margin-bottom: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.upsell.active { background: linear-gradient(#c8f1e4, #a2e4cf, #81d7b9); }
.upsell.active button { background: linear-gradient(90deg, #fbdc7b, #f8c75a); }
.upsell .ut { font-size: 13px; font-weight: 600; } .upsell .ut strong { color: #333; font-weight: 700; }
.upsell small { display: block; font-size: 12px; color: #6d6d6d; margin: 10px 0; }
.upsell button { border: 0; border-radius: 4px; background: linear-gradient(90deg, #81d7b9, #69c3a5); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 25px; cursor: pointer; }
.summary { background: var(--panel2); color: var(--soft); border-radius: 5px; padding: 8px 13px; font-size: 13px; margin-bottom: 10px; box-shadow: var(--shadow-s); }
.summary b { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.chips:empty { display: none; }
.chip { min-width: 62px; text-align: center; font-size: 11px; line-height: 12px; font-weight: 600; background: var(--chip-bg); color: var(--chip-text); border-radius: 5px; padding: 5px; }
.chip.win { background: var(--notice); color: var(--notice-text); }
.sheet label { font-size: 13px; font-weight: 600; color: var(--soft); margin: 13px 0 6px; }
/* caixas de texto dos modais: iguais às da referência (borda cinza 1 px, mais escura no hover, azul 2 px no foco) */
.sheet input:not([type=checkbox]), .paycard.lookup input { height: 40px; padding: 0 10px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .2); background: #fff; color: rgba(0, 0, 0, .87); font-size: 13px; margin-bottom: 10px; }
.sheet input:not([type=checkbox])::placeholder { color: rgba(0, 0, 0, .87); opacity: .42; }
.sheet input:not([type=checkbox]):hover { border-color: rgba(0, 0, 0, .45); }
.sheet input:not([type=checkbox]):focus, .sheet input:not([type=checkbox]):focus-visible { outline: none; border-color: #1976d2; box-shadow: inset 0 0 0 1px #1976d2; }
.hint { font-size: 13px; color: var(--soft); margin: 0 0 15px; }
.hint.box { display: flex; align-items: center; gap: 5px; background: #fff3cd; color: #664d03; border-radius: 5px; padding: 8px; box-shadow: var(--shadow-s); }
.go { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 4px; background: var(--primary-grad); color: #fff; font-weight: 500; font-size: 14px; padding: 6px 16px; cursor: pointer; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px rgba(0, 0, 0, .14), 0 1px 5px rgba(0, 0, 0, .12); }
.go .bi { font-size: 22px; line-height: 1; display: grid; }
.go:hover:not(:disabled) { filter: brightness(1.1); }
.go:disabled { background: rgba(128, 128, 128, .24); color: rgba(128, 128, 128, .75); box-shadow: none; cursor: default; }
.sheet .err:empty { display: none; }
.linkbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; margin: 8px auto 0; background: none; border: 0; border-radius: 4px; color: var(--soft); font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 5px; }
.linkbtn:hover { background: var(--panel2); }
.linkbtn .bi { font-size: 15px; }
.usercard { display: flex; align-items: center; height: 120px; padding: 5px; margin: 10px 0 15px; background: var(--panel); border-radius: 8px; box-shadow: var(--shadow-s); color: var(--soft); }
.usercard .ph { flex: 0 0 90px; height: 110px; margin-right: 10px; border-radius: 8px; background: var(--page); display: grid; place-items: center; font-size: 24px; }
.usercard .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.usercard h3 { font-size: 17px; line-height: 21px; font-weight: 500; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usercard p { font-size: 12.5px; line-height: 15px; }
.check { display: flex !important; gap: 9px; align-items: flex-start; margin: 10px 0 12px !important; font-size: 12px !important; color: var(--text); }
.check input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--primary); }
.sheet h3.sec { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet h3.sec:first-of-type { border-top: 0; padding-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 360px) { .two { grid-template-columns: 1fr; } }
.opt { font-weight: 500; color: var(--muted); }

/* ---------- formulários, botões, tabelas (site e painel) ---------- */
label { display: block; font-size: .82rem; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--well); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
textarea { min-height: 110px; resize: vertical; }
.err { color: var(--bad); font-size: .82rem; font-weight: 600; margin: 8px 0; min-height: 1.1em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: 700 .95rem Montserrat, system-ui, sans-serif; cursor: pointer; }
.btn:hover { background: var(--primary-hi); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--panel2); }
.btn.sm { width: auto; padding: 7px 12px; font-size: .8rem; border-radius: 6px; white-space: nowrap; }
.btn.danger { background: var(--bad); }
.btn.ok { background: #198754; } .btn.ok:hover { background: #157347; }
.row { display: flex; gap: 10px; align-items: center; } .row > * { flex: 1; }

/* ---------- pedido aguardando pagamento (medidas da referência) ---------- */
.pay-title { display: flex; justify-content: center; align-items: center; margin: 10px 0 15px; }
.pay-title .bi { font-size: 44px; line-height: 49px; color: #ffc107; display: grid; }
.pay-title div { margin-left: 8px; } .pay-title h2 { font-size: 16.7px; line-height: 17px; font-weight: 500; margin: 0 0 3px; } .pay-title p { font-size: 13px; line-height: 13px; }
hr.divider { border: 0; border-top: 1px solid rgba(128, 128, 128, .45); margin: 0 0 15px; }
.paycard { background: var(--panel); padding: 10px; margin: 15px 0 10px; border-radius: 8px; box-shadow: var(--shadow-s); }
.paycard .time { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 17px; }
.paycard .time p { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.paycard .time span { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 5px; }
.bar-track { width: 100%; height: 16px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background-color: var(--primary); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-size: 16px 16px; animation: stripes 1s linear infinite; transition: width 1s linear; }
@keyframes stripes { from { background-position: 16px 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .bar-fill { animation: none; } }
.pixstep { display: flex; align-items: flex-start; margin-top: 10px; }
.pixstep .n { flex: 0 0 auto; font-size: 12px; line-height: 11.6px; font-weight: 700; color: #fff; background: var(--primary); padding: 4.2px 7.8px; border-radius: 5px; }
.pixstep .t { font-size: 14.4px; line-height: 16px; color: var(--text); margin-left: 5px; }
.paycard .time + .pixstep { margin-top: 0; }
.pix-copy { display: flex; align-items: center; margin-top: 10px; }
.pix-code { flex: 1; min-width: 0; height: 38px; line-height: 24px; padding: 6px 12px; border: 1px solid var(--line); border-right: 0; border-radius: 5px 0 0 5px; background: var(--well); font-size: 16px; white-space: nowrap; overflow: hidden; }
.btn-copy { flex: 0 0 80px; height: 38px; border: 0; border-radius: 0 5px 5px 0; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; padding: 0; cursor: pointer; }
.paid-btn { width: 100%; min-height: 32px; margin-top: 12px; border: 0; border-radius: 5px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer; box-shadow: var(--shadow-s); }
.paid-btn:disabled { opacity: .75; cursor: default; }
.qr-line { display: flex; justify-content: center; margin-top: 20px; }
.qr-toggle { border: 0; border-radius: 4px; background: #dbdbea; color: #333; font-size: 12px; line-height: 12px; padding: 4px 8px; cursor: pointer; }
.qrbox { text-align: center; }
.qrbox img { display: block; margin: 0 auto; width: 300px; max-width: 100%; height: auto; }
.qrbox h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; } .qrbox p { font-size: 13.8px; }
.paycard .warn { display: flex; align-items: center; gap: 5px; margin-top: 15px; padding: 8px; font-size: 13px; color: #664d03; background: #fff3cd; border-radius: 5px; box-shadow: var(--shadow-s); }
.paycard .warn .bi { font-size: 16px; }
.campcard { display: flex; align-items: center; height: 120px; padding: 5px; margin-bottom: 10px; background: var(--panel); color: var(--soft); border-radius: 8px; box-shadow: var(--shadow-s); }
.campcard img, .campcard .ph { flex: 0 0 90px; width: 90px; height: 110px; margin-right: 10px; border-radius: 8px; object-fit: cover; }
.campcard .ph { display: grid; place-items: center; background: var(--page); font-size: 24px; }
.campcard .tx { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.campcard h2 { font-size: 15px; line-height: 19px; font-weight: 500; margin: 0; } .campcard p { font-size: 12.5px; line-height: 15px; } .campcard .hurry { margin-top: 2px; }
.paycard.od { margin: 10px 0 0; font-size: 13px; line-height: 13px; }
.od-head { margin-bottom: 10px; font-size: 13px; } .od-head p { display: flex; align-items: center; gap: 4px; } .od-head .bi { font-size: 15px; }
.od-head .token { padding-top: 4px; font-size: 13px; word-break: break-all; }
.od-row { display: flex; align-items: flex-start; padding-bottom: 4px; margin-bottom: 4px; }
.od-row p { font-weight: 500; margin-right: 4px; white-space: nowrap; } .od-row span { min-width: 0; line-height: 16px; margin-top: -1.5px; }

.pay-title.ok .bi { color: #198754; }
.pay-title.bad .bi { color: #dc3545; }
.order-problems { margin: 8px 0 0; font-size: 13px; color: #6c757d; } .order-problems a { font-size: 14px; color: #333; }
.warn-text { margin: 10px 0 0; padding: 8px; font-size: 13px; color: #664d03; background: #fff3cd; border-radius: 5px; }
main + .age { max-width: var(--col); margin: 0 auto; padding: 22px 10px; }
.od-row { border-bottom: 1px solid var(--line); } .od-row:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.od-row .nums { display: flex; flex-wrap: wrap; max-height: 160px; overflow-y: auto; margin: 0; } .od-row .nums span { margin: 0 3px 0 0; }
.group-btn { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 40px; margin-top: 20px; padding: 10px; border-radius: 5px; background: #198754; color: #fff; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-s); }
.group-btn .bi { font-size: 20px; line-height: 1; display: grid; }
#app > .card { margin-top: 10px; text-align: center; }

/* aviso flutuante "Grupo VIP" */
.wpp-card { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999; max-width: 400px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; border-radius: 8px; color: #fff; background: linear-gradient(155deg, #1f8a6d, #14705a 45%, #0d5a49); box-shadow: 0 12px 28px rgba(6, 48, 38, .28); animation: wpp-in .35s ease-out; }
@keyframes wpp-in { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wpp-card { animation: none; } }
.wpp-card > * { position: relative; }
.wpp-card .x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .31); color: rgba(255, 255, 255, .7); font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.wpp-card .glow { position: absolute; right: -50px; top: 40px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .05); pointer-events: none; }
.wpp-card .hd { display: flex; gap: 10px; padding-right: 22px; }
.wpp-card .logo { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #fff; color: #25d366; font-size: 26px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.wpp-card .logo .bi { display: grid; }
.wpp-card .hg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wpp-card .badge { display: flex; align-items: center; gap: 2px; font-size: 9px; line-height: 12px; font-weight: 800; color: #4a3600; background: #ffd233; padding: 3px 8px 3px 5px; border-radius: 999px; }
.wpp-card .badge .bi { font-size: 11px; }
.wpp-card h3 { font-size: 17px; line-height: 20px; font-weight: 800; margin: 0; }
.wpp-card .hg p { font-size: 11.5px; line-height: 15px; color: rgba(255, 255, 255, .75); }
.wpp-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wpp-card li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 17px; font-weight: 600; color: rgba(255, 255, 255, .95); }
.wpp-card .ck { flex: 0 0 17px; height: 17px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #b7f5d4; font-size: 13px; display: grid; place-items: center; }
.wpp-card .social { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.wpp-card .avs { display: flex; }
.wpp-card .avs span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #14705a; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.wpp-card .avs span + span { margin-left: -7px; }
.wpp-card .cta { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 12px; border-radius: 12px; background: #fff; color: #0d5a49; font-size: 14px; font-weight: 800; }
.wpp-card .cta .bi { font-size: 20px; line-height: 1; color: #25d366; display: grid; }

/* ---------- página inicial e Minhas Compras (medidas da referência) ---------- */
.sec-title.first { margin-top: 0; }
.featcard { display: flex; flex-direction: column; margin-bottom: 10px; background: var(--panel); color: var(--soft); border-radius: 8px; box-shadow: var(--shadow-s); }
.featcard .im { position: relative; height: 340px; border-radius: 8px 8px 0 0; overflow: hidden; background: #0c0e12; }
.featcard .im img, .featcard .im .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 600; text-align: center; }
.featcard .im .hurry { position: absolute; left: 10px; bottom: 10px; }
.featcard .tx { padding: 10px; display: flex; flex-direction: column; gap: 1px; }
.featcard h2 { font-size: 15px; line-height: 19px; font-weight: 500; margin: 0; } .featcard .tx > p { font-size: 12.5px; line-height: 15px; }
.featcard .buynow { margin-top: 8px; } .featcard .buynow .p b small { font-size: 14px; }
.campcard { position: relative; }
.hurry.dark { background: rgba(0, 0, 0, .7); animation: none; } .hurry.still { animation: none; }
.date-inline { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
.date-inline .bi { font-size: 14px; }
.wincard { height: auto; min-height: 120px; margin-bottom: 5px; }
.wincard .tx p { font-size: 12.5px; line-height: 15px; } .wincard .tx strong { font-size: 11.5px; font-weight: 600; }
details.faq { background: var(--panel); border-radius: 7px; padding: 10px; margin-bottom: 10px; font-size: 14px; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; line-height: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq .a { font-size: 13px; padding-top: 10px; } details.faq .a b { font-weight: 600; }
.alertbox { display: flex; align-items: flex-start; gap: 5px; padding: 8px; margin-bottom: 15px; background: var(--panel); color: var(--soft); border-radius: 5px; box-shadow: var(--shadow-s); font-size: 13px; }
.alertbox .bi { font-size: 16px; line-height: 17px; } .alertbox strong { font-weight: 700; } .alertbox strong.big { font-size: 14px; }
.paycard.lookup { margin: 0 0 15px; padding: 16px; font-size: 13px; }
.paycard.lookup label { font-size: 13px; font-weight: 600; color: var(--soft); margin: 0 0 6px; }
.paycard.lookup input { height: 40px; padding: 0 10px; border-radius: 4px; border: 1px solid rgba(128, 128, 128, .45); font-size: 13px; margin-bottom: 10px; }
.paycard.lookup .err:empty { display: none; }
.campcard.order { box-shadow: 0 3px 3px rgba(220, 53, 69, .44); padding-right: 30px; }
.campcard.order.paid { box-shadow: 0 3px 3px rgba(25, 135, 84, .75); } .campcard.order.pending { box-shadow: 0 3px 3px rgba(255, 193, 7, .8); }
.campcard.order .tx p { font-size: 11px; line-height: 13px; } .campcard.order h2 { font-size: 12px; line-height: 15px; font-weight: 600; }
.campcard.order .st { font-size: 12px !important; line-height: 15px !important; font-weight: 600; color: #dc3545; }
.campcard.order.paid .st { color: #198754; } .campcard.order.pending .st { color: #a87400; }
.campcard.order .go-ic { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #dc3545; }
.campcard.order.paid .go-ic { color: #198754; } .campcard.order.pending .go-ic { color: #a87400; }
.page-info { margin-top: 20px; font-size: 16px; }
.pagination { margin-top: 10px; } .pagination button { font: 14px Montserrat, system-ui, sans-serif; padding: 5px 10px; margin-right: 5px; cursor: pointer; } .pagination button:disabled { cursor: default; }

/* ---------- pedido / PIX / roleta ---------- */
.pix { text-align: center; }
.pix p { margin: 8px 0; } .pix h1 { margin: 6px 0; } .pix .card { box-shadow: none; border: 1px solid var(--line); }
.pix img { background: #fff; border-radius: 10px; padding: 8px; width: 230px; height: 230px; border: 1px solid var(--line); }
.code { font: .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--panel2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin: 12px 0; text-align: left; }
.amount { font-size: 1.6rem; font-weight: 800; margin: 2px 0 12px; }
.timer { font-size: 1.7rem; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.big { font-size: 2.8rem; line-height: 1; margin-bottom: 8px; }
.pix .chips { justify-content: center; max-height: 180px; overflow-y: auto; }
.winbox { background: #fff3c4; color: #3b2c00; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-weight: 700; font-size: .9rem; }
/* ---------- roletas instantâneas (medidas e tempos da referência) ---------- */
.paycard.rl { margin: 10px 0 0; }
.rl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; line-height: 14px; }
.rl-head strong { font-size: 13.5px; font-weight: 700; } .rl-head .cnt { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rl-all { width: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 14px 20px; border: 0; border-radius: 8px; background: var(--primary-grad); color: #fff; cursor: pointer; }
.rl-all .r1 { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 15px; font-weight: 700; } .rl-all .r1 .bi { font-size: 20px; display: grid; }
.rl-all .r2 { font-size: 12px; line-height: 12px; color: rgba(255, 255, 255, .85); }
.rl-all .bi.spinning { animation: rl-turn 1s linear infinite; }
@keyframes rl-turn { to { transform: rotate(1turn); } }
.rl-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 42px; padding: 8px; margin-top: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffc409, #c29e40); color: #fff; }
.rl-item.opened { background: linear-gradient(90deg, #a13838, #e25a8b); }
.rl-item.opened.won { background: linear-gradient(90deg, #38a143, #02c7d2); }
.rl-item .tx { display: flex; align-items: center; gap: 5px; font-size: 13.5px; line-height: 1.1; font-weight: 500; }
.rl-item .tx span { font-size: 12px; }
.box-button { min-width: 64px; height: 26px; padding: 7px 13px; border: 0; border-radius: 4px; background: #fff; color: #333; font-size: 12px; line-height: 12px; font-weight: 500; cursor: pointer; }
.box-button { opacity: .7; } .box-button:hover:not(:disabled) { opacity: 1; }
.box-button:disabled { cursor: default; }
.rl-item.won .box-button { font-weight: 600; opacity: 1; }
.rl-item .gift { width: 100%; margin-top: 10px; padding: 25px 10px; border-radius: 4px; background: #f0f0f0; color: #333; text-align: center; font-size: 13.5px; }
.rl-item .gift p { margin-top: 5px; } .rl-item .gift .ic { font-size: 44px; line-height: 1; margin: 0 0 15px; }
.rl-item .gift small { font-size: 12px; } .rl-item .gift strong { font-weight: 600; text-transform: uppercase; }

.rw-modal { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0, 0, 0, .9); color: #fff; animation: rw-in .225s cubic-bezier(.4, 0, .2, 1); }
@keyframes rw-in { from { opacity: 0; } }
.rw-msg { font-size: 16px; margin-bottom: 15px; padding: 0 12px; text-align: center; opacity: 0; visibility: hidden; }
.rw-msg.show { opacity: 1; visibility: visible; }
.rw-msg.zoom { animation: zoomInOut 1.5s ease-in-out infinite; }
@keyframes zoomInOut { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .rw-msg.zoom { animation: none; } }
.rw-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.rw-wheel { position: relative; width: 80vw; max-width: 445px; height: 80vw; max-height: 445px; flex-shrink: 0; pointer-events: none; }
.rw-rot { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; transform: rotate(var(--start)); }
.rw-rot canvas { width: 98%; height: 98%; }
.rw-rot.started-spinning { animation: rw-spin 2.08s cubic-bezier(.71, -.29, .96, .9) 0s 1 normal forwards, rw-continue .6s linear 2.08s 1 normal forwards, rw-stop 6.4s cubic-bezier(0, 0, .35, 1.02) 2.68s 1 normal forwards; }
@keyframes rw-spin { from { transform: rotate(var(--start)); } to { transform: rotate(calc(var(--start) + 360deg)); } }
@keyframes rw-continue { from { transform: rotate(var(--start)); } to { transform: rotate(calc(var(--start) + 360deg)); } }
@keyframes rw-stop { from { transform: rotate(var(--start)); } to { transform: rotate(var(--final)); } }
@media (prefers-reduced-motion: reduce) { .rw-rot.started-spinning { animation: rw-stop .3s linear forwards; } }
/* ponteiro da biblioteca react-custom-roulette (MIT), nas mesmas medidas: 17% da roda, a 6 px da direita e 15 px do topo */
.rw-pointer { position: absolute; z-index: 5; width: 17%; right: 6px; top: 15px; object-fit: contain; }
.rw-go { margin-top: 10px; min-width: 151px; height: 28px; padding: 6px 30px; border: 0; border-radius: 4px; background: #d0d0d0; color: #000; font-size: 16px; line-height: 16px; font-weight: 500; cursor: pointer; }
.rw-go:disabled { cursor: default; }
.rw-go.gone { visibility: hidden; }

table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.scroll { overflow-x: auto; }
.form2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 700px) { .form2 { grid-template-columns: 1fr 1fr; } .form2 .full { grid-column: 1 / -1; } }
.form2 h3 { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-text); }
.help { font-size: .74rem; color: var(--muted); margin: 4px 0 0; }
.assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.assign input { width: 200px; padding: 7px 10px; font-size: 13px; }
.assign .err { margin: 0; flex-basis: 100%; }
.assign .err:empty { display: none; }
tr.assign-row td { background: var(--panel2); }
.logo-edit { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.logo-preview { flex: 0 0 240px; height: 60px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; background: #111; color: #aaa; font-size: 12px; }
.logo-preview img { height: 45px; width: auto; max-width: 216px; object-fit: contain; }
#logo-drop { padding: 12px; margin-bottom: 6px; }
.order-cell { white-space: nowrap; } .order-cell .grip { cursor: grab; color: var(--muted); margin-right: 4px; vertical-align: middle; }
.ord { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #333; cursor: pointer; vertical-align: middle; }
.ord:disabled { opacity: .35; cursor: default; }
tr.camp-row.dragging { opacity: .45; background: #eef5fd; }
.star { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: #b0b0b0; font-size: 20px; cursor: pointer; }
.star.on { color: #f5b800; } .star:hover { background: var(--panel2); }
.chk-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; align-items: center; }
.chk { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px !important; cursor: pointer; }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; margin-bottom: 8px; border: 2px dashed var(--line); border-radius: 8px; background: var(--panel2); color: var(--soft); text-align: center; cursor: pointer; font-size: 13px; }
.dropzone .bi { font-size: 28px; line-height: 1; color: var(--muted); } .dropzone small { color: var(--muted); font-size: 11px; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: #1976d2; background: #eef5fd; outline: none; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 120px; height: 90px; border-radius: 6px; overflow: hidden; background: #ddd; box-shadow: var(--shadow-s); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .vid { position: absolute; left: 4px; bottom: 4px; display: flex; align-items: center; gap: 2px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.thumb .cap { position: absolute; left: 4px; top: 4px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.thumb .acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.thumb .acts button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.thumb .acts .rm { background: var(--bad); }
body:not(.app) main { padding: 22px 0 40px; }

/* painel: API de consulta de CPF */
label.inline { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: .78rem; margin-top: 4px; }
label.inline input { width: auto; }
.ok-msg { color: #198754; font-size: .82rem; font-weight: 600; align-self: center; }
.ca-result { background: #f4f6f8; border: 1px solid #dde2e7; border-radius: 6px; padding: 10px 12px; font-size: .8rem; white-space: pre-wrap; margin: 10px 0 0; }
.ck-terms { font-size: .72rem; color: #6c757d; text-align: center; margin: 8px 0 0; }

/* sem-zoom */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }
* { touch-action: manipulation; }
/* iPhone dá zoom ao focar campo com fonte < 16px */
@media (hover: none) and (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }

/* excluir-campanha */
.btn.ghost.del { color: var(--bad, #c62828); border-color: currentColor; }
.btn.ghost.del:hover { background: var(--bad, #c62828); color: #fff; }

/* descricao-compacta */
.pre.desc > p { margin: 0 0 7px; } .pre.desc > p:last-child { margin-bottom: 0; }

/* meta-utmify: integrações no painel */
.tk-h { font-size: .9rem; margin: 14px 0 6px; }
.tk-log summary { cursor: pointer; font-size: .85rem; }
.tk-line { padding: 4px 0; border-bottom: 1px solid #eef0f2; font-size: .78rem; word-break: break-word; }

/* admin-paginas: painel dividido em Dashboard / Campanhas / Clientes / Pedidos */
main.wrap.adm { max-width: 1360px; padding-left: 28px; padding-right: 28px; box-sizing: border-box; }
#panel:not(.hidden) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--panel); border-radius: 8px; box-shadow: var(--shadow-s); }
.adm-nav a, .adm-out { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--soft); font: 600 .88rem Montserrat, system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: left; }
.adm-nav a .bi, .adm-out .bi { font-size: 1.05rem; color: var(--muted); }
.adm-nav a:hover, .adm-out:hover { background: var(--panel2); color: var(--text); }
.adm-nav a[aria-current="page"] { background: var(--deep); color: #fff; }
.adm-nav a[aria-current="page"] .bi { color: var(--primary); }
.adm-clock { margin: 10px 12px 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.adm-out { margin-top: 2px; }
.adm-main { min-width: 0; }
.adm-page { display: flex; flex-direction: column; gap: 18px; }
.adm-page.hidden { display: none; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.adm-head h1 { font-size: 22px; margin: 0 0 2px; }
.adm-head .help { margin: 0; max-width: 640px; }
.adm-head .btn .bi { font-size: 1rem; }
.nowrap { white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--panel); border-radius: 8px; box-shadow: var(--shadow-s); border-left: 3px solid var(--line); }
.kpi.strong { border-left-color: var(--primary); }
.kpi-l { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.kpi-v { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-n { font-size: .74rem; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; padding-top: 6px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.day-bar { width: 100%; max-width: 34px; background: #b9bec4; border-radius: 3px 3px 0 0; }
.day.today .day-bar { background: var(--primary); }
.day-v { font-size: .62rem; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.day-l { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.fav-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fav-preview { flex: 0 0 240px; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); font-size: 22px; }
.fav-preview img { width: 32px; height: 32px; object-fit: contain; }
#fav-drop { padding: 12px; margin-bottom: 6px; }
@media (max-width: 860px) {
  #panel:not(.hidden) { grid-template-columns: 1fr; gap: 14px; }
  main.wrap.adm { padding-left: 12px; padding-right: 12px; padding-top: 0; }
  .adm-nav { top: 0; z-index: 5; display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px; border-radius: 0 0 8px 8px; }
  .adm-nav a, .adm-out { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .68rem; text-align: center; }
  .adm-nav a .bi, .adm-out .bi { font-size: 1.15rem; }
  .adm-clock { display: none; }
  .adm-out { margin: 0; justify-content: center; }
  .days { gap: 3px; } .day-v { display: none; }
}

/* sem-corte-lateral: nada pode empurrar a página para o lado (iPhone deixa arrastar e o site parece cortado) */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
img, video, iframe, canvas, svg { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }

/* clientes-1linha: todas as linhas da tabela de clientes com a mesma altura */
tr.cu-row td { white-space: nowrap; vertical-align: middle; height: 42px; padding-top: 6px; padding-bottom: 6px; }
tr.cu-row td.cu-name .cu-n { max-width: 185px; }
tr.cu-row .cell-1 { max-width: 140px; }
.cell-row { display: flex; align-items: center; gap: 6px; }
.cell-1 { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.cell-more > div { padding-top: 3px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.more-btn { flex: 0 0 auto; padding: 2px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--soft); font: 600 .7rem Montserrat, system-ui, sans-serif; cursor: pointer; }
.more-btn:hover { border-color: var(--text); color: var(--text); }
.more-btn[aria-expanded="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
tr.cu-row td { padding-left: 6px; padding-right: 6px; }
.pend-ic { color: #c99400; font-size: .95rem; vertical-align: middle; margin-left: 2px; cursor: help; }

/* pedidos-1linha: linhas da tabela de pedidos com a mesma altura */
tr.ord-row td { white-space: nowrap; vertical-align: middle; height: 58px; padding: 6px; }
tr.ord-row .od-name { max-width: 170px; } tr.ord-row .od-camp { max-width: 150px; }
tr.ord-row .od-nums { display: block; max-width: 150px; } tr.ord-row .od-e2e { display: block; max-width: 130px; }
tr.ord-row .btn.sm { padding: 5px 9px; }
tr.ord-nums-row td { background: var(--panel2); }
.od-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 220px; overflow-y: auto; }
.od-chips span { padding: 3px 7px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); font-size: .76rem; font-variant-numeric: tabular-nums; }

/* editor-visual: edição da campanha com prévia clicável */
.adm-page.editing > :not(#form) { display: none; }
.ed-card { padding: 0; overflow: visible; }
.ed-top { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
.ed-actions { display: flex; gap: 8px; align-items: center; }
.ed-actions .btn .bi { font-size: 1rem; }
.ed-grid { display: grid; grid-template-columns: 412px minmax(0, 1fr); gap: 22px; padding: 16px; align-items: start; }
.ed-phone { position: sticky; top: 74px; height: calc(100vh - 100px); min-height: 520px; padding: 10px; border-radius: 26px; background: #1b1b1b; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.ed-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 18px; background: var(--page); }
.ed-side { min-width: 0; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ed-tabs button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--soft); font: 600 .76rem Montserrat, system-ui, sans-serif; cursor: pointer; }
.ed-tabs button:hover { border-color: var(--text); color: var(--text); }
.ed-tabs button[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.ed-head h3 { margin: 0; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text); border: 0; padding: 0; }
.ed-head .help { margin: 3px 0 12px; }
.ed-card .form2 { grid-template-columns: 1fr 1fr; }
.ed-card .form2 > h3, .ed-card .form2 > .ed-off { display: none !important; }
.ed-card .form2 > [data-group] { grid-column: auto; }
.ed-card .form2 > [data-group="media"], .ed-card .form2 > [data-group="desc"], .ed-card .form2 > [data-group="title"], .ed-card .form2 > [data-group="legal"]:has(#beneficiary) { grid-column: 1 / -1; }
.ed-card #description { min-height: 340px; }
.ed-bottom { margin-top: 16px; } .ed-bottom .btn { width: auto; }
@media (max-width: 860px) {
  .ed-grid { grid-template-columns: 1fr; padding: 10px; }
  .ed-phone { position: relative; top: 0; height: 68vh; min-height: 420px; }
  .ed-card .form2 { grid-template-columns: 1fr; }
}

/* página da campanha dentro do editor: partes clicáveis */
body.editor [data-edit] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 2px; transition: outline-color .12s; }
body.editor [data-edit]:hover { outline-color: rgba(25, 118, 210, .75); }
body.editor [data-edit].edit-on { outline: 2px solid #1976d2; }
body.editor .hero .stage[data-edit] { outline-offset: -3px; }
body.editor .fab, body.editor .notice { display: none; }

/* premios-no-editor */
#pz-card #pz-form > div { flex: 1 1 150px; }
#pz-card #pz-form > div.hidden { display: none; }
#pz-card .scroll { margin-top: 10px; }
body.editor .ed-ph { display: flex; flex-direction: column; gap: 2px; align-items: center; margin: 4px 0 12px; padding: 14px; border: 2px dashed var(--line); border-radius: 6px; background: var(--panel); font-size: 13px; color: var(--muted); text-align: center; }
body.editor .ed-ph b { color: var(--text); font-size: 15px; }
#pz-card th, #pz-card td { padding: 8px 5px; }
#pz-card td:last-child > div { flex-wrap: wrap; justify-content: flex-end; }

/* excluir-premios */
.pz-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 10px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.pz-bulk.hidden { display: none; }
.pz-bulk label.inline { margin: 0; font-size: .82rem; font-weight: 600; }
.pz-bulk .btn { margin-left: auto; } .pz-bulk .btn:disabled { opacity: .45; cursor: default; }
.pz-bulk .btn .bi, #prizes .del .bi { font-size: .95rem; }
th.pz-ck, td.pz-ck { width: 28px; padding-right: 0 !important; }
td.pz-ck input, #pz-all { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
#prizes td:nth-child(-n+5) { white-space: nowrap; }

/* contador-centro: input do tamanho do número, "N números" centralizado */
.qtybox input { width: 2.4ch; min-width: 1.4ch; text-align: center; }

/* reflexo-roleta: brilho passando no Comprar agora (a cada 4s) + faixas da roleta como a referência */
.buynow { position: relative; overflow: hidden; }
.buynow::after { content: ""; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%; background: rgba(255, 255, 255, .2); transform: rotate(30deg); animation: btnLayer 4s ease infinite; pointer-events: none; }
.buynow:disabled::after { display: none; }
@keyframes btnLayer { 0% { left: -120%; } 15% { left: 120%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .buynow::after { animation: none; display: none; } }
.tier .p.info { display: block; }
.tier .foot { display: none; }
@media (max-width: 600px) { .tier .p.info { display: none; } .tier .foot { display: block; } }

/* pacotes-ref: botões +3/+5/+10 como tr242.me (preto, R$ colado com 3px, legenda a 60%) */
.pack b small.cur { padding-left: 3px; }
.pack span { opacity: .6; }

/* rodape-ref: compartilhar, selo 18+ e rodapé como tr242.me */
.share a, .share button { display: flex; align-items: center; justify-content: center; }
.share svg.fa { width: 20px; height: 16px; color: #fff; }
.age.out { gap: 10px; margin: 15px auto 0; padding: 0 10px; justify-content: center; }
.age.out .c { width: 42px; height: 42px; box-sizing: border-box; background: #e4e4e4; border: 2px solid rgba(32, 32, 32, .44); color: #202020; font-size: 18px; font-weight: 800; }
.age.out > span:last-child { font-size: 10.5px; line-height: 15.75px; color: #202020; }
.age.out b { color: #202020; font-weight: 600; }
footer { margin-top: 15px; padding: 35px 10px 76px; background: #e4e4e4; color: #000; display: flex; flex-direction: column; align-items: center; }
.footer-social a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #333; }
.footer-social svg.fa { width: 20px; height: 35px; }
.footer-copy p { margin: 0; font-size: 10px; line-height: 15px; font-weight: 500; color: #000; }

/* rodape-admin: "Desenvolvido por" e botões flutuantes empilhados à direita */
.footer-copy { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.footer-copy .dev { display: flex; align-items: center; justify-content: center; gap: 4px; }
.footer-copy .dev a { display: flex; align-items: center; color: #333; text-decoration: none; }
.footer-copy .dev img { height: 20px; width: auto; display: block; }
.footer-copy .dev b { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #333; }
.fab { display: flex; flex-direction: column; gap: 6px; width: auto; height: auto; background: none; border-radius: 0; place-items: initial; }
.fab .fab-btn { width: 34px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.fab .fab-btn svg { width: 20px; height: 20px; }
.fab .whatsapp { background: #198754; } .fab .telegram { background: #1da1f2; }
.fab .instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* contador-reta: bloco "RETA FINAL!" igual à referência */
.cd-wrap:empty { display: none; }
.cd { margin: 0 0 8px; padding: 10px; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary), #000 25%), var(--primary)); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; letter-spacing: .5px; }
.cd h3 { margin: 0; font-size: 15.5px; line-height: 15.5px; font-weight: 600; text-align: center; color: #fff; }
.cd-bar { position: relative; width: 100%; height: 2rem; border-radius: 4px; overflow: hidden; display: flex; background: linear-gradient(90deg, rgba(0,0,0,.25), color-mix(in srgb, var(--primary), #000 40%)); }
.cd-bar i { display: block; height: 100%; background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; animation: cd-stripes 1s linear infinite; }
.cd-time { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; opacity: .75; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes cd-stripes { from { background-position: 0 0; } to { background-position: 1rem 0; } }
.cd-texts { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-texts p { margin: 0; font-size: 12px; line-height: 12px; text-align: center; color: #fff; }
.cd-texts p.cd-when { font-size: 10.5px; line-height: 10.5px; }
@media (prefers-reduced-motion: reduce) { .cd-bar i { animation: none; } }

/* integracoes-toggle */
.int-list { display: flex; flex-direction: column; gap: 8px; }
.int-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.int-row.open { border-color: var(--primary); }
.int-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; display: grid; place-items: center; background: var(--panel2, #f1f1f1); font-size: 18px; color: var(--muted); }
.int-row.on .int-ic { color: #198754; background: rgba(25,135,84,.1); }
.int-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .int-tx b { font-size: .92rem; } .int-tx small { font-size: .75rem; color: var(--muted); }
.int-st { font-size: .75rem; font-weight: 600; color: var(--muted); min-width: 64px; text-align: right; } .int-row.on .int-st { color: #198754; }
.sw { position: relative; width: 42px; height: 24px; flex: 0 0 42px; cursor: pointer; margin: 0; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw span { position: absolute; inset: 0; border-radius: 99px; background: #c9c9c9; transition: background .15s; pointer-events: none; }
.sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw input:checked + span { background: #198754; } .sw input:checked + span::after { transform: translateX(18px); }
.sw input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 560px) { .int-row { flex-wrap: wrap; } .int-st { min-width: 0; } .int-cfg { width: 100%; } }

/* integracoes-toggle: configurações abrem dentro do container */
.int-item { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.int-item.open { border-color: var(--primary); }
.int-item .int-row { border: 0; border-radius: 0; }
.int-item .int-panel { margin: 0; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 12px 12px; max-width: 136px; overflow: hidden; }
.int-item .int-panel > .help:first-of-type { margin-top: 0 !important; }
#tk-form.int-panel > p.help:first-of-type, .int-item .int-panel .tk-h { display: none; }
#int-err:empty { display: none; }

/* aparencia-visual: prévia clicável do rodapé/botões/logo */
body.site-editor [data-site-edit] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 3px; transition: outline-color .12s; }
body.site-editor [data-site-edit]:hover { outline-color: rgba(25, 118, 210, .75); }
body.site-editor [data-site-edit].edit-on { outline: 2px solid #1976d2; }
body.site-editor .site-ph { border: 2px dashed #b9b9b9; border-radius: 6px; padding: 6px 10px; color: #777; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.5); }
body.site-editor .fab-btn.site-ph { padding: 0; color: #777; font-size: 18px; box-shadow: none; }
body.site-editor .age.out.site-ph { max-width: 260px; justify-content: center; }

/* premios-icones: 3 botões de ícone lado a lado; situação e ganhador na mesma coluna */
.pz-ibs { display: flex; gap: 4px; justify-content: flex-end; }
.pz-ib { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--soft); cursor: pointer; font-size: 15px; padding: 0; }
.pz-ib:hover { border-color: var(--text); color: var(--text); }
.pz-ib.ok, .pz-ib.won { color: #198754; } .pz-ib.ok:hover, .pz-ib.won:hover { border-color: #198754; background: rgba(25,135,84,.08); }
.pz-ib.done { color: #fff; background: #198754; border-color: #198754; }
.pz-ib.ed { color: #1976d2; } .pz-ib.ed:hover { border-color: #1976d2; background: rgba(25,118,210,.08); }
.pz-ib.del { color: #dc3545; } .pz-ib.del:hover { border-color: #dc3545; background: rgba(220,53,69,.08); }
#prizes td.pz-act, th.pz-act { width: 1%; white-space: nowrap; }
#prizes td.pz-sit { white-space: normal; }
.pz-win b { font-weight: 600; } .pz-win .small { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#pz-card td.pz-act > .pz-ibs { flex-wrap: nowrap; }

/* premios-inline: edição e atribuição na própria linha */
#prizes tr.pz-editing { background: rgba(25,118,210,.05); }
#prizes .pz-in { width: 100%; min-width: 0; padding: 5px 7px; font-size: .82rem; height: 30px; box-sizing: border-box; }
#prizes .pz-in.pz-num { max-width: 90px; }
#prizes select.pz-in { min-width: 92px; }
#prizes td.pz-sit .pz-in { min-width: 200px; }
.pz-ib.save { color: #fff; background: #198754; border-color: #198754; } .pz-ib.save:hover { filter: brightness(1.1); }
.pz-ib.cancel { color: var(--soft); }
#prizes .pz-err { margin-top: 4px; font-size: .75rem; white-space: normal; }
#prizes td:nth-child(3) .pz-in { min-width: 130px; } #prizes td.pz-sit .pz-in { min-width: 180px; }

/* campanhas-visual: um container só; o editor abre dentro dele */
#cp-card.editing > #cp-top, #cp-card.editing > #cp-list { display: none; }
#cp-card > #form { margin: 0; box-shadow: none; border: 0; border-radius: 0; background: transparent; }
#cp-card .cp-table { overflow-x: auto; }
#cp-card .cp-table table { min-width: 640px; }
body.camp-editor a[href^="/campanha/"] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 2px; transition: outline-color .12s; }
body.camp-editor a[href^="/campanha/"]:hover { outline-color: rgba(25, 118, 210, .8); }
body.camp-editor .fab { display: none; }

/* campanhas-compacta */
#cp-card .cp-table table { min-width: 0; width: 100%; }
#cp-card .cp-table th, #cp-card .cp-table td { padding: 10px 6px; vertical-align: middle; }
#camps td.cp-info { white-space: normal; width: 100%; }
#camps .cp-title a { font-weight: 600; } 
#camps .cp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
#camps .cp-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .78rem; color: var(--muted); }
#camps .cp-stats b { color: var(--text); font-weight: 600; }
#camps td.pz-act { width: 1%; white-space: nowrap; }
#camps .order-cell { white-space: nowrap; width: 1%; }
@media (max-width: 1180px) { #cp-list.ed-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 16px; } }
@media (max-width: 860px) { #cp-list.ed-grid { grid-template-columns: 1fr; } }

/* tema-cor */
.ap-theme { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-mode { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel2); cursor: pointer; font: 600 .74rem Montserrat, system-ui, sans-serif; }
.ap-mode span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 16px; color: var(--muted); }
.ap-mode[data-mode="light"] span[data-m="light"] { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ap-mode[data-mode="dark"] span[data-m="dark"] { background: #111; color: #fff; }
.ap-color { display: inline-flex; align-items: center; gap: 6px; margin: 0; font: 600 .74rem Montserrat, system-ui, sans-serif; cursor: pointer; }
.ap-color input { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.ap-swatches { display: flex; gap: 4px; }
.ap-sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ap-sw.on { box-shadow: 0 0 0 2px var(--text); }
#ap-card .ed-actions { flex-wrap: wrap; justify-content: flex-end; }
/* admin-escuro: setas de ordem seguem o tema */
.order-cell .ord { background: var(--panel); color: var(--soft); border-color: var(--line); }
.order-cell .ord:disabled { opacity: .35; }

/* paleta */
.ap-colors { display: flex; flex-direction: column; gap: 14px; }
.ap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-row.ap-col { flex-direction: column; align-items: stretch; gap: 6px; }
.ap-lbl { font-size: .8rem; font-weight: 600; color: var(--soft); min-width: 96px; }
.ap-cur { width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ap-swatches { flex-wrap: wrap; gap: 6px; } .ap-colors .ap-sw { width: 28px; height: 28px; }
.ap-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); outline: none; padding: 0; border: 0; }
.ap-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #333; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.ap-hue::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #333; cursor: pointer; }
.ap-tones { display: flex; flex-direction: column; gap: 4px; }
.ap-tone-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.ap-tone { height: 30px; border: 0; border-radius: 5px; cursor: pointer; padding: 0; transition: transform .1s; }
.ap-tone:hover { transform: scale(1.08); }
.ap-tone.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
#ap-contrast:empty { display: none; } #ap-contrast { color: #b07600; font-weight: 600; }
/* campanhas-cabecalho: cabeçalho só com título, ajuda no rodapé e tudo cabendo na tela */
#cp-card .ed-top { padding: 10px 16px; }
#cp-card.editing > #cp-foot { display: none; }
#cp-card .cp-foot { margin: 0; padding: 8px 16px 12px; border-top: 1px solid var(--line); }
#cp-card .cp-new { margin-bottom: 10px; }
#cp-card .ed-grid { padding: 12px 16px; }
#cp-card .ed-phone { position: relative; top: 0; height: calc(100vh - 144px); min-height: 460px; }
#cp-card .ed-side { max-height: calc(100vh - 144px); min-height: 460px; overflow-y: auto; padding-right: 4px; }
#cp-card #form .ed-top { position: static; }
@media (max-width: 860px) { #cp-card .ed-side { max-height: none; overflow: visible; } #cp-card .ed-phone { height: 68vh; } }
/* camp-tela-cheia: prévia ocupa todo o lado esquerdo; título acima das opções da direita; rolagem discreta */
#cp-card .ed-grid { padding: 10px; gap: 18px; align-items: stretch; }
#cp-card .ed-phone { height: calc(100vh - 82px); min-height: 480px; padding: 4px; border-radius: 18px; }
#cp-card .ed-phone iframe { border-radius: 14px; }
#cp-card .ed-side { max-height: calc(100vh - 82px); min-height: 480px; overflow-y: auto; padding: 0 6px 0 0; }
#cp-card .cp-head { position: sticky; top: 0; z-index: 4; background: var(--panel); padding: 6px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
#cp-card #form .ed-top.cp-head { display: flex; padding: 6px 0 10px; }
#cp-card .cp-new { margin: 6px 0 10px; }
#cp-card .ed-side, html.in-editor { scrollbar-width: thin; scrollbar-color: rgba(127,127,127,.35) transparent; }
#cp-card .ed-side::-webkit-scrollbar, html.in-editor::-webkit-scrollbar { width: 6px; height: 6px; }
#cp-card .ed-side::-webkit-scrollbar-track, html.in-editor::-webkit-scrollbar-track { background: transparent; }
#cp-card .ed-side::-webkit-scrollbar-thumb, html.in-editor::-webkit-scrollbar-thumb { background: rgba(127,127,127,.35); border-radius: 6px; }
#cp-card .ed-side::-webkit-scrollbar-thumb:hover, html.in-editor::-webkit-scrollbar-thumb:hover { background: rgba(127,127,127,.6); }
@media (max-width: 860px) { #cp-card .ed-phone { height: 68vh; } #cp-card .ed-side { max-height: none; } }
#cp-card #form .ed-top.cp-head { position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
/* camp-borda-reta: moldura fina e cantos retos na prévia */
#cp-card .ed-phone { padding: 2px; border-radius: 0; box-shadow: none; }
#cp-card .ed-phone iframe { border-radius: 0; }
/* sem-scroll-lateral: rola com mouse/toque, mas a barra não aparece (prévias e coluna da direita) */
#cp-card .ed-side, html.in-editor { scrollbar-width: none; overflow-x: hidden; }
#cp-card .ed-side::-webkit-scrollbar, html.in-editor::-webkit-scrollbar { display: none; width: 0; height: 0; }
#cp-card .ed-side { padding-right: 0; }
/* aparencia-formato: mesmo formato do container de Campanhas */
#ap-card .ed-grid { padding: 10px; gap: 18px; align-items: stretch; }
#ap-card .ed-phone { position: relative; top: 0; height: calc(100vh - 82px); min-height: 480px; padding: 2px; border-radius: 0; box-shadow: none; }
#ap-card .ed-phone iframe { border-radius: 0; }
#ap-card .ed-side { max-height: calc(100vh - 82px); min-height: 480px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
#ap-card .ed-side::-webkit-scrollbar { display: none; width: 0; height: 0; }
#ap-card .cp-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--panel); padding: 6px 0 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
@media (max-width: 860px) { #ap-card .ed-phone { height: 68vh; } #ap-card .ed-side { max-height: none; } }
@media (max-width: 860px) {
  .adm-nav { grid-template-columns: repeat(5, minmax(0, 1fr)) 34px 34px; gap: 0; }
  .adm-nav .adm-out span { display: none; }
  .adm-nav a span { font-size: .62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .adm-nav .adm-out { justify-content: center; }
}

/* paginacao-texto: Anterior/Próxima só com o texto, sem contorno */
.pagination button { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 5px 8px; color: inherit; -webkit-appearance: none; appearance: none; }
.pagination button:not(:disabled):hover { text-decoration: underline; }
.pagination button:disabled { opacity: .4; }

/* fab-ref: botões flutuantes iguais ao tr242.me (coluna a 65% da altura, 34x30, cores lisas, sem sombra) */
.fab { top: 65%; bottom: auto; right: 10px; gap: 8px; }
.fab .fab-btn { box-shadow: none; padding: 5px 7px; box-sizing: border-box; }
.fab .whatsapp { background: #198754; } .fab .telegram { background: #1da1f2; }
.fab .instagram { background: #c13584; }
.fab .instagram.v2 { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fab .support { background: #ffa000; }

/* selo18-fixo: medidas do tr242.me (.mais18-*): opacidade .75, 18+ centralizado no círculo, 2 linhas de 10,5px */
.age.out { opacity: .75; letter-spacing: .1px; }
.age.out .c { display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; padding: 0; }
.age.out > span:last-child { display: flex; flex-direction: column; }
.age.out > span:last-child > span, .age.out b { display: block; font-size: 10.5px; line-height: 1.5; color: #202020; }

/* menu-svg: ícones do menu iguais ao tr242.me */
.toggle-menu { color: #fff; }
.toggle-menu .mi-menu { width: 28px; height: 28px; }
.toggle-menu .mi-close { width: 24px; height: 24px; }
.menu a .mi { width: 20px; height: 20px; flex-shrink: 0; margin-right: 15px; }
.menu .login-link .mi { width: 30px; height: 30px; flex-shrink: 0; margin-right: 10px; }

/* desc-ref: descrição com as medidas do tr242.me (título 36px, linha divisória, texto 14/18px, linha em branco = 18px, caixa de até 200px com rolagem) */
details.reg summary { line-height: 13px; }
details.reg summary .desc-arrow { width: 16px; height: 16px; flex-shrink: 0; display: block; transition: transform .3s; }
details.reg[open] summary .desc-arrow { transform: rotate(180deg); }
details.reg .in { border-top: 1px solid rgba(0, 0, 0, .08); }
.pre.desc { line-height: 18px; max-height: 200px; overflow-y: auto; overflow-wrap: break-word; }
.pre.desc > p { margin: 0 0 18px; } .pre.desc > p:last-child { margin-bottom: 0; }
/* rodape-ref: rodapé com as medidas do tr242.me (35px em cima e embaixo, linhas coladas) */
footer { padding: 35px 10px; }
.footer-copy { gap: 0; }
.footer-copy .dev { gap: 4px; }

/* proporcoes-ref: ajustes finos para bater com o tr242.me */
.mine { line-height: normal; gap: 5px; }
.mine .cart-svg { width: 17px; height: 17px; margin-right: 5px; flex-shrink: 0; display: block; }
.meta { line-height: 12px; }
.pill.price small { line-height: 12px; }
.slogan { font-weight: 900; }
/* rolagem da descrição igual ao tr242.me: barra de 3px cinza clara, arredondada */
.pre.desc::-webkit-scrollbar { width: 3px; }
.pre.desc::-webkit-scrollbar-track { border-radius: 13px; }
.pre.desc::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 13px; }
.pre.desc::-webkit-scrollbar-track:hover { background-color: #eee; }
.pre.desc::-webkit-scrollbar-thumb:hover { background-color: #999; }
.pack b small { line-height: 12px; } .pack b small:first-child { line-height: 16px; }
.buynow .t { padding-bottom: 1px; }
.qtybox .field { height: 37px; }
.slogan { border-radius: 0; }
/* proporcoes-ref: mesma cor do tr242.me (texto a 70%) na frase dos pacotes e no título da descrição */
.slogan, details.reg summary { color: color-mix(in srgb, var(--text) 70%, transparent); }

/* modal-trava: tremida do tr242.me (.highlight-dialog: 0,2s, 3px para cada lado) */
@keyframes sheet-shake { 0% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 100% { transform: translateX(0); } }
.sheet.shake { animation: sheet-shake .2s ease-in-out; }
.modal { overscroll-behavior: contain; }

/* upsell: cores escolhidas na campanha (padrão = amarelo e verde de antes) e efeitos do botão */
.upsell:not(.active) { background: linear-gradient(color-mix(in srgb, var(--up-bg, #fde6a4) 45%, #fff), var(--up-bg, #fde6a4), var(--up-end, color-mix(in srgb, var(--up-bg, #fde6a4) 90%, #000))); }
.upsell:not(.active) button { background: linear-gradient(90deg, color-mix(in srgb, var(--up-btn, #69c3a5) 70%, #fff), var(--up-btn, #69c3a5)); }
@keyframes up-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes up-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.upsell button.fx-pulse { animation: up-pulse 1s ease-in-out infinite; }
.upsell button.fx-blink { animation: up-blink 1s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .upsell button.fx-pulse, .upsell button.fx-blink { animation: none; } }
/* upsell: seletor de cor do painel com a amostra visível */
#form input[type=color] { height: 44px; padding: 4px; cursor: pointer; background: var(--panel, #fff); }
#form input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
#form input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
#form input[type=color]::-moz-color-swatch { border: 0; border-radius: 4px; }

/* upsell-timer: contagem regressiva da oferta */
.up-timer { width: 100%; max-width: 260px; margin: 8px auto 0; font-size: 12px; font-weight: 600; color: #5b5b5b; }
.up-timer i { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.up-timer b { display: block; height: 100%; width: 100%; background: var(--up-btn, #69c3a5); transition: width .25s linear; }
.up-timer.urgent { color: #c22636; } .up-timer.urgent b { background: #dc3545; }
/* timer v2: relógio XX:XX grande em cima e "Oferta expira em" pequeno e centralizado embaixo (sem barra) */
.up-timer .clock { display: none; }
.up-timer.v2 { text-align: center; }
.up-timer.v2 .clock { display: block; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: 1px; color: #333; font-variant-numeric: tabular-nums; }
.up-timer.v2 span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 500; color: #6d6d6d; }
.up-timer.v2 i { display: none; }
.up-timer.v2.urgent .clock { color: #c22636; }
/* timer v2: relógio XX:XX grande em cima e "Oferta expira em" pequeno e centralizado embaixo (sem barra) */
.up-timer .clock { display: none; }
.up-timer.v2 { text-align: center; }
.up-timer.v2 .clock { display: block; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: 1px; color: #333; font-variant-numeric: tabular-nums; }
.up-timer.v2 span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 500; color: #6d6d6d; }
.up-timer.v2 i { display: none; }
.up-timer.v2.urgent .clock { color: #c22636; }
.up-timer.v2 span { display: none; } /* v2: sem o texto "expira" */

/* contorno-foco: o contorno vermelho do campo selecionado (2px por fora) era cortado nas laterais pela coluna com rolagem.
   A coluna ganha 4px de folga de cada lado (compensados com margem negativa, então os campos não mudam de lugar). */
.ed-card .ed-side, #ap-card .ed-side { padding-left: 4px !important; padding-right: 4px !important; margin-left: -4px; margin-right: -4px; }
.ed-card .ed-side input:focus, .ed-card .ed-side select:focus, .ed-card .ed-side textarea:focus,
#ap-card .ed-side input:focus, #ap-card .ed-side select:focus, #ap-card .ed-side textarea:focus { outline-offset: 1px; }

/* perfil-dash: card "Perfil dos compradores" no Dashboard */
#pf-card .pf-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 12px; }
#pf-card h2 { margin-bottom: 2px; }
#pf-card .pf-top .help { margin: 0; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-filters select { width: auto; min-width: 0; max-width: 220px; height: 32px; padding: 0 8px; font-size: .8rem; }
.pf-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pf-seg button { background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .76rem; font-weight: 600; padding: 0 10px; height: 30px; cursor: pointer; }
.pf-seg button:last-child { border-right: 0; }
.pf-seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.pf-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.pf-kpi:last-child { border-right: 0; }
.pf-kpi b { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-box { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.pf-box.pf-wide { grid-column: 1 / -1; }
.pf-box h3 { margin: 0 0 10px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pf-box h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; color: var(--soft); }
.pf-bars { display: flex; flex-direction: column; gap: 7px; }
.pf-states { max-height: 330px; overflow-y: auto; padding-right: 4px; }
.pf-row { display: grid; grid-template-columns: 96px minmax(40px, 1fr) 82px 58px; align-items: center; gap: 8px; font-size: .78rem; }
.pf-states .pf-row { grid-template-columns: 64px minmax(40px, 1fr) 82px 58px; }
.pf-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.pf-track { height: 12px; background: var(--panel2); border-radius: 2px; overflow: hidden; }
.pf-fill { display: block; height: 100%; background: var(--primary); border-radius: 0 2px 2px 0; }
.pf-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-n { text-align: right; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-row.low { opacity: .45; }
.pf-heat { display: grid; grid-template-columns: 96px repeat(var(--cols, 6), minmax(0, 1fr)); gap: 4px; font-size: .74rem; }
.pf-hh { text-align: center; color: var(--muted); font-weight: 600; font-size: .7rem; }
.pf-hl { display: flex; align-items: center; color: var(--text); white-space: nowrap; }
.pf-hc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 46px; border-radius: 4px;
  background: color-mix(in srgb, var(--primary) calc(var(--k, 0) * 100%), var(--panel2)); color: var(--text); font-variant-numeric: tabular-nums; }
.pf-hc b { font-weight: 600; white-space: nowrap; }
.pf-hc small { font-size: .64rem; opacity: .75; }
.pf-hc.dark { color: #fff; }
.pf-hc.low { outline: 1px dashed var(--line); outline-offset: -1px; }
.pf-hc.low b { opacity: .7; }
.pf-hc.empty { background: transparent; color: var(--soft); border: 1px dashed var(--line); }
.pf-note { margin: 12px 0 0; font-size: .72rem; }
@media (max-width: 860px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-row, .pf-states .pf-row { grid-template-columns: 74px minmax(30px, 1fr) 74px 48px; gap: 6px; }
  .pf-heat { grid-template-columns: 62px repeat(var(--cols, 6), minmax(0, 1fr)); gap: 3px; font-size: .64rem; }
  .pf-hc { min-height: 40px; } .pf-hc small { display: none; }
  .pf-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
}
.pf-hc .pf-short { display: none; }
@media (max-width: 860px) {
  .pf-hc .pf-full { display: none; } .pf-hc .pf-short { display: block; }
  .pf-hl { font-size: .62rem; white-space: normal; line-height: 1.1; }
  .pf-row, .pf-states .pf-row { grid-template-columns: 70px minmax(30px, 1fr) auto 46px; font-size: .74rem; }
}
/* pix-acoes: ações do comprador na tela do Pix (lista de pedidos do painel) */
tr.ord-row .od-e2e.pa-line { display: flex; gap: 3px; margin-top: 3px; max-width: 136px; overflow: hidden; }
tr.ord-row .pa-on { font-size: 10px; line-height: 15px; padding: 0 4px; white-space: nowrap; border-radius: 8px; background: #e3eefc; color: #1d4f91; }
tr.ord-row .pa-warn { background: #fdecd2; color: #8a4b00; }
/* upsell-marca: selo da oferta sob o valor */
tr.ord-row .pa-ok { background: #dcf3e6; color: #1b6b40; }
tr.ord-row .pa-line:not(.od-e2e) { display: flex; margin-top: 3px; }
tr.ord-row .pa-off { background: #ececec; color: #555; }
/* paginas-50: paginador de Pedidos e Clientes no painel */
.pagination.pg50 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 12px; }
.pagination.pg50 button.cur { font-weight: 600; text-decoration: underline; opacity: 1; }
.pagination.pg50 .small { margin-left: auto; }
/* roleta-premios: 4 linhas prêmio / % / estoque no editor */
.rp-box, .ed-card .form2 > .rp-box[data-group] { grid-column: 1 / -1; }
.rp-head, .rp-row { display: grid; grid-template-columns: 18px minmax(140px, 1fr) 90px 90px 100px; gap: 8px; align-items: center; }
.rp-row { margin-top: 6px; } .rp-row .rp-n { font-weight: 600; opacity: .6; text-align: center; }
.rp-row input { min-width: 0; }
.rp-row.rp-tn input:disabled { background: var(--panel2); color: inherit; opacity: .8; }

/* caixa-raspadinha: caixa premiada e raspadinha no pedido */
.paycard.gm { margin-top: 10px; }
.gm-err { color: #c62828; font-size: 13px; margin: 6px 0 0; } .gm-err:empty { display: none; }
.gm-item .gift .ic img { display: block; margin: 0 auto; }
.gm-modal .rw-msg { font-size: 24px; line-height: 1.25; }
.bx-gif { width: 300px; height: 300px; max-width: 80vw; max-height: 80vw; object-fit: contain; }
.sc-hint { margin: 0 0 14px; font-size: 15px; min-height: 1.2em; text-align: center; }
.sc-card { position: relative; width: 230px; height: 230px; border-radius: 12px; overflow: hidden; background: #fff; color: #222; user-select: none; -webkit-user-select: none; }
.sc-res { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.sc-res h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.sc-res p { margin: 0; opacity: .7; }
.sc-res strong { margin-top: 8px; font-size: 18px; text-transform: uppercase; }
.sc-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; transition: opacity 1s; }
.sc-cv.gone { opacity: 0; pointer-events: none; }
.sc-all { margin-top: 16px; padding: 6px 10px; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; text-decoration: underline; opacity: .8; cursor: pointer; }

/* vip-poscompra: quadro do pedido aprovado (medidas do tr242.me) */
.paycard.co-card { margin-top: 10px; padding: 28px 20px; text-align: center; background: #fff; }
.co-card h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.05; font-weight: 600; text-transform: uppercase; color: #111; }
.co-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.25; color: #111; }
.co-btn { display: inline-block; min-width: 200px; padding: 9px 30px; border-radius: 4px; background: var(--primary, #dc3545); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 1px 5px rgba(0,0,0,.12); }
.co-btn:hover { filter: brightness(1.06); }

/* previas-lista: prévias do pós-compra e do Grupo VIP no painel */
.ed-co-ov { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.ed-co-wrap { width: 100%; max-width: 460px; }
.ed-co-cap { margin: 0 0 8px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; }
.ed-co-ov .paycard.co-card { margin: 0; box-shadow: 0 0 0 2px var(--primary, #dc3545); }
.ed-lists { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.ed-co-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #fff3cd; color: #5c4400; font-size: 13px; text-align: center; }
.wpp-card .pv-tag { position: relative; align-self: flex-start; margin: -4px 0 -6px; padding: 3px 8px; border-radius: 4px; background: #111; color: #fff; font-size: 11px; font-weight: 700; }

/* pos-demo: demonstração de pedido aprovado no painel */
body.demo-mode .co-card, body.demo-mode .wpp-card, body.demo-mode .group-btn { cursor: pointer; }
body.demo-mode .edit-on { outline: 2px solid #1976d2; outline-offset: 2px; }
.co-card .demo-tag { display: inline-block; margin: 0 0 12px; padding: 3px 8px; border-radius: 4px; background: #111; color: #fff; font-size: 11px; font-weight: 700; }

/* desconto-roleta: botão flutuante "explosão" de oferta e preço riscado */
body.modal-on .disc-fab { display: none; }
.disc-old { margin: 0 4px 0 6px; font-size: 13px; color: #8a8a8a; }
.disc-fab { position: fixed; left: 12px; bottom: 84px; z-index: 998; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.disc-burst { position: relative; width: 82px; height: 82px; padding: 0; border: 0; cursor: pointer; color: #fff; background: #e11d2a;
  clip-path: polygon(50% 0%, 59% 13%, 75% 6%, 76% 22%, 93% 22%, 86% 37%, 100% 46%, 87% 56%, 95% 71%, 78% 74%, 77% 91%, 62% 85%, 50% 100%, 38% 85%, 23% 91%, 22% 74%, 5% 71%, 13% 56%, 0% 46%, 14% 37%, 7% 22%, 24% 22%, 25% 6%, 41% 13%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  background-image: radial-gradient(circle at 50% 45%, #ff4b2b 0 38%, #e11d2a 39%); animation: disc-pop 1.6s ease-in-out infinite; }
.disc-burst .n { font-size: 22px; font-weight: 900; letter-spacing: -.5px; text-shadow: 0 2px 0 #8c0b14; }
.disc-burst .o { margin-top: 2px; padding: 1px 6px; border-radius: 3px; background: #ffd400; color: #7a0a12; font-size: 12px; font-weight: 900; }
@keyframes disc-pop { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.1) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .disc-burst { animation: none; } }
.disc-tip { max-width: 240px; padding: 10px 12px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.disc-tip b { display: block; margin-bottom: 3px; color: #ffd400; }
.ck-disc { margin: 0 0 8px; padding: 7px 10px; border-radius: 6px; background: #fff3cd; color: #6b4a00; font-size: 13px; }
.ck-disc b { color: #c4121c; }

/* desconto-v2: selo maior, fixo logo abaixo da barra do topo (60px), aviso com botão */
.disc-fab { top: 76px; bottom: auto; left: 10px; z-index: 30; gap: 6px; }
.disc-burst { width: 112px; height: 112px; }
.disc-burst .n { font-size: 31px; }
.disc-burst .o { margin-top: 3px; padding: 2px 9px; font-size: 15px; }
.disc-tip { position: relative; max-width: 270px; padding: 12px 14px 14px; font-size: 14px; }
.disc-tip b { padding-right: 18px; font-size: 15px; }
.disc-x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: #bbb; font-size: 22px; line-height: 1; cursor: pointer; }
.disc-use { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #ffd400; color: #7a0a12; font-weight: 800; text-align: center; text-decoration: none; }
.disc-use:hover { filter: brightness(1.05); }

/* desconto-v3: aviso do desconto no lugar do upsell */
.ck-disc { margin: 0 0 10px; padding: 14px 14px 12px; border: 2px dashed #e11d2a; border-radius: 8px; background: #fff7d6; color: #4a3600; text-align: center; }
.ck-disc p { margin: 0; font-size: 13px; line-height: 1.35; }
.ck-disc p.t { margin-bottom: 6px; font-size: 18px; font-weight: 700; color: #111; }
.ck-disc p.t b { color: #e11d2a; }

/* desconto-v4: modal grande "Você ganhou" (usa .modal/.sheet do login) */
.disc-modal { z-index: 90; padding: 16px; }
.disc-sheet { width: 100%; max-width: 440px; padding: 8px 24px 26px; text-align: center; }
.disc-head { display: flex; justify-content: flex-end; margin-right: -14px; }
.disc-sheet .disc-burst.static { margin: -6px auto 12px; width: 150px; height: 150px; cursor: default; animation: disc-pop 1.6s ease-in-out infinite; }
.disc-sheet .disc-burst.static .n { font-size: 42px; }
.disc-sheet .disc-burst.static .o { font-size: 19px; padding: 2px 12px; }
.disc-sheet h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; font-weight: 800; }
.disc-sheet p { margin: 0 0 18px; font-size: 16px; line-height: 1.4; color: var(--muted, #555); }
.disc-use.big { display: block; margin: 0; padding: 15px 16px; border-radius: 8px; font-size: 18px; box-shadow: 0 4px 0 #c9a300; }

/* visual-padrao */
/* roleta */
.rw-ptr { display: block; color: var(--primary); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.rw-ptr svg { display: block; width: 100%; height: auto; }
.rw-go { min-width: 200px; height: 42px; margin-top: 14px; padding: 0 28px; border-radius: 5px; background: var(--primary-grad); color: #fff; font-family: inherit; font-size: 16px; line-height: 42px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.rw-go:hover:not(:disabled) { filter: brightness(1.1); }
.rw-go:disabled { opacity: .75; }
.rw-msg { font-weight: 600; }
.rl-item { background: var(--primary-grad); }
.rl-item.opened { background: linear-gradient(90deg, #2b2b2b, #555); }
.rl-item.opened.won { background: linear-gradient(90deg, color-mix(in srgb, var(--paid, #2e8b57) 75%, #000), var(--paid, #2e8b57)); }
.rl-item .box-button { color: var(--text); }
/* selo do desconto */
.disc-fab .disc-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 9px 12px 8px; border: 2px solid #fff; border-radius: 5px; background: var(--primary-grad); color: #fff; font-family: inherit; cursor: pointer; box-shadow: var(--shadow); animation: dsc-pulse 1.8s ease-in-out infinite; }
.disc-badge b { font-size: 26px; line-height: 26px; font-weight: 600; letter-spacing: -.5px; }
.disc-badge span { margin-top: 3px; font-size: 12px; line-height: 12px; font-weight: 600; letter-spacing: 2px; }
@keyframes dsc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .disc-fab .disc-badge { animation: none; } }
/* aviso "Você ganhou" e checkout com desconto */
.disc-modal { z-index: 90; padding: 0; }
.dsc-sheet, .dck-sheet { width: calc(100% - 20px); max-width: 480px; padding: 0; text-align: left; }
.dsc-sheet .sheet-body, .dck-sheet .sheet-body { font-size: 13px; }
.dsc-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dsc-pct { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 5px; background: var(--primary-grad); color: #fff; box-shadow: var(--shadow-s); }
.dsc-pct b { font-size: 28px; line-height: 28px; font-weight: 600; letter-spacing: -.5px; }
.dsc-pct small { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.dsc-hero p { margin: 0; font-size: 15px; line-height: 1.35; color: var(--soft); }
.dsc-hero strong { color: var(--accent-text); font-weight: 600; }
.dsc-timer { margin: 0 0 12px; padding: 8px 10px; border-radius: 5px; background: #fff3cd; color: #664d03; box-shadow: var(--shadow-s); }
.dsc-timer p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.dsc-timer p .bi { display: inline-block; font-size: 16px; line-height: 1; }
.dsc-timer p .bi::before { display: block; line-height: 1; }
.dsc-timer strong { margin-left: auto; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dsc-timer > i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.dsc-timer > i b { display: block; height: 100%; width: 100%; background: var(--primary); transition: width .25s linear; }
.dsc-timer.urgent { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--accent-text); }
.dsc-timer.off { background: var(--panel2); color: var(--muted); }
.go.dsc-go, .go.dck-go { height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.go.dsc-go.off { background: rgba(128, 128, 128, .24); color: rgba(128, 128, 128, .75); box-shadow: none; cursor: default; }
.dck-lbl { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--soft); }
.dck-packs { margin-bottom: 6px; }
.dck-pack { height: 70px; }
.dck-pack b { font-size: 20px; line-height: 20px; }
.dck-pack b small { font-size: 11px !important; }
.dck-pack span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; line-height: 12px; opacity: 1 !important; }
.dck-pack span strong { font-size: 13px; }
.dck-pack span s { opacity: .6; }
.dck-pack span strong { font-weight: 600; }
.dck-pack.on, .dck-pack.pop.on { background: var(--primary-grad); border: 2px solid var(--primary); color: #fff; }
.dck-qty { margin: 6px 0 4px; box-shadow: var(--shadow-s); }
.dck-qty .field input, .sheet-body .dck-qty input { width: 3.4ch; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font-size: 15px; font-weight: 600; color: var(--text); }
.dck-min { margin: 0 0 10px; text-align: center; font-size: 11.5px; color: var(--muted); }
.dck-sum s { color: var(--muted); }
.dck-save { color: var(--paid, #2e8b57); font-weight: 600; }
.dck-user { height: auto; min-height: 64px; margin: 0 0 10px; }
.dck-user .ph { flex-basis: 54px; height: 54px; font-size: 22px; }
/* aviso "N% OFF aplicado" no checkout da campanha */
.ck-disc { border: 0; border-left: 4px solid var(--primary); border-radius: 5px; background: color-mix(in srgb, var(--primary) 7%, #fff); color: var(--soft); text-align: left; box-shadow: var(--shadow-s); padding: 10px 12px; }
.ck-disc p.t { font-size: 15px; font-weight: 600; color: var(--text); }
.ck-disc p.t b { color: var(--accent-text); }

/* poscompra-desconto */
.co-card.co-disc .co-pct { margin: 0 auto 14px; }
.co-card.co-disc .dsc-timer { max-width: 340px; margin: 0 auto 16px; text-align: left; }
.co-card.co-disc p { margin-bottom: 16px; }
.co-card.co-disc .co-btn { border: 0; cursor: pointer; font-family: inherit; }
.co-card.co-disc .co-btn:disabled { background: rgba(128, 128, 128, .24); color: rgba(128, 128, 128, .9); box-shadow: none; cursor: default; }
.co-card .co-state { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 !important; font-weight: 600; color: var(--muted) !important; }

/* poscompra-caixa */
.co-card.co-disc p { margin-bottom: 22px; }
.gm-modal { z-index: 1300; }

/* poscompra-anim */
.gb-modal { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 16px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(34, 34, 34, .97), rgba(0, 0, 0, .98) 70%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; text-align: center; animation: gb-fade .25s ease-out both; -webkit-tap-highlight-color: transparent; }
.gb-modal.out { animation: gb-fadeout .26s ease-in forwards; }
@keyframes gb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gb-fadeout { to { opacity: 0; } }
.gb-stage { position: relative; width: min(240px, 62vw); aspect-ratio: 1; flex-shrink: 0; }
.gb-rays-w { position: absolute; inset: -55%; opacity: 0; transform: scale(.5); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; }
.gb-rays { width: 100%; height: 100%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--notice, #f5b800) 55%, transparent) 0deg 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 66%); mask: radial-gradient(circle, #000 12%, transparent 66%); animation: gb-spin 14s linear infinite; }
.gb-modal.open .gb-rays-w { opacity: .85; transform: scale(1); }
@keyframes gb-spin { to { transform: rotate(360deg); } }
.gb-flash { position: absolute; left: 50%; top: 48%; width: 40%; height: 40%; margin: -20% 0 0 -20%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .7) 35%, transparent 70%); opacity: 0; pointer-events: none; }
.gb-modal.open .gb-flash { animation: gb-flash .7s ease-out forwards; }
@keyframes gb-flash { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(4.5); } }
.gb-box { position: absolute; inset: 0; animation: gb-drop .7s cubic-bezier(.25, 1.5, .45, 1) both; }
.gb-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gb-shadow { fill: #000; opacity: .45; }
.gb-body, .gb-lid { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes gb-drop { 0% { transform: translateY(-120%) scale(.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.gb-modal.shake .gb-box svg { animation: gb-shake .42s ease-in-out infinite; }
.gb-modal.shake2 .gb-box svg { animation: gb-shake2 .2s linear infinite; }
@keyframes gb-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateY(-2px); } 75% { transform: rotate(5deg) translateY(-2px); } }
@keyframes gb-shake2 { 0%, 100% { transform: rotate(0) scale(1.02); } 25% { transform: rotate(-8deg) translate(-3px, -4px) scale(1.04); } 75% { transform: rotate(8deg) translate(3px, -4px) scale(1.04); } }
.gb-lid { transition: transform .75s cubic-bezier(.15, .85, .25, 1), opacity .75s ease; }
.gb-modal.open .gb-lid { transform: translate(-28%, -170%) rotate(-38deg); opacity: 0; }
.gb-modal.open .gb-body { animation: gb-squash .45s ease-out; }
@keyframes gb-squash { 0% { transform: scale(1.08, .9); } 60% { transform: scale(.97, 1.04); } 100% { transform: none; } }
.gb-prize { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.gb-modal.open .gb-prize { animation: gb-rise .9s .12s cubic-bezier(.2, 1.45, .4, 1) forwards, gb-float 2.4s 1.1s ease-in-out infinite; }
@keyframes gb-rise { 0% { transform: translate(-50%, -20%) scale(.1); opacity: 0; } 40% { opacity: 1; } 100% { transform: translate(-50%, -118%) scale(1); opacity: 1; } }
@keyframes gb-float { 0%, 100% { transform: translate(-50%, -118%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -126%) scale(1.04); opacity: 1; } }
.gb-pct { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(120px, 32vw); aspect-ratio: 1; border: 3px solid #fff; border-radius: 8px; background: var(--primary-grad); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--primary) 60%, transparent); }
.gb-pct b { font-size: clamp(30px, 10vw, 42px); line-height: 1; font-weight: 600; letter-spacing: -1px; }
.gb-pct small { margin-top: 4px; font-size: clamp(12px, 3.6vw, 15px); font-weight: 600; letter-spacing: 3px; }
.gb-text { width: 100%; max-width: 420px; margin-top: 8px; opacity: 0; transform: translateY(18px); }
.gb-modal.open .gb-text { animation: gb-up .55s .55s cubic-bezier(.2, 1.2, .4, 1) forwards; }
@keyframes gb-up { to { opacity: 1; transform: none; } }
.gb-text h2 { margin: 0 0 8px; font-size: clamp(26px, 8.5vw, 38px); line-height: 1.05; font-weight: 600; letter-spacing: 1px; color: var(--notice, #f5b800); text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.gb-modal.open .gb-text h2 { animation: gb-beat 1.3s 1.2s ease-in-out infinite; }
@keyframes gb-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.gb-text p { margin: 0; font-size: clamp(16px, 4.8vw, 20px); line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.gb-text p b { display: inline-block; margin: 2px 0; padding: 1px 8px; border-radius: 4px; background: var(--primary-grad); font-weight: 600; }
.gb-tap { margin: 14px 0 0; font-size: 12px; opacity: 0; letter-spacing: .5px; }
.gb-modal.open .gb-tap { animation: gb-tap 1.6s 1.6s ease-in-out infinite; }
@keyframes gb-tap { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
.gb-modal .rw-confetti { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .gb-box, .gb-rays, .gb-modal.open .gb-prize, .gb-modal.open .gb-text h2, .gb-modal.open .gb-body { animation: none !important; }
  .gb-modal.open .gb-prize { transform: translate(-50%, -118%) scale(1); opacity: 1; }
  .gb-modal.open .gb-text { animation: none; opacity: 1; transform: none; }
}

/* poscompra-popup */
.co-pop { z-index: 95; padding: 0; }
.co-pop-sheet { position: relative; width: calc(100% - 28px); max-width: 440px; padding: 0; overflow: hidden; animation: co-pop-in .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.co-pop-sheet .paycard.co-card { margin: 0; border-radius: 0; box-shadow: none; padding: 34px 22px 26px; }
.co-pop-x { position: absolute; top: 6px; right: 14px; z-index: 2; }
@keyframes co-pop-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .co-pop-sheet { animation: none; } }

/* poscompra-rastro (painel) */
.co-rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.co-rep-st { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgba(127, 127, 127, .25); border-radius: 8px; }
.co-rep-st b { font-size: 22px; font-weight: 600; line-height: 1.1; }
.co-rep-st span { font-size: 13px; }
.co-rep-st small { font-size: 11px; opacity: .65; line-height: 1.3; }
.co-rep-tw { max-height: 340px; overflow: auto; border: 1px solid rgba(127, 127, 127, .25); border-radius: 8px; margin-bottom: 8px; }
.co-rep-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-rep-t th, .co-rep-t td { padding: 7px 10px; text-align: left; border-bottom: 1px solid rgba(127, 127, 127, .15); vertical-align: top; }
.co-rep-t th { position: sticky; top: 0; background: var(--card, #fff); font-weight: 600; }
.co-rep-tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.co-rep-tag.ok { background: #d8f3e3; color: #146c3c; } .co-rep-tag.warn { background: #fff1c7; color: #7a5800; }
.co-rep-tag.bad { background: #fde0e3; color: #a3162a; } .co-rep-tag.mute { background: rgba(127, 127, 127, .15); }
.co-rep-up { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(127, 127, 127, .35); border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
