/**
 * WhoKnew Plugin Ranking – Admin styles
 * Matches WhoKnew Shield/Views suite layout and tabs
 */

/* Base Container */
.whoknewdirectoryseo-align-left {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

.whoknewdirectoryseo-settings {
	max-width: 1200px;
	margin: 20px 0;
	background: transparent;
	padding: 35px;
	border-radius: 0;
	box-shadow: none;
	border: none;
	box-sizing: border-box;
}

#wpbody-content .settings_page_whoknew-directory-seo .wrap,
#wpbody-content .toplevel_page_whoknew-for-woo .wrap {
	text-align: left !important;
	display: block !important;
	margin-left: 0 !important;
	margin-right: auto !important;
	width: auto !important;
}

/* Tab Navigation */
.nav-tab-wrapper {
	border-bottom: 2px solid #e5e7eb !important;
	margin-bottom: 30px !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	background: transparent !important;
}

.nav-tab {
	padding: 14px 24px !important;
	color: #6b7280 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	border: none !important;
	border-bottom: 3px solid transparent !important;
	background: transparent !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	margin: 0 !important;
	position: relative !important;
}

.nav-tab:hover {
	color: #1e3a8a !important;
	background: rgba(59, 130, 246, 0.05) !important;
	border-radius: 8px 8px 0 0 !important;
}

.nav-tab-active {
	color: #1e3a8a !important;
	background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 0%, transparent 100%) !important;
	border-bottom: 3px solid #3b82f6 !important;
	border-radius: 8px 8px 0 0 !important;
	font-weight: 700 !important;
}

/* Upgrade tab */
.nav-tab[style*="background: linear-gradient(135deg, #fefce8"] {
	background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%) !important;
	color: #92400e !important;
	border-left: 4px solid #fbbf24 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
}

.nav-tab[style*="background: linear-gradient(135deg, #fefce8"]:hover {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Headings */
.whoknewdirectoryseo-settings h1 {
	font-size: 32px !important;
	font-weight: 800 !important;
	color: #1e3a8a !important;
	margin: 0 0 25px 0 !important;
	border-bottom: 2px solid #e5e7eb !important;
	padding-bottom: 15px !important;
	letter-spacing: -0.5px;
}

/* Tab content */
.whoknewdirectoryseo-tab-placeholder,
.whoknewdirectoryseo-tab-scan,
.whoknewdirectoryseo-tab-settings,
.whoknewdirectoryseo-tab-get-pro,
.whoknewdirectoryseo-tab-readme-optimizer,
.whoknewdirectoryseo-tab-rankings,
.whoknewdirectoryseo-tab-usage {
	margin-top: 0;
}

.whoknewdirectoryseo-tab-placeholder {
	margin: 0;
	color: #6b7280;
}

/* ==========================================================================
   Shared tab facelift – hero + cards (Scan, Readme, Rankings, Settings, Usage, Get Pro)
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-tab-wrap {
	position: relative;
	width: 100%;
	margin: 0;
	padding-bottom: 2rem;
	box-sizing: border-box;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-bg {
	position: absolute;
	inset: -30px -20px -40px;
	background: linear-gradient(160deg, #f8f9ff 0%, #f1f5f9 50%, #ffffff 100%);
	border-radius: 24px;
	z-index: 0;
	pointer-events: none;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero,
.whoknewdirectoryseo-settings .whoknewpr-tab-card,
.whoknewdirectoryseo-settings .whoknewpr-tab-hero + * {
	position: relative;
	z-index: 1;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	padding: 1.75rem 2rem;
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid rgba(102, 126, 234, 0.15);
	box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero-icon {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	box-shadow: 0 8px 24px rgba(118, 75, 162, 0.3);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero-text {
	flex: 1;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero-title {
	margin: 0 0 0.4rem;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-hero-subtitle {
	margin: 0;
	font-size: 1rem;
	color: #64748b;
	line-height: 1.5;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card:last-child {
	margin-bottom: 0;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #1e293b;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card-desc {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: #64748b;
	line-height: 1.55;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card .form-table {
	margin: 0 0 1rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card .form-table th {
	padding: 1rem 10px 1rem 0;
	color: #374151;
	font-weight: 600;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card .form-table td {
	padding: 1rem 0;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card .form-table .description {
	margin-top: 0.5rem;
	color: #64748b;
	font-size: 0.875rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	color: #374151;
	margin-bottom: 0.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-input,
.whoknewdirectoryseo-settings .whoknewpr-tab-select {
	padding: 0.6rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 0.9375rem;
	background: #fff;
	min-width: 220px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-input:focus,
.whoknewdirectoryseo-settings .whoknewpr-tab-select:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
	outline: none;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-card-foot {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
	font-size: 0.875rem;
	color: #64748b;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stat-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	padding: 1.5rem 1.75rem;
	transition: box-shadow 0.25s ease;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stat-card:hover {
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stat-label {
	font-size: 0.6875rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.2;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-stat-note {
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: 0.35rem;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-empty {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	padding: 2rem;
	text-align: center;
	font-size: 0.9375rem;
	color: #64748b;
	line-height: 1.55;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-wrap {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 3rem 2rem;
	text-align: center;
	box-sizing: border-box;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-bg {
	position: absolute;
	inset: -20px;
	background: linear-gradient(160deg, #fefce8 0%, #fef9c3 40%, #ffffff 100%);
	border-radius: 24px;
	z-index: 0;
	pointer-events: none;
	border: 1px solid rgba(245, 158, 11, 0.2);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	line-height: 1;
	box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	font-weight: 800;
	color: #1e293b;
	letter-spacing: -0.02em;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-desc {
	margin: 0 auto 2rem;
	max-width: 580px;
	font-size: 1.0625rem;
	color: #475569;
	line-height: 1.6;
}

/* ── Feature list ─────────────────────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0 0 2.5rem;
	text-align: left;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-feature {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-feature-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 1px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-feature strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-feature span {
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
}

/* ── Tier cards ───────────────────────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tiers {
	display: flex;
	gap: 14px;
	margin: 0 0 2rem;
	justify-content: center;
	text-align: left;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier {
	flex: 1;
	position: relative;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px 18px;
	min-width: 0;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier--featured {
	border-color: #f59e0b;
	box-shadow: 0 4px 20px rgba(245, 158, 11, 0.18);
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 10px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 99px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-name {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #94a3b8;
	margin-bottom: 6px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-price {
	display: flex;
	align-items: baseline;
	gap: 3px;
	margin-bottom: 6px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-amount {
	font-size: 1.75rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-period {
	font-size: 12px;
	color: #94a3b8;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-credits {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 4px;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tier-annual {
	font-size: 11px;
	color: #059669;
	font-weight: 600;
}

/* ── CTA & guarantee ─────────────────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-cta.button-hero {
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 10px;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	border-color: #d97706;
	color: #fff;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
	text-decoration: none;
	display: inline-block;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-cta.button-hero:hover {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	border-color: #f59e0b;
	color: #fff;
}

.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-guarantee {
	margin-top: 14px;
	font-size: 12px;
	color: #94a3b8;
}

@media (max-width: 680px) {
	.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-features {
		grid-template-columns: 1fr;
	}
	.whoknewdirectoryseo-settings .whoknewpr-tab-getpro-tiers {
		flex-direction: column;
	}
}

@media (max-width: 782px) {
	.whoknewdirectoryseo-settings .whoknewpr-tab-hero {
		flex-direction: column;
		text-align: center;
	}

	.whoknewdirectoryseo-settings .whoknewpr-tab-form-row {
		flex-direction: column;
		align-items: stretch;
	}

	.whoknewdirectoryseo-settings .whoknewpr-tab-input,
	.whoknewdirectoryseo-settings .whoknewpr-tab-select {
		min-width: 100%;
	}
}

/* ==========================================================================
   Scan tab – step cards, source toggle, slug lookup, competitor tracking
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-scan-step {
	padding: 1.5rem 2rem;
}

.whoknewdirectoryseo-settings .whoknewpr-scan-step-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.whoknewdirectoryseo-settings .whoknewpr-scan-step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	margin-top: 2px;
	box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Recent-history chips (shared: Scan + Readme Optimizer tabs) */
.whoknewdirectoryseo-settings .whoknewpr-recent-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-recent-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9ca3af;
	margin-right: 2px;
}
.whoknewdirectoryseo-settings .whoknewpr-recent-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	background: #f9fafb;
	color: #374151;
	font-size: 12px;
	font-family: monospace;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
	line-height: 1.5;
}
.whoknewdirectoryseo-settings .whoknewpr-recent-chip:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
}
/* Keyword chips use a regular font */
#whoknewpr_scan_recent_keywords .whoknewpr-recent-chip,
#whoknewpr_readme_recent_keywords .whoknewpr-recent-chip {
	font-family: inherit;
}
/* Keyword chips container sits below the input with a small gap */
#whoknewpr_scan_recent_keywords,
#whoknewpr_readme_recent_keywords {
	margin-top: 8px;
	margin-bottom: 0;
}

