:root {
--primary: #0D6EFD;
--primary-dark: #0b5ed7;
--whatsapp: #25D366;
--bg: #f4f6f9;
--card-bg: #ffffff;
--text: #212529;
--gray: #6c757d;
--border: #dee2e6;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg);
padding: 12px;
margin: 0;
color: var(--text);
}
.app-container { max-width: 480px; margin: 0 auto; }
header {
background: var(--card-bg);
padding: 14px 18px;
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
margin-bottom: 15px;
border-radius: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.btn-voltar {
background: #e9ecef; border: none; color: var(--text); font-weight: 600;
font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer; display: none;
}
.card {
background: var(--card-bg); padding: 18px; margin-bottom: 15px;
border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
h1 { font-size: 18px; margin-top: 0; margin-bottom: 6px; }
p.subtitle { color: var(--gray); font-size: 12px; margin-bottom: 15px; line-height: 1.4; }

#bannerInstalacao {
display: none;
background: linear-gradient(135deg, #0D6EFD, #0b5ed7);
color: white;
padding: 14px;
border-radius: 10px;
margin-bottom: 15px;
text-align: center;
box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}
#bannerInstalacao p { margin: 0 0 10px 0; font-size: 13px; font-weight: 600; }
.btn-instalar {
background: white; color: var(--primary); border: none; padding: 8px 16px;
border-radius: 6px; font-weight: bold; font-size: 13px; cursor: pointer;
}

.cliente-tabs { display: flex; gap: 8px; margin-bottom: 15px; }
.cliente-tabs button {
flex: 1; padding: 8px; border: 1px solid var(--border); background: #f8f9fa;
border-radius: 6px; font-weight: bold; font-size: 12px; cursor: pointer; color: var(--gray);
}
.cliente-tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }

.grid-categorias {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
margin-bottom: 15px; max-height: 150px; overflow-y: auto; padding-right: 4px;
}
.cat-card {
background: #f8f9fa; border: 2px solid var(--border); padding: 10px;
border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.cat-card.selected { border-color: var(--primary); background: #e7f1ff; color: var(--primary); font-weight: bold; }
.cat-card span { font-size: 12px; display: block; margin-top: 4px; }

.form-group { margin-bottom: 12px; text-align: left; }
label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 12px; color: #495057; }
input, textarea, select {
width: 100%; padding: 10px; border: 1px solid var(--border);
border-radius: 6px; box-sizing: border-box; font-size: 13px; background-color: #fff;
}
textarea { height: 75px; resize: none; }

.btn {
background: var(--primary); color: white; border: none; padding: 12px;
width: 100%; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 14px;
box-shadow: 0 3px 5px rgba(13, 110, 253, 0.15); margin-bottom: 8px; text-align: center;
}
.btn-secundario { background: #343a40; }
.btn-whats {
background: var(--whatsapp); color: white; text-decoration: none; display: block;
text-align: center; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 13px; margin-top: 10px;
}

.view-section { display: none; }
.view-section.active { display: block; }
.sub-tab { display: none; }
.sub-tab.active { display: block; }

.lead-card {
background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
padding: 14px; margin-bottom: 12px; border-radius: 6px; text-align: left;
}
.tag-cat { background: #e7f1ff; color: var(--primary); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.lead-card p { margin: 3px 0; font-size: 12px; color: #555; }
.sem-leads { text-align: center; color: var(--gray); font-size: 13px; padding: 20px; }