* { box-sizing: border-box; margin: 0; padding: 0; }

#av-portal { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 860px; margin: 0 auto; padding: 40px 24px; color: #1C1C1C; }

.av-tabs { display: flex; gap: 4px; background: rgba(232,213,192,0.3); border-radius: 10px; padding: 4px; width: fit-content; margin-bottom: 32px; }
.av-tab { padding: 9px 22px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; transition: all 0.2s; background: transparent; color: #7A6B70; }
.av-tab.ativo { background: #6B1A2A; color: #fff; }

.av-card { background: #F9F4EE; border-radius: 16px; padding: 32px; border: 1.5px solid #E8D5C0; margin-bottom: 24px; }
.av-card h2 { font-size: 18px; font-weight: 700; color: #6B1A2A; margin-bottom: 24px; }

.av-grupo { margin-bottom: 16px; }
.av-grupo label { display: block; font-size: 12px; font-weight: 600; color: #6B1A2A; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.av-grupo input, .av-grupo select, .av-grupo textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid #E8D5C0; border-radius: 8px;
  font-size: 14px; font-family: inherit; color: #1C1C1C; background: #fff; outline: none; transition: border-color 0.2s;
}
.av-grupo input:focus, .av-grupo select:focus { border-color: #6B1A2A; }
.av-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.av-full { grid-column: 1 / -1; }

.av-btn { padding: 11px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: opacity 0.2s; }
.av-btn-primary { background: #6B1A2A; color: #fff; }
.av-btn-secondary { background: transparent; border: 1.5px solid #6B1A2A; color: #6B1A2A; }
.av-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.av-alerta { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; display: none; }
.av-alerta.visivel { display: block; }
.av-alerta.sucesso { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.av-alerta.erro    { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.av-alerta.info    { background: #FFF3CD; color: #856404; border: 1px solid #FBBF24; }

.av-tags-preview { background: rgba(107,26,42,0.06); border: 1px solid rgba(107,26,42,0.15); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.av-tags-preview-titulo { font-size: 12px; font-weight: 600; color: #6B1A2A; margin-bottom: 8px; }
.av-tags-lista { display: flex; gap: 6px; flex-wrap: wrap; }
.av-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

.av-cliente-card { background: #fff; border: 1.5px solid #E8D5C0; border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.av-cliente-nome { font-weight: 700; font-size: 15px; color: #1C1C1C; margin-bottom: 4px; }
.av-cliente-email { font-size: 13px; color: #7A6B70; margin-bottom: 10px; }
.av-cliente-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.av-header { background: #6B1A2A; border-radius: 12px; padding: 16px 24px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; }
.av-header-info { color: rgba(255,255,255,0.8); font-size: 14px; }
.av-header-info strong { color: #C9A84C; }
.av-header-logout { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; font-family: inherit; }

.av-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.av-stat { background: #fff; border-radius: 10px; padding: 16px 20px; border: 1.5px solid #E8D5C0; }
.av-stat-num { font-size: 26px; font-weight: 700; }
.av-stat-label { font-size: 12px; color: #7A6B70; margin-top: 2px; }

.av-busca { width: 100%; padding: 10px 14px; border: 1.5px solid #E8D5C0; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; margin-bottom: 16px; }

.av-loading { text-align: center; padding: 40px; color: #7A6B70; font-size: 14px; }
.av-empty { text-align: center; padding: 60px 24px; color: #7A6B70; }
.av-empty-icon { font-size: 40px; margin-bottom: 12px; }
.av-empty h3 { font-size: 16px; color: #1C1C1C; margin-bottom: 8px; }

@media (max-width: 600px) {
  .av-grid { grid-template-columns: 1fr; }
  .av-stats { grid-template-columns: 1fr 1fr; }
}
