/* ============================================================
 * Calculadora de Indemnizacao MZ  -  estilos do frontend
 * Tudo sob o namespace .cpre-  para nao colidir com o tema.
 * ============================================================ */

.cpre-wrapper,
.cpre-wrapper *,
.cpre-wrapper *::before,
.cpre-wrapper *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.cpre-wrapper {
	--cpre-primary: #00352e;
	--cpre-primary-light: #00584b;
	--cpre-primary-dark: #001f1a;
	--cpre-secondary: #c0976b;
	--cpre-secondary-light: #d4b596;
	--cpre-secondary-dark: #a87a4e;
	--cpre-success: #1f7a3a;
	--cpre-danger: #b3261e;
	--cpre-warning: #b5760a;
	--cpre-whatsapp: #25d366;
	--cpre-dark: #2b2b2b;
	--cpre-gray: #6f7570;
	--cpre-gray-light: #f6f7f5;
	--cpre-border: #e3e4e0;
	--cpre-shadow: 0 6px 26px rgba(0, 31, 26, 0.09);
	--cpre-shadow-hover: 0 10px 34px rgba(0, 31, 26, 0.14);
	--cpre-radius: 14px;
	--cpre-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	color: var(--cpre-dark);
	padding: 16px;
}

.cpre-container {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--cpre-radius);
	box-shadow: var(--cpre-shadow);
	overflow: hidden;
}

/* ---------- Cabecalho ---------- */
.cpre-cabecalho {
	background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-light) 100%);
	color: #fff;
	padding: 30px 32px;
	position: relative;
	overflow: hidden;
}
.cpre-cabecalho::before {
	content: "";
	position: absolute;
	top: -55%;
	right: -12%;
	width: 280px;
	height: 280px;
	background: rgba(255, 255, 255, 0.07);
	border-radius: 50%;
}
.cpre-cabecalho::after {
	content: "";
	position: absolute;
	bottom: -70%;
	left: 8%;
	width: 200px;
	height: 200px;
	background: rgba(192, 151, 107, 0.14);
	border-radius: 50%;
}
.cpre-titulo {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
	color: #fff;
}
.cpre-titulo i {
	color: var(--cpre-secondary-light);
}
.cpre-subtitulo {
	font-size: 15.5px;
	opacity: 0.92;
	position: relative;
	z-index: 1;
}

/* ---------- Barra de estado ---------- */
.cpre-barra-estado {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 32px;
	background: var(--cpre-primary-dark);
	color: #fff;
}
.cpre-estado-user {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 14.5px;
}
.cpre-estado-user i {
	color: var(--cpre-secondary-light);
	font-size: 18px;
}
.cpre-estado-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
}
.cpre-estado-pro {
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	color: #fff;
}
.cpre-estado-creditos {
	background: linear-gradient(135deg, #f4b73e 0%, #d49228 100%);
	color: #fff;
}
.cpre-estado-creditos small {
	opacity: 0.85;
	font-weight: 600;
	font-size: 11px;
	margin-left: 4px;
}
.cpre-estado-free {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}
.cpre-estado-aviso {
	background: rgba(255, 220, 100, 0.22);
	color: #fff;
}

.cpre-aviso-uso {
	margin: 0 32px;
	margin-top: 14px;
	padding: 11px 16px;
	background: #fff6e6;
	border: 1px solid #f0d9ab;
	border-left: 4px solid var(--cpre-warning);
	border-radius: 8px;
	color: #6a4a07;
	font-size: 13.5px;
	font-weight: 600;
}

/* ---------- Selecao de contrato ---------- */
.cpre-selecao {
	padding: 30px 32px;
	background: var(--cpre-gray-light);
	border-bottom: 1px solid var(--cpre-border);
}
.cpre-selecao-titulo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 19px;
	color: var(--cpre-primary);
	margin-bottom: 20px;
	font-weight: 700;
}
.cpre-opcoes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 18px;
}
.cpre-opcao-card {
	background: #fff;
	border: 2px solid var(--cpre-border);
	border-radius: var(--cpre-radius);
	padding: 20px;
	cursor: pointer;
	transition: var(--cpre-transition);
	position: relative;
}
.cpre-opcao-card:hover {
	border-color: var(--cpre-secondary);
	transform: translateY(-3px);
	box-shadow: var(--cpre-shadow);
}
.cpre-opcao-card.ativa {
	border-color: var(--cpre-secondary);
	background: rgba(192, 151, 107, 0.07);
	box-shadow: 0 0 0 3px rgba(192, 151, 107, 0.16);
}
.cpre-opcao-card.ativa::after {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 14px;
	right: 14px;
	width: 24px;
	height: 24px;
	background: var(--cpre-secondary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
}
.cpre-opcao-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.cpre-opcao-icone {
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	flex-shrink: 0;
}
.cpre-opcao-titulo {
	font-size: 17px;
	font-weight: 800;
	color: var(--cpre-primary);
}
.cpre-opcao-descricao {
	font-size: 14px;
	color: var(--cpre-gray);
}
.cpre-opcao-criterio {
	margin-top: 12px;
	padding: 10px 12px;
	background: rgba(0, 53, 46, 0.05);
	border-radius: 7px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cpre-primary-dark);
}

