/* ==========================================
   SDL PORTAL - CSS CONSOLIDADO
   ========================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}


/* ==========================================
   MEU PERFIL
   ========================================== */

.sdl-perfil {
	width: calc(100% - 40px);
	max-width: 1100px;
	margin: 0 auto;
	padding: 30px 0 50px;
}

.sdl-perfil-header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 20px;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sdl-perfil-foto {
	flex: 0 0 auto;
}

.sdl-foto-escritor {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
}

.sdl-perfil-identidade {
	flex: 1;
	min-width: 0;
}

.sdl-perfil-identidade h2 {
	margin: 0 0 6px;
	font-size: 30px;
	line-height: 1.2;
}

.sdl-nome-artistico {
	margin-bottom: 6px;
	font-size: 16px;
	color: #666;
}

.sdl-email {
	font-size: 15px;
	color: #777;
}

.sdl-perfil-acoes {
	width: 100%;
	margin: 0 0 28px;
}

.sdl-btn-editar-perfil {
	display: inline-block;
	padding: 11px 18px;
	background: #d92f67;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.sdl-btn-editar-perfil:hover {
	color: #fff !important;
	opacity: 0.9;
}

.sdl-perfil-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.sdl-perfil-grid .sdl-card {
	width: 100%;
	min-width: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.sdl-perfil-grid .sdl-card h3 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.25;
}

.sdl-perfil-grid .sdl-card p {
	margin: 0 0 12px;
	line-height: 1.5;
}

.sdl-perfil-grid .sdl-card:last-child {
	grid-column: 1 / -1;
}


/* ==========================================
   DASHBOARD - MINHA CONTA
   ========================================== */

.sdl-dashboard {
	width: calc(100% - 40px);
	max-width: 1100px;
	margin: 0 auto;
	padding: 30px 0 50px;
}

.sdl-dashboard-cabecalho {
	margin-bottom: 24px;
}

.sdl-dashboard-cabecalho h2 {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.2;
}

.sdl-dashboard-cabecalho p {
	margin: 0;
	font-size: 16px;
	color: #555;
}

.sdl-dashboard-aviso {
	margin-bottom: 28px;
	padding: 18px 20px;
	border: 1px solid #ddd;
	border-radius: 12px;
}

.sdl-dashboard-aviso strong {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
}

.sdl-dashboard-aviso p {
	margin: 0;
}

.sdl-dashboard-aviso-sucesso {
	background: #eef9f1;
	border-color: #b9e4c8;
	color: #1f6b39;
}

.sdl-dashboard-aviso-atencao {
	background: #fff8e6;
	border-color: #ecd18b;
	color: #7a5a00;
}

.sdl-dashboard-aviso-info {
	background: #eef6fb;
	border-color: #b9d9ea;
	color: #285b73;
}

.sdl-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 28px;
}

.sdl-dashboard-card {
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sdl-dashboard-card h3 {
	margin: 0 0 18px;
	font-size: 24px;
}

.sdl-dashboard-card p {
	margin: 0 0 12px;
	line-height: 1.5;
}

.sdl-dashboard-numero {
	margin: 0 0 4px !important;
	font-size: 34px;
	font-weight: 700;
}

.sdl-dashboard-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 16px;
	background: #d92f67;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.sdl-dashboard-btn:hover {
	opacity: 0.9;
}

.sdl-dashboard-futuro {
	padding: 24px;
	background: #fafafa;
	border: 1px dashed #ccc;
	border-radius: 14px;
}

.sdl-dashboard-futuro h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

.sdl-dashboard-futuro p {
	margin: 0;
	color: #666;
}


/* ==========================================
   CARD DO LIVRO
   ========================================== */

.sdl-card-livro {
	width: 100%;
	min-width: 0;
	height: auto;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	overflow: hidden;
}

.sdl-card-livro-capa {
	width: 100%;
	height: 320px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sdl-livro-capa {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.sdl-capa-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #777;
	font-size: 16px;
}

.sdl-card-livro-conteudo {
	padding: 18px;
}

.sdl-card-livro-titulo {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.25;
}

.sdl-card-livro-conteudo p {
	margin: 5px 0;
}

.sdl-card-livro-acoes {
	margin-top: 18px;
}

.sdl-btn-editar-livro {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid currentColor;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}


/* ==========================================
   FORMULÁRIOS
   ========================================== */

.sdl-editar-livro-form,
.jet-form-builder {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.jet-form-builder .wp-block-jet-forms-text-field,
.jet-form-builder .wp-block-jet-forms-textarea-field,
.jet-form-builder .wp-block-jet-forms-media-field {
	width: 100%;
}

.jet-form-builder input,
.jet-form-builder textarea,
.jet-form-builder select {
	width: 100%;
}

.jet-form-builder textarea {
	min-height: 140px;
}

.jet-form-builder button,
.jet-form-builder input[type="submit"] {
	width: auto;
}


/* ==========================================
   LISTING GRID
   ========================================== */

.jet-listing-grid,
.jet-listing-grid__items {
	width: 100%;
}

.jet-listing-grid__item {
	min-width: 0;
}


/* ==========================================
   STATUS FINANCEIRO
   ========================================== */

.sdl-status-financeiro {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sdl-status-label {
	font-weight: 600;
}

.sdl-status-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.sdl-status-pago {
	background: #e7f7ed;
	color: #1f7a3f;
	border: 1px solid #b9e4c8;
}

.sdl-status-parcial {
	background: #fff7df;
	color: #9a6b00;
	border: 1px solid #f0d58a;
}

.sdl-status-pendente {
	background: #fff0e6;
	color: #b24a00;
	border: 1px solid #f0c29d;
}


/* ==========================================
   AVISO DE INSCRIÇÃO BLOQUEADA
   ========================================== */

.sdl-aviso-bloqueio {
	margin: 20px 0;
	padding: 18px 22px;
	background: #fff8e6;
	border: 1px solid #e0b04b;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.5;
}

.sdl-aviso-bloqueio p {
	margin: 8px 0 0;
}


/* ==========================================
   MEUS PAGAMENTOS
   ========================================== */

.sdl-pagamentos {
	width: calc(100% - 40px);
	max-width: 1100px;
	margin: 0 auto;
	padding: 30px 0 50px;
}

.sdl-pagamentos-card {
	width: 100%;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sdl-pagamentos-card h2,
.sdl-pagamentos-card h3 {
	margin-top: 0;
}

.sdl-pagamentos-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 40px;
	margin: 16px 0;
}

.sdl-pagamentos-grid > * {
	min-width: 0;
}

.sdl-pagamentos-card p {
	margin: 0 0 10px;
	line-height: 1.45;
}


/* ==========================================
   RESPONSIVO
   ========================================== */

@media (max-width: 767px) {

	.sdl-perfil,
	.sdl-dashboard,
	.sdl-pagamentos {
		width: calc(100% - 28px);
		padding: 20px 0 40px;
	}

	.sdl-perfil-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}

	.sdl-foto-escritor {
		width: 96px;
		height: 96px;
	}

	.sdl-perfil-identidade h2 {
		font-size: 26px;
	}

	.sdl-perfil-grid,
	.sdl-dashboard-grid,
	.sdl-pagamentos-grid {
		grid-template-columns: 1fr;
	}

	.sdl-perfil-grid .sdl-card:last-child {
		grid-column: auto;
	}

	.sdl-dashboard-cabecalho h2 {
		font-size: 28px;
	}

	.sdl-card-livro-capa {
		height: 280px;
	}

	.sdl-pagamentos-card {
		padding: 20px;
	}

	.sdl-pagamentos-grid {
		gap: 14px;
	}
}