/* ── Multi-keyword tag input ───────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-kw-section {
	margin-bottom: 0;
}

/* Outer wrap — looks like a text input */
.whoknewdirectoryseo-settings .whoknewpr-kw-tag-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	cursor: text;
	min-height: 42px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-tag-wrap:focus-within {
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

/* Chips row inside the tag-input wrap (scoped to avoid rankings conflict) */
.whoknewdirectoryseo-settings #whoknewpr_kw_tag_wrap .whoknewpr-kw-chips {
	display: contents;
}

/* Individual scan keyword chip */
.whoknewdirectoryseo-settings #whoknewpr_kw_tag_wrap .whoknewpr-kw-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px 3px 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	max-width: 200px;
}
.whoknewdirectoryseo-settings #whoknewpr_kw_tag_wrap .whoknewpr-kw-chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
}
.whoknewdirectoryseo-settings #whoknewpr_kw_tag_wrap .whoknewpr-kw-chip-remove {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 1;
	padding: 0 0 0 2px;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.1s;
}
.whoknewdirectoryseo-settings #whoknewpr_kw_tag_wrap .whoknewpr-kw-chip-remove:hover {
	color: #fff;
}

/* The typing input inside the wrap */
.whoknewdirectoryseo-settings .whoknewpr-kw-tag-input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 200px;
	flex: 1;
	font-size: 13px;
	color: #0f172a;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-tag-input::placeholder {
	color: #9ca3af;
}

/* Meta row: count label + recent chips */
.whoknewdirectoryseo-settings .whoknewpr-kw-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	min-height: 24px;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-count-label {
	font-size: 12px;
	font-weight: 600;
	color: #667eea;
	white-space: nowrap;
}

/* ── Batch scan: progress bar ─────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-batch-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	color: #64748b;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-progress em {
	color: #0f172a;
	font-style: normal;
	font-weight: 600;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-progress-bar {
	flex-shrink: 0;
	width: 100px;
	height: 6px;
	background: #e2e8f0;
	border-radius: 99px;
	overflow: hidden;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea, #764ba2);
	border-radius: 99px;
	transition: width 0.3s ease;
}

/* ── Batch scan: result cards ─────────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-batch-result-item {
	padding: 1.25rem 1.5rem;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-loading {
	color: #64748b;
	font-size: 13px;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-loading em {
	color: #0f172a;
	font-style: normal;
	font-weight: 600;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-keyword {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	flex-shrink: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-pos {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-toggle {
	margin-top: 10px;
}
.whoknewdirectoryseo-settings .whoknewpr-toggle-detail {
	font-size: 12px;
	color: #667eea;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-weight: 600;
}
.whoknewdirectoryseo-settings .whoknewpr-toggle-detail:hover {
	color: #4f46e5;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-result-detail {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}
.whoknewdirectoryseo-settings .whoknewpr-batch-summary {
	border-top: 3px solid #10b981;
}

/* Source mode toggle */
.whoknewdirectoryseo-settings .whoknewpr-source-toggle {
	display: flex;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1.25rem;
	width: fit-content;
}