/* ---------- Corpo ---------- */
.cpre-corpo {
	padding: 30px 32px;
	display: none;
	flex-wrap: wrap;
	gap: 28px;
}
.cpre-corpo.ativo {
	display: flex;
}
.cpre-painel-entrada {
	flex: 1;
	min-width: 320px;
	background: var(--cpre-gray-light);
	padding: 25px;
	border-radius: var(--cpre-radius);
	border: 1px solid var(--cpre-border);
}
.cpre-painel-resultado {
	flex: 1.45;
	min-width: 320px;
	background: #fff;
	border-radius: var(--cpre-radius);
	overflow: hidden;
	border: 1px solid var(--cpre-border);
	display: flex;
	flex-direction: column;
}
.cpre-titulo-painel {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 19px;
	color: var(--cpre-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--cpre-secondary);
	font-weight: 700;
}

/* ---------- Inputs ---------- */
.cpre-grupo-input {
	margin-bottom: 20px;
}
.cpre-grupo-input > label {
	display: block;
	font-weight: 700;
	color: var(--cpre-primary);
	margin-bottom: 8px;
	font-size: 14.5px;
}
.cpre-input-icone {
	position: relative;
}
.cpre-input-icone input {
	width: 100%;
	padding: 14px 14px 14px 46px;
	border: 2px solid var(--cpre-border);
	border-radius: 9px;
	font-size: 16px;
	background: #fff;
	color: var(--cpre-dark);
	transition: var(--cpre-transition);
}
.cpre-input-icone input:focus {
	outline: none;
	border-color: var(--cpre-secondary);
	box-shadow: 0 0 0 3px rgba(192, 151, 107, 0.14);
}
.cpre-input-icone input:disabled {
	background: #eef0ed;
	color: var(--cpre-gray);
	cursor: not-allowed;
}
.cpre-input-icone > i {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cpre-primary);
	font-size: 17px;
}
.cpre-hint {
	color: var(--cpre-gray);
	font-size: 12.5px;
	margin-top: 5px;
	display: block;
}
.cpre-grupo-tempo {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.cpre-tempo-input {
	background: #fff;
	border-radius: 9px;
	padding: 12px;
	text-align: center;
	border: 2px solid var(--cpre-border);
	transition: var(--cpre-transition);
}
.cpre-tempo-input:hover,
.cpre-tempo-input:focus-within {
	border-color: var(--cpre-secondary);
}
.cpre-tempo-input label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 700;
	color: var(--cpre-primary);
	margin-bottom: 6px;
	font-size: 13.5px;
}
.cpre-tempo-input input {
	width: 100%;
	padding: 9px;
	border: none;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	color: var(--cpre-primary);
	background: transparent;
}
.cpre-tempo-input input:focus {
	outline: none;
}

/* ---------- Mensagem de erro ---------- */
.cpre-erro {
	display: none;
	margin-bottom: 14px;
	padding: 11px 14px;
	background: #fdeceb;
	border: 1px solid #f3c4c1;
	border-left: 4px solid var(--cpre-danger);
	border-radius: 8px;
	color: #8a201b;
	font-size: 13.5px;
	font-weight: 600;
}
.cpre-erro.cpre-erro-visivel {
	display: block;
}

