.collab-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-bottom:8px}
.collab-card{background:var(--card-bg);border:1px solid var(--border);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:0;transition:box-shadow .2s,border-color .2s,transform .2s;cursor:pointer;position:relative;overflow:hidden}
.collab-card::before{content:"";position:absolute;inset:0;border-radius:20px;background:linear-gradient(135deg,rgba(124,58,237,.06) 0%,transparent 60%);opacity:0;transition:opacity .2s;pointer-events:none}
.collab-card:hover{border-color:rgba(124,58,237,.45);box-shadow:0 8px 32px rgba(124,58,237,.14),0 2px 8px rgba(0,0,0,.12);transform:translateY(-2px)}
.collab-card:hover::before{opacity:1}
.collab-card.collab-card-access{border-color:rgba(124,58,237,.2)}
.collab-card.collab-card-inactive{opacity:.65}
.collab-card-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.collab-card-avatar-wrap{position:relative;display:inline-flex}
.collab-access-dot{position:absolute;bottom:2px;right:2px;width:11px;height:11px;border-radius:50%;background:var(--border);border:2px solid var(--card-bg)}
.collab-access-dot.dot-online{background:#22c55e}
.collab-edit-btn{opacity:0;transition:opacity .15s}
.collab-card:hover .collab-edit-btn{opacity:1}
.collab-card-identity{margin-bottom:14px}
.collab-card-name{font-size:15px;font-weight:800;letter-spacing:-.01em;margin-bottom:2px;line-height:1.2}
.collab-card-role{font-size:12px;color:var(--text-2);margin-bottom:8px;font-weight:500}
.collab-card-access-badge{display:flex}
.collab-badge-access{font-size:11px;font-weight:700;color:#22c55e;background:rgba(34,197,94,.1);border-radius:20px;padding:3px 9px;letter-spacing:.01em}
.collab-badge-noaccess{font-size:11px;font-weight:600;color:var(--text-3);background:var(--bg-2);border-radius:20px;padding:3px 9px}
.collab-badge-inativo{font-size:10px;font-weight:700;color:var(--text-3);background:var(--bg-2);border-radius:8px;padding:2px 6px;vertical-align:middle;margin-left:5px}
.collab-card-divider{height:1px;background:var(--border);margin-bottom:14px}
.collab-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.collab-stat{background:var(--bg-2);border-radius:12px;padding:10px 12px}
.collab-stat-val{font-size:13px;font-weight:800;line-height:1.1;margin-bottom:3px;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.collab-stat-lbl{font-size:10px;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.stat-mini{background:var(--bg-2);border-radius:10px;padding:10px 12px}
.stat-mini-val{font-size:16px;font-weight:800;margin-bottom:2px}
.stat-mini-lbl{font-size:11px;color:var(--text-2);text-transform:uppercase;letter-spacing:.04em}
@media(max-width:600px){.collab-grid{grid-template-columns:1fr}}

/* ── Projetos: cards mobile ── */
.proj-card-row{display:none}
@media(max-width:700px){
  .proj-table thead{display:none}
  .proj-tr{display:none!important}
  .proj-card-row{display:table-row!important}
  .proj-card-row>td{padding:4px 0!important;border:none!important;max-width:0}
  .table-wrap{overflow-x:hidden!important;background:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
  .proj-table{width:100%!important;table-layout:fixed!important}
}
/* proj-card premium compact */
.proj-card{background:var(--card-bg);border:1px solid var(--border);border-left:3px solid var(--border);border-radius:10px;padding:10px 12px 9px;margin-bottom:5px;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .1s}
.proj-card:hover{border-color:rgba(124,58,237,.4);border-left-color:rgba(124,58,237,.8);box-shadow:0 3px 12px rgba(124,58,237,.1);transform:translateX(1px)}
.proj-card[data-pstatus="em_andamento"]{border-left-color:#7c3aed}
.proj-card[data-pstatus="planejamento"]{border-left-color:#3b82f6}
.proj-card[data-pstatus="concluido"]{border-left-color:#22c55e}
.proj-card[data-pstatus="pausado"]{border-left-color:#f59e0b}
.proj-card[data-pstatus="cancelado"]{border-left-color:#ef4444}
.proj-card-r1{display:flex;align-items:center;gap:5px;margin-bottom:5px;min-width:0}
.proj-card-type-icon{display:flex;align-items:center;flex-shrink:0}
.proj-card-type-icon .ic{width:13px;height:13px;color:var(--text-3)}
.proj-card-name{font-size:13px;font-weight:700;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.proj-card-meet{font-size:9px;font-weight:700;color:#7c3aed;background:rgba(124,58,237,.1);border-radius:4px;padding:1px 5px;white-space:nowrap;flex-shrink:0}
.proj-card-r1-right{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}
.proj-card-menu-btn{background:none;border:none;cursor:pointer;color:var(--text-3);padding:0 2px;display:flex;align-items:center;opacity:0;transition:opacity .15s}
.proj-card-menu-btn .ic{width:13px;height:13px}
.proj-card:hover .proj-card-menu-btn{opacity:1}
.proj-card-r2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.proj-card-client2{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-2);min-width:0;overflow:hidden}
.proj-card-client2 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.proj-card-due2{font-size:11px;color:var(--text-3);white-space:nowrap}
.proj-card-overdue{color:#ef4444!important;font-weight:600}
.proj-card-av2{display:flex;flex-shrink:0}
.proj-card-late2{font-size:10px;font-weight:700;color:#ef4444;background:rgba(239,68,68,.1);border-radius:4px;padding:1px 5px;white-space:nowrap}
.proj-card-prog2{display:flex;align-items:center;gap:6px;margin-top:7px}
.proj-card-prog-bar{flex:1;height:2px;background:var(--border);border-radius:99px;overflow:hidden}
.proj-card-prog-bar i{display:block;height:100%;background:var(--primary);border-radius:99px;transition:width .3s}
.proj-card-prog-pct{font-size:10px;color:var(--text-3);white-space:nowrap;flex-shrink:0}

/* ── Seleção em massa (recorrentes) ── */
.rec-check-wrap{display:flex;align-items:center;flex-shrink:0;padding:0 4px}
.rec-check{width:16px;height:16px;accent-color:var(--primary);cursor:pointer;border-radius:4px}
.fin-rec-list-header{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border);margin-bottom:4px}
.rec-bulk-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--primary);border-radius:12px;margin-bottom:12px;animation:slide-in-top .2s ease}
.rec-bulk-bar.hidden{display:none}
@keyframes slide-in-top{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.rec-bulk-count{font-size:13px;font-weight:700;color:#fff;white-space:nowrap}
.rec-bulk-actions{display:flex;gap:6px;flex:1;flex-wrap:wrap}
.rec-bulk-actions .btn{font-size:12px;padding:5px 12px;border-radius:8px;font-weight:700;white-space:nowrap}
.btn-danger{background:rgba(239,68,68,.15);color:#f87171;border:1px solid rgba(239,68,68,.3)}
.btn-danger:hover{background:rgba(239,68,68,.25)}
.btn-ghost{background:rgba(255,255,255,.1);color:rgba(255,255,255,.7);border:none;font-size:13px;padding:4px 8px;border-radius:6px;cursor:pointer}
.btn-ghost:hover{background:rgba(255,255,255,.2);color:#fff}
@media(max-width:600px){.rec-bulk-actions{gap:4px}.rec-bulk-actions .btn{font-size:11px;padding:4px 8px}}

/* ── Cartões de Crédito Premium ── */
.pat-cartoes-section{margin-top:24px}
.credit-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.credit-card{border-radius:20px;padding:22px 24px;display:flex;flex-direction:column;gap:12px;cursor:pointer;transition:transform .2s,box-shadow .25s;position:relative;overflow:hidden;min-height:185px;border:1px solid rgba(255,255,255,.08)}
.credit-card:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 20px 48px rgba(0,0,0,.45)}
.credit-card::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.06) 0%,transparent 60%);pointer-events:none}
.credit-card-top{display:flex;justify-content:space-between;align-items:flex-start}
.credit-card-chip{}
.credit-card-network{}
.credit-card-name{font-size:15px;font-weight:700;color:#fff;letter-spacing:.02em;text-shadow:0 1px 4px rgba(0,0,0,.4);flex:1}
.credit-card-bottom{display:flex;justify-content:space-between;align-items:flex-end;margin-top:auto}
.credit-card-fatura-label{font-size:10px;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.credit-card-fatura-val{font-size:22px;font-weight:800;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5);letter-spacing:-.01em}
.credit-card-fatura-val.aberto{color:#fca5a5}
.credit-card-due{font-size:11px;color:rgba(255,255,255,.55);margin-bottom:4px}
.credit-card-status-badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:99px;display:inline-block}
.credit-card-status-badge.ok{background:rgba(34,197,94,.25);color:#86efac}
.credit-card-status-badge.aberto{background:rgba(239,68,68,.25);color:#fca5a5}
.credit-card-limit-bar-wrap{margin-top:4px}
.credit-card-limit-bar{height:3px;background:rgba(255,255,255,.15);border-radius:99px;overflow:hidden;margin-bottom:4px}
.credit-card-limit-fill{height:100%;background:rgba(255,255,255,.5);border-radius:99px;transition:width .4s}
.credit-card-limit-txt{font-size:10px;color:rgba(255,255,255,.45)}

/* ── Modal Fatura ── */
.fatura-card-header{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 60%,#0f3460 100%);border-radius:16px;padding:24px;margin-bottom:20px}
.fatura-nav{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.fatura-nav-btn{background:rgba(255,255,255,.12);border:none;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .15s}
.fatura-nav-btn:hover{background:rgba(255,255,255,.22)}
.fatura-nav-label{font-size:14px;font-weight:700;color:#fff;letter-spacing:.06em;text-transform:uppercase;flex:1;text-align:center}
.fatura-hero{text-align:center;margin-bottom:20px}
.fatura-hero-label{font-size:11px;color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.fatura-hero-val{font-size:36px;font-weight:800;color:#fff;letter-spacing:-.02em;text-shadow:0 2px 8px rgba(0,0,0,.3)}
.fatura-hero-aberto{font-size:12px;color:#fca5a5;font-weight:600;margin-top:6px}
.fatura-hero-ok{font-size:12px;color:#86efac;font-weight:600;margin-top:6px}
.fatura-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.fatura-stat{background:rgba(255,255,255,.08);border-radius:10px;padding:8px 10px;text-align:center;min-width:0}
.fatura-stat-lbl{font-size:9px;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fatura-stat-val{font-size:12px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fatura-stat-val.pos{color:#86efac}
@media(max-width:480px){.fatura-stats{grid-template-columns:repeat(2,1fr)}}
.fatura-limit-bar{height:4px;background:rgba(255,255,255,.12);border-radius:99px;overflow:hidden}
.fatura-limit-fill{height:100%;background:linear-gradient(90deg,#86efac,#fca5a5);border-radius:99px;transition:width .4s}
.fatura-items-wrap{margin-bottom:16px}
.fatura-items-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px;font-size:12px;font-weight:700;color:var(--text-2);text-transform:uppercase;letter-spacing:.06em}
.fatura-rows{display:flex;flex-direction:column;gap:1px}
.fatura-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.fatura-row:last-child{border-bottom:none}
.fatura-row.pago{opacity:.6}
.fatura-row-info{flex:1;min-width:0}
.fatura-row-desc{font-size:13px;font-weight:600;color:var(--text-1);margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fatura-row-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fatura-row-meta span{font-size:11px;color:var(--text-3)}
.fatura-badge-pago{font-size:10px;font-weight:700;color:#22c55e;background:rgba(34,197,94,.1);border-radius:99px;padding:1px 7px}
.fatura-badge-aberto{font-size:10px;font-weight:700;color:#f59e0b;background:rgba(245,158,11,.1);border-radius:99px;padding:1px 7px}
.fatura-row-val{font-size:14px;font-weight:700;color:var(--vermelho);white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.credit-cards-grid{grid-template-columns:1fr}.fatura-stats{gap:6px}.fatura-hero-val{font-size:28px}}