.whoknewdirectoryseo-settings .whoknewpr-source-btn {
	padding: 10px 22px;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.whoknewdirectoryseo-settings .whoknewpr-source-btn:last-child {
	border-right: none;
}

.whoknewdirectoryseo-settings .whoknewpr-source-btn:hover {
	background: #f8fafc;
	color: #0f172a;
}

.whoknewdirectoryseo-settings .whoknewpr-source-btn.whoknewpr-source-active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

/* Slug lookup row */
.whoknewdirectoryseo-settings .whoknewpr-slug-lookup-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Plugin info preview after wp.org lookup */
.whoknewdirectoryseo-settings .whoknewpr-plugin-preview {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-top: 12px;
}

.whoknewdirectoryseo-settings .whoknewpr-plugin-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.whoknewdirectoryseo-settings .whoknewpr-plugin-preview-name {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.whoknewdirectoryseo-settings .whoknewpr-plugin-preview-meta {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 8px;
}

.whoknewdirectoryseo-settings .whoknewpr-plugin-preview-desc {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin: 0;
}

.whoknewdirectoryseo-settings .whoknewpr-lookup-loading {
	font-size: 13px;
	color: #64748b;
	padding: 10px 0;
}

.whoknewdirectoryseo-settings .whoknewpr-lookup-notfound {
	font-size: 13px;
	padding: 10px 14px;
	background: #fef9c3;
	border: 1px solid #fde68a;
	border-radius: 8px;
	color: #92400e;
	margin-top: 10px;
}

/* ── Plugin name search results list ──────────────────────────────────────── */

.whoknewdirectoryseo-settings .whoknewpr-search-results-list {
	margin-top: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.whoknewdirectoryseo-settings .whoknewpr-search-results-label {
	margin: 0;
	padding: 8px 14px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #64748b;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.whoknewdirectoryseo-settings .whoknewpr-search-result-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: #fff;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	cursor: pointer;
	transition: background .12s;
	flex-wrap: wrap;
}

.whoknewdirectoryseo-settings .whoknewpr-search-result-item:last-child {
	border-bottom: none;
}

.whoknewdirectoryseo-settings .whoknewpr-search-result-item:hover {
	background: #eff6ff;
}

.whoknewdirectoryseo-settings .whoknewpr-sri-name {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	flex: 1;
}

.whoknewdirectoryseo-settings .whoknewpr-sri-slug {
	font-size: 11px;
	color: #6b7280;
	font-family: monospace;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
}

.whoknewdirectoryseo-settings .whoknewpr-sri-meta {
	font-size: 11px;
	color: #94a3b8;
}

/* Competitor checkbox row */
.whoknewdirectoryseo-settings .whoknewpr-competitor-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.whoknewdirectoryseo-settings .whoknewpr-competitor-label input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #7c3aed;
	cursor: pointer;
}

/* Tracked competitors list card */
.whoknewdirectoryseo-settings .whoknewpr-competitors-card {
	padding: 1.25rem 2rem;
}

.whoknewdirectoryseo-settings .whoknewpr-competitors-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.whoknewdirectoryseo-settings .whoknewpr-competitor-row {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(124, 58, 237, 0.06);
	border: 1px solid rgba(124, 58, 237, 0.18);
	border-radius: 9999px;
	padding: 3px 4px 3px 10px;
}

.whoknewdirectoryseo-settings .whoknewpr-competitor-row .whoknewpr-slug-pill {
	background: transparent;
	color: #7c3aed;
	padding: 0;
	font-size: 12px;
}

.whoknewdirectoryseo-settings .whoknewpr-competitor-row .whoknewpr-btn-remove {
	width: 20px;
	height: 20px;
	font-size: 10px;
	background: rgba(124, 58, 237, 0.1);
	border-radius: 50%;
}

.whoknewdirectoryseo-settings .whoknewpr-competitor-row .whoknewpr-btn-remove:hover {
	background: #fee2e2;
	color: #dc2626;
	border-color: #fecaca;
}

.whoknewdirectoryseo-settings .whoknewpr-no-plugins-note {
	font-size: 13px;
	color: #64748b;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

/* Competitor badge (plugin cards in Rankings dashboard) */
.whoknewdirectoryseo-settings .whoknewpr-competitor-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	background: rgba(124, 58, 237, 0.1);
	color: #7c3aed;
	border: 1px solid rgba(124, 58, 237, 0.2);
	border-radius: 9999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-left: 8px;
	vertical-align: middle;
}

/* Plugin grid filter tabs */
.whoknewdirectoryseo-settings .whoknewpr-grid-filters {
	display: flex;
	gap: 4px;
}

.whoknewdirectoryseo-settings .whoknewpr-grid-filter {
	padding: 4px 12px;
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.15s;
}

.whoknewdirectoryseo-settings .whoknewpr-grid-filter:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.whoknewdirectoryseo-settings .whoknewpr-grid-filter.active {
	background: #0f172a;
	color: #fff;
}

/* Star / favourite button on plugin cards */
.whoknewdirectoryseo-settings .whoknewpr-star-btn {
	background: none;
	border: none;
	padding: 2px 4px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: .45;
	transition: opacity .15s, transform .15s;
}

.whoknewdirectoryseo-settings .whoknewpr-star-btn:hover {
	opacity: 1;
	transform: scale(1.2);
}

/* ==========================================================================
   Refresh button – inline re-scan in rankings table
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-btn-refresh {
	background: none;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #94a3b8;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 2px 5px;
	transition: color .15s, border-color .15s, transform .15s;
}

.whoknewdirectoryseo-settings .whoknewpr-btn-refresh:hover:not(:disabled) {
	color: #3b82f6;
	border-color: #bfdbfe;
}

.whoknewdirectoryseo-settings .whoknewpr-btn-refresh:disabled {
	color: #e2e8f0;
	cursor: not-allowed;
}

.whoknewdirectoryseo-settings .whoknewpr-btn-refresh.whoknewpr-refreshing {
	color: #3b82f6;
	animation: whoknewpr-spin .7s linear infinite;
}

@keyframes whoknewpr-spin {
	from { transform: rotate(0deg);   }
	to   { transform: rotate(360deg); }
}

/* ==========================================================================
   Field Coverage badges – rankings table FIELD COVERAGE column
   7 pill badges showing keyword presence across all 7 WP.org Elasticsearch
   fields, colour-coded by algorithmic weight.
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-field-hits {
	display: flex;
	gap: 3px;
	flex-wrap: nowrap;
	align-items: center;
}

.whoknewdirectoryseo-settings .whoknewpr-fh-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	padding: 0 3px;
	border-radius: 4px;
	letter-spacing: 0;
	cursor: default;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: transform .1s;
}

.whoknewdirectoryseo-settings .whoknewpr-fh-badge:hover {
	transform: scale(1.2);
	z-index: 2;
	position: relative;
}

.whoknewdirectoryseo-settings .whoknewpr-fh-total {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #6b7280;
	min-width: 20px;
	height: 20px;
	margin-left: 2px;
	cursor: default;
}

/* HIGH WEIGHT — Title (10) & Slug (8) */
.whoknewdirectoryseo-settings .whoknewpr-fh-high.whoknewpr-fh-found {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}
/* Missing a high-weight field = red alert */
.whoknewdirectoryseo-settings .whoknewpr-fh-high.whoknewpr-fh-miss {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fca5a5;
}

/* MEDIUM WEIGHT — Tags (5) & Short Desc (4) */
.whoknewdirectoryseo-settings .whoknewpr-fh-med.whoknewpr-fh-found {
	background: #dbeafe;
	color: #1e40af;
	border-color: #93c5fd;
}
.whoknewdirectoryseo-settings .whoknewpr-fh-med.whoknewpr-fh-miss {
	background: #f9fafb;
	color: #9ca3af;
	border-color: #e5e7eb;
}

/* LOW WEIGHT — Description (2), Author (2), Contributors (1) */
.whoknewdirectoryseo-settings .whoknewpr-fh-low.whoknewpr-fh-found {
	background: #f3f4f6;
	color: #374151;
	border-color: #d1d5db;
}
.whoknewdirectoryseo-settings .whoknewpr-fh-low.whoknewpr-fh-miss {
	background: #f9fafb;
	color: #d1d5db;
	border-color: #f3f4f6;
}

/* ==========================================================================
   How ranking works – elegant card layout (Views Pro / Settings style)
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-hrw {
	position: relative;
	width: 100%;
	margin: 0;
	padding-bottom: 2rem;
	box-sizing: border-box;
}

.whoknewpr-hrw-page-bg {
	position: absolute;
	inset: -30px -20px -40px;
	background: linear-gradient(160deg, #f8f9ff 0%, #f1f5f9 50%, #ffffff 100%);
	border-radius: 24px;
	z-index: 0;
	pointer-events: none;
}

.whoknewpr-hrw-hero,
.whoknewpr-hrw-phase-cards,
.whoknewpr-hrw-factors-heading,
.whoknewpr-hrw-factor-cards {
	position: relative;
	z-index: 1;
}

.whoknewpr-hrw-hero {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-bottom: 2rem;
	padding: 2rem 2.25rem;
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid rgba(102, 126, 234, 0.15);
	box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whoknewpr-hrw-hero-icon {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 10px 28px rgba(118, 75, 162, 0.35);
}

.whoknewpr-hrw-hero-icon svg {
	opacity: 0.95;
}

.whoknewpr-hrw-hero-text {
	flex: 1;
}

.whoknewpr-hrw-hero-title {
	margin: 0 0 0.5rem;
	font-size: 1.625rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.25;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.whoknewpr-hrw-hero-subtitle {
	margin: 0;
	font-size: 1.0625rem;
	color: #64748b;
	line-height: 1.55;
}

/* Phase cards – two big elegant cards */
.whoknewpr-hrw-phase-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.whoknewpr-hrw-phase-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.whoknewpr-hrw-phase-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.whoknewpr-hrw-phase-card-inner {
	position: relative;
	padding: 1.75rem 2rem;
	padding-left: 4rem;
}

.whoknewpr-hrw-phase-num {
	position: absolute;
	left: 1.25rem;
	top: 1.75rem;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 800;
	color: #fff;
	border-radius: 10px;
	line-height: 1;
}

.whoknewpr-hrw-phase1 .whoknewpr-hrw-phase-num {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.whoknewpr-hrw-phase2 .whoknewpr-hrw-phase-num {
	background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
	box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.whoknewpr-hrw-phase-title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #1e293b;
}

.whoknewpr-hrw-phase-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: #475569;
	line-height: 1.6;
}

/* Section heading before factor cards */
.whoknewpr-hrw-factors-heading {
	margin-bottom: 1.5rem;
}

.whoknewpr-hrw-factors-title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e293b;
}

.whoknewpr-hrw-factors-subtitle {
	margin: 0;
	font-size: 0.9375rem;
	color: #64748b;
}

/* Factor cards – grid of pretty cards */
.whoknewpr-hrw-factor-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.whoknewpr-hrw-factor-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.whoknewpr-hrw-factor-card:hover {
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
	border-color: rgba(102, 126, 234, 0.2);
}

.whoknewpr-hrw-factor-card-inner {
	display: flex;
	gap: 1rem;
	padding: 1.35rem 1.5rem;
	align-items: flex-start;
}

.whoknewpr-hrw-factor-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	line-height: 1;
}