/* ---------- Caixa de informacao ---------- */
.cpre-info-box {
	background: rgba(0, 53, 46, 0.05);
	border-radius: 9px;
	padding: 17px;
	margin-bottom: 20px;
	border-left: 4px solid var(--cpre-primary);
}
.cpre-info-box h4 {
	color: var(--cpre-primary-dark);
	margin-bottom: 7px;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
}
.cpre-info-box p {
	color: var(--cpre-dark);
	font-size: 13.5px;
}

/* ---------- Botoes ---------- */
.cpre-btn {
	border: none;
	font-size: 16px;
	font-weight: 700;
	border-radius: 9px;
	cursor: pointer;
	transition: var(--cpre-transition);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	padding: 15px 24px;
}
.cpre-btn-calcular,
.cpre-btn-primario {
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	color: #fff;
	width: 100%;
	margin-top: 8px;
	box-shadow: 0 5px 16px rgba(192, 151, 107, 0.32);
}
.cpre-btn-calcular:hover,
.cpre-btn-primario:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(192, 151, 107, 0.42);
}
.cpre-btn-secundario {
	background: #fff;
	color: var(--cpre-primary);
	border: 2px solid var(--cpre-primary);
}
.cpre-btn-secundario:hover {
	background: var(--cpre-primary);
	color: #fff;
}
.cpre-btn-whatsapp {
	background: var(--cpre-whatsapp);
	color: #fff;
	width: 100%;
	box-shadow: 0 5px 16px rgba(37, 211, 102, 0.32);
}
.cpre-btn-whatsapp:hover {
	transform: translateY(-2px);
	background: #1fb858;
}
.cpre-btn.cpre-ocupado {
	opacity: 0.7;
	cursor: progress;
	pointer-events: none;
}
.cpre-btn.cpre-ocupado i {
	animation: cpre-spin 0.8s linear infinite;
}
@keyframes cpre-spin {
	to {
		transform: rotate(360deg);
	}
}
.cpre-btn-link {
	background: none;
	border: none;
	color: var(--cpre-primary);
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 4px;
}
.cpre-btn-link:hover {
	color: var(--cpre-secondary-dark);
}

