/* Clubbix — painel da empresa parceira. Usa tokens.css e os botões de auth.css. */

body.pe-body { margin: 0; background: var(--surface-base); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.pe { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 900px) { .pe { flex-direction: row; } }

/* ── navegação ──────────────────────────────────────────────────────────── */
.pe__side { display: none; width: 240px; flex: none; border-right: 1px solid var(--line); background: var(--surface-raised); padding: 28px 16px; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
@media (min-width: 900px) { .pe__side { display: flex; } .pe__top, .pe__tabs { display: none !important; } }
.pe__brand { display: flex; gap: 10px; align-items: center; padding: 0 12px 14px; font: 800 21px var(--font-display); }
.pe__brand img { width: 34px; height: 34px; display: block; }
.pe__who { margin: 0 0 18px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); min-width: 0; }
.pe__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #fbb13c, #ea5a1c); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 12px var(--font-display); flex: none; }
.pe__nav a { height: 46px; border-radius: 14px; display: flex; align-items: center; padding: 0 14px; gap: 12px; font: 500 14.5px var(--font-body); color: var(--text-2); text-decoration: none; border: 1px solid transparent; }
.pe__nav a:hover { background: rgba(243,233,245,.05); }
.pe__nav a[aria-current="page"] { background: rgba(243,233,245,.07); color: var(--text); }
.pe__foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.pe__side .pe__terms { height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: 500 13.5px var(--font-body); cursor: pointer; text-align: left; }
.pe__side .pe__terms:hover { background: rgba(243,233,245,.05); color: var(--text); }
.pe__out { margin-top: auto; padding: 14px 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text-3); font: 500 13px var(--font-body); cursor: pointer; text-align: left; border-radius: 0; }
.pe__foot .pe__out { margin-top: 0; height: 40px; padding: 0 12px; border-top: 0; border-radius: 12px; }
.pe__foot .pe__out:hover { background: rgba(243,233,245,.05); }
.pe__out:hover { color: var(--text); }

.pe__top { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.pe__top .b { display: flex; align-items: center; gap: 8px; font: 800 19px var(--font-display); }
.pe__top .b img { width: 30px; height: 30px; display: block; }
.pe__top .n { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: right; }
.pe__top button { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font: 500 12.5px var(--font-body); cursor: pointer; }

.pe__tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; z-index: 20; border-top: 1px solid var(--line); background: var(--surface-raised); display: flex; padding: 0 6px; box-sizing: border-box; align-items: center; }
.pe__tabs a { flex: 1; min-width: 44px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 500 11px var(--font-body); color: var(--text-3); text-decoration: none; }
.pe__tabs a[aria-current="page"] { color: var(--gold); }
.pe__tabs .ic { width: 22px; height: 22px; }

.pe__main { flex: 1; min-width: 0; padding: 24px 20px 104px; box-sizing: border-box; }
@media (min-width: 900px) { .pe__main { padding: 48px 56px 56px; } }
.pe__col { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; animation: cbx-rise .35s var(--ease); }

/* ── cabeçalho de página ────────────────────────────────────────────────── */
.ph { display: flex; flex-direction: column; gap: 10px; }
.ph .e { font: 600 12px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ph h1 { font: 800 32px/1.08 var(--font-display); letter-spacing: -.02em; margin: 0; }
.ph p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; max-width: 560px; }
.ph h1:focus { outline: none; }
@media (min-width: 900px) { .ph h1 { font-size: 42px; } }

.seg { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.seg a { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-3); font: 500 14px var(--font-body); text-decoration: none; }
.seg a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--text); }
@media (min-width: 900px) { .seg { display: none; } }

