/* ============================================================
   Comparei — site institucional e portais (parceiro / admin)
   Tokens de cor e tipografia vêm de _content/Comparei.UI/css/tokens.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2.5px solid var(--info); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--tag) 55%, transparent); color: var(--ink); }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.save { color: var(--save); }
.up { color: var(--up); }
.eyebrow { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform .15s, filter .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--tag); color: var(--on-tag); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .08); }
.btn--primary:hover { filter: brightness(1.04); }
.btn--dark { background: var(--brand); color: var(--on-brand); }
.btn--dark:hover { background: var(--brand-2); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--up-soft); color: var(--up); }
.btn--success { background: var(--save-soft); color: var(--save); }
.btn--sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 0 28px; border-radius: 15px; font-size: 16px; }
.btn--block { width: 100%; }
.link { color: var(--info); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
    width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag) 35%, transparent); }
.field__hint { font-size: 12px; color: var(--muted); }
.validation-message, .field__error { font-size: 12.5px; color: var(--up); font-weight: 500; }
.invalid { border-color: var(--up) !important; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.notice--error { background: var(--up-soft); color: var(--up); }
.notice--success { background: var(--save-soft); color: var(--save); }
.notice--info { background: color-mix(in srgb, var(--info) 10%, var(--surface)); color: var(--ink); }
.notice--warn { background: color-mix(in srgb, var(--tag) 25%, var(--surface)); color: var(--ink); }
.notice .icon { flex: none; margin-top: 1px; }

/* ---------- Pílulas ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-sunk); color: var(--ink-2); }
.pill--ok { background: var(--save-soft); color: var(--save); }
.pill--bad { background: var(--up-soft); color: var(--up); }
.pill--warn { background: color-mix(in srgb, var(--tag) 35%, var(--surface)); color: #7A5600; }
.pill--info { background: color-mix(in srgb, var(--info) 12%, var(--surface)); color: var(--info); }
.pill--brand { background: var(--brand); color: var(--on-brand); }
.pill--tag { background: var(--tag); color: var(--on-tag); }

.store-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; flex: none; }
.thumb { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 19px; flex: none; background: var(--surface-2); }

/* ============================================================
   SITE
   ============================================================ */