/* ---------- Resultado ---------- */
.cpre-cabecalho-resultado {
	background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-light) 100%);
	color: #fff;
	padding: 20px 25px;
	flex-shrink: 0;
}
.cpre-cabecalho-resultado h3 {
	font-size: 21px;
	font-weight: 800;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
}
.cpre-cabecalho-resultado p {
	opacity: 0.9;
	font-size: 14px;
}
.cpre-conteudo-resultado {
	padding: 25px;
	overflow-y: auto;
	flex: 1;
	max-height: 560px;
	display: none;
}
.cpre-conteudo-resultado.ativo {
	display: block;
}
.cpre-estado-vazio {
	padding: 54px 25px;
	text-align: center;
	color: var(--cpre-gray);
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.cpre-estado-vazio i {
	font-size: 52px;
	margin-bottom: 14px;
	color: #dcdedb;
}
.cpre-estado-vazio h4 {
	font-size: 19px;
	color: var(--cpre-primary);
	margin-bottom: 8px;
}
.cpre-estado-vazio p {
	font-size: 14.5px;
	max-width: 340px;
}
.cpre-acoes-resultado {
	padding: 12px 25px;
	border-top: 1px solid var(--cpre-border);
	display: flex;
	justify-content: flex-end;
	background: var(--cpre-gray-light);
}

.cpre-resumo {
	background: rgba(0, 53, 46, 0.05);
	border-radius: 9px;
	padding: 18px;
	margin-bottom: 20px;
	border-left: 4px solid var(--cpre-primary);
}
.cpre-resumo-item {
	display: flex;
	margin-bottom: 10px;
}
.cpre-resumo-item:last-child {
	margin-bottom: 0;
}
.cpre-resumo-label {
	font-weight: 700;
	color: var(--cpre-primary);
	min-width: 150px;
}
.cpre-resumo-valor {
	color: var(--cpre-dark);
	font-weight: 600;
}
.cpre-calculo {
	background: var(--cpre-gray-light);
	border-radius: 9px;
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid var(--cpre-border);
}
.cpre-calculo-titulo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: var(--cpre-primary);
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--cpre-border);
	font-weight: 700;
}
.cpre-calculo-titulo i {
	color: var(--cpre-secondary);
}
.cpre-passo {
	display: flex;
	align-items: flex-start;
	margin-bottom: 9px;
	padding: 5px 0;
}
.cpre-numero-passo {
	background: var(--cpre-primary);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 800;
	margin-right: 10px;
	flex-shrink: 0;
}
.cpre-descricao-passo {
	flex: 1;
	font-size: 14px;
}
.cpre-resultado-passo {
	background: rgba(0, 53, 46, 0.05);
	border-radius: 7px;
	padding: 12px;
	margin-top: 12px;
	font-weight: 800;
	color: var(--cpre-primary);
	border-left: 4px solid var(--cpre-secondary);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.cpre-total {
	background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-light) 100%);
	color: #fff;
	border-radius: var(--cpre-radius);
	padding: 26px;
	text-align: center;
	margin-top: 20px;
}
.cpre-total-titulo {
	font-size: 18px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.cpre-total-valor {
	font-size: 38px;
	font-weight: 800;
	margin: 10px 0;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	letter-spacing: 0.5px;
}
.cpre-total-detalhes {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.cpre-detalhe-item {
	background: rgba(255, 255, 255, 0.16);
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 12.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ---------- Gate de login ---------- */
.cpre-gate {
	padding: 50px 32px;
	text-align: center;
}
.cpre-gate-icone {
	width: 86px;
	height: 86px;
	margin: 0 auto 18px;
	background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-light) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cpre-secondary-light);
	font-size: 36px;
}
.cpre-gate h2 {
	color: var(--cpre-primary);
	font-size: 23px;
	margin-bottom: 10px;
}
.cpre-gate > p {
	color: var(--cpre-gray);
	font-size: 15px;
	max-width: 520px;
	margin: 0 auto 22px;
}
.cpre-gate-botoes {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.cpre-gate-botoes .cpre-btn {
	width: auto;
	min-width: 200px;
}
.cpre-gate-aviso {
	margin-top: 18px;
	color: var(--cpre-gray);
	font-size: 13px;
}

/* ---------- Paywall ---------- */
.cpre-paywall {
	padding: 32px;
}
.cpre-paywall-cabecalho {
	text-align: center;
	margin-bottom: 28px;
}
.cpre-paywall-icone {
	width: 76px;
	height: 76px;
	margin: 0 auto 16px;
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 30px;
}
.cpre-paywall-cabecalho h3 {
	color: var(--cpre-primary);
	font-size: 24px;
	margin-bottom: 9px;
}
.cpre-paywall-cabecalho p {
	color: var(--cpre-gray);
	font-size: 14.5px;
	max-width: 580px;
	margin: 0 auto;
}
.cpre-pacotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	margin-bottom: 28px;
}
.cpre-pacote {
	background: #fff;
	border: 2px solid var(--cpre-border);
	border-radius: var(--cpre-radius);
	padding: 24px 20px;
	text-align: center;
	position: relative;
	transition: var(--cpre-transition);
	display: flex;
	flex-direction: column;
}
.cpre-pacote:hover {
	transform: translateY(-4px);
	box-shadow: var(--cpre-shadow-hover);
	border-color: var(--cpre-secondary);
}
.cpre-pacote-destaque {
	border-color: var(--cpre-secondary);
	box-shadow: 0 0 0 3px rgba(192, 151, 107, 0.16);
}
.cpre-pacote-fita {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 5px 16px;
	border-radius: 20px;
	text-transform: uppercase;
}
.cpre-pacote-nome {
	font-size: 17px;
	font-weight: 800;
	color: var(--cpre-primary);
	margin-bottom: 8px;
}
.cpre-pacote-preco {
	font-size: 30px;
	font-weight: 800;
	color: var(--cpre-secondary-dark);
}
.cpre-pacote-periodo {
	font-size: 12.5px;
	color: var(--cpre-gray);
	margin-bottom: 14px;
}
.cpre-pacote-descricao {
	font-size: 13px;
	color: var(--cpre-dark);
	flex: 1;
	margin-bottom: 16px;
}

.cpre-passos-subscricao {
	background: var(--cpre-gray-light);
	border: 1px solid var(--cpre-border);
	border-radius: var(--cpre-radius);
	padding: 20px 24px;
	margin-bottom: 22px;
}
.cpre-passos-subscricao h4 {
	color: var(--cpre-primary);
	font-size: 16px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 9px;
}
.cpre-passos-subscricao ol {
	margin: 0;
	padding-left: 22px;
}
.cpre-passos-subscricao li {
	font-size: 13.5px;
	margin-bottom: 7px;
	color: var(--cpre-dark);
}

/* ---------- Resgate de codigo ---------- */
.cpre-resgate {
	background: rgba(0, 53, 46, 0.05);
	border: 1px solid var(--cpre-border);
	border-left: 4px solid var(--cpre-primary);
	border-radius: var(--cpre-radius);
	padding: 22px 24px;
}
.cpre-resgate h4 {
	color: var(--cpre-primary);
	font-size: 16px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 9px;
}
.cpre-resgate-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.cpre-resgate-form input {
	flex: 1;
	min-width: 200px;
	padding: 14px 16px;
	border: 2px solid var(--cpre-border);
	border-radius: 9px;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.cpre-resgate-form input:focus {
	outline: none;
	border-color: var(--cpre-secondary);
	box-shadow: 0 0 0 3px rgba(192, 151, 107, 0.14);
}
.cpre-resgate-form .cpre-btn {
	width: auto;
	margin-top: 0;
	flex-shrink: 0;
}
.cpre-resgate-msg {
	margin-top: 12px;
	font-size: 13.5px;
	font-weight: 600;
}
.cpre-resgate-msg.cpre-msg-ok {
	color: var(--cpre-success);
}
.cpre-resgate-msg.cpre-msg-erro {
	color: var(--cpre-danger);
}

/* ---------- Rodape ---------- */
.cpre-rodape {
	padding: 20px 32px;
	background: var(--cpre-gray-light);
	border-top: 1px solid var(--cpre-border);
	font-size: 13px;
	color: var(--cpre-gray);
}
.cpre-rodape i {
	color: var(--cpre-secondary);
	margin-right: 6px;
}

/* ---------- Animacao ---------- */
@keyframes cpre-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.cpre-animar {
	animation: cpre-fade-up 0.5s ease forwards;
}

/* ---------- Scrollbar ---------- */
.cpre-conteudo-resultado::-webkit-scrollbar {
	width: 6px;
}
.cpre-conteudo-resultado::-webkit-scrollbar-thumb {
	background: #c5c7c2;
	border-radius: 4px;
}

/* ============================================================ *
 * PAINEL DE REFERENCIA (convidar amigos)
 * ============================================================ */
.cpre-referral {
	margin: 18px 32px 0;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid #e0e3df;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cpre-referral-paywall {
	margin: 22px 0 0;
	background: linear-gradient(135deg, #fffbe9 0%, #fff5d6 100%);
	border-color: #f0d999;
	border-left: 4px solid var(--cpre-secondary);
}

.cpre-referral-cabecalho {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
}
.cpre-referral-icone {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cpre-secondary) 0%, var(--cpre-secondary-dark) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	box-shadow: 0 2px 6px rgba(212, 146, 40, 0.25);
}
.cpre-referral-titulo h4 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--cpre-primary-dark);
}
.cpre-referral-titulo p {
	margin: 0;
	font-size: 13.5px;
	color: #4a5550;
	line-height: 1.5;
}