/* ── estados: carregando, erro, vazio ───────────────────────────────────── */
.skel { height: 120px; border-radius: 20px; background: linear-gradient(90deg, rgba(243,233,245,.05) 25%, rgba(243,233,245,.11) 50%, rgba(243,233,245,.05) 75%); background-size: 480px 100%; animation: cbx-shimmer 1.6s linear infinite; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.errbox { padding: 24px; border-radius: 20px; background: var(--danger-bg); border: 1px solid var(--danger-line); font-size: 15px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.errbox span { display: flex; gap: 12px; align-items: flex-start; }
.errbox .ic { color: var(--danger); margin-top: 1px; }
.empty { padding: 48px 24px; border-radius: 20px; border: 1px dashed var(--line-strong); text-align: center; }
.empty .cbx-badge { margin: 0 auto 16px; }
.empty b { display: block; font: 600 16px var(--font-display); }
.empty span { display: block; font-size: 14px; color: var(--text-2); margin-top: 6px; }

/* ── cupons ativos ──────────────────────────────────────────────────────── */
.cards { display: flex; flex-direction: column; gap: 14px; }
.cc { padding: 22px; border-radius: 20px; background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.cc.off { opacity: .7; }
.cc__h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cc__t { display: flex; gap: 12px; min-width: 0; }
.cc__t img { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; }
.cc__t b { display: block; font: 600 17px/1.3 var(--font-display); overflow-wrap: anywhere; }
.cc__t small { display: block; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: 999px; font: 600 12px var(--font-display); letter-spacing: .04em; border: 1px solid; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nums .ic { color: var(--gold); margin-bottom: 8px; width: 16px; height: 16px; }
.nums b { display: block; font: 800 26px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nums b.txt { font-size: 18px; padding: 4px 0; }
.nums small { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.35; }
.bar { height: 6px; border-radius: 3px; background: rgba(243,233,245,.10); display: flex; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar .v { background: var(--gold); }
.bar .r { background: rgba(251,177,60,.38); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.legend span { display: flex; gap: 6px; align-items: center; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.btn-danger { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger); font: 600 13.5px var(--font-display); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-danger .ic { width: 16px; height: 16px; }

/* ── expirados (tabela) ─────────────────────────────────────────────────── */
.tbl { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface-raised); }
.tbl__r { display: grid; grid-template-columns: 1.5fr .8fr .8fr .9fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.tbl__r:last-child { border-bottom: 0; }
@media (min-width: 900px) { .tbl__r { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.tbl__h { padding: 14px 20px; border-bottom: 1px solid var(--line-strong); font: 600 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); line-height: 1.3; }
.tbl__r > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.tbl__r .g { color: var(--gold); }
.tbl__r small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.tbl__r small .ic { width: 16px; height: 16px; }

/* ── formulários ────────────────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } .two .pv-col { order: 1; position: sticky; top: 24px; } }
.pv-col { display: flex; flex-direction: column; gap: 12px; }
.lbl { font: 600 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.form { display: flex; flex-direction: column; gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .full { grid-column: 1 / -1; } }
.in { position: relative; }
.in label { position: absolute; left: 18px; top: 10px; font-size: 12px; color: var(--text-2); pointer-events: none; }
.in input, .in textarea { width: 100%; box-sizing: border-box; padding: 24px 18px 6px; border-radius: 14px; background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--text); font: 400 16px var(--font-body); outline: none; color-scheme: dark; direction: ltr; text-align: left; }
.in input { height: 60px; }
.in textarea { padding-top: 30px; padding-bottom: 12px; font-size: 15px; line-height: 1.5; resize: vertical; min-height: 96px; }
.in input:focus, .in textarea:focus { border-color: var(--gold); }
.in.bad input, .in.bad textarea { border-color: var(--danger-line); }
.in.dis { opacity: .5; }
.in .er { font-size: 12.5px; color: var(--danger); margin: 8px 4px 0; }
.in .er:empty { display: none; }
.hint { font-size: 12.5px; color: var(--text-3); margin: 8px 4px 0; line-height: 1.5; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts button { flex: 1; min-height: 44px; padding: 0 20px; border-radius: 999px; background: none; font: 500 14px var(--font-body); cursor: pointer; border: 1px solid var(--line); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.opts.big button { height: 48px; font: 600 13.5px var(--font-display); }
.opts button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.opts .ic { width: 16px; height: 16px; }
.togl { align-self: flex-start; height: 44px; padding: 0 20px; border-radius: 999px; background: none; font: 500 14px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--text-2); }
.togl[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.togl .ic { width: 16px; height: 16px; }
.note { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); font-size: 14px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.note .ic { color: var(--gold); }
.small-lbl { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }

/* ── pré-visualizações ──────────────────────────────────────────────────── */
.pv { padding: 20px; border-radius: 20px; background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.pv__cover { height: 124px; margin: -20px -20px 0; overflow: hidden; }
.pv__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv__co { display: flex; gap: 14px; align-items: center; }
.pv__co .mono { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; }
.pv__co small { display: block; font: 600 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pv__co span { display: block; font-size: 15px; margin-top: 3px; }
.pv__t { font: 600 17px/1.3 var(--font-display); overflow-wrap: anywhere; }
.pv__big { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pv__big b { font: 800 40px/1 var(--font-display); letter-spacing: -.02em; }
.pv__big b.vale { font-size: 22px; }
.pv__big span { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.pv__m { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.pv__r { font-size: 13px; color: var(--text-2); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.pv__act { display: flex; gap: 8px; align-items: center; }
.pv__act .l { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.pv__act .r { height: 44px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--orange); color: var(--gold); font: 600 14.4px var(--font-display); margin-left: auto; display: inline-flex; align-items: center; }
.pf { padding: 24px; border-radius: 30px; background: var(--surface-overlay); border: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.pf__med { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.pf__cover { position: relative; height: 110px; margin: -24px -24px 0; overflow: hidden; }
.pf__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf__hit { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; margin: 0; padding: 7px 10px; border-radius: 12px; background: rgba(10,4,20,.72); color: #fff; border: 1px solid rgba(255,255,255,.16); cursor: pointer; }
.pf__hit .ic { width: 16px; height: 16px; }
.pf__hit b { font: 600 12px var(--font-display); }
.pf__hit small { font: 500 11px var(--font-body); color: rgba(255,255,255,.8); }
.pf__hit input, .pf__ava input { display: none; }
.pf__x { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(10,4,20,.72); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf__x .ic { width: 16px; height: 16px; }
.pf__h { display: flex; gap: 14px; align-items: center; }
.pf__ava { position: relative; width: 52px; height: 52px; flex: none; margin: 0; cursor: pointer; }
.pf__ava .mono, .pf__ava img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; display: block; }
.pf__ava small { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 2px 3px; border-radius: 0 0 16px 16px; background: linear-gradient(transparent, rgba(10,4,20,.88)); color: #fff; font: 600 8px var(--font-body); text-align: center; pointer-events: none; }
.pf__rm { margin-left: auto; border: 0; background: none; color: var(--text-3); font: 500 12px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pf__h .mono { width: 52px; height: 52px; border-radius: 16px; font-size: 16px; }
.pf__h b { display: block; font: 800 20px var(--font-display); overflow-wrap: anywhere; }
.pf__h small { display: block; font: 600 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.pf p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.pf__rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pf__rows > div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pf__rows .k { width: 108px; flex: none; color: var(--text-3); display: flex; align-items: flex-start; gap: 8px; }
.pf__rows .k .ic { width: 16px; height: 16px; margin-top: 2px; }
.pf__rows .v { min-width: 0; overflow-wrap: anywhere; }

/* ── janelas de confirmação ─────────────────────────────────────────────── */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(10,4,20,.7); display: flex; justify-content: center; align-items: flex-end; padding: 16px; box-sizing: border-box; }
@media (min-width: 900px) { .ov { align-items: center; } }
.dlg { width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; background: var(--surface-overlay); border: 1px solid var(--line-strong); border-radius: 30px; padding: 28px 24px; box-sizing: border-box; box-shadow: var(--shadow-deep); display: flex; flex-direction: column; gap: 20px; animation: cbx-sheet .3s var(--ease); }
.dlg h2 { font: 800 22px var(--font-display); margin: 0; }
.dlg p { font-size: 14px; color: var(--text-2); margin: 8px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.dlg .cbx-badge { width: 56px; height: 56px; }
.sum { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sum > div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum .k { width: 104px; flex: none; color: var(--text-3); }
.sum .v { min-width: 0; overflow-wrap: anywhere; }
.dlg__b { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.dlg__b.col { flex-direction: column; gap: 8px; }
.dlg__b .btn { width: auto; height: 44px; padding: 0 22px; box-shadow: none; }
.dlg__b.col .btn { width: 100%; height: 56px; box-shadow: var(--glow-orange); }
.btn-ghost { height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--orange); background: none; color: var(--gold); font: 600 14.4px var(--font-display); cursor: pointer; }
.btn-text { height: 48px; border: 0; background: none; color: var(--text-2); font: 500 14px var(--font-body); cursor: pointer; }

/* ── navegação: Resgatar em destaque ────────────────────────────────────── */
.pe__nav .resgatar { height: 46px; border-radius: 14px; display: flex; align-items: center; padding: 0 14px; gap: 12px; font: 500 14.5px var(--font-body); color: var(--gold); background: rgba(251,177,60,.08); border: 1px solid rgba(251,177,60,.4); cursor: pointer; width: 100%; text-align: left; }
.pe__nav .resgatar:hover { background: rgba(251,177,60,.14); }
.pe__nav .resgatar .ic { width: 20px; height: 20px; }
.pe__tabs .fab { flex: 1; min-width: 44px; height: 100%; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 500 11px var(--font-body); color: var(--gold); cursor: pointer; }
.pe__tabs .fab i { width: 52px; height: 52px; border-radius: 50%; margin-top: -22px; background: var(--brand-grad); box-shadow: 0 10px 24px rgba(234,90,28,.4); display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; }
.pe__tabs .fab .ic { width: 26px; height: 26px; }

/* ── cupons validados ───────────────────────────────────────────────────── */
.tbl__r.v3 { grid-template-columns: 1fr auto; }
.tbl__r.v3 .dcol { display: none; }
@media (min-width: 900px) { .tbl__r.v3 { grid-template-columns: 1.6fr 1fr 1fr; } .tbl__r.v3 .dcol { display: flex; } .tbl__r.v3 .mcol { display: none; } }
.tbl__r.v3 .when { color: var(--text-2); font-size: 13px; text-align: right; }
.tbl__r .who { align-items: center; gap: 10px; text-align: left !important; }
.tbl__r .who i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #b43ac6, #7c2ba8); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 12px var(--font-display); font-style: normal; flex: none; }
.tbl__h.v3 .dcol { display: none; }
@media (min-width: 900px) { .tbl__h.v3 .dcol { display: block; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pager > span { font-size: 13px; color: var(--text-3); }
.pager > div { display: flex; gap: 8px; }
.pager .btn[disabled] { color: var(--text-3); background: none; opacity: .6; }

/* ── balcão (tela cheia) ────────────────────────────────────────────────── */
#scan > .scan { position: fixed; inset: 0; z-index: 70; background: #0a0412; display: flex; flex-direction: column; animation: cbx-sheet .3s var(--ease); }
.scan__top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 8px; }
.scan__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.scan__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--line); }
.scan__tabs button { height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--text-3); font: 600 12.5px var(--font-display); cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.scan__tabs button[aria-selected="true"] { background: var(--surface-overlay); color: var(--text); }
.scan__tabs .ic { width: 16px; height: 16px; }
.scan__cam { flex: 1; position: relative; margin: 0 16px 16px; border-radius: 30px; overflow: hidden; background: #120a1d; display: flex; align-items: center; justify-content: center; }
.scan__cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__frame { position: relative; width: min(240px, 60vw); aspect-ratio: 1; }
.scan__frame i { position: absolute; width: 44px; height: 44px; border: 0 solid var(--gold); }
.scan__frame i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 14px; }
.scan__frame i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 14px; }
.scan__frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 14px; }
.scan__frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 14px; }
.scan__frame b { position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 14px rgba(251,177,60,.7); animation: cbx-scan 2.2s ease-in-out infinite alternate; }
.scan__hint { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.scan__hint .ic { color: var(--gold); }
.scan__msg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; }
.scan__msg h2 { font: 800 22px var(--font-display); margin: 0; }
.scan__msg p { margin: 0; max-width: 320px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.scan__code { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 24px; max-width: 440px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.scan__codehint { display: flex; gap: 14px; align-items: center; }
.scan__codehint .cbx-badge { width: 48px; height: 48px; border-radius: 16px; }
.scan__codehint p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.scan__res { position: absolute; inset: 0; background: var(--surface-base); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; text-align: center; animation: cbx-pop .35s var(--ease); overflow-y: auto; }
.scan__ico { width: 84px; height: 84px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; }
.scan__ico .ic { width: 38px; height: 38px; stroke-width: 2.2; }
.scan__res h2 { font: 800 28px/1.15 var(--font-display); letter-spacing: -.015em; margin: 0; }
.scan__res p { margin: 0; max-width: 340px; font-size: 15px; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.scan__cli { padding: 20px 28px; border-radius: 20px; background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.scan__cli small { font-size: 13px; color: var(--text-3); }
.scan__cli b { font: 800 30px var(--font-display); overflow-wrap: anywhere; }
.scan__cli span { font-size: 13px; color: var(--text-2); }
.scan__coin { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--gold); }
.scan__coin .ic { width: 16px; height: 16px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--surface-overlay); border: 1px solid var(--line-strong); color: var(--text); padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-deep); opacity: 0; pointer-events: none; transition: opacity .2s; display: flex; align-items: center; gap: 8px; }
.toast.on { opacity: 1; }
.toast .ic { color: var(--success); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ── termos de uso ──────────────────────────────────────────────────────── */
.ov.termos { z-index: 80; }
.dlg.termos { max-width: 640px; max-height: min(92dvh, 820px); }
.dlg.termos h2 { font-size: 20px; line-height: 1.25; }
.termos__x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; }
.termos__x:hover { border-color: var(--gold); color: var(--gold); }
.termos__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.termos__body { display: flex; flex-direction: column; gap: 12px; }
.termos__body h3 { margin: 10px 0 0; font: 700 13px var(--font-display); letter-spacing: .04em; color: var(--gold); }
.termos__body p, .termos__body li { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.termos__body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.termos__fim { color: var(--text); font-weight: 600; }
