/* Ferramenta "Meu consumo" (/meu-consumo/). O módulo js/carteira-consumo.js nasceu
   dentro da Minha Carteira e usa o vocabulário dela (variáveis, .ct-btn, .ct-modal,
   esqueleto .ct-sk). Como a ferramenta é página própria, este arquivo entrega só
   esse vocabulário — o desenho do próprio consumo (.cs-*) o módulo injeta. */
:root {
  --bg: #0d1117;
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #c4b5fd;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --pos: #10b981;
  --neg: #ef4444;
}
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-feature-settings: "ss01","cv11"; -webkit-font-smoothing: antialiased; margin: 0; }
#topbarMenu { font-feature-settings: normal; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main.ct-main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 18px 80px; box-sizing: border-box; }

.cf-hero { padding: 18px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(16,185,129,0.16) 0%, rgba(15,23,42,0.92) 55%, rgba(15,23,42,0.96) 100%); border: 1px solid rgba(16,185,129,0.30); margin-bottom: 20px; }
.cf-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin: 0 0 8px; color: #f1f5f9; }
.cf-hero p { font-size: 0.95rem; color: var(--muted); margin: 0; max-width: 680px; }

.ct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.92rem; cursor: pointer; border: 0; }
.ct-btn-primary { background: linear-gradient(135deg, #c4b5fd, #a78bfa); color: #1e1b4b; }
.ct-btn-primary:hover { filter: brightness(1.05); }
.ct-btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.ct-btn-ghost:hover { background: var(--card-hover); }
.ct-btn-sm { padding: 6px 13px; font-size: 0.8rem; }

.ct-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.ct-empty h2 { color: var(--text); margin: 0 0 8px; font-size: 1.2rem; }
.ct-empty p { margin: 0 0 16px; font-size: 0.92rem; }
.ct-empty .ct-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: linear-gradient(135deg, #c4b5fd, #a78bfa); color: #1e1b4b; border-radius: 10px; text-decoration: none; font-weight: 700; }

.ct-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 10000; }
.ct-modal { background: #1a202c; border: 1px solid var(--border); border-radius: 16px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; }
.ct-modal h3 { margin: 0 0 6px; font-size: 1.15rem; position: sticky; top: -22px;
  background: #1a202c; padding: 4px 0 2px; z-index: 2; }
.ct-modal p.modal-sub { color: var(--muted); font-size: 0.84rem; margin: 0 0 16px; }

.ct-skel { display: flex; flex-direction: column; gap: 14px; }
.ct-sk { position: relative; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; }
.ct-sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: ct-skel-shimmer 1.4s infinite; }
@keyframes ct-skel-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ct-sk::after { animation: none; } }