.cpre-referral-link {
	margin-bottom: 14px;
}
.cpre-referral-link label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	color: #6a7570;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.cpre-referral-link-campo {
	display: flex;
	gap: 8px;
}
.cpre-ref-link {
	flex: 1;
	padding: 10px 14px;
	background: #f7f8f5;
	border: 1.5px solid #e0e3df;
	border-radius: 8px;
	font-family: ui-monospace, 'SF Mono', monospace;
	font-size: 13px;
	color: var(--cpre-primary-dark);
	cursor: text;
}
.cpre-ref-link:focus {
	outline: none;
	border-color: var(--cpre-primary);
	background: #fff;
}
.cpre-btn-copiar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: var(--cpre-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.cpre-btn-copiar:hover {
	background: var(--cpre-primary-dark);
	transform: translateY(-1px);
}
.cpre-btn-copiar-ok {
	background: var(--cpre-success) !important;
}

.cpre-referral-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding: 12px 0;
	border-top: 1px solid #ecefe9;
	border-bottom: 1px solid #ecefe9;
}
.cpre-referral-share-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #6a7570;
	margin-right: 4px;
}
.cpre-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}
.cpre-share-btn:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.cpre-share-wa { background: #25d366; }
.cpre-share-fb { background: #1877f2; }
.cpre-share-tg { background: #0088cc; }
.cpre-share-em { background: #6b7280; }
.cpre-share-nat { background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-dark) 100%); }

.cpre-referral-progresso {
	margin-bottom: 12px;
}
.cpre-referral-barra {
	height: 8px;
	background: #ecefe9;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}
.cpre-referral-barra-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--cpre-secondary) 0%, var(--cpre-primary) 100%);
	border-radius: 6px;
	transition: width 0.4s ease;
}
.cpre-referral-progresso-texto {
	font-size: 12.5px;
	color: #4a5550;
}
.cpre-referral-progresso-texto strong {
	color: var(--cpre-primary-dark);
}
.cpre-referral-reset {
	margin-top: 6px;
	font-size: 11.5px;
	color: #6a7570;
	display: flex;
	align-items: center;
	gap: 5px;
}
.cpre-referral-reset i {
	color: var(--cpre-secondary);
	font-size: 10.5px;
}
.cpre-referral-reset strong {
	color: var(--cpre-primary-dark);
	font-weight: 700;
}

