/* Logo */
.logo { background: #e6dccd; padding: 0; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth .logo-big { width: 108px; height: 108px; border-radius: 30px; background: #e6dccd; overflow: hidden; backdrop-filter: none; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); }
.auth .logo-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth .hero { padding-top: 28px; }

/* Gráficos */
.chart { width: 100%; height: auto; display: block; }
.chart .ax { font-size: 9.5px; fill: var(--muted); font-weight: 600; }
.chart .val { font-size: 9px; fill: var(--ink); font-weight: 800; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-big { font-family: var(--display); font-size: 25px; font-weight: 700; fill: var(--ink); }
.donut-small { font-size: 9.5px; fill: var(--muted); font-weight: 700; }
.donut-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.legend.col { flex-direction: column; gap: 9px; }
.legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; flex: none; }
.legend b { color: var(--ink); }
.hbars { display: grid; gap: 14px; }
.hb .track { height: 9px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 5px; }
.hb .track i { display: block; height: 100%; border-radius: 9px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-title h3 { font-family: var(--font); font-size: 15px; font-weight: 800; }

/* Chat */
.convo { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; }
.convo:last-child { border-bottom: 0; }
.convo:hover { background: var(--grad-soft); border-radius: 14px; }
.convo .avatar { width: 48px; height: 48px; }
.convo .group-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.convo .group-ico svg { width: 24px; height: 24px; }
.unread-badge { min-width: 22px; height: 22px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; flex: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.msg .chat-img { max-width: 240px; width: 100%; border-radius: 12px; margin: 4px 0; cursor: zoom-in; display: block; }
.msg .who { font-size: 12.5px; }
.msg.me .who { color: rgba(255,255,255,.85); }
.emoji-panel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); margin-bottom: 8px; }
.emoji-panel button { font-size: 22px; padding: 4px 0; border-radius: 10px; line-height: 1.2; }
.emoji-panel button:hover { background: var(--grad-soft); }
.chat-input .icon-btn { align-self: center; }
.chat-wrap.dm .chat-scroll { padding-top: 12px; }

/* Caixa */
.amount-in { color: var(--ok); font-weight: 800; white-space: nowrap; }
.amount-out { color: var(--bad); font-weight: 800; white-space: nowrap; }
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--grad-soft); flex: none; display: grid; place-items: center; color: var(--brand); border: 1px solid var(--line); cursor: pointer; }
.thumb svg { width: 22px; height: 22px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--violet-bg); color: var(--brand); font-size: 11.5px; font-weight: 800; }
.entry { display: flex; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.entry:last-child { border-bottom: 0; }
.entry .body { flex: 1; min-width: 0; }
.entry .note-txt { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.file-pick { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px dashed var(--brand2); border-radius: 16px; cursor: pointer; background: var(--grad-soft); font-weight: 700; color: var(--brand); }
.file-pick svg { width: 22px; height: 22px; flex: none; }
.file-pick .fn { color: var(--ink); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick input { display: none; }

/* Membros */
.mcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .15s; }
.mcard:hover { transform: translateY(-1px); }
.mcard + .mcard { margin-top: 10px; }
.mcard .avatar { width: 56px; height: 56px; font-size: 18px; }
.mcard.inactive { opacity: .6; }
.pending-card { border: 1.5px dashed var(--brand2); background: var(--grad-soft); box-shadow: none; cursor: default; align-items: flex-start; flex-wrap: wrap; }
.pending-card:hover { transform: none; }
.mini { font-size: 12.5px; color: var(--muted); }
.avatar-edit.admin { margin-bottom: 14px; }

/* Valores */
.value-big { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; }
.rate-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.rate-row:last-child { border-bottom: 0; }

/* Aviso de instalação */
.install-banner { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.install-banner .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.install-banner .ico svg { width: 21px; height: 21px; }
@media (min-width: 900px) { .install-banner { margin: 16px 28px 0; max-width: 824px; } }

.inline-preview { max-width: 100%; max-height: 220px; border-radius: 14px; margin-top: 8px; object-fit: contain; background: var(--line); }
.status-box { padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 13.5px; }
.status-box.review { background: var(--warn-bg); color: var(--warn); }
.status-box.reject { background: var(--bad-bg); color: var(--bad); }

.item.stack { flex-wrap: wrap; }
.item.stack > .stack-actions { width: 100%; display: flex; justify-content: flex-end; }

.stat .n { font-size: clamp(19px, 5.6vw, 28px); white-space: nowrap; }

/* Mensalidade: grade dos 12 meses */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(4, 1fr); } }
.mtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 10px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); text-align: center; transition: transform .12s, border-color .12s, box-shadow .12s; cursor: pointer; width: 100%; color: var(--ink); font: inherit; }
.mtile b { font-family: var(--display); font-size: 18px; }
.mtile .amt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mtile .st { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin-top: 2px; }
.mtile.paid { background: var(--ok-bg); border-color: transparent; cursor: default; } .mtile.paid .st { color: var(--ok); }
.mtile.late { border-color: color-mix(in srgb, var(--bad) 45%, transparent); } .mtile.late .st { background: var(--bad-bg); color: var(--bad); }
.mtile.pending .st { background: var(--info-bg); color: var(--info); }
.mtile.future { border-style: dashed; } .mtile.future .st { background: var(--line); color: var(--muted); }
.mtile.review { background: var(--warn-bg); border-color: transparent; cursor: default; } .mtile.review .st { color: var(--warn); }
.mtile.exempt { background: var(--violet-bg); border-color: transparent; cursor: default; } .mtile.exempt .st { color: var(--brand); }
.mtile.na { opacity: .4; cursor: default; box-shadow: none; }
.mtile.sel { border-color: var(--brand); border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); transform: translateY(-1px); }
.mtile .tick { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; display: none; place-items: center; }
.mtile.sel .tick { display: grid; } .mtile .tick svg { width: 12px; height: 12px; stroke-width: 3; }
.mtile:disabled { color: var(--ink); }