.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-nav__inner { display: flex; align-items: center; gap: 28px; max-width: 1160px; margin: 0 auto; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tag); color: var(--brand); transform: rotate(-6deg); }
.site-nav__links { display: flex; gap: 22px; flex: 1; }
.site-nav__links a { text-decoration: none; font-weight: 550; font-size: 14.5px; color: var(--ink-2); }
.site-nav__links a:hover { color: var(--ink); }
@media (max-width: 860px) { .site-nav__links { display: none; } .site-nav__inner { gap: 8px; } .site-nav__inner .brand { margin-right: auto; } }
@media (max-width: 440px) { .site-nav__inner { padding: 12px 16px; } .site-nav__inner .btn--ghost { display: none; } /* o link do portal continua no rodapé */ }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-title { max-width: 680px; margin-bottom: 44px; }
.section-title h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 14px; }
.section-title p { font-size: 17px; color: var(--ink-2); }

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgb(255 210 63 / .28), transparent); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--tag) 62% 92%, transparent 92%); padding: 0 .06em; }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__note { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Celular ilustrativo com o cupom */
.phone { position: relative; width: 320px; margin: 0 auto; padding: 14px; border-radius: 48px; background: #16101F; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .06); transform: rotate(3deg); }
.phone__screen { border-radius: 36px; background: var(--bg); padding: 22px 16px 26px; min-height: 560px; overflow: hidden; }
.phone__hello { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 14px; }
.phone .receipt-card { background: #fff; color: #2A2433; padding: 16px 16px 26px; font-family: var(--font-mono); font-size: 11.5px;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat; }
.receipt-card__head { text-align: center; text-transform: uppercase; letter-spacing: .05em; color: #6C6577; font-size: 10.5px; }
.receipt-card__head strong { display: block; color: #2A2433; font-size: 12px; }
.receipt-card hr { border: 0; border-top: 1.5px dashed #CFCAD8; margin: 10px 0; }
.receipt-card__line { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.receipt-card__line i { flex: 1; border-bottom: 1.5px dotted #CFCAD8; transform: translateY(-3px); }
.receipt-card__line b { font-weight: 600; }
.phone__cta { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--tag-soft); border: 1px solid var(--tag-line); color: var(--ink); font-weight: 650; font-size: 13.5px; }
.phone__cta span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tag); color: var(--brand); }
.phone__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.phone__row .grow { flex: 1; min-width: 0; }
.phone__row strong { display: block; font-size: 13px; }
.floating-tag { position: absolute; right: -34px; bottom: 90px; transform: rotate(-7deg); display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 22px; background: var(--tag); color: var(--on-tag); border-radius: 6px 16px 16px 6px; box-shadow: var(--shadow-lg); }
.floating-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #16101F; }
.floating-tag small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.floating-tag strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 520px) { .floating-tag { right: -6px; } .phone { width: 290px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--brand); color: var(--tag); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 650; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: var(--brand-tint); color: var(--brand); }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.feature .pill { margin-top: 10px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.band { background: var(--brand-tint); color: var(--ink); border-block: 1px solid var(--brand-tint-2); }
.band .section-title p { color: var(--ink-2); }
.band .muted { color: var(--muted); }
.band .eyebrow { color: var(--brand-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--brand-tint-2); box-shadow: var(--shadow-sm); }
.trust .icon { box-sizing: content-box; padding: 9px; border-radius: 12px; background: var(--tag-soft); color: var(--brand); margin-bottom: 14px; }
.trust h3 { font-size: 16px; margin-bottom: 6px; }
.trust p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat { padding: 20px 0; border-top: 2px solid var(--brand-tint-2); }
.stat strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 750; letter-spacing: -.03em; color: var(--brand); }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan--featured { background: var(--surface); color: var(--ink); border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan--featured::before { content: ""; position: absolute; top: -2px; left: 30px; width: 56px; height: 8px; border-radius: 0 0 6px 6px; background: var(--tag); }
.plan h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.plan__price { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan li .icon { color: var(--save); flex: none; margin-top: 2px; }
.plan--featured li .icon { color: var(--save); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

.cta-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: var(--r-xl); background: radial-gradient(500px 260px at 100% 0%, rgb(255 210 63 / .45), transparent 70%), var(--tag-soft); border: 1px solid var(--tag-line); color: var(--ink); }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.cta-box p { color: var(--ink-2); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #000; }
.store-badge small { display: block; font-size: 10px; opacity: .75; }
.store-badge strong { display: block; font-size: 15px; line-height: 1.1; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; padding: 32px; } .store-badges { justify-content: flex-start; } }

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.site-footer a:hover { color: var(--ink); }
.site-footer__legal { margin-top: 40px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card--pad { padding: 24px; }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: 40px; letter-spacing: -.03em; margin: 12px 0 18px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; }

/* Login */
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-page__art { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: radial-gradient(600px 320px at 0% 100%, rgb(255 210 63 / .38), transparent 70%), var(--brand-tint); border-right: 1px solid var(--brand-tint-2); color: var(--ink); }
.auth-page__art .brand { color: var(--ink); }
.auth-page__art h2 { font-family: var(--font-display); font-size: 40px; letter-spacing: -.03em; line-height: 1.05; max-width: 440px; }
.auth-page__art p { color: var(--ink-2); margin-top: 14px; max-width: 420px; }
.auth-page__form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-page__art { display: none; } }

/* ============================================================
   PORTAIS
   ============================================================ */

.portal { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; background: var(--bg); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar .brand { color: var(--ink); padding: 4px 8px 18px; font-size: 19px; }
.sidebar__context { margin: 0 6px 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sidebar__context strong { display: block; color: var(--ink); font-size: 14px; }
.sidebar__group { margin: 16px 10px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sidebar a.nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-2); transition: background .15s, color .15s; }
.sidebar a.nav-item .icon { color: var(--muted); }
.sidebar a.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.sidebar a.nav-item.active .icon { color: var(--brand); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--tag); color: var(--brand); font-size: 11.5px; font-weight: 700; text-align: center; }
.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar__foot button { width: 100%; justify-content: flex-start; background: none; color: var(--ink-2); border: 0; }
.sidebar__foot button:hover { background: var(--surface-2); color: var(--ink); }
.portal-main { padding: 28px 36px 60px; min-width: 0; }
@media (max-width: 960px) {
    .portal { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar__group, .sidebar__context, .sidebar__foot { display: none; }
    .portal-main { padding: 20px 16px 48px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.kpi__label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.kpi__value { font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; line-height: 1.1; }
.kpi__hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi--accent { background: var(--brand-tint); color: var(--ink); border-color: var(--brand-tint-2); box-shadow: inset 4px 0 0 var(--tag); }
.kpi--accent .kpi__label, .kpi--accent .kpi__hint { color: var(--ink-2); }
.kpi--accent .kpi__value { color: var(--brand); }
.kpi--alert { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 16px; font-weight: 700; }
.panel__head p { font-size: 13px; color: var(--muted); }
.panel__body { padding: 18px 20px; }
.panel + .panel, .stack > * + * { margin-top: 18px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }
.cell-product { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-product strong { display: block; font-weight: 600; }
.cell-product small { color: var(--muted); font-size: 12.5px; }
.price-input { width: 110px; min-height: 36px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); text-align: right; font-family: var(--font-mono); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 320px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-sunk); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state .icon { margin: 0 auto 12px; color: var(--save); }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; overflow-x: auto; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 30px; }
.bars__bar { width: 100%; max-width: 36px; border-radius: 7px 7px 3px 3px; background: var(--brand); min-height: 3px; }
.bars__bar--alt { background: var(--tag); }
.bars__label { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }
.bars__value { font-size: 10.5px; color: var(--ink-2); font-family: var(--font-mono); }

.meter { height: 8px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(34 22 56 / .32); backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal--wide { max-width: 760px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 18px; font-weight: 700; }
.modal__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-2); cursor: pointer; }

.picker { position: relative; }
.picker__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.picker__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14px; }
.picker__item:hover { background: var(--surface-2); }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.code-block { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-sunk); padding: 12px 14px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; }
.token-list { display: flex; flex-wrap: wrap; gap: 6px; }
.token-list span { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--surface-sunk); }
.lock { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--tag) 20%, var(--surface)); }

/* ============================================================
   Preços do parceiro: campo em reais e preço atual
   ============================================================ */
.money-input { display: inline-flex; align-items: center; gap: 4px; }
.money-input__cur { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.money-input input { width: 104px; min-height: 36px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); text-align: right; font-family: var(--font-mono); font-size: 14px; outline: 0; }
.money-input input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag) 35%, transparent); }
.money-input--invalid input { border-color: var(--up); background: var(--up-soft); }
.money-input.price-input { width: auto; min-height: 0; padding: 0; border: 0; background: none; }

