.hpb-advertise,
.hpb-dashboard {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px;
}

.hpb-benefits,
.hpb-placement-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.hpb-benefits > div,
.hpb-placement-card,
.hpb-dashboard-panel {
	border: 1px solid #d8dee4;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
}

.hpb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.hpb-dashboard {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
}

.hpb-dashboard-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hpb-dashboard-nav a {
	padding: 10px 12px;
	border-radius: 6px;
	color: #111827;
	text-decoration: none;
}

.hpb-dashboard-nav a.active,
.hpb-dashboard-nav a:hover {
	background: #eef2f7;
}

.hpb-form {
	display: grid;
	gap: 14px;
	max-width: 680px;
}

.hpb-form label {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.hpb-form input,
.hpb-form select {
	width: 100%;
	min-height: 42px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 8px 10px;
}

.hpb-checkbox {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: center;
	gap: 8px;
}

.hpb-checkbox input {
	width: auto;
	min-height: auto;
}

.hpb-alert {
	border-left: 4px solid #b91c1c;
	background: #fef2f2;
	color: #7f1d1d;
	padding: 10px 12px;
}

.hpb-alert-success {
	border-left-color: #047857;
	background: #ecfdf5;
	color: #064e3b;
}

.hpb-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.hpb-summary-card,
.hpb-stat-card {
	border: 1px solid #d8dee4;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.hpb-summary-card strong {
	display: block;
	font-size: 28px;
	line-height: 1.1;
	margin-bottom: 6px;
}

.hpb-summary-card span {
	display: block;
	font-size: 14px;
}

.hpb-stat-list {
	display: grid;
	gap: 16px;
}

.hpb-table {
	width: 100%;
	border-collapse: collapse;
}

.hpb-table th,
.hpb-table td {
	border-bottom: 1px solid #e5e7eb;
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.hpb-ad-slot {
	margin: 16px auto;
	text-align: center;
}

.hpb-ad-slot img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.hpb-advertise,
	.hpb-dashboard {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 14px !important;
	}

	.hpb-dashboard {
		display: flex !important;
		grid-template-columns: none !important;
		flex-direction: column !important;
		gap: 14px !important;
		overflow: hidden !important;
	}

	.hpb-dashboard-nav {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		gap: 8px !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		padding: 0 0 10px !important;
		margin: 0 !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.hpb-dashboard-nav a,
	.hpb-dashboard-nav a.active,
	.hpb-dashboard-nav a:hover {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: max-content !important;
		max-width: none !important;
		height: auto !important;
		min-height: 42px !important;
		max-height: 42px !important;
		padding: 0 14px !important;
		margin: 0 !important;
		border-radius: 6px !important;
		font-size: 14px !important;
		line-height: 1 !important;
		text-align: center !important;
		white-space: nowrap !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		writing-mode: horizontal-tb !important;
	}

	.hpb-dashboard-panel {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 16px !important;
		overflow: hidden !important;
	}

	.hpb-dashboard-panel h1,
	.hpb-dashboard-panel h2,
	.hpb-dashboard-panel h3 {
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		writing-mode: horizontal-tb !important;
	}

	.hpb-dashboard-panel h2 {
		font-size: 22px !important;
		line-height: 1.25 !important;
		margin: 0 0 16px !important;
	}

	.hpb-form {
		width: 100% !important;
		max-width: 100% !important;
	}

	.hpb-form input,
	.hpb-form select,
	.hpb-button,
	.hpb-form button {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 46px !important;
	}

	.hpb-checkbox input {
		width: auto !important;
		min-height: auto !important;
	}

	.hpb-summary-grid {
		grid-template-columns: 1fr !important;
	}

	.hpb-table {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		white-space: nowrap !important;
		-webkit-overflow-scrolling: touch;
	}

	.hpb-table th,
	.hpb-table td {
		padding: 12px !important;
		font-size: 13px !important;
		line-height: 1.4 !important;
	}
}

@media (max-width: 420px) {
	.hpb-dashboard {
		padding: 10px !important;
	}

	.hpb-dashboard-panel {
		padding: 14px !important;
	}

	.hpb-dashboard-nav a,
	.hpb-dashboard-nav a.active,
	.hpb-dashboard-nav a:hover {
		min-height: 40px !important;
		max-height: 40px !important;
		padding: 0 12px !important;
		font-size: 13px !important;
	}

	.hpb-dashboard-panel h2 {
		font-size: 20px !important;
	}
}
