:root {
  --lime: #C7F154; --lime-2: #B3E03B;
  --ink: #0F1115; --paper: #F4F4F2; --card: #FFFFFF;
  --muted: #8E8E93; --line: #ECEDEE;
  --t-color: #FFC93C; --t-color-2: #FFE066; --t-soft: #FFF6D6;
  --k-color: #6E5BFB; --k-color-2: #A78BFA; --k-soft: #EFEDFF;
  --soft-pink: #FFE9E0; --soft-yellow: #FFF3B5;
  --danger: #FF5247;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; }

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar { display: none; width: 256px; flex-shrink: 0; padding: 28px 18px 24px; background: var(--paper); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; flex-direction: column; }
.sidebar .brand { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: #4a4a52; text-decoration: none; cursor: pointer; }
.sidebar nav a i { font-size: 18px; }
.sidebar nav a:hover { background: rgba(0,0,0,.04); }
.sidebar nav a.active { background: var(--ink); color: #fff; font-weight: 600; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; }
.sidebar .me .name { font-weight: 600; font-size: 14px; }
.sidebar .me .em { color: var(--muted); font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.tabbar { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 18px; z-index: 5; }
.tabbar.hidden, .sidebar.hidden { display: none !important; }
.tab { background: none; border: 0; color: var(--muted); font-size: 10.5px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 14px; cursor: pointer; flex: 1; font-family: inherit; }
.tab i { font-size: 19px; }
.tab.active { color: var(--ink); }
.tab.fab { background: var(--lime); color: var(--ink); width: 56px; height: 56px; border-radius: 50%; margin-top: -28px; box-shadow: 0 8px 20px rgba(199,241,84,.5); flex: 0 0 auto; padding: 0; display: flex; align-items: center; justify-content: center; }
.tab.fab .fab-plus { font-size: 32px; font-weight: 900; line-height: 1; color: var(--ink); }

@media (min-width: 900px) {
  body { background: #E9E8E3; }
  .app-shell { flex-direction: row; }
  .sidebar { display: flex; }
  .tabbar { display: none; }
  .main { padding: 0; background: var(--paper); }
  .page { padding: 36px 40px 48px; max-width: 1100px; width: 100%; margin: 0 auto; }
  .h-title { font-size: 38px !important; }
}

.page { display: none; padding: 8px 18px 100px; flex: 1; }
.page.active { display: block; }

.card { background: var(--card); border-radius: 22px; padding: 18px; margin-bottom: 12px; }
.card-ink { background: var(--ink); color: #fff; }

.btn-primary, .btn-ghost, .btn-soft { border: 0; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-family: inherit; padding: 13px 22px; transition: transform .1s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-primary:active { transform: scale(.98); }
.btn-primary.lime { background: var(--lime); color: var(--ink); }
.btn-primary.lime:hover { background: var(--lime-2); }
.btn-primary.full { width: 100%; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 11px 20px; }
.btn-soft { background: rgba(0,0,0,.06); color: var(--ink); padding: 9px 16px; font-size: 13px; }
.btn-soft.purple { background: var(--k-soft); color: var(--k-color); }
.btn-soft.yellow { background: var(--t-soft); color: #B27000; }
.btn-soft.danger { background: #ffe4e2; color: var(--danger); }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; border: 2px solid #fff; background-size: cover; background-position: center; }
.avatar.t { background: linear-gradient(135deg, var(--t-color), var(--t-color-2)); color: var(--ink); }
.avatar.k { background: linear-gradient(135deg, var(--k-color), var(--k-color-2)); color: #fff; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.xl { width: 88px; height: 88px; font-size: 32px; border-width: 3px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }
.avatar.has-img { color: transparent; }

.bill-wrap { position: relative; overflow: hidden; border-radius: 22px; margin-bottom: 10px; user-select: none; touch-action: pan-y; }
.bill-bg { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 26px; font-weight: 700; font-size: 15px; border-radius: 22px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.bill-bg.pay { background: var(--lime); color: var(--ink); justify-content: flex-end; }
.bill-bg.send { background: var(--k-color); color: #fff; justify-content: flex-start; }
.bill-wrap.swipe-left .bill-bg.pay { opacity: 1; }
.bill-wrap.swipe-right .bill-bg.send { opacity: 1; }
.bill-bg i { font-size: 22px; }

/* ====== Modo compacto da lista de contas ====== */
.lista-compacta .bill-wrap { margin-bottom: 6px; }
.lista-compacta .bill { padding: 10px 14px; border-radius: 14px; gap: 2px 12px; grid-template-columns: 38px 1fr auto; }
.lista-compacta .bill .icon-wrap { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.lista-compacta .bill .titulo { font-size: 14px; margin-bottom: 1px; gap: 5px; }
.lista-compacta .bill .sub { font-size: 11.5px; gap: 6px; }
.lista-compacta .bill .valor { font-size: 15px; }
.lista-compacta .bill .badge { font-size: 10px; margin-top: 2px; }
.lista-compacta .bill .bill-bottom { margin-top: 4px; padding-top: 5px; }
.lista-compacta .bill .bill-react-btn { padding: 1px 6px; font-size: 11px; }
.lista-compacta .bill .reaction-chip { padding: 1px 6px; font-size: 11px; }
.lista-compacta .bill-bg { font-size: 13px; padding: 0 18px; }
.lista-compacta .bill-bg i { font-size: 18px; }

.bill { position: relative; z-index: 2; background: var(--card); border-radius: 22px; padding: 18px 18px 16px; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1); will-change: transform; display: grid; grid-template-columns: 52px 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: start; }
.bill.dragging { transition: none; cursor: grabbing; }
.bill .icon-wrap { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; align-self: center; }
.bill .body { grid-column: 2; grid-row: 1; min-width: 0; }
.bill .titulo { font-weight: 600; font-size: 16px; line-height: 1.25; margin-bottom: 4px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.bill .titulo .recur-ico { font-size: 11px; color: var(--muted); }
.bill .sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill .sub .dot { width: 3px; height: 3px; border-radius: 50%; background: #c8c8cc; }
.bill .right { grid-column: 3; grid-row: 1; text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; align-self: center; }
.bill .valor { font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1; }
.bill .badge { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.bill .bill-bottom { grid-column: 2 / span 2; grid-row: 2; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.bill.paga .bill-bottom { display: none; }
.bill .check-sel { grid-row: 1 / span 2; align-self: center; }
.bill .badge.warn { color: #B27000; }
.bill .badge.danger { color: var(--danger); }
.bill.paga { background: #FAFAF9; }
.bill.paga .titulo, .bill.paga .sub { color: #9a9aa3; }
.bill.paga .valor { color: #9a9aa3; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.bill.paga .icon-wrap { opacity: .55; }
.bill.atrasada { background: var(--soft-pink); }
.bill.pedido { background: var(--soft-yellow); }
.bill .pay-status { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d4d4d8; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-left: 4px; background: #fff; transition: all .12s; }
.bill .pay-status i { font-size: 14px; color: transparent; }
.bill .pay-status:hover { border-color: var(--ink); }
.bill .pay-status.pago { background: var(--lime); border-color: var(--lime); }
.bill .pay-status.pago i { color: var(--ink); }
.bill-wrap.no-swipe .bill-bg { display: none; }

.bill-reactions { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.reaction-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12.5px; font-weight: 500; }
.reaction-chip.mine { background: var(--t-soft); border: 1px solid var(--t-color); }
.bill-meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.bill-meta .meta-item { display: inline-flex; align-items: center; gap: 3px; }

.bill .check-sel { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #d4d4d8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; background: #fff; transition: all .12s; }
.bill .check-sel i { font-size: 14px; color: #fff; opacity: 0; }
.bill .check-sel:hover { border-color: var(--ink); }
.bill .check-sel.on { background: var(--lime); border-color: var(--lime); }
.bill .check-sel.on i { opacity: 1; color: var(--ink); }

.h-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.h-sub { color: var(--muted); font-size: 14px; }
.section-title { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 22px 4px 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.t.active { background: var(--t-color); color: var(--ink); border-color: var(--t-color); }
.chip.k.active { background: var(--k-color); color: #fff; border-color: var(--k-color); }
.input, textarea.input, select.input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; font-size: 15px; font-family: inherit; background: #fff; resize: none; }
.input:focus { outline: none; border-color: var(--ink); }
.input-group label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; }
.toggle .switch { width: 44px; height: 26px; background: #d4d4d8; border-radius: 999px; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle .switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.toggle.on .switch { background: var(--ink); }
.toggle.on .switch::after { transform: translateX(18px); }

.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%) translateY(-200%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .25s; z-index: 100; display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateX(-50%) translateY(0); }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: flex-end; justify-content: center; z-index: 60; }
.modal-back.open { display: flex; }
.modal-card { background: #fff; width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 24px; max-height: 90vh; overflow-y: auto; }
@media (min-width: 700px) { .modal-back { align-items: center; padding: 24px; } .modal-card { border-radius: 24px; } }
.modal-grab { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: -8px auto 16px; }
.modal-card h3 { margin: 0 0 6px; font-size: 19px; }
.modal-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.modal-card .opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; margin-bottom: 8px; }
.modal-card .opt:hover { border-color: var(--ink); }
.modal-card .opt i { font-size: 22px; color: var(--k-color); }
.modal-card .opt .ttl { font-weight: 600; font-size: 15px; }
.modal-card .opt .desc { font-size: 12.5px; color: var(--muted); }

.emoji-picker { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: #fafafa; border-radius: 16px; }
.emoji-picker button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 18px; cursor: pointer; }
.emoji-picker button:hover { transform: scale(1.1); }

.wish { background: var(--card); border-radius: 22px; padding: 16px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.wish .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--lime); display:flex; align-items:center; justify-content:center; font-size: 24px; flex-shrink: 0; }
.wish .ic.casal { background: linear-gradient(135deg, var(--t-color), var(--k-color-2)); color: #fff; }
.wish .ic.k { background: var(--k-color); color: #fff; }
.wish .body { flex: 1; min-width: 0; }
.wish .nome { font-weight: 600; font-size: 15.5px; }
.wish .desc { font-size: 12.5px; color: var(--muted); }
.wish .right { text-align: right; flex-shrink: 0; }
.wish .valor { font-weight: 700; font-size: 17px; }
.wish .parc { font-size: 12px; color: var(--muted); }
.wish .viabilidade { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-top: 4px; display: inline-block; }
.viab-ok { background: #DCFCE7; color: #166534; }
.viab-talvez { background: #FEF3C7; color: #92400E; }
.viab-no { background: #FEE2E2; color: #991B1B; }
.wish.comprado { opacity: .6; }
.wish.comprado .nome { text-decoration: line-through; }

.soma-bar { position: sticky; bottom: 0; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 22px; margin: 16px 0 6px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); flex-wrap: wrap; }
.soma-bar .lbl { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.soma-bar .val { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.soma-bar .qtd { color: var(--lime); font-size: 13px; font-weight: 600; }
.soma-bar button { margin-left: auto; }

.detail-hero { background: var(--ink); color: #fff; padding: 24px 22px 28px; border-radius: 24px; margin-bottom: 14px; }
@media (min-width: 900px) { .detail-hero { padding: 32px; } }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty i { font-size: 36px; opacity: .5; display: block; margin-bottom: 8px; }

.recado { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recado:last-child { border-bottom: 0; }
.recado .body { flex: 1; }
.recado .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.recado .texto { font-size: 14px; line-height: 1.4; }

.row-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; font-family: inherit; }
.row-btn:hover { background: var(--paper); }
.row-btn:not(:last-child) { border-bottom: 1px solid var(--line); }
.row-btn i:first-child { font-size: 18px; color: var(--muted); width: 22px; }

.login-bg { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; padding: 40px 28px; max-width: 420px; margin: 0 auto; }
.login-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
@media (min-width: 900px) { .login-bg { max-width: 460px; padding: 80px 40px; } }

@media (min-width: 900px) {
  .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .lista-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .lista-grid > .bill-wrap, .lista-grid > .wish { margin: 0; }
  .perfil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .compr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.sugs { display: flex; flex-direction: column; gap: 8px; }
.sug { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.sug .ic { font-size: 20px; flex-shrink: 0; line-height: 1; }
.sug.balance { background: var(--k-soft); }
.sug.warn { background: var(--soft-yellow); }
.sug.tip { background: var(--t-soft); }
.sug.ok { background: #DCFCE7; color: #166534; }
.sug.danger { background: var(--soft-pink); }
.sug strong { font-weight: 700; }
.sug.is-action:hover { transform: translateX(2px); }

.notif-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: var(--ink); font-family: inherit; flex-shrink: 0; }
.notif-btn:hover { background: var(--paper); }
.notif-btn .badge-count { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 2px solid var(--paper); }
.notif-btn .badge-count.hidden { display: none; }
.notif-empty { text-align: center; padding: 24px 16px; color: var(--muted); font-size: 14px; }
.notif-section { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 4px 8px; }

/* === v2 === */

/* Swipe hint — primeiro card balança levemente */
@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-22px); }
  40% { transform: translateX(0); }
  60% { transform: translateX(18px); }
  80% { transform: translateX(0); }
}
.bill-wrap.hint .bill { animation: swipeHint 1.8s ease-in-out 0.4s 1; }
.bill-wrap.hint .bill-bg.pay { opacity: 0; animation: hintPay 1.8s ease-in-out 0.4s 1; }
.bill-wrap.hint .bill-bg.send { opacity: 0; animation: hintSend 1.8s ease-in-out 0.4s 1; }
@keyframes hintPay {  0%, 19%, 41%, 100% { opacity: 0; } 20%, 40% { opacity: 1; } }
@keyframes hintSend { 0%, 59%, 81%, 100% { opacity: 0; } 60%, 80% { opacity: 1; } }

/* Setinhas indicadoras nos cantos do bill */
.swipe-arrows { position: relative; }
.swipe-arrows::before, .swipe-arrows::after {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .15; pointer-events: none;
}
.swipe-arrows::before { content: '‹‹'; left: 6px; color: var(--lime-2); }
.swipe-arrows::after { content: '››'; right: 6px; color: var(--k-color); }

/* Filtros agrupados em Contas */
.filtros-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -2px 10px; }
.filtros-row .chip { flex-shrink: 0; }

/* Card de totais por categoria */
.cat-totais { background: #fff; border-radius: 22px; padding: 18px; margin-bottom: 14px; }
.cat-totais .titulo { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cat-totais .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-row .ic { width: 36px; height: 36px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size: 16px; flex-shrink: 0; }
.cat-row .body { flex: 1; min-width: 0; }
.cat-row .nome { font-weight: 600; font-size: 14px; }
.cat-row .qtd { color: var(--muted); font-size: 11.5px; }
.cat-row .val { font-weight: 700; font-size: 15px; text-align: right; }
.cat-row .barra { height: 4px; background: var(--line); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.cat-row .barra-fill { height: 100%; transition: width .4s; }

/* Recado com reações */
.recado-actions { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.recado-react-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12px; cursor: pointer; border: 0; font-family: inherit; }
.recado-react-chip.mine { background: var(--t-soft); border: 1px solid var(--t-color); }
.recado-react-btn { background: rgba(0,0,0,.04); border: 0; border-radius: 999px; width: 22px; height: 22px; display:flex; align-items:center; justify-content:center; cursor: pointer; font-size: 11px; color: var(--muted); }
.recado-react-btn:hover { background: rgba(0,0,0,.1); color: var(--ink); }
.recado-react-picker { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fafafa; border-radius: 12px; margin-top: 6px; }
.recado-react-picker button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 14px; cursor: pointer; }
.recado-react-picker button:hover { transform: scale(1.1); }

/* Modal "perfil do parceiro" */
.parceiro-hero { background: var(--ink); color: #fff; padding: 24px; border-radius: 22px 22px 0 0; margin: -24px -24px 16px; }
.parceiro-hero .av-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.parceiro-hero .totalbig { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.parceiro-hero .lbl { opacity: .65; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.btn-ver-parceiro { width: 100%; padding: 16px; border: 0; border-radius: 18px; background: var(--k-soft); color: var(--k-color); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-size: 14.5px; margin-top: 12px; }
.btn-ver-parceiro:hover { background: #E5E0FF; }

/* Limpar notificações */
.notif-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.notif-actions .btn-soft { flex: 1; }

/* === v3 === */

/* Bill bottom: linha compacta com reações + recados + reagir */
.bill-bottom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bill-bottom .reaction-chip { padding: 2px 7px; font-size: 12px; cursor: pointer; }
.bill-bottom .bill-meta-mini { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; padding: 2px 7px; background: rgba(0,0,0,.04); border-radius: 999px; }
.bill-react-btn {
  background: rgba(0,0,0,.04); border: 0; border-radius: 999px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; color: var(--muted);
  font-family: inherit;
}
.bill-react-btn:hover { background: rgba(0,0,0,.08); color: var(--ink); }

/* Soma-bar com breakdown sempre visível */
.soma-bar { padding: 16px 18px; }
.soma-bar .val { font-size: 24px; }

/* Sidebar me-clickable hover */
.sidebar .me-clickable:hover { background: rgba(0,0,0,.03); }

/* Filtros badge */
#filtrosBadge { font-weight: 700; height: 16px; min-width: 16px; display: inline-flex; align-items: center; justify-content: center; }

/* === v5: animação celebração ao marcar pago === */



/* === v6 === */
.filtros-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filtro-pill {
  background: #fff; border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  transition: all .12s;
}
.filtro-pill:hover { border-color: var(--ink); }
.filtro-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filtro-pill.clear { background: #ffe4e2; color: var(--danger); border-color: #ffe4e2; padding: 7px 10px; }

.filtro-menu {
  position: absolute; z-index: 100;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 2px;
  max-height: 60vh; overflow-y: auto;
}
.filtro-menu button {
  background: none; border: 0; padding: 10px 12px;
  border-radius: 10px; font-size: 14px;
  font-family: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.filtro-menu button:hover { background: var(--paper); }
.filtro-menu button.active { background: var(--ink); color: #fff; font-weight: 600; }

/* Total previsto bold no card preto */
#totalPrevisto { color: #fff !important; font-weight: 700; }

/* Sidebar me-clickable hover */
.sidebar .me-clickable { transition: background .12s; }

/* checkbox novo aparece visível na .lista-grid */


/* === v6.1 swipe flash === */



/* === v7 === */

/* Pull-to-refresh indicator */
#pullIndicator {
  position: fixed; top: -10px; left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 44px; height: 44px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink);
  z-index: 200; pointer-events: none;
  transition: opacity .2s;
}
#pullIndicator.loading { animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: translateX(-50%) rotate(0); } 100% { transform: translateX(-50%) rotate(360deg); } }

/* === Mobile: tudo um pouco menor (default já é mobile) === */
.h-title { font-size: 24px; }
.h-sub { font-size: 13px; }
.kpi-grid { gap: 8px; margin-bottom: 10px; }
.kpi-grid .card { padding: 14px !important; }
.kpi-grid .card div[style*="font-size: 22px"] { font-size: 19px !important; }
.bill { padding: 14px 14px 12px; gap: 4px 12px; grid-template-columns: 44px 1fr auto; }
.bill .icon-wrap { width: 44px; height: 44px; font-size: 20px; border-radius: 14px; }
.bill .titulo { font-size: 14.5px; }
.bill .sub { font-size: 12px; }
.bill .valor { font-size: 16px; }
.section-title { font-size: 11.5px; margin: 16px 4px 8px; }

/* === Perfil estilo rede social === */
.perfil-social-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 14px;
}
.perfil-social-card .banner {
  height: 100px;
  background: linear-gradient(135deg, var(--t-color), var(--lime), var(--k-color-2));
}
.perfil-social-card .avatar-wrap {
  position: absolute;
  top: 50px; left: 50%;
  transform: translateX(-50%);
}
.perfil-social-card .perfil-foto {
  width: 100px; height: 100px; font-size: 36px;
  border: 4px solid var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.perfil-social-card .perfil-foto .cam-btn {
  position: absolute; bottom: 2px; right: 2px;
  background: var(--ink); color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border: 2px solid var(--card);
}
.perfil-social-card .perfil-info {
  padding: 60px 20px 22px;
  text-align: center;
}
.perfil-social-card .nome {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.perfil-social-card .email {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.perfil-social-card .stats {
  display: flex;
  justify-content: space-around;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.perfil-social-card .stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.perfil-social-card .stats strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.perfil-social-card .stats span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

/* Crop modal canvas hover */
#cropCanvas:active { cursor: grabbing; }

@media (min-width: 700px) {
  .h-title { font-size: 28px; }
  .bill { padding: 16px 16px 14px; gap: 4px 14px; grid-template-columns: 50px 1fr auto; }
  .bill .icon-wrap { width: 50px; height: 50px; font-size: 22px; }
  .bill .titulo { font-size: 15.5px; }
  .bill .valor { font-size: 17px; }
}