.whoknewpr-hrw-factor-body {
	flex: 1;
	min-width: 0;
}

.whoknewpr-hrw-factor-name {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
}

.whoknewpr-hrw-factor-weight {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.25rem 0.6rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.whoknewpr-hrw-factor-weight.whoknewpr-hrw-weight-soft {
	background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
	box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

.whoknewpr-hrw-factor-tip {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
}

@media (max-width: 782px) {
	.whoknewpr-hrw-hero {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem 1.25rem;
	}

	.whoknewpr-hrw-phase-cards {
		grid-template-columns: 1fr;
		margin-bottom: 2rem;
	}

	.whoknewpr-hrw-phase-card-inner {
		padding: 1.5rem 1.25rem;
		padding-left: 4rem;
	}

	.whoknewpr-hrw-factor-cards {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Rankings tab – dashboard (summary cards, chart placeholders, keyword table)
   ========================================================================== */

.whoknewdirectoryseo-settings .whoknewpr-rankings-dashboard {
	position: relative;
	z-index: 1;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-plugin-name {
	font-weight: 700;
	font-size: 1rem;
	color: #1e293b;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-toolbar-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-trend {
	min-width: 140px;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	padding: 1.25rem 1.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card.wide {
	grid-column: span 1;
}

@media (min-width: 900px) {
	.whoknewdirectoryseo-settings .whoknewpr-rankings-card-wide {
		grid-column: span 2;
	}
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-label {
	font-size: 0.6875rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.35rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.2;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-change {
	font-size: 0.9375rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-change.positive {
	color: #059669;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-change.negative {
	color: #dc2626;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-card-inline {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-up {
	color: #059669;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-down {
	color: #dc2626;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-chart-placeholder {
	min-height: 80px;
	margin-top: 0.75rem;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	color: #64748b;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-chart-line {
	min-height: 100px;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table-wrap {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table {
	width: 100%;
	border: none;
	margin: 0;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table th,
.whoknewdirectoryseo-settings .whoknewpr-rankings-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border: none;
	border-bottom: 1px solid #e2e8f0;
}


.whoknewdirectoryseo-settings .whoknewpr-rankings-table thead th {
	background: #f8fafc;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table tbody tr:last-child td {
	border-bottom: none;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table .check-column {
	width: 2.5rem;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-change-cell .positive {
	color: #059669;
	font-weight: 600;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-change-cell .negative {
	color: #dc2626;
	font-weight: 600;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-preview-note {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #fef9c3;
	border: 1px solid #fde68a;
	border-radius: 10px;
	font-size: 0.875rem;
	color: #713f12;
}

/* =========================================================================
   Connection badge (Settings tab)
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-connection-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background 0.2s, color 0.2s;
}
.whoknewdirectoryseo-settings .whoknewpr-connection-idle {
	background: #f1f5f9;
	color: #64748b;
	border-color: #e2e8f0;
}
.whoknewdirectoryseo-settings .whoknewpr-connection-ok {
	background: #dcfce7;
	color: #15803d;
	border-color: #bbf7d0;
}
.whoknewdirectoryseo-settings .whoknewpr-connection-error {
	background: #fee2e2;
	color: #b91c1c;
	border-color: #fecaca;
}

/* =========================================================================
   Scan results
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-scan-results {
	margin-top: 0;
}

/* =========================================================================
   Readme results
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-readme-results {
	margin-top: 0;
}

/* =========================================================================
   Rankings: empty state, JS-driven positive/negative change
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-tab-empty {
	padding: 40px 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.9375rem;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px dashed #e2e8f0;
	margin-top: 0;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table .positive {
	color: #059669;
	font-weight: 600;
}

.whoknewdirectoryseo-settings .whoknewpr-rankings-table .negative {
	color: #dc2626;
	font-weight: 600;
}

/* Rankings dashboard (JS-rendered) */
.whoknewdirectoryseo-settings .whoknewpr-rankings-dashboard {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

#whoknewpr_rankings_container {
	position: relative;
	z-index: 1;
}

/* =========================================================================
   RANKINGS – Dashboard Toolbar
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-dash-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding: 14px 20px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	position: relative;
	z-index: 2;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-toolbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-toolbar-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-toolbar-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-toolbar-subtitle {
	font-size: 0.8125rem;
	color: #64748b;
	margin: 2px 0 0 0;
}

/* Algorithm info button */
.whoknewdirectoryseo-settings .whoknewpr-algo-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-algo-btn:hover {
	background: #e2e8f0;
	border-color: #94a3b8;
}

/* Loading state */
.whoknewdirectoryseo-settings .whoknewpr-dash-loading {
	padding: 40px 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.9375rem;
}

/* =========================================================================
   RANKINGS – Dashboard (light theme redesign)
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-dash {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ── Shared light card ─────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-lcard {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e8edf3;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
}

/* ── Stat strip (4 columns) ────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-stat-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 900px) {
	.whoknewdirectoryseo-settings .whoknewpr-stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.whoknewdirectoryseo-settings .whoknewpr-stat-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e8edf3;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
	padding: 20px 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-top: 3px solid var(--card-accent, #3b82f6);
}
.whoknewdirectoryseo-settings .whoknewpr-stat-icon {
	font-size: 20px;
	line-height: 1;
	margin-bottom: 4px;
}
.whoknewdirectoryseo-settings .whoknewpr-stat-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #94a3b8;
	text-transform: uppercase;
}
.whoknewdirectoryseo-settings .whoknewpr-stat-value {
	font-size: 2.2rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.05;
	letter-spacing: -.03em;
}
.whoknewdirectoryseo-settings .whoknewpr-stat-sub {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}
.whoknewdirectoryseo-settings .whoknewpr-stat-link {
	font-size: 12px;
	color: #3b82f6;
	font-weight: 600;
	text-decoration: none;
	margin-top: 6px;
	display: inline-block;
}
.whoknewdirectoryseo-settings .whoknewpr-stat-link:hover { text-decoration: underline; }

/* ── Section header ────────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.whoknewdirectoryseo-settings .whoknewpr-section-title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-section-action {
	font-size: 12px;
	color: #3b82f6;
	font-weight: 600;
	text-decoration: none;
}
.whoknewdirectoryseo-settings .whoknewpr-section-action:hover { text-decoration: underline; }

/* ── Plugin health cards ───────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-plugin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 16px;
}
.whoknewdirectoryseo-settings .whoknewpr-plugin-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e8edf3;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.whoknewdirectoryseo-settings .whoknewpr-plugin-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.whoknewdirectoryseo-settings .whoknewpr-plugin-slug {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	word-break: break-all;
}
.whoknewdirectoryseo-settings .whoknewpr-plugin-card-meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.whoknewdirectoryseo-settings .whoknewpr-mini-stat {
	background: #f8fafc;
	border-radius: 8px;
	padding: 10px 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-mini-stat-label {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.whoknewdirectoryseo-settings .whoknewpr-mini-stat-val {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

/* Keyword chips inside plugin card */
.whoknewdirectoryseo-settings .whoknewpr-kw-chips {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-chip-name {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.whoknewdirectoryseo-settings .whoknewpr-kw-chip-right {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-pos-badge {
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	padding: 3px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #6b7280;
}
.whoknewdirectoryseo-settings .whoknewpr-pos-badge.pos-top3  { background: #d1fae5; color: #059669; }
.whoknewdirectoryseo-settings .whoknewpr-pos-badge.pos-top10 { background: #dbeafe; color: #1d4ed8; }
.whoknewdirectoryseo-settings .whoknewpr-pos-badge.pos-top50 { background: #ede9fe; color: #7c3aed; }
.whoknewdirectoryseo-settings .whoknewpr-pos-badge.pos-rest  { background: #fef3c7; color: #b45309; }

/* External link */
.whoknewdirectoryseo-settings .whoknewpr-ext-link {
	font-size: 11px;
	color: #3b82f6;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	opacity: .8;
	transition: opacity .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-ext-link:hover { opacity: 1; text-decoration: underline; }

/* Plugin card footer actions */
.whoknewdirectoryseo-settings .whoknewpr-plugin-actions {
	display: flex;
	gap: 10px;
	padding-top: 4px;
	border-top: 1px solid #f1f5f9;
}
.whoknewdirectoryseo-settings .whoknewpr-action-link {
	font-size: 12px;
	font-weight: 600;
	color: #3b82f6;
	text-decoration: none;
}
.whoknewdirectoryseo-settings .whoknewpr-action-link:hover { text-decoration: underline; }

/* ── Charts row ────────────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-chart-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 780px) {
	.whoknewdirectoryseo-settings .whoknewpr-chart-row { grid-template-columns: 1fr; }
}
.whoknewdirectoryseo-settings .whoknewpr-chart-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e8edf3;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
	padding: 20px;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-period {
	font-size: 11px;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 6px;
	padding: 3px 8px;
	font-weight: 600;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-canvas {
	display: block;
	width: 100% !important;
	height: 120px !important;
	border-radius: 6px;
}

/* ── Change badge (shared) ─────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-change-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.whoknewdirectoryseo-settings .whoknewpr-badge-up {
	background: rgba(16,185,129,.15);
	color: #059669;
}
.whoknewdirectoryseo-settings .whoknewpr-badge-down {
	background: rgba(239,68,68,.15);
	color: #dc2626;
}
.whoknewdirectoryseo-settings .whoknewpr-badge-sm { font-size: 10px; padding: 2px 6px; }

/* Placeholder for old dark card classes (kept for compatibility) */
.whoknewdirectoryseo-settings .whoknewpr-dash-card {
	background: #fff;
	color: #0f172a;
	border-radius: 14px;
	border: 1px solid #e8edf3;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.whoknewdirectoryseo-settings .whoknewpr-dash-card-label {
	font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #94a3b8; text-transform: uppercase;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-card-value {
	font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1.1; letter-spacing: -.02em;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-canvas {
	width: 100% !important; height: 90px !important; display: block; border-radius: 6px;
}
.whoknewdirectoryseo-settings .whoknewpr-pos-up   { color: #059669; }
.whoknewdirectoryseo-settings .whoknewpr-pos-down { color: #dc2626; }
.whoknewdirectoryseo-settings .whoknewpr-legend-row  { display:flex; align-items:center; gap:8px; font-size:12px; }
.whoknewdirectoryseo-settings .whoknewpr-legend-dot  { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.whoknewdirectoryseo-settings .whoknewpr-legend-label { flex:1; color:#94a3b8; }
.whoknewdirectoryseo-settings .whoknewpr-legend-count { font-weight:700; color:#0f172a; }
.whoknewdirectoryseo-settings .whoknewpr-legend-count-hot { color:#059669; }

/* =========================================================================
   RANKINGS – Keyword table
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-dash-table-wrap {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
	overflow: hidden;
}

.whoknewdirectoryseo-settings .whoknewpr-dash-table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.whoknewdirectoryseo-settings .whoknewpr-dash-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.875rem;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-table th {
	padding: 10px 10px;
	text-align: left;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	color: #94a3b8;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
	white-space: nowrap;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-table tbody tr:last-child td { border-bottom: none; }
.whoknewdirectoryseo-settings .whoknewpr-dash-table tbody tr:hover { background: #f8fafc; }

.whoknewdirectoryseo-settings .whoknewpr-col-check { width: 36px; }
.whoknewdirectoryseo-settings .whoknewpr-col-pos   { width: 90px; }
.whoknewdirectoryseo-settings .whoknewpr-col-spark { width: 110px; }
.whoknewdirectoryseo-settings .whoknewpr-col-occur { width: 80px; text-align: center; }
.whoknewdirectoryseo-settings .whoknewpr-col-plugin { width: 160px; }
.whoknewdirectoryseo-settings .whoknewpr-col-lang  { width: 90px; }
.whoknewdirectoryseo-settings .whoknewpr-col-date  { width: 120px; font-size: 12px; color: #64748b; }
.whoknewdirectoryseo-settings .whoknewpr-col-action { width: 40px; text-align: center; }

/* Slug pill */
.whoknewdirectoryseo-settings .whoknewpr-slug-pill {
	display: inline-flex;
	padding: 3px 9px;
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	max-width: 155px;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	transition: background .15s;
}
a:hover .whoknewdirectoryseo-settings .whoknewpr-slug-pill,
.whoknewdirectoryseo-settings a:hover .whoknewpr-slug-pill { background: #dbeafe; }

/* Remove button */
.whoknewdirectoryseo-settings .whoknewpr-btn-remove {
	background: none;
	border: 1px solid transparent;
	color: #9ca3af;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px;
	transition: all .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-btn-remove:hover {
	background: #fee2e2;
	border-color: #fecaca;
	color: #dc2626;
}

/* Bulk remove button */
.whoknewdirectoryseo-settings .whoknewpr-btn-danger {
	padding: 6px 14px;
	background: #ef4444;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-btn-danger:hover { background: #dc2626; }

/* =========================================================================
   ALGORITHM DRAWER
   ========================================================================= */

/* Overlay */
.whoknewpr-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 100000;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}
.whoknewpr-drawer-overlay.whoknewpr-overlay-visible {
	opacity: 1;
	pointer-events: all;
}

/* Drawer panel */
.whoknewpr-algo-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(520px, 90vw);
	background: #0f172a;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.4,0,.2,1);
	box-shadow: -8px 0 40px rgba(0,0,0,.35);
}
.whoknewpr-algo-drawer.whoknewpr-drawer-open {
	transform: translateX(0);
}
body.whoknewpr-drawer-body-lock { overflow: hidden; }

/* Drawer header */
.whoknewpr-algo-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	flex-shrink: 0;
}
.whoknewpr-algo-drawer-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #f1f5f9;
	margin: 0;
}
.whoknewpr-algo-drawer-icon { font-size: 1.25rem; }
.whoknewpr-algo-drawer-close {
	background: rgba(255,255,255,.08);
	border: none;
	color: #94a3b8;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	transition: background .15s, color .15s;
}
.whoknewpr-algo-drawer-close:hover { background: rgba(255,255,255,.15); color: #f1f5f9; }

/* Drawer body */
.whoknewpr-algo-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
	scrollbar-width: thin;
	scrollbar-color: #334155 transparent;
}
.whoknewpr-algo-drawer-body::-webkit-scrollbar { width: 4px; }
.whoknewpr-algo-drawer-body::-webkit-scrollbar-track { background: transparent; }
.whoknewpr-algo-drawer-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.whoknewpr-algo-lead {
	color: #94a3b8;
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

/* Phase cards */
.whoknewpr-algo-phases {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.whoknewpr-algo-phase {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: 12px;
}
.whoknewpr-algo-phase1 { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2); }
.whoknewpr-algo-phase2 { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); }
.whoknewpr-algo-phase-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
}
.whoknewpr-algo-phase1 .whoknewpr-algo-phase-num { background: #3b82f6; color: #fff; }
.whoknewpr-algo-phase2 .whoknewpr-algo-phase-num { background: #10b981; color: #fff; }
.whoknewpr-algo-phase h3 { font-size: 0.875rem; font-weight: 700; color: #f1f5f9; margin: 0 0 4px 0; }
.whoknewpr-algo-phase p, .whoknewpr-algo-phase code { font-size: 0.8125rem; color: #94a3b8; margin: 0; line-height: 1.5; }
.whoknewpr-algo-phase code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; }

.whoknewpr-algo-section-title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #475569;
	margin: 0 0 12px 0;
}

/* Factor cards */
.whoknewpr-algo-factors {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}
.whoknewpr-algo-factor {
	padding: 14px 16px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 10px;
}
.whoknewpr-algo-factor-soft {
	opacity: .8;
}
.whoknewpr-algo-factor-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.whoknewpr-algo-factor-icon { font-size: 1rem; flex-shrink: 0; }
.whoknewpr-algo-factor-name { font-size: 0.875rem; font-weight: 600; color: #f1f5f9; flex: 1; }
.whoknewpr-algo-factor-weight {
	background: rgba(16,185,129,.18);
	color: #10b981;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
}
.whoknewpr-algo-weight-decay {
	background: rgba(245,158,11,.15);
	color: #f59e0b;
}
.whoknewpr-algo-factor p { font-size: 0.8125rem; color: #64748b; margin: 0; line-height: 1.55; }

/* Tip banner */
.whoknewpr-algo-tip {
	background: rgba(16,185,129,.1);
	border: 1px solid rgba(16,185,129,.2);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 0.8125rem;
	color: #a7f3d0;
	line-height: 1.6;
}
.whoknewpr-algo-tip strong { color: #34d399; }

/* =========================================================================
   Empty state (rankings)
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-tab-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 60px 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.9375rem;
	background: #f8fafc;
	border-radius: 14px;
	border: 1px dashed #e2e8f0;
}
.whoknewdirectoryseo-settings .whoknewpr-tab-empty-icon {
	font-size: 2.5rem;
	line-height: 1;
}

/* =========================================================================
   AI Optimizer upsell card (free plugin)
   ========================================================================= */
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-body {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-main {
	flex: 1;
	min-width: 200px;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-header .whoknewpr-tab-card-title {
	margin: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-icon {
	font-size: 20px;
}
.whoknewdirectoryseo-settings .whoknewpr-pro-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	background: #7c3aed;
	color: #fff;
	padding: 2px 7px;
	border-radius: 99px;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-desc {
	margin: 0 0 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-list {
	margin: 0 0 16px;
	padding: 0 0 0 18px;
	color: #374151;
	font-size: 13px;
	line-height: 1.7;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-action {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-top: 4px;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-btn {
	white-space: nowrap;
}
.whoknewdirectoryseo-settings .whoknewpr-ai-upsell-note {
	font-size: 11px;
	color: #9ca3af;
}

/* ── Tip banner ──────────────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-tip-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #1e40af;
	line-height: 1.5;
}
.whoknewdirectoryseo-settings .whoknewpr-tip-icon {
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
}
.whoknewdirectoryseo-settings .whoknewpr-tip-text {
	flex: 1;
}
.whoknewdirectoryseo-settings .whoknewpr-tip-dismiss {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #93c5fd;
	padding: 0 2px;
	flex-shrink: 0;
	transition: color .12s;
}
.whoknewdirectoryseo-settings .whoknewpr-tip-dismiss:hover {
	color: #1e40af;
}


/* ── Trend inconsistency banner ──────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-incon-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1px solid #fcd34d;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 14px;
	font-size: 13px;
	line-height: 1.4;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-left {
	flex-shrink: 0;
	font-size: 18px;
	line-height: 1;
	margin-top: 2px;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-right {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-title {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: #78350f;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-desc {
	font-size: 13px;
	color: #92400e;
	line-height: 1.6;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-desc strong { color: #78350f; }
.whoknewdirectoryseo-settings .whoknewpr-incon-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-pin {
	background: #f59e0b;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(245,158,11,.4);
	transition: background .15s, transform .1s, box-shadow .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-pin:hover {
	background: #d97706;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(245,158,11,.45);
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-refresh {
	background: transparent;
	color: #92400e;
	border: 1.5px solid #fbbf24;
	border-radius: 7px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-refresh:hover {
	background: rgba(253,230,138,.5);
	border-color: #f59e0b;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-refresh:disabled {
	opacity: .55;
	cursor: default;
	transform: none;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-dismiss {
	background: none;
	border: none;
	color: #b45309;
	font-size: 14px;
	cursor: pointer;
	padding: 5px 7px;
	border-radius: 5px;
	line-height: 1;
	transition: color .15s, background .15s;
}
.whoknewdirectoryseo-settings .whoknewpr-incon-btn-dismiss:hover {
	color: #78350f;
	background: rgba(0,0,0,.05);
}
.whoknewdirectoryseo-settings .whoknewpr-incon-confirm {
	font-size: 12px;
	font-weight: 600;
	color: #059669;
}

/* ── Trend chart wrapper + controls ──────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-trend-chart-wrap {
	position: relative;
	height: 180px;
	margin-top: 4px;
}
.whoknewdirectoryseo-settings .whoknewpr-trend-chart-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}
.whoknewdirectoryseo-settings #whoknewpr_trend_no_data {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #94a3b8;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-controls {
	display: flex;
	gap: 6px;
	align-items: center;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-select {
	font-size: 12px;
	padding: 3px 6px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #374151;
	cursor: pointer;
	height: auto;
	line-height: 1.4;
}
.whoknewdirectoryseo-settings .whoknewpr-chart-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.whoknewdirectoryseo-settings .whoknewpr-clear-pins-btn {
	font-size: 12px;
	padding: 3px 8px;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	background: #fff1f2;
	color: #dc2626;
	cursor: pointer;
	transition: background .12s, border-color .12s;
	line-height: 1.4;
	white-space: nowrap;
}
.whoknewdirectoryseo-settings .whoknewpr-clear-pins-btn:hover {
	background: #fee2e2;
	border-color: #f87171;
}

/* ── Chart palette picker ─────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-palette-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-palette-btn {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 4px;
	row-gap: 6px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	text-align: left;
	transition: border-color .15s, box-shadow .15s;
	width: 100%;
}
.whoknewdirectoryseo-settings .whoknewpr-palette-btn:hover {
	border-color: #93c5fd;
	box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.whoknewdirectoryseo-settings .whoknewpr-palette-btn.active {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.whoknewdirectoryseo-settings .whoknewpr-palette-swatches {
	display: flex;
	gap: 4px;
	grid-column: 1 / -1;
	grid-row: 1;
}
.whoknewdirectoryseo-settings .whoknewpr-palette-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(0,0,0,0.08);
}
.whoknewdirectoryseo-settings .whoknewpr-palette-name {
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	line-height: 1.3;
	grid-column: 1;
	grid-row: 2;
}
.whoknewdirectoryseo-settings .whoknewpr-palette-check {
	grid-column: 2;
	grid-row: 2;
	font-size: 13px;
	color: #2563eb;
	font-weight: 700;
	line-height: 1;
}

/* ── Pin button on keyword rows ──────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-btn-pin {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	padding: 2px 3px;
	opacity: 0.35;
	transition: opacity .15s, transform .15s;
	position: relative;
	line-height: 1;
}
.whoknewdirectoryseo-settings .whoknewpr-btn-pin:hover {
	opacity: 0.8;
	transform: scale(1.15);
}
.whoknewdirectoryseo-settings .whoknewpr-btn-pin.pinned {
	opacity: 1;
}
.whoknewdirectoryseo-settings .whoknewpr-pin-check {
	position: absolute;
	top: -3px;
	right: -3px;
	font-size: 8px;
	font-weight: 700;
	color: #fff;
	background: #2563eb;
	border-radius: 50%;
	width: 10px;
	height: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ── Sortable table headers ───────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-dash-table thead .whoknewpr-th-sort {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-table thead .whoknewpr-th-sort:hover {
	background: #f8fafc;
	color: #0f172a;
}
.whoknewdirectoryseo-settings .whoknewpr-dash-table thead .whoknewpr-th-active {
	color: #2563eb;
}
.whoknewdirectoryseo-settings .whoknewpr-sort-arrow {
	display: inline-block;
	margin-left: 4px;
	font-size: 10px;
	opacity: 0.4;
}
.whoknewdirectoryseo-settings .whoknewpr-sort-arrow.active {
	opacity: 1;
	color: #2563eb;
}

/* ── Table pagination ─────────────────────────────────────────────────────── */
.whoknewdirectoryseo-settings .whoknewpr-table-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	border-radius: 0 0 8px 8px;
	flex-wrap: wrap;
	gap: 8px;
}
.whoknewdirectoryseo-settings .whoknewpr-page-info {
	font-size: 12px;
	color: #6b7280;
}
.whoknewdirectoryseo-settings .whoknewpr-page-btns {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.whoknewdirectoryseo-settings .whoknewpr-page-btn {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	color: #374151;
	transition: background .12s, border-color .12s;
	line-height: 1.5;
}
.whoknewdirectoryseo-settings .whoknewpr-page-btn:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}
.whoknewdirectoryseo-settings .whoknewpr-page-btn.active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	font-weight: 600;
}

/* ── Admin notices ────────────────────────────────────────────────────────── */

.whoknewpr-notice {
	border-left: none !important;
	padding: 0 !important;
	background: transparent !important;
}
.whoknewpr-notice .whoknewpr-notice-inner {
	margin: 0;
}
.whoknewpr-notice p {
	margin: 0;
}

/* ── Plugin Groups ─────────────────────────────────────────────────────────── */

/* Group filter pill variant */
.whoknewdirectoryseo-settings .whoknewpr-group-filter {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.whoknewdirectoryseo-settings .whoknewpr-group-filter.active {
	background: var(--group-color, #3b82f6);
	color: #fff;
	border-color: transparent;
}
.whoknewdirectoryseo-settings .whoknewpr-group-filter:not(.active):hover {
	border-color: var(--group-color, #3b82f6);
	color: var(--group-color, #3b82f6);
	background: #fff;
}

/* "+ Groups" manage button beside filter pills */
.whoknewdirectoryseo-settings .whoknewpr-filter-manage-btn {
	padding: 4px 12px;
	background: transparent;
	border: 1px dashed #cbd5e1;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.15s;
}
.whoknewdirectoryseo-settings .whoknewpr-filter-manage-btn:hover {
	border-color: #64748b;
	color: #0f172a;
	background: #f8fafc;
}

/* Colored dot – used in pills, card headers, slug cell */
.whoknewdirectoryseo-settings .whoknewpr-group-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.whoknewdirectoryseo-settings .whoknewpr-group-dot-lg {
	width: 12px;
	height: 12px;
}
.whoknewdirectoryseo-settings .whoknewpr-group-dot-pill {
	width: 7px;
	height: 7px;
}

/* Dot cluster shown beside slug in card header and table row */
.whoknewdirectoryseo-settings .whoknewpr-group-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: 6px;
	vertical-align: middle;
}

/* Per-row / per-card ⊕ group button */
.whoknewdirectoryseo-settings .whoknewpr-btn-group {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 2px 5px;
	font-size: 13px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	transition: all 0.12s;
}
.whoknewdirectoryseo-settings .whoknewpr-btn-group:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}

/* Floating group assignment dropdown */
.whoknewpr-group-dropdown {
	position: absolute;
	z-index: 99999;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	min-width: 200px;
	max-width: 260px;
	font-size: 13px;
	overflow: hidden;
}
.whoknewpr-group-dropdown-header {
	padding: 8px 12px 6px;
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #94a3b8;
	border-bottom: 1px solid #f1f5f9;
}
.whoknewpr-group-dropdown-empty {
	padding: 10px 12px;
	color: #64748b;
	font-size: 12px;
}
.whoknewpr-group-dropdown-item {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	cursor: pointer;
	transition: background .1s;
	font-weight: 500;
	color: #0f172a;
}
.whoknewpr-group-dropdown-item:hover { background: #f8fafc; }
.whoknewpr-group-dropdown-item input[type="checkbox"] {
	margin: 0;
	cursor: pointer;
}
.whoknewpr-group-dropdown-footer {
	padding: 6px 12px 8px;
	border-top: 1px solid #f1f5f9;
}
.whoknewpr-group-dropdown-new,
.whoknewpr-group-manage-link {
	font-size: 12px;
	color: #2563eb;
	text-decoration: none;
}
.whoknewpr-group-dropdown-new:hover,
.whoknewpr-group-manage-link:hover { text-decoration: underline; }

/* Manage groups modal overlay */
.whoknewpr-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15,23,42,.45);
	display: flex;
	align-items: center;
	justify-content: center;
}
.whoknewpr-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.18);
	width: 480px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 60px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.whoknewpr-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}
.whoknewpr-modal-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}
.whoknewpr-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0 4px;
	transition: color .12s;
}
.whoknewpr-modal-close:hover { color: #0f172a; }
.whoknewpr-modal-body {
	padding: 16px 20px 20px;
	overflow-y: auto;
	flex: 1;
}

/* Create-group form row */
.whoknewpr-group-create {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}
.whoknewpr-group-input {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	color: #0f172a;
	outline: none;
	transition: border-color .12s;
}
.whoknewpr-group-input:focus { border-color: #2563eb; }
.whoknewpr-btn-primary {
	padding: 7px 14px;
	background: #0f172a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .12s;
	white-space: nowrap;
}
.whoknewpr-btn-primary:hover { background: #1e293b; }

/* Empty state */
.whoknewpr-groups-empty {
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	padding: 20px 0;
}

/* Group list item */
.whoknewpr-group-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	border-radius: 6px;
	background: #f8fafc;
	margin-bottom: 4px;
}
.whoknewpr-group-item-name {
	flex: 1;
	font-weight: 600;
	font-size: 13px;
	color: #0f172a;
}
.whoknewpr-group-item-count {
	font-size: 11px;
	color: #94a3b8;
	white-space: nowrap;
}
.whoknewpr-group-delete-btn {
	background: none;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: #cbd5e1;
	cursor: pointer;
	padding: 0 2px;
	transition: color .12s;
}
.whoknewpr-group-delete-btn:hover { color: #ef4444; }

/* Slug tags inside group item */
.whoknewpr-group-slugs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding: 4px 10px 8px 30px;
}
.whoknewpr-group-slug-tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #e0e7ff;
	color: #3730a3;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 500;
}
.whoknewpr-group-slug-remove {
	background: none;
	border: none;
	font-size: 13px;
	line-height: 1;
	color: #818cf8;
	cursor: pointer;
	padding: 0 1px;
	transition: color .12s;
}
.whoknewpr-group-slug-remove:hover { color: #ef4444; }

/* Card-footer group button variant */
.whoknewdirectoryseo-settings .whoknewpr-card-group-btn {
	margin-left: auto;
	font-size: 14px;
}

/* Group dropdown divider between built-in and custom groups */
.whoknewpr-group-dropdown-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 4px 0;
}

/* ── Export / Import card ──────────────────────────────────────────────────── */
.whoknewpr-ei-section {
	margin-bottom: 8px;
}
.whoknewpr-ei-section-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.whoknewpr-ei-icon {
	font-size: 16px;
	line-height: 1;
}
.whoknewpr-ei-section-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 14px;
}
.whoknewpr-ei-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.whoknewpr-ei-upload-row {
	margin-bottom: 12px;
}
.whoknewpr-ei-btn {
	height: 36px;
	padding: 0 16px;
	font-size: 13px;
}
.whoknewpr-ei-divider {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 20px 0;
}

/* File picker */
.whoknewpr-ei-file-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px dashed #94a3b8;
	border-radius: 6px;
	padding: 7px 14px;
	cursor: pointer;
	font-size: 13px;
	color: #475569;
	transition: border-color 0.15s, background 0.15s;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.whoknewpr-ei-file-label:hover {
	border-color: #6366f1;
	background: #f1f5ff;
	color: #4338ca;
}
.whoknewpr-ei-file-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices */
.whoknewpr-ei-notice {
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 14px;
	line-height: 1.5;
}
.whoknewpr-ei-notice--warn {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	color: #92400e;
}

/* Confirmation panel */
.whoknewpr-ei-confirm {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #6366f1;
	border-radius: 6px;
	padding: 14px 16px;
	margin-top: 12px;
}
.whoknewpr-ei-confirm-title {
	font-weight: 600;
	font-size: 13px;
	color: #0f172a;
	margin: 0 0 8px;
}
.whoknewpr-ei-confirm-meta {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #334155;
}
.whoknewpr-ei-confirm-meta li {
	margin-bottom: 4px;
}
.whoknewpr-ei-confirm-warn {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 12px;
}
.whoknewpr-ei-confirm-actions {
	display: flex;
	gap: 8px;
}

/* Status messages */
.whoknewpr-ei-status {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 12px;
	line-height: 1.5;
}
.whoknewpr-ei-status--success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}
.whoknewpr-ei-status--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

/* Import summary list */
.whoknewpr-ei-summary {
	margin: 8px 0 0 0;
	padding-left: 18px;
	font-size: 12px;
	color: #166534;
}
.whoknewpr-ei-summary li {
	margin-bottom: 3px;
}

/* ── Recent chip wrapper + score queue button ───────────────────────────────
   Wraps each recent chip + optional ⚡ button as an inline unit.           */
.whoknewpr-recent-chip-wrap {
	display:     inline-flex;
	align-items: center;
	gap:         0;
}
.whoknewpr-score-queue-btn {
	display:       inline-flex;
	align-items:   center;
	justify-content: center;
	background:    none;
	border:        1px solid #d1d5db;
	border-left:   none;
	border-radius: 0 20px 20px 0;
	padding:       3px 8px 3px 4px;
	cursor:        pointer;
	color:         #f59e0b;
	font-size:     10px;
	line-height:   1;
	transition:    background .12s, color .12s, border-color .12s;
}
.whoknewpr-score-queue-btn:hover {
	background:   #fffbeb;
	color:        #d97706;
	border-color: #fcd34d;
}
.whoknewpr-sqb-tick {
	font-size:   11px;
	font-weight: 700;
	line-height: 1;
}
.whoknewpr-recent-chip-wrap .whoknewpr-recent-chip {
	border-radius: 20px 0 0 20px;
}
.whoknewpr-recent-chip-wrap .whoknewpr-recent-chip:only-child {
	border-radius: 20px;
}

/* ── Interest score badge — inline after any keyword label ─────────────────
   Empty badge is invisible. Filled badge shows colored score pill.        */
.whoknewpr-score-badge {
	display:       none;
	align-items:   center;
	margin-left:   5px;
	padding:       1px 6px;
	border-radius: 9px;
	font-size:     10px;
	font-weight:   700;
	line-height:   1.5;
	vertical-align: middle;
	white-space:   nowrap;
}
.whoknewpr-score-badge:not(:empty) {
	display: inline-flex;
}
.whoknewpr-score-badge-high { background: #ecfdf5; color: #059669; }
.whoknewpr-score-badge-med  { background: #fffbeb; color: #d97706; }
.whoknewpr-score-badge-low  { background: #fff7ed; color: #ea580c; }
.whoknewpr-score-badge-none { background: #f1f5f9; color: #94a3b8; }