.cpre-referral-nota {
	margin: 0;
	font-size: 11.5px;
	color: #7a8580;
	display: flex;
	align-items: center;
	gap: 6px;
}
.cpre-referral-nota i {
	color: var(--cpre-primary);
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
	.cpre-corpo {
		flex-direction: column;
		padding: 20px;
		gap: 22px;
	}
	.cpre-painel-entrada,
	.cpre-painel-resultado {
		min-width: 100%;
	}
	.cpre-cabecalho,
	.cpre-selecao,
	.cpre-barra-estado,
	.cpre-rodape,
	.cpre-paywall,
	.cpre-gate {
		padding-left: 18px;
		padding-right: 18px;
	}
	.cpre-aviso-uso {
		margin-left: 18px;
		margin-right: 18px;
	}
	.cpre-opcoes {
		grid-template-columns: 1fr;
	}
	.cpre-titulo {
		font-size: 22px;
	}
	.cpre-resumo-item {
		flex-direction: column;
		gap: 3px;
		padding-bottom: 10px;
		border-bottom: 1px solid var(--cpre-border);
	}
	.cpre-resumo-item:last-child {
		border-bottom: none;
	}
	.cpre-resumo-label {
		min-width: auto;
		font-size: 13px;
		color: var(--cpre-gray);
	}
	.cpre-total-valor {
		font-size: 30px;
		word-break: break-word;
	}
	.cpre-conteudo-resultado {
		max-height: none;
	}
	.cpre-resultado-passo {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
	.cpre-barra-estado {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (max-width: 480px) {
	.cpre-wrapper {
		padding: 8px;
	}
	.cpre-grupo-tempo {
		grid-template-columns: 1fr;
	}
	.cpre-titulo {
		font-size: 19px;
	}
	.cpre-total-valor {
		font-size: 25px;
	}
	.cpre-gate-botoes .cpre-btn {
		width: 100%;
	}
	.cpre-resgate-form .cpre-btn {
		width: 100%;
	}
}

/* ============================================================
 * v1.1.0  -  Modal de registo gratuito (lead) e estados anonimos
 * ============================================================ */

/* Variante "aviso" da barra de estado (anonimo apos 1o uso) */
.cpre-estado-aviso {
	background: linear-gradient(135deg, #c0976b 0%, #a87a4e 100%);
	color: #fff;
}

/* Overlay do modal */
.cpre-lead-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 31, 26, 0.78);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}
.cpre-lead-overlay.cpre-aberto {
	display: flex;
	animation: cpre-fade-in 0.25s ease;
}
@keyframes cpre-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Modal */
.cpre-lead-modal {
	background: #fff;
	width: 100%;
	max-width: 460px;
	border-radius: var(--cpre-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	position: relative;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: cpre-slide-up 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes cpre-slide-up {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.cpre-lead-fechar {
	position: absolute;
	top: 12px;
	right: 14px;
	background: rgba(255, 255, 255, 0.18);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s;
}
.cpre-lead-fechar:hover {
	background: rgba(255, 255, 255, 0.32);
}

.cpre-lead-cabecalho {
	background: linear-gradient(135deg, var(--cpre-primary) 0%, var(--cpre-primary-light) 100%);
	color: #fff;
	padding: 28px 28px 24px;
	border-radius: var(--cpre-radius) var(--cpre-radius) 0 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cpre-lead-cabecalho::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -20%;
	width: 220px;
	height: 220px;
	background: rgba(192, 151, 107, 0.18);
	border-radius: 50%;
}
.cpre-lead-icone {
	position: relative;
	z-index: 1;
	width: 60px;
	height: 60px;
	margin: 0 auto 12px;
	background: var(--cpre-secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	box-shadow: 0 6px 20px rgba(192, 151, 107, 0.45);
}
.cpre-lead-cabecalho h3 {
	position: relative;
	z-index: 1;
	font-size: 21px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 6px;
}
.cpre-lead-cabecalho p {
	position: relative;
	z-index: 1;
	font-size: 13.5px;
	opacity: 0.92;
	line-height: 1.5;
}

.cpre-lead-form {
	padding: 22px 28px 24px;
}
.cpre-lead-campo {
	margin-bottom: 14px;
}
.cpre-lead-campo label {
	display: block;
	font-weight: 700;
	color: var(--cpre-primary);
	margin-bottom: 5px;
	font-size: 13px;
}
.cpre-lead-campo input,
.cpre-lead-campo select {
	width: 100%;
	padding: 11px 14px;
	border: 2px solid var(--cpre-border);
	border-radius: 8px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--cpre-dark);
	background: #fff;
	transition: var(--cpre-transition);
}
.cpre-lead-campo input:focus,
.cpre-lead-campo select:focus {
	outline: none;
	border-color: var(--cpre-secondary);
	box-shadow: 0 0 0 3px rgba(192, 151, 107, 0.14);
}

.cpre-lead-msg {
	margin: 12px 0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	display: none;
}
.cpre-lead-msg:not(:empty) {
	display: block;
}
.cpre-lead-msg.cpre-msg-erro {
	background: #fdeceb;
	border: 1px solid #f3c4c1;
	color: #8a201b;
}
.cpre-lead-msg.cpre-msg-ok {
	background: #e7f5ec;
	border: 1px solid #b9dfc7;
	color: #155f2a;
}
.cpre-lead-msg code {
	background: rgba(0, 0, 0, 0.07);
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
}

.cpre-lead-form .cpre-btn-primario {
	margin-top: 6px;
}
.cpre-lead-rodape {
	margin-top: 14px;
	font-size: 11.5px;
	color: var(--cpre-gray);
	text-align: center;
}
.cpre-lead-rodape i {
	color: var(--cpre-success);
}
.cpre-lead-login {
	margin-top: 8px;
	font-size: 12.5px;
	text-align: center;
	color: var(--cpre-gray);
}
.cpre-lead-login a {
	color: var(--cpre-primary);
	font-weight: 700;
	text-decoration: none;
}
.cpre-lead-login a:hover {
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 520px) {
	.cpre-lead-overlay {
		padding: 0;
		align-items: stretch;
	}
	.cpre-lead-modal {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
	.cpre-lead-cabecalho {
		border-radius: 0;
		padding: 24px 22px 20px;
	}
	.cpre-lead-form {
		padding: 20px 22px 22px;
	}
	/* Painel de referencia em mobile */
	.cpre-referral {
		margin: 16px;
		padding: 18px 16px;
	}
	.cpre-referral-link-campo {
		flex-direction: column;
	}
	.cpre-btn-copiar {
		justify-content: center;
		padding: 11px 16px;
	}
	.cpre-referral-share {
		justify-content: center;
	}
	.cpre-referral-cabecalho {
		gap: 12px;
	}
	.cpre-referral-icone {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
}

/* Destaque temporario do painel ao trocar de tipo de preparo (UX mobile) */
@keyframes cpreFlash {
	0%   { box-shadow: 0 0 0 0 rgba( 168, 122, 78, 0 ); }
	18%  { box-shadow: 0 0 0 4px rgba( 168, 122, 78, 0.5 ); }
	100% { box-shadow: 0 0 0 0 rgba( 168, 122, 78, 0 ); }
}
.cpre-corpo.cpre-flash {
	border-radius: 14px;
	animation: cpreFlash 1.1s ease-out 1;
}
@media ( prefers-reduced-motion: reduce ) {
	.cpre-corpo.cpre-flash { animation: none; }
}