.price-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.price-summary strong { font-family: var(--font-mono); }
.price-summary__drafts { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--tag-soft); border: 1px solid var(--tag-line); font-weight: 600; color: var(--ink); }
.current-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.current-price strong { font-size: 15px; }
.current-price small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 11.5px; }
.diff { display: block; font-size: 11.5px; font-weight: 600; }
.row--dirty td { background: color-mix(in srgb, var(--tag) 10%, transparent); }

/* ============================================================
   Perfil da loja (admin e parceiro)
   ============================================================ */
.store-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.store-editor__side { position: sticky; top: 20px; }
.store-editor__save { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 1100px) { .store-editor { grid-template-columns: minmax(0, 1fr); } .store-editor__side { position: static; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo-tile { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.photo-tile--cover { border-color: var(--tag-deep); box-shadow: 0 0 0 2px var(--tag-soft); }
.photo-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-sunk); }
.photo-tile__badge { position: absolute; top: 10px; left: 10px; }
.photo-tile figcaption { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.photo-tile__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.input--sm { min-height: 34px !important; padding: 6px 10px !important; font-size: 13px; }

.photo-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--brand); background: var(--brand-tint); }
.photo-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop span { font-size: 12.5px; color: var(--muted); }
.photo-drop--busy { opacity: .7; pointer-events: none; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.service-check { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; font-size: 13.5px; cursor: pointer; background: var(--surface); }
.service-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.service-check.on { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }

.app-preview-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); max-width: 300px; margin: 0 auto; }
.app-preview-card__media { height: 130px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--store) 7%, #fff) 0 12px, color-mix(in srgb, var(--store) 11%, #fff) 12px 24px); }
.app-preview-card__media img { width: 100%; height: 100%; object-fit: cover; }
.app-preview-card__media span { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--store); }
.app-preview-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.app-preview-card__body small { color: var(--muted); font-size: 12.5px; }
.app-preview-card__hours { color: var(--save) !important; font-weight: 600; }
.app-preview-card__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.app-preview-card__chips span { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }

.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li.done { color: var(--ink); }
.checklist li.done .icon { color: var(--save); }
.mini-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.mini-stat strong { font-size: 18px; color: var(--ink); }

