﻿/* ============================================================
   Comparei — estilos por tela
   ============================================================ */

.inline-icon { display: inline-block; vertical-align: -1px; }

.page-head { margin: 6px 0 20px; }
.page-head p { margin-top: 6px; font-size: 14px; }
.page-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section--tight { margin-top: 16px; }

/* ---------- Início ---------- */

.home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 18px;
}
.home-head .eyebrow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.home-head__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--brand);
    color: var(--tag);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}
.home-head__streak {
    position: absolute;
    right: -6px;
    bottom: -6px;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px 6px 2px 4px;
    border-radius: 99px;
    background: var(--tag);
    color: var(--on-tag);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--bg);
}

.month-receipt { margin: 0 2px; }
.month-receipt .receipt__line { font-size: 12.5px; }
/* O cupom é sempre papel claro: cores fixas, independentes do tema. */
.receipt .save { color: #07785B; }
.receipt .up { color: #BF3A1F; }
.month-receipt__foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-family: var(--font-body); }
.month-receipt__label { font-weight: 650; font-size: 14px; color: var(--paper-ink); }
.month-receipt__hint { font-size: 12.5px; color: #7B7388; }
.month-receipt .btn--dark { background: #2B1B45; color: #fff; flex: none; }

.scan-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 18px 14px 14px;
    border-radius: var(--r-lg);
    background: radial-gradient(220px 120px at 100% 0%, rgb(255 210 63 / .35), transparent 70%), var(--tag-soft);
    border: 1px solid var(--tag-line);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .15s;
}
.scan-cta:active { transform: scale(.985); }
.scan-cta__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    background: var(--brand);
    color: var(--tag);
    transform: rotate(-4deg);
}
.scan-cta__body { flex: 1; display: flex; flex-direction: column; }
.scan-cta__body strong { font-family: var(--font-display); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.scan-cta__body span { font-size: 13px; color: var(--ink-2); }
.scan-cta--quiet { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.scan-cta--quiet .scan-cta__icon { background: var(--tag); color: var(--on-tag); }
.scan-cta--quiet .scan-cta__body span { color: var(--muted); }

.drop-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 172px;
    padding: 14px;
}
.drop-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.drop-card__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-card__detail { font-size: 12px; color: var(--muted); }
.drop-card__prices { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }

.compare-row__line { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.compare-row__line .muted { overflow: hidden; text-overflow: ellipsis; }
.compare-row__diff {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 10px;
    background: var(--save-soft);
    color: var(--save);
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.next-list {
    display: block;
    padding: 18px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(260px 160px at 100% 0%, rgb(255 210 63 / .3), transparent 70%),
        var(--brand-tint);
    border: 1px solid var(--brand-tint-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.next-list__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.next-list__sub { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.next-list__stats { display: grid; grid-template-columns: auto 1fr; gap: 28px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--brand-tint-2); }
.next-list__stats > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.next-list .eyebrow { color: var(--muted); }
.next-list__store { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.offer { overflow: hidden; display: block; }
.offer + .offer { margin-top: 14px; }
.offer__band {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--store) 10%, var(--surface));
    border-bottom: 1px solid var(--line);
}
.offer__band > div { flex: 1; min-width: 0; }
.offer__title { font-family: var(--font-display); font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.offer__sub { font-size: 12.5px; color: var(--muted); }
.offer__items { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 8px; }
.offer__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.offer__item + .offer__item { border-left: 1px dashed var(--line); }
.offer__foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.store-card { width: 150px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.store-card__name { font-weight: 600; font-size: 14px; line-height: 1.25; margin-top: 4px; }
.store-card__meta { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }

/* ---------- Escanear ---------- */

.screen--bleed { display: flex; flex-direction: column; }
.screen--bleed > .page-enter { flex: 1; display: flex; flex-direction: column; }

.scan {
    --scan-bg: #0D0913;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    padding: calc(var(--safe-top) + 12px) 18px calc(var(--safe-bottom) + 16px);
    background:
        radial-gradient(120% 60% at 50% 38%, #2A2233 0%, #15101C 55%, var(--scan-bg) 100%);
    color: #fff;
}
.scan__top { display: flex; align-items: center; justify-content: space-between; }
.scan__title { font-family: var(--font-display); font-weight: 650; font-size: 17px; }
.scan__flash--on { background: var(--tag); color: var(--on-tag); border-color: var(--tag); }

.viewfinder {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 360px;
    margin: 12px -18px 0;
    overflow: hidden;
}
.viewfinder__scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    filter: blur(.4px) brightness(.9);
}
.fake-receipt {
    width: 210px;
    padding: 18px 18px 22px;
    background: linear-gradient(180deg, #F4F1EC, #E6E1DA);
    border-radius: 3px;
    transform: rotate(-5deg) translateY(-26px);
    box-shadow: 0 30px 50px -10px rgb(0 0 0 / .6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fake-receipt__lines { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.fake-receipt__lines i { display: block; height: 5px; border-radius: 2px; background: #BDB6C4; }
.fake-receipt__qr { width: 118px; height: 118px; fill: #1D1724; }
.fake-receipt__key { font-family: var(--font-mono); font-size: 6.5px; color: #5E566A; text-align: center; letter-spacing: .02em; }

.viewfinder__frame {
    position: relative;
    width: 172px;
    height: 172px;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.viewfinder__frame--photo { width: 250px; height: 320px; }
.viewfinder__frame > span {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 4px solid var(--tag);
    transition: border-color .3s;
}
.viewfinder__frame > span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.viewfinder__frame > span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.viewfinder__frame > span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.viewfinder__frame > span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.viewfinder--found .viewfinder__frame > span { border-color: #3DD6A8; }
.viewfinder--found .viewfinder__frame { animation: found-pulse .45s var(--ease-out); }
@keyframes found-pulse { 50% { transform: scale(.94); } }

.viewfinder__laser {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    top: 10%;
    background: var(--tag);
    box-shadow: 0 0 14px 3px rgb(255 210 63 / .55);
    border-radius: 2px;
    animation: laser 2.2s ease-in-out infinite alternate;
}
@keyframes laser { to { top: 90%; } }

.viewfinder__hint {
    position: absolute;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 99px;
    background: rgb(0 0 0 / .55);
    backdrop-filter: blur(10px);
    font-size: 13.5px;
    font-weight: 550;
}
.viewfinder--found .viewfinder__hint { background: #0B9A76; }

.scan__bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; }
.scan__tip { font-size: 12.5px; color: rgb(255 255 255 / .6); text-align: center; }
.shutter {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid rgb(255 255 255 / .9);
}
.shutter span { width: 58px; height: 58px; border-radius: 50%; background: var(--tag); transition: transform .15s; }
.shutter:active span { transform: scale(.88); }

.scan-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    margin-top: 8px;
    border-radius: 16px;
    background: rgb(255 255 255 / .08);
}
.scan-modes button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgb(255 255 255 / .65);
}
.scan-modes button.on { background: #fff; color: #1D1724; }

.scan-key { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 36px; }
.scan-key .muted { color: rgb(255 255 255 / .6); }
.scan-key__field textarea {
    width: 100%;
    resize: none;
    margin-top: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1.5px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .06);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .03em;
    outline: 0;
}
.scan-key__field textarea:focus { border-color: var(--tag); }
.scan-key__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgb(255 255 255 / .6); }
.scan-key .btn--ghost { background: rgb(255 255 255 / .1); color: #fff; border-color: transparent; }
.scan-key .btn--primary { margin-top: auto; }

.scan-progress { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; }
.scan-progress__receipt { width: 220px; }
.scan-progress__bar {
    height: 7px;
    width: var(--w);
    margin: 8px 0;
    border-radius: 3px;
    background: #D8D2DF;
    transform-origin: left;
    animation: print .5s var(--ease-out) var(--d) both;
}
@keyframes print { from { transform: scaleX(0); } }
.scan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 290px; }
.scan-steps__item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgb(255 255 255 / .4); transition: color .3s; }
.scan-steps__item--done, .scan-steps__item--doing { color: #fff; }
.scan-steps__dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255 / .25);
}
.scan-steps__item--done .scan-steps__dot { background: #3DD6A8; border-color: #3DD6A8; color: #0D0913; }
.scan-steps__item--doing .scan-steps__dot { border-color: var(--tag); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Notas ---------- */

.contrib { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 16px 8px; }
.contrib__stat { display: flex; flex-direction: column; gap: 2px; }
.contrib__stat + .contrib__stat { border-left: 1px solid var(--line); }
.contrib__stat .display { font-size: 26px; }
.contrib__stat .eyebrow { font-size: 10px; }
.month-total { font-size: 13px; }

/* ---------- Detalhe / revisão da nota ---------- */

.review-hero { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.review-hero p { margin-top: 4px; font-size: 14px; }
.review-hero__badge {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 14px;
    background: var(--save);
    color: #fff;
    animation: pop .5s var(--ease-out) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.review-stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-bottom: 20px; }
.review-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.review-stat .display { font-size: 22px; color: var(--ink); }
.review-stat--up .display { color: var(--up); }
.review-stat--down .display { color: var(--save); }

.receipt-full { margin: 0 2px; padding-top: 22px; }
.receipt-full__store { display: flex; justify-content: center; margin-bottom: 10px; }
.receipt-full__meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #6C6577; }

.receipt-items { list-style: none; margin: 0; padding: 0; }
.receipt-item + .receipt-item { border-top: 1px dotted var(--paper-dash); }
.receipt-item__link { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.receipt-item__emoji { font-size: 18px; line-height: 1.2; flex: none; width: 22px; text-align: center; }
.receipt-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.receipt-item__name { font-weight: 600; font-size: 12px; letter-spacing: .01em; }
.receipt-item__qty { font-size: 11.5px; color: #7B7388; }
.receipt-item__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-family: var(--font-body); }
.receipt-item__flags .delta { font-size: 11px; padding: 2px 7px 2px 5px; }
.receipt-item__flags .delta--down { background: #DAF4EB; color: #07785B; }
.receipt-item__flags .delta--up { background: #FCE5DF; color: #BF3A1F; }
.receipt-item__best { font-size: 11px; font-weight: 600; color: #07785B; padding: 2px 0; }
.receipt-item__total { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }

.review-actions {
    position: sticky;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px calc(var(--gutter) * -1) -28px;
    padding: 4px var(--gutter) calc(var(--safe-bottom) + 16px);
    background: var(--bg);
    box-shadow: 0 -18px 18px -2px var(--bg);
}
.review-actions__note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--muted); padding: 6px 0 2px; }
.review-actions__note .icon { flex: none; color: var(--save); margin-top: 1px; }

/* ---------- Preços ---------- */

.category-row { margin-top: 14px; }
.tabs { margin-top: 10px; }
.result-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.insight-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: var(--r-md);
    background: var(--up-soft);
    color: var(--ink);
    font-size: 14px;
}
.insight-banner .icon { flex: none; color: var(--up); }

.compare-list { display: flex; flex-direction: column; gap: 12px; }
.compare-card { display: block; padding: 14px; }
.compare-card__head { display: flex; align-items: center; gap: 12px; }
.compare-card__versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
}
.compare-card__versus > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.compare-card__versus .eyebrow { font-size: 9.5px; }
.compare-card__paid { color: var(--ink-2); }

.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.empty .btn { margin-top: 8px; }
.empty--page { padding-top: 30vh; align-items: center; text-align: center; }

/* ---------- Produto ---------- */

.icon-btn--on { background: var(--tag); border-color: var(--tag); color: var(--on-tag); }

.product-hero { display: flex; gap: 16px; align-items: center; }
.product-hero .eyebrow { margin-bottom: 4px; }
.product-hero .muted { font-size: 14px; margin-top: 4px; }

.best-now { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.best-now .shelf-tag { transform: rotate(-2deg); flex: none; }
.best-now__where { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.best-now__where .store-inline { font-size: 14px; font-weight: 600; color: var(--ink); }
.best-now__meta { display: flex; align-items: center; gap: 4px; font-size: 12px; }

.you-paid { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; }
.you-paid .icon { flex: none; }
.you-paid--more { background: var(--up-soft); }
.you-paid--more .icon { color: var(--up); }
.you-paid--good { background: var(--save-soft); }
.you-paid--good .icon { color: var(--save); }

.chart { position: relative; margin: 0; }
.chart svg { width: 100%; height: 150px; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__line { stroke: var(--ink); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart__you { fill: var(--tag); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__now { fill: var(--ink); stroke: var(--surface); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart__axis { position: absolute; inset: 0 0 auto auto; height: 150px; pointer-events: none; }
.chart__axis span { position: absolute; right: 0; transform: translateY(-120%); font-family: var(--font-mono); font-size: 10px; color: var(--muted); background: var(--surface); padding: 0 2px; }
.chart__legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__key { display: inline-block; }
.chart__key--line { width: 16px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.chart__key--you { width: 10px; height: 10px; border-radius: 50%; background: var(--tag); }

.store-price__rank { width: 16px; font-size: 12px; color: var(--muted); text-align: center; flex: none; }
.store-price--best { background: color-mix(in srgb, var(--tag) 14%, transparent); }
.store-price--best:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.store-price__over { font-size: 11.5px; color: var(--up); }

.sticky-actions {
    position: sticky;
    bottom: -28px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    margin: 20px calc(var(--gutter) * -1) -28px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    box-shadow: 0 -18px 18px -2px var(--bg);
}
.sticky-actions .btn { padding: 0 12px; }

/* ---------- Lista ---------- */

.plan {
    padding: 16px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(240px 140px at 100% 0%, rgb(255 210 63 / .3), transparent 70%),
        var(--brand-tint);
    border: 1px solid var(--brand-tint-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
/* "--dark" mantido por compatibilidade com o markup; agora é um segmented claro sobre lavanda. */
.segmented--dark { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.segmented--dark button { color: var(--ink-2); }
.segmented--dark button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.plan__total { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 20px 4px 18px; }
.plan__stops { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--brand-tint-2); padding-top: 10px; }
.plan__stop { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 6px 4px; }
.plan__stop .store-avatar { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.plan__stop-name { font-weight: 600; font-size: 14px; }
.plan__stop-meta { font-size: 12.5px; color: var(--ink-2); }

.list-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.list-progress__text { font-size: 13.5px; color: var(--muted); }
.list-progress__text strong { color: var(--ink); }

.checklist__row { transition: opacity .25s; }
.checklist__row--done { opacity: .5; }
.checklist__row--done .list-row__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.checklist__reason { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checklist__reason .icon { flex: none; }
.checklist__reason--routine .icon { color: var(--info); }
.checklist__reason--pricedrop .icon { color: var(--save); }
.checklist__reason--pricedrop { color: var(--save); font-weight: 550; }
.checklist__reason--runninglow .icon { color: var(--up); }
.checklist__reason--frequentlyboughttogether .icon { color: var(--tag-deep); }
.checklist__end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.checklist__qty { font-size: 11.5px; color: var(--muted); }
.checklist__price { font-size: 13.5px; font-weight: 600; }

.list-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.list-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--routine { background: var(--info); }
.dot--pricedrop { background: var(--save); }
.dot--runninglow { background: var(--up); }

/* ---------- Perfil ---------- */

.profile-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile-hero .muted { font-size: 13.5px; margin: 2px 0 8px; }
.profile-hero__avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 24px;
    background: var(--brand);
    color: var(--tag);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    transform: rotate(-4deg);
}

.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.impact__grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.impact__grid .display { font-size: 26px; color: var(--ink); }
.impact__streak { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: var(--r-sm); background: var(--tag-soft); border: 1px solid var(--tag-line); font-size: 13px; }
.impact__streak .icon { flex: none; color: var(--up); }

.spend { display: flex; flex-direction: column; gap: 12px; }
.spend__row { display: grid; grid-template-columns: 116px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.spend__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spend__bar { height: 8px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.spend__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.spend__value { font-size: 12px; text-align: right; min-width: 72px; }

.settings__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }

.partner-cta { display: flex; align-items: center; gap: 14px; border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.partner-cta > div { flex: 1; }
.partner-cta__title { font-weight: 650; }
.partner-cta .muted { font-size: 13px; }

.app-version { text-align: center; font-size: 11px; color: var(--muted); margin: 28px 0 8px; }
