* { box-sizing: border-box; }
body { font-family: Inter, sans-serif; }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.toast { position: fixed; right: 16px; top: 16px; z-index: 80; border-radius: 8px; background: #0f172a; color: white; padding: 12px 16px; font-weight: 800; box-shadow: 0 20px 60px rgba(15,23,42,.18); }
.sidebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.96); padding: 10px; backdrop-filter: blur(18px); }
.dark .sidebar { border-color: rgba(255,255,255,.1); background: rgba(2,6,23,.96); }
.brand { display: none; width: 44px; height: 44px; place-items: center; border-radius: 8px; background: #7c3aed; color: white; font-weight: 900; }
.menu { display: flex; gap: 8px; overflow-x: auto; }
.menu-item, .tab { min-width: max-content; border-radius: 8px; padding: 10px 12px; color: #64748b; font-size: 13px; font-weight: 900; transition: all .16s ease; }
.menu-item.active, .menu-item:hover, .tab.active, .tab:hover { background: rgba(124,58,237,.11); color: #7c3aed; }
.topbar { display: flex; flex-direction: column; gap: 16px; padding: 22px 16px 8px; }
.content { padding: 10px 16px 98px; }
.title { font-size: 30px; line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.section-title, .panel h2 { font-size: 19px; font-weight: 900; }
.eyebrow { color: #7c3aed; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.muted { color: #64748b; }
.dark .muted { color: #94a3b8; }
.panel, .metric, .modal { border: 1px solid rgba(226,232,240,.9); border-radius: 8px; background: white; box-shadow: 0 18px 60px rgba(15,23,42,.07); padding: 18px; }
.dark .panel, .dark .metric, .dark .modal { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.055); }
.panel-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.panel-head p { color: #64748b; font-size: 14px; }
.metric span { display: block; color: #64748b; font-size: 13px; font-weight: 800; }
.metric strong { display: block; margin-top: 8px; font-size: 25px; font-weight: 900; }
.input { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; background: white; padding: 11px 12px; color: #0f172a; outline: none; }
.input:focus { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.13); }
.dark .input { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: white; }
.dark .input option { background: #0f172a; }
.primary-button, .ghost-button, .danger-button { border-radius: 8px; padding: 11px 14px; font-weight: 900; transition: transform .16s ease; }
.primary-button { background: #7c3aed; color: white; }
.ghost-button { background: #eef2ff; color: #5b21b6; }
.danger-button { background: #fee2e2; color: #b91c1c; }
.dark .ghost-button { background: rgba(124,58,237,.22); color: #ddd6fe; }
.primary-button:hover, .ghost-button:hover, .danger-button:hover { transform: translateY(-1px); }
.list { display: grid; gap: 10px; }
.item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 13px; background: rgba(255,255,255,.62); }
.dark .item { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.item-title { font-weight: 900; }
.item-sub { margin-top: 4px; color: #64748b; font-size: 13px; }
.dark .item-sub { color: #94a3b8; }
.item-money { font-weight: 900; font-size: 18px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; }
.quick-form { display: grid; gap: 10px; grid-template-columns: 1fr; }
.chart-panel { min-height: 330px; }
.chart-panel canvas { margin-top: 12px; max-height: 250px; }
.overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; overflow: auto; background: rgba(15,23,42,.68); padding: 16px; backdrop-filter: blur(8px); }
.modal { width: min(760px, 100%); max-height: 92vh; overflow: auto; }
.mini-step { border-radius: 8px; background: #f1f5f9; padding: 12px; font-weight: 800; }
.dark .mini-step { background: rgba(255,255,255,.08); }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: #7c3aed; }
.whatsapp-button { position: fixed; right: 16px; bottom: 92px; z-index: 60; border-radius: 8px; background: #16a34a; color: white; padding: 12px 14px; font-size: 13px; font-weight: 900; box-shadow: 0 14px 34px rgba(22,163,74,.26); }
.whatsapp-button:hover { background: #15803d; }
@media (min-width: 768px) { .quick-form { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 0; right: auto; bottom: auto; width: 238px; height: 100vh; border-top: 0; border-right: 1px solid #e2e8f0; padding: 24px; }
  .brand { display: grid; }
  .menu { display: grid; margin-top: 28px; overflow: visible; }
  .menu-item { text-align: left; }
  .topbar { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px 10px; }
  .content { padding: 18px 32px 48px; }
  .whatsapp-button { bottom: 24px; }
}
