/* PDPO Membership frontend – professional */

/* ---------- Forms ---------- */
.pdpo-form {
	max-width: 420px;
	margin: 0 auto;
}
.pdpo-form input[type="text"],
.pdpo-form input[type="email"],
.pdpo-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 15px;
	transition: border-color 0.2s;
}
.pdpo-form input:focus {
	outline: none;
	border-color: #c41e3a;
	box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.pdpo-form-footer {
	margin-top: 16px;
	font-size: 14px;
	color: #666;
	text-align: center;
}
.pdpo-form-footer a {
	color: #c41e3a;
	font-weight: 600;
}

/* ---------- Buttons ---------- */
.pdpo-btn {
	display: inline-block;
	padding: 11px 22px;
	background: #c41e3a;
	color: #fff !important;
	border: 2px solid #c41e3a;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pdpo-btn:hover {
	background: #a01830;
	border-color: #a01830;
	color: #fff !important;
	transform: translateY(-1px);
}
.pdpo-btn-outline {
	background: transparent;
	color: #c41e3a !important;
	border: 2px solid #c41e3a;
}
.pdpo-btn-outline:hover {
	background: #c41e3a;
	color: #fff !important;
}
.pdpo-btn-lg {
	padding: 14px 28px;
	font-size: 16px;
}

/* ---------- Messages ---------- */
.pdpo-error {
	color: #b32d2e;
	background: #fef2f2;
	border: 1px solid #fecaca;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 14px;
}
.pdpo-success {
	color: #166534;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 14px;
}
.pdpo-muted {
	color: #666;
	font-style: italic;
	font-size: 14px;
}

/* ---------- Professional Profile Card ---------- */
.pdpo-profile {
	max-width: 440px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #f0f0f0;
}
.pdpo-profile__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 28px 28px 20px;
	background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
	color: #fff;
}
.pdpo-profile__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 3px solid rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	flex-shrink: 0;
	letter-spacing: -0.02em;
}
.pdpo-profile__meta {
	min-width: 0;
}
.pdpo-profile__name {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	word-break: break-word;
}
.pdpo-profile__badge {
	display: inline-block;
	padding: 3px 10px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.pdpo-profile__body {
	padding: 20px 28px 8px;
}
.pdpo-profile__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #f3f3f3;
	gap: 12px;
}
.pdpo-profile__row:last-child {
	border-bottom: none;
}
.pdpo-profile__label {
	font-size: 13px;
	color: #888;
	font-weight: 500;
	flex-shrink: 0;
}
.pdpo-profile__value {
	font-size: 14px;
	color: #222;
	font-weight: 500;
	text-align: right;
	word-break: break-all;
}
.pdpo-profile__stats {
	display: flex;
	gap: 12px;
	padding: 8px 28px 20px;
}
.pdpo-profile__stat {
	flex: 1;
	text-align: center;
	background: #fafafa;
	border-radius: 12px;
	padding: 14px 8px;
	border: 1px solid #f0f0f0;
}
.pdpo-profile__stat-num {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: #c41e3a;
	line-height: 1.2;
}
.pdpo-profile__stat-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	font-weight: 500;
}
.pdpo-profile__actions {
	display: flex;
	gap: 10px;
	padding: 0 28px 28px;
	flex-wrap: wrap;
}
.pdpo-profile__actions .pdpo-btn {
	flex: 1;
	text-align: center;
	min-width: 120px;
}

/* Guest state */
.pdpo-profile--guest {
	text-align: center;
	padding: 36px 28px;
}
.pdpo-profile--guest .pdpo-profile__icon {
	font-size: 40px;
	margin-bottom: 12px;
}
.pdpo-profile--guest .pdpo-profile__title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	color: #222;
}
.pdpo-profile--guest .pdpo-profile__text {
	color: #666;
	font-size: 14px;
	margin: 0 0 20px;
	line-height: 1.5;
}
.pdpo-profile--guest .pdpo-profile__actions {
	padding: 0;
	justify-content: center;
}

/* ---------- Download ---------- */
.pdpo-download-wrap {
	margin: 20px 0;
}
.pdpo-download-title {
	margin-top: 8px;
	font-size: 14px;
	color: #555;
}

/* ---------- Books grid ---------- */
.pdpo-books {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}
.pdpo-book-card {
	border: 1px solid #eee;
	padding: 18px;
	border-radius: 12px;
	text-align: center;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s, transform 0.2s;
}
.pdpo-book-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.pdpo-book-card img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.pdpo-book-card h3 {
	margin: 14px 0 6px;
	font-size: 1.1em;
}
.pdpo-book-card h3 a {
	text-decoration: none;
	color: inherit;
}
.pdpo-book-cats {
	font-size: 13px;
	color: #888;
	margin: 0 0 12px;
}
.pdpo-cat-filters {
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Mobile */
@media (max-width: 480px) {
	.pdpo-profile__header {
		padding: 22px 20px 16px;
	}
	.pdpo-profile__body,
	.pdpo-profile__stats,
	.pdpo-profile__actions {
		padding-left: 20px;
		padding-right: 20px;
	}
	.pdpo-profile__actions {
		flex-direction: column;
	}
	.pdpo-profile__avatar {
		width: 52px;
		height: 52px;
		font-size: 22px;
	}
	.pdpo-profile__name {
		font-size: 1.15rem;
	}
}
