/* =============================================
   Leaky Paywall Dashboard — Modern Design
   ============================================= */

/* --- Layout Grid --- */
.lp-dashboard {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 1200px;
	margin-top: 20px;
}

.lp-dashboard-header {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lp-dashboard-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.lp-dashboard-full {
	grid-column: 1 / -1;
}

/* --- Period Selector --- */
.lp-dashboard-period select {
	padding: 6px 28px 6px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	color: #1d2327;
	background: #fff;
	cursor: pointer;
}

.lp-dashboard-period select:hover {
	border-color: #bbb;
}

/* --- Card Base --- */
.lp-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 24px;
}

/* --- Stat Cards --- */
.lp-dashboard-stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.lp-stat-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 24px;
	border-left: 4px solid transparent;
}

.lp-stat-card--revenue   { border-left-color: #38A65B; }
.lp-stat-card--paid      { border-left-color: #E26B2C; }
.lp-stat-card--free      { border-left-color: #3178D1; }
.lp-stat-card--paywalls  { border-left-color: #8B5CF6; }
.lp-stat-card--trials    { border-left-color: #EC4899; }
.lp-stat-card--gifts     { border-left-color: #14B8A6; }
.lp-stat-card--corp-subs { border-left-color: #F59E0B; }
.lp-stat-card--retention { border-left-color: #059669; }

.lp-stat-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 8px;
}

.lp-stat-value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	color: #1d2327;
}

/* --- Funnel --- */
.lp-dashboard-funnel {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: center;
	gap: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 0;
	overflow: hidden;
}

.lp-funnel-step {
	padding: 20px 24px;
	text-align: center;
}

.lp-funnel-value {
	font-size: 28px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
}

.lp-funnel-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-top: 4px;
}

.lp-funnel-arrow {
	font-size: 24px;
	color: #ccc;
	line-height: 1;
}

/* --- Charts --- */
.lp-dashboard-chart h3 {
	margin: 0 0 16px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.lp-dashboard-chart-wrap {
	position: relative;
	height: 260px;
}

/* --- Tables --- */
.lp-card h3 {
	margin: 0 0 16px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

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

.lp-table thead th {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	padding: 0 0 10px 0;
	border-bottom: 2px solid #f0f0f1;
	text-align: left;
}

.lp-table tbody td {
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 13px;
	color: #1d2327;
}

.lp-table tbody tr:last-child td {
	border-bottom: none;
}

.lp-table td:first-child,
.lp-table th:first-child {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lp-table a {
	color: #2271b1;
	text-decoration: none;
}

.lp-table a:hover {
	color: #135e96;
}

/* --- Empty State --- */
.lp-no-data {
	font-size: 13px;
	color: #999;
	margin: 0;
}

/* --- Quick Links --- */
.lp-dashboard-quick-links {
	grid-column: 1 / -1;
	display: flex;
	gap: 8px;
	padding-top: 8px;
}

.lp-dashboard-quick-links a {
	text-decoration: none;
	color: #2271b1;
	font-size: 13px;
}

.lp-dashboard-quick-links a:hover {
	color: #135e96;
}

.lp-dashboard-quick-links span {
	color: #dcdcde;
}

/* --- Onboarding Complete Banner --- */
.lp-onboarding-complete {
	max-width: 1200px;
	background: #fff;
	border-left: 4px solid #38A65B;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 24px 32px;
	margin: 20px 0 0 0;
}

.lp-onboarding-complete h2 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.lp-onboarding-complete p {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #50575e;
	line-height: 1.5;
}

.lp-onboarding-complete ul {
	margin: 0 0 12px 20px;
	padding: 0;
}

.lp-onboarding-complete li {
	font-size: 14px;
	color: #50575e;
	line-height: 1.8;
}

.lp-onboarding-complete a {
	color: #2271b1;
	text-decoration: none;
}

.lp-onboarding-complete a:hover {
	color: #135e96;
}

/* --- Insights Callout --- */
.lp-insights-callout {
	max-width: 1200px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: #fff;
	border-left: 4px solid #8B5CF6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 24px 32px;
	margin: 20px 0 0 0;
}

.lp-insights-callout--connected {
	border-left-color: #38A65B;
}

.lp-insights-callout--content h3 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.lp-insights-callout--content p {
	margin: 0;
	font-size: 14px;
	color: #50575e;
	line-height: 1.5;
}

.lp-insights-callout--action .button-primary {
	background: #E45637;
	border-color: #C94829;
	font-size: 14px;
	padding: 6px 20px;
	height: auto;
	border-radius: 4px;
	white-space: nowrap;
}

.lp-insights-callout--action .button-primary:hover,
.lp-insights-callout--action .button-primary:focus {
	background: #C94829;
	border-color: #B03D22;
}

@media (max-width: 768px) {
	.lp-insights-callout {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Pro gated content */
.lp-pro-blurred-row td {
	filter: blur(4px);
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

.lp-pro-unlock-row td {
	text-align: center !important;
	padding: 12px;
	background: #faf5f3;
	border-top: 1px solid #f0e0da;
}

.lp-pro-unlock-row a {
	color: #E45637;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.lp-pro-unlock-row a:hover {
	color: #c94a2e;
	text-decoration: underline;
}

.lp-pro-unlock-row .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	vertical-align: text-bottom;
	margin-right: 2px;
}