.store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.store-card-admin { display: block; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .2s; }
.store-card-admin:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-card-admin__media { height: 150px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--store) 7%, #fff) 0 12px, color-mix(in srgb, var(--store) 11%, #fff) 12px 24px); color: var(--ink-2); }
.store-card-admin__media img { width: 100%; height: 100%; object-fit: cover; }
.store-card-admin__media span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.store-card-admin__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.store-card-admin__body small { color: var(--muted); }
.store-card-admin__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ==================== Fotos de produtos (catálogo, ferramentas e moderação) — início ==================== */
.thumb--photo { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 2px; }
.thumb--photo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.product-photo-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.product-photo-admin__img { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.product-photo-admin__img img { width: 100%; height: 200px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.product-photo-admin__img figcaption { font-size: 12px; color: var(--muted); }
.product-photo-admin__drop { min-height: 200px; }
.product-photo-admin__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.photo-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.photo-review { display: flex; flex-direction: column; overflow: hidden; }
.photo-review__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.photo-review__compare figure { margin: 0; display: flex; flex-direction: column; background: var(--surface); }
.photo-review__compare a { display: block; }
.photo-review__compare img { display: block; width: 100%; height: 210px; object-fit: contain; background: #fff; padding: 10px; }
.photo-review__compare figcaption { padding: 6px 12px 8px; font-size: 12px; color: var(--muted); }
.photo-review__emoji { display: grid; place-items: center; height: 210px; font-size: 72px; }
.photo-review__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.photo-review__actions { display: flex; gap: 8px; margin-top: 4px; }
/* ==================== Fotos de produtos — fim ==================== */

/* ===== Administração e site (receita, remoções, marcas, prospecção) ===== */
/* Nota de saúde da conta (0–100) */
.score { display: inline-grid; place-items: center; min-width: 42px; height: 28px; padding: 0 8px; border-radius: 9px; font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
.score--good { background: var(--save-soft); color: var(--save); }
.score--mid { background: color-mix(in srgb, var(--tag) 35%, var(--surface)); color: #7A5600; }
.score--bad { background: var(--up-soft); color: var(--up); }
.health-tips { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.health-tips .ok { color: var(--save); }
.health-tips .no { color: var(--up); }

/* Barras empilhadas do histórico de receita */
.rev-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 220px; padding-top: 10px; }
.rev-bars__col { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.rev-bars__stack { display: flex; flex-direction: column-reverse; border-radius: 8px 8px 3px 3px; overflow: hidden; min-height: 2px; }
.rev-bars__stack i { display: block; }
.rev-bars__total { font-family: var(--font-mono); font-size: 11.5px; text-align: center; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-bars__label { font-size: 12px; text-align: center; color: var(--muted); }
.rev-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.rev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rev-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rev-c1 { background: var(--brand); }
.rev-c2 { background: var(--save); }
.rev-c3 { background: var(--tag); }

/* Cobertura por cidade */
.coverage { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.coverage .meter { flex: 1; }
.coverage .meter i.low { background: var(--up); }
.coverage .meter i.mid { background: var(--tag); }
.coverage .meter i.high { background: var(--save); }
.coverage strong { font-family: var(--font-mono); font-size: 13px; min-width: 40px; text-align: right; }
.goal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.goal-list li { display: flex; gap: 10px; align-items: flex-start; }
.goal-list .icon { color: var(--save); flex: none; margin-top: 2px; }

/* Cartões de pedido de remoção / ofertas / prêmios */
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.req-meta span { display: inline-flex; align-items: center; gap: 6px; }
.req-stores { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.req-stores li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.row--muted td { opacity: .62; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { min-width: 160px; }

/* Relatório de prospecção (imprimível) */
.report { max-width: 900px; }
.report__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--brand); margin-bottom: 20px; }
.report__head h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.025em; line-height: 1.1; }
.report__brand { font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.report__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.report__num { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.report__num strong { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; }
.report__num span { font-size: 13px; color: var(--muted); }
.report__pitch { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.report__foot { margin-top: 24px; font-size: 12.5px; color: var(--muted); }
@media print {
    body:has(.report) .sidebar, body:has(.report) .no-print { display: none !important; }
    body:has(.report) .portal { display: block; background: #fff; }
    body:has(.report) .portal-main { padding: 0; }
    .report { max-width: none; }
    .report .panel, .report__num { box-shadow: none; break-inside: avoid; }
}

/* Site: calculadora, destaques e planos */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calc__result { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--tag-soft); border: 1px solid var(--line); }
.calc__result strong.big { font-family: var(--font-display); font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; line-height: 1; }
.calc__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.golden-rule { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); }
.golden-rule h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.golden-rule p { opacity: .88; }
.pitch-list { display: flex; flex-direction: column; gap: 18px; counter-reset: pitch; }
.pitch { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pitch::before { counter-increment: pitch; content: counter(pitch); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tag); color: var(--on-tag); font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.pitch h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.pitch p { color: var(--ink-2); font-size: 15px; }
.pitch ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 520px) { .pitch { grid-template-columns: 1fr; padding: 20px; } }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
/* ===== fim: Administração e site ===== */

/* ===== Portal: operação (integração, loja, cupons, check-in) ===== */
/* Integrações */
.integ-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
.integ-drop { min-height: 150px; }
.integ-result { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-sunk); }
.integ-result__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.integ-result__grid div { display: flex; flex-direction: column; gap: 2px; }
.integ-result__grid span { font-size: 12px; color: var(--muted); }
.integ-result__grid strong { font-family: var(--font-mono); font-size: 20px; }
.integ-result__grid .ok { color: var(--save); }
.integ-result__grid .bad, .integ-bad { color: var(--up); }
.integ-result__grid .warn { color: #7A5600; }
.integ-messages { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); max-height: 220px; overflow: auto; }
.integ-url { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.integ-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.integ-test { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-sunk); font-size: 12.5px; text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.integ-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.integ-channel { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.integ-channel strong { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.integ-channel strong small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.integ-channel--on { border-color: color-mix(in srgb, var(--save) 35%, var(--line)); }

/* Códigos: itens sem vínculo */
.unmatched { scroll-margin-top: 20px; }
.unmatched__actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Minhas lojas e editor */
.store-card-admin--review { border-color: color-mix(in srgb, var(--tag) 70%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag) 30%, transparent); }
.store-review-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 12.5px; color: #7A5600; }
.store-review-note .icon { flex: none; margin-top: 2px; }
.store-review-banner { margin-bottom: 16px; }
.store-locate { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-orders { border: 0; margin: 0; padding: 0; min-width: 0; }
.store-orders:disabled { opacity: .55; }

/* Cupons de pontos */
.coupon-reject { display: block; margin-top: 4px; font-size: 12.5px; color: var(--up); }
.coupon-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Validar cupom (caixa) */
.validate { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .validate { grid-template-columns: minmax(0, 1fr); } }
.validate__code { font-family: var(--font-mono); font-size: 26px; letter-spacing: .08em; text-transform: uppercase; min-height: 60px; text-align: center; }
.validate__title { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.validate__text { margin-top: 8px; font-size: 17px; }
.validate__hint { display: flex; gap: 14px; align-items: center; padding: 22px; color: var(--muted); }
.validate__hint .icon { flex: none; }
.verdict { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px; border-radius: 20px; text-align: center; }
.verdict strong { font-family: var(--font-display); font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.verdict p { font-size: 16px; }
.verdict__code { font-size: 15px; opacity: .8; }
.verdict--ok { background: var(--save-soft); color: var(--save); }
.verdict--bad { background: var(--up-soft); color: var(--up); }

/* Check-in: cartaz e tela do caixa */
.checkin-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 560px) { .checkin-card { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.checkin-card .qr, .poster-sheet .qr, .checkin-screen .qr { border-radius: 12px; overflow: hidden; background: #fff; }
.checkin-card .qr svg, .poster-sheet .qr svg, .checkin-screen .qr svg { display: block; width: 100%; height: 100%; }
.checkin-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.poster-sheet { display: none; }

.checkin-screen { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; color: #1B1530; padding: clamp(16px, 3vw, 36px); }
.checkin-screen__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkin-screen__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.checkin-screen__store { font-weight: 650; font-size: clamp(16px, 2.2vw, 22px); color: #4A4260; }
.checkin-screen__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.5vh, 28px); text-align: center; }
.checkin-screen__main h1 { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.checkin-screen .checkin-screen__qr { width: min(62vh, 84vw) !important; height: min(62vh, 84vw) !important; }
.checkin-screen__how { font-size: clamp(16px, 2.2vw, 22px); color: #4A4260; }
.checkin-screen__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #6B6480; }
.checkin-screen__fs { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #D8D3E4; background: #fff; color: #4A4260; border-radius: 10px; padding: 6px 12px; font: inherit; cursor: pointer; }
.checkin-screen__fs:focus-visible { outline: 3px solid color-mix(in srgb, var(--tag) 70%, transparent); outline-offset: 2px; }
.checkin-screen__error { margin: auto; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; font-size: 18px; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body:has(.poster-sheet) .sidebar,
    body:has(.poster-sheet) .checkin-screen-only,
    body:has(.poster-sheet) .modal-backdrop { display: none !important; }
    body:has(.poster-sheet) .portal { display: block; background: #fff; min-height: 0; }
    body:has(.poster-sheet) .portal-main { padding: 0; }
    .poster-sheet { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8mm; height: 268mm; padding: 10mm 8mm; box-sizing: border-box;
        border: 1.2mm solid #1B1530; border-radius: 8mm; color: #1B1530; background: #fff; text-align: center; break-inside: avoid; }
    .poster-sheet__brand { display: inline-flex; align-items: center; gap: 4mm; font-family: var(--font-display); font-weight: 800; font-size: 26pt; letter-spacing: -.03em; }
    .poster-sheet__brand .brand__mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .poster-sheet__title { font-family: var(--font-display); font-size: 32pt; line-height: 1.1; letter-spacing: -.02em; }
    .poster-sheet .poster-sheet__qr { width: 125mm !important; height: 125mm !important; }
    .poster-sheet__how { font-size: 16pt; }
    .poster-sheet__store { font-size: 20pt; font-weight: 700; }
    .poster-sheet__foot { font-size: 11pt; color: #4A4260; }
}
/* ===== fim: Portal: operação ===== */

/* ===== Portal: comercial (concorrência, relatórios, campanhas, marcas) ===== */
.lock .grow, .rep-opps .grow, .dash-tasks .grow { flex: 1; min-width: 0; }

/* Tabela de planos (PlanMatrix) */
.plan-matrix__table { font-size: 13.5px; }
.plan-matrix__table th, .plan-matrix__table td { text-align: center; vertical-align: middle; }
.plan-matrix__table .plan-matrix__feature { text-align: left; font-weight: 550; color: var(--ink-2); min-width: 190px; background: var(--surface); position: static; }
.plan-matrix__table thead th { background: var(--surface); position: static; vertical-align: top; padding-top: 16px; white-space: normal; }
.plan-matrix__head { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 130px; }
.plan-matrix__head strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.plan-matrix__price { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-matrix__price small { font-size: 12px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.plan-matrix__tagline { font-size: 12px; font-weight: 500; color: var(--muted); max-width: 170px; }
.plan-matrix__yes { display: inline-grid; place-items: center; color: var(--save); }
.plan-matrix__no { color: var(--muted); }
.plan-matrix__col--current, .plan-matrix__col--featured { background: var(--brand-tint) !important; }
.plan-matrix__table tbody tr:hover td.plan-matrix__col--current, .plan-matrix__table tbody tr:hover td.plan-matrix__col--featured { background: var(--brand-tint-2) !important; }
.plan-matrix__table tfoot td, .plan-matrix__table tfoot th { padding: 14px; border-bottom: 0; }
.plan-matrix__current { pointer-events: none; opacity: .75; }

/* Plano e faturas */
.billing-sub__body { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.billing-sub__body h2 { font-family: var(--font-display); font-size: 22px; margin: 4px 0; }
.billing-sub__price { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.billing-sub__price small { font-size: 14px; font-weight: 500; opacity: .7; }
.billing-sub__note, .billing-note { border-top: 1px solid var(--line); font-size: 13px; }

/* Pesquisa de concorrência */
.cmp-store .input { max-width: 280px; }
.cmp-source { margin-bottom: 18px; }
.cmp-empty { padding: 28px 12px; }
.cmp-table { font-size: 13.5px; }
.cmp-table td, .cmp-table th { padding: 9px 12px; }
.cmp-table .cmp-sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp-table th.cmp-sticky { z-index: 2; background: var(--surface-2); }
.cmp-table .cell-product { min-width: 180px; }
.cmp-own { background: var(--brand-tint); font-weight: 700; }
.cmp-table th.cmp-own { background: var(--brand-tint-2); color: var(--brand); }
.cmp-col-head { display: inline-flex; flex-direction: column; align-items: flex-end; max-width: 150px; white-space: normal; line-height: 1.25; color: var(--ink-2); }
.cmp-col-head small { font-weight: 500; color: var(--muted); font-size: 11px; }
.cmp-cell__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cmp-cell--below { background: color-mix(in srgb, var(--up) 7%, var(--surface)); }
.cmp-cell--below .mono { color: var(--up); font-weight: 650; }
.cmp-promo { font-size: 10px; padding: 1px 6px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; border-top: 1px solid var(--line); }
.cmp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.cmp-swatch--below { background: color-mix(in srgb, var(--up) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--up) 35%, transparent); }
.cmp-manage, .cmp-index, .cmp-roi { margin-top: 18px; }
.cmp-manage > .panel + .panel { margin-top: 0; }
.cmp-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp-list li { display: flex; align-items: center; gap: 10px; }
.cmp-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmp-list__main strong { font-size: 14px; }
.cmp-list__main small { color: var(--muted); font-size: 12.5px; }
.cmp-dot { width: 32px; height: 32px; border-radius: 10px; background: var(--brand); font-size: 13px; }
.cmp-dot--muted { background: var(--surface-sunk); color: var(--ink-2); }
.cmp-sub { margin-top: 20px; }
.cmp-hint { font-size: 13px; }
.cmp-auto { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cmp-auto p { font-size: 12.5px; margin-top: 2px; }
.cmp-alerts { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.cmp-alerts .icon { flex: none; margin-top: 2px; }
.cmp-invite { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tag) 20%, var(--surface)); font-size: 13.5px; }
.cmp-invite > span { flex: 1; min-width: 0; }
.cmp-invite .icon { flex: none; color: var(--brand); }
.cmp-index__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cmp-index__meter { margin-top: 6px; }
.cmp-meter--save { background: var(--save) !important; }
.cmp-meter--up { background: var(--up) !important; }
.cmp-index__help { font-size: 14px; }
.cmp-roi__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cmp-roi__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp-roi__inputs .money-input { width: 100%; }
.cmp-roi__result { padding: 18px 20px; border-radius: 16px; background: var(--brand-tint); border: 1px solid var(--brand-tint-2); display: flex; flex-direction: column; gap: 8px; }
.cmp-roi__line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.cmp-roi__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid var(--brand-tint-2); font-weight: 650; }
.cmp-roi__total strong { font-size: 32px; }
.cmp-roi__note { font-size: 12.5px; }
@media (max-width: 900px) { .cmp-roi__body { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cmp-roi__inputs { grid-template-columns: 1fr; } .cmp-auto, .cmp-invite { flex-direction: column; align-items: stretch; } }

/* Relatórios */
.rep-month { min-width: 200px; }
.rep-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rep-highlight { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--tag-soft); border: 1px solid var(--tag-line, var(--line)); font-size: 14px; font-weight: 550; }
.rep-highlight .icon { flex: none; color: var(--brand); margin-top: 1px; }
.rep-empty { margin-bottom: 18px; }
.rep-section { margin-top: 18px; }
.rep-kpis { margin-bottom: 0; }
.rep-chart { margin-top: 18px; }
.rep-chart .eyebrow { margin-bottom: 4px; }
.rep-total td { font-weight: 700; background: var(--surface-2); }
.rep-demand { margin-top: 20px; }
.rep-h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.rep-note { font-size: 13px; margin-bottom: 10px; }
.rep-opps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-opps li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rep-opps small { display: block; font-size: 12px; }
.rep-foot { margin-top: 18px; font-size: 12.5px; }
@media print {
    body:has(.report-page) { background: #fff; }
    body:has(.report-page) .portal { display: block; background: #fff; }
    body:has(.report-page) .sidebar, .report-page .no-print { display: none !important; }
    body:has(.report-page) .portal-main { padding: 0; }
    .report-page .panel, .report-page .kpi { box-shadow: none; break-inside: avoid; }
    .report-page .panel { border-color: #ddd; }
    .report-page .rep-highlight { background: #fff; border-color: #ddd; }
    .report-page .table-wrap { overflow: visible; }
    .report-page .table th { position: static; }
    .report-page .bars { overflow: visible; }
    .report-page .bars__bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Painel */
.dash-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-shortcut { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.dash-shortcut:hover { border-color: var(--line-strong); background: var(--surface-2); }
.dash-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.dash-shortcut strong { display: block; font-size: 15px; }
.dash-shortcut small { color: var(--muted); font-size: 13px; }
.dash-shortcut__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-tint); color: var(--brand); flex: none; }
.dash-shortcut--main { background: var(--brand-tint); border-color: var(--brand-tint-2); box-shadow: inset 4px 0 0 var(--tag); }
.dash-shortcut--main .dash-shortcut__icon { background: var(--brand); color: var(--on-brand); }
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.dash-kpis .kpi__value { font-size: 26px; }
.dash-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.dash-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-done { display: flex; gap: 8px; align-items: center; color: var(--save); font-weight: 600; }
.dash-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dash-tasks a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 550; }
.dash-tasks a:hover { background: var(--surface-sunk); }
.dash-tasks__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--tag) 35%, var(--surface)); color: var(--brand); flex: none; }
.dash-promos, .dash-row { margin-top: 18px; }
.dash-row > .panel + .panel { margin-top: 0; }
.dash-empty { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dash-index { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dash-index .display { font-size: 26px; }
.dash-small { font-size: 13px; }
.dash-meter { margin-top: 8px; }

/* Promoções: lista e funil */
.camp-note { margin-bottom: 14px; }
.funnel { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.funnel li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.funnel li + li::before { content: "\203A"; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.funnel__value { font-family: var(--font-display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.funnel__label { font-size: 12px; color: var(--muted); font-weight: 550; }
.funnel__detail { font-size: 11px; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }
.funnel__goal { background: var(--save-soft) !important; border-color: color-mix(in srgb, var(--save) 30%, transparent) !important; }
.funnel__goal .funnel__value { color: var(--save); }
@media (max-width: 900px) { .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } .funnel li + li::before { display: none; } }
@media (max-width: 480px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.camp-kpis { margin-bottom: 0; }
.camp-meter { margin-top: 14px; }
.camp-wait { font-size: 13.5px; }
.camp-items { margin-top: 14px; }

/* Promoções: editor */
.billing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.billing-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.billing-card:hover { border-color: var(--line-strong); }
.billing-card strong { font-size: 14.5px; }
.billing-card small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.billing-card__top { display: flex; justify-content: space-between; align-items: center; width: 100%; color: var(--brand); }
.billing-card--on { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.billing-card--locked { opacity: .65; }
.billing-card--locked .billing-card__top { color: var(--muted); }
@media (max-width: 760px) { .billing-cards { grid-template-columns: 1fr; } }
.camp-lock { margin-top: 14px; }
.camp-estimate { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.camp-estimate strong { font-size: 26px; }
.camp-image { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.camp-image__preview { width: 180px; height: 100px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.camp-image__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.camp-upload { position: relative; cursor: pointer; }
.camp-upload:focus-within { outline: 2.5px solid var(--info); outline-offset: 2px; }
.camp-neutral { margin-top: 18px; }
.camp-actions { margin-top: 18px; }
.camp-preview .eyebrow { margin-bottom: 10px; }
.camp-phone { transform: none; width: 300px; max-width: 100%; margin: 0; }
.camp-phone__screen { min-height: 0; }
.camp-phone__hello { font-size: 17px; }
.camp-preview__note { font-size: 12.5px; margin-top: 12px; max-width: 300px; }
.promo-card { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.promo-card__media { position: relative; height: 120px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--store) 10%, #fff) 0 12px, color-mix(in srgb, var(--store) 15%, #fff) 12px 24px); }
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.promo-card__media > span:first-child { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--store); }
.promo-card__badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 99px; background: rgb(22 16 31 / .78); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.promo-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 8px; }
.promo-card__body small { font-size: 12px; }
.promo-card__items { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 6px 12px; }
.promo-card__items > div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; }
.promo-card__items s { font-size: 11px; }
.promo-card__coupon { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 8px 10px; border-radius: 10px; border: 1.5px dashed var(--line-strong); font-size: 12.5px; font-weight: 600; }

/* Portal da marca */
.brand-city { min-width: 180px; }
.brand-table { font-size: 13.5px; }
.brand-row { cursor: pointer; }
.brand-row:focus-visible { outline: 2.5px solid var(--info); outline-offset: -2px; }
.brand-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; border-top: 1px solid var(--line); }
.brand-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.brand-partner { margin-left: 6px; font-size: 10.5px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; min-width: 60px; }
.spark i { display: block; width: 6px; border-radius: 2px 2px 1px 1px; background: var(--brand); opacity: .75; }
.spark i:last-child { opacity: 1; background: var(--tag); }
.bo-under { color: var(--up); }
.bo-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bo-products { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.bo-actions { margin-top: 18px; justify-content: flex-end; }
.bo-meter { height: 5px; margin-top: 4px; min-width: 90px; }
/* ===== fim: Portal: comercial ===== */

/* ===== Avisos do portal ===== */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.notice-item:first-child { border-top: 0; }
.notice-item p { margin: 2px 0 4px; }
.notice-item__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2, #F4F2F8); }
.notice-item--new { background: color-mix(in srgb, var(--brand, #5B4B7A) 6%, transparent); }
.notice-item--new strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--brand, #5B4B7A); vertical-align: middle; }

/* ===== Seus clientes e qualidade dos dados ===== */
.heatmap { display: grid; gap: 3px; font-size: 11.5px; overflow-x: auto; }
.heatmap__row { display: grid; grid-template-columns: 36px repeat(12, minmax(26px, 1fr)); gap: 3px; align-items: center; }
.heatmap__row--head span { color: var(--muted); text-align: center; }
.heatmap__row > span:first-child { color: var(--muted); font-weight: 600; }
.heatmap__cell { height: 26px; border-radius: 6px; display: grid; place-items: center; font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--brand, #2B1B45) calc(var(--heat) * 85%), var(--surface-2, #F5F4F8));
    color: color-mix(in srgb, #fff calc(var(--heat) * 100%), var(--muted, #6B6478)); }
.age-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 6px; background: var(--surface-2); }
.age-bar i { display: block; min-width: 0; }
.age-bar__a { background: #1E9E6A; }
.age-bar__b { background: #E6B325; }
.age-bar__c { background: #E07A2E; }
.age-bar__d { background: #D1453B; }

/* ---------------------------------------------------------------- segurança, equipe e ativação */
.text-danger { color: var(--up); }
.btn--danger-text { color: var(--up); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.otp-input { font-family: var(--font-mono); font-size: 22px !important; letter-spacing: .3em; text-align: center; max-width: 220px; }
.security-grid { align-items: start; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 14px; }
.setup-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.setup-key { font-size: 15px; letter-spacing: .08em; word-break: break-all; margin-top: 4px; }
.recovery-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; border-radius: 12px; background: var(--tag-soft); border: 1px solid var(--tag-line); font-size: 15px; }
.security-nag { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--tag-soft); border: 1px solid var(--tag-line); color: var(--ink); text-decoration: none; font-size: 14px; }
.security-nag > span { flex: 1; }
.sidebar__trial { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--tag-deep); }

.team-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.team-role { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.team-role strong { color: var(--ink); font-size: 15px; }
.role-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role-picker legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.role-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.role-option input { margin-top: 3px; accent-color: var(--brand); }
.role-option small { display: block; color: var(--muted); font-size: 12.5px; }
.role-option--on { border-color: var(--brand); background: var(--brand-tint); }
.invite-link { margin-bottom: 18px; }
.invite-link__row { display: flex; gap: 10px; flex-wrap: wrap; }
.invite-link__row .input { flex: 1 1 320px; font-size: 13px; }

.trial-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 18px; border-radius: 18px; color: var(--ink); text-decoration: none;
    background: radial-gradient(420px 160px at 0% 0%, rgb(255 210 63 / .45), transparent 70%), var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.trial-banner > div { flex: 1; }
.trial-banner p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.trial-banner > .icon:first-child { color: var(--brand); flex: none; }
.trial-banner--active { background: radial-gradient(420px 160px at 0% 0%, rgb(7 120 91 / .16), transparent 70%), var(--save-soft); border-color: color-mix(in srgb, var(--save) 25%, var(--line)); }
.dash-row-top { margin-bottom: 18px; }

.onboarding .panel__head { align-items: center; }
.onboarding__meter { width: 180px; height: 8px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; flex: none; }
.onboarding__meter i { display: block; height: 100%; background: var(--save); border-radius: inherit; transition: width .4s ease; }
.onboarding__steps { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.onboarding__steps a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); height: 100%; }
.onboarding__steps a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.onboarding__steps small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.onboarding__icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.onboarding__steps .is-done a { opacity: .62; }
.onboarding__steps .is-done strong { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.onboarding__steps .is-done .onboarding__icon { background: var(--save-soft); color: var(--save); }
.onboarding__steps .is-next a { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 640px) { .onboarding__meter { width: 100%; } .recovery-codes { grid-template-columns: 1fr; } .trial-banner { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .onboarding__meter i { transition: none; } }
.lead-notes { display: block; margin-top: 6px; padding: 6px 8px; border-left: 3px solid var(--tag); background: var(--tag-soft); border-radius: 6px; color: var(--ink-2); font-size: 12.5px; }
.lead-history { white-space: pre-wrap; font-family: var(--font-body); font-size: 13px; max-height: 200px; overflow: auto; margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
