/*
 * RankX SEO — admin styles.
 * RTL-friendly by default (uses logical/flex layouts, no hardcoded left/right
 * assumptions beyond what mirrors correctly under dir="rtl").
 */

.rankx-seo-wrap {
	max-width: 1200px;
}

/* ---------- Connect screen ---------- */

.rankx-seo-connect-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	max-width: 640px;
	margin-top: 24px;
	padding: 32px 36px;
}

.rankx-seo-connect-card h1 {
	margin-top: 0;
	font-size: 24px;
}

.rankx-seo-connect-lead {
	color: #50575e;
	font-size: 14px;
	margin-bottom: 24px;
}

.rankx-seo-connect-card .button-hero {
	font-size: 15px;
	height: auto;
	padding: 12px 28px;
}

/* ---------- Header ---------- */

.rankx-seo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.rankx-seo-header h1 {
	margin: 0;
}

.rankx-seo-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rankx-seo-credits {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 999px;
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
}

.rankx-seo-disconnect {
	color: #b32d2e;
	font-size: 13px;
	text-decoration: none;
}

.rankx-seo-disconnect:hover {
	color: #8a1f1f;
	text-decoration: underline;
}

/* ---------- Badges ---------- */

.rankx-seo-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	padding: 2px 12px;
	white-space: nowrap;
}

.rankx-seo-badge-good {
	background: #edfaef;
	color: #1e7b34;
	border: 1px solid #b7e4c0;
}

.rankx-seo-badge-weak {
	background: #fdecea;
	color: #9a3a2b;
	border: 1px solid #f3c6bd;
}

/* "RankX wrote this" stamp under the status badge in the products table. */
.rankx-seo-opt-stamp {
	color: #6d28d9;
	display: block;
	font-size: 11px;
	line-height: 1.5;
	margin-top: 4px;
	white-space: nowrap;
}

.rankx-seo-muted {
	color: #8c8f94;
}

/* ---------- Products table extras ---------- */

.rankx-seo-wrap table.wp-list-table .column-thumb {
	width: 48px;
}

.rankx-seo-wrap table.wp-list-table img {
	border-radius: 4px;
	height: auto;
	max-width: 40px;
}

.rankx-seo-optimize-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Modal ---------- */

.rankx-seo-modal[hidden] {
	display: none;
}

.rankx-seo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rankx-seo-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.rankx-seo-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	max-width: 860px;
	width: calc(100% - 40px);
	max-height: calc(100% - 60px);
	overflow-y: auto;
	padding: 28px 32px;
}

.rankx-seo-modal-close {
	position: absolute;
	top: 12px;
	inset-inline-end: 14px;
	background: transparent;
	border: none;
	color: #50575e;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	padding: 4px;
}

.rankx-seo-modal-close:hover {
	color: #1d2327;
}

.rankx-seo-modal-body h2 {
	margin-top: 0;
}

.rankx-seo-compare-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr 1fr;
	margin-top: 16px;
}

@media (max-width: 782px) {
	.rankx-seo-compare-grid {
		grid-template-columns: 1fr;
	}
}

.rankx-seo-compare-col h3 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #8c8f94;
	margin-bottom: 8px;
}

.rankx-seo-compare-field {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin-bottom: 14px;
	padding: 10px 12px;
}

.rankx-seo-compare-field.is-after {
	background: #f3fbf4;
	border-color: #bfe6c4;
}

.rankx-seo-field-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #50575e;
}

.rankx-seo-char-count {
	font-weight: 400;
	color: #8c8f94;
}

.rankx-seo-char-count.is-over {
	color: #b32d2e;
	font-weight: 600;
}

.rankx-seo-desc-preview {
	max-height: 240px;
	overflow-y: auto;
	line-height: 1.7;
}

.rankx-seo-desc-preview img {
	max-width: 100%;
	height: auto;
}

.rankx-seo-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

.rankx-seo-modal-spinner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
}

.rankx-seo-modal-spinner .spinner {
	visibility: visible;
	float: none;
	width: 24px;
	height: 24px;
}

.rankx-seo-modal-error {
	background: #fdecea;
	border: 1px solid #f3c6bd;
	border-radius: 6px;
	color: #9a3a2b;
	padding: 14px 16px;
}

.rankx-seo-modal-error .button {
	margin-top: 12px;
}

/* ---------- Brand header ---------- */

.rankx-seo-header h1.rankx-seo-brand {
	font-size: 20px;
}

/* ---------- Empty state ---------- */

.rankx-seo-empty-state {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-top: 16px;
	padding: 24px;
}

/* ---------- Dashboard cards ---------- */

.rankx-seo-dashboard-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 20px 0;
}

.rankx-seo-dashboard-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	text-decoration: none;
	transition: box-shadow 0.15s ease;
}

.rankx-seo-dashboard-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rankx-seo-dashboard-card-value {
	color: #1d2327;
	font-size: 28px;
	font-weight: 700;
}

.rankx-seo-dashboard-card-title {
	color: #50575e;
	font-size: 13px;
}

.rankx-seo-points-box {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-top: 12px;
	max-width: 480px;
	padding: 16px 20px;
}

.rankx-seo-points-box h2 {
	font-size: 14px;
	margin-top: 0;
}

.rankx-seo-points-box ul {
	list-style: disc;
	margin: 0;
	padding-inline-start: 20px;
}

/* ---------- Bulk progress ---------- */

.rankx-seo-bulk-progress {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin: 12px 0;
	max-width: 420px;
	padding: 14px 16px;
}

.rankx-seo-bulk-progress[hidden] {
	display: none;
}

.rankx-seo-progress-bar {
	background: #f0f0f1;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	width: 100%;
}

.rankx-seo-progress-bar-fill {
	background: #2271b1;
	height: 100%;
	transition: width 0.3s ease;
}

.rankx-seo-progress-text {
	font-weight: 600;
	margin: 8px 0 4px;
}

.rankx-seo-progress-status {
	color: #50575e;
	margin: 0 0 8px;
}

/* ---------- ALT screen ---------- */

.rankx-seo-alt-regenerate {
	margin-inline-start: 12px;
}

.rankx-seo-alt-confirm label {
	display: block;
	margin-bottom: 16px;
}

.rankx-seo-alt-list {
	display: grid;
	gap: 12px;
	max-height: 400px;
	overflow-y: auto;
}

.rankx-seo-alt-item {
	align-items: center;
	display: flex;
	gap: 12px;
}

.rankx-seo-alt-item img {
	border-radius: 4px;
	flex-shrink: 0;
	height: 60px;
	object-fit: cover;
	width: 60px;
}

.rankx-seo-alt-item input {
	flex: 1;
}

/* ---------- Keywords screen ---------- */

.rankx-seo-keywords-form {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 16px 0;
}

.rankx-seo-keywords-history {
	margin-bottom: 16px;
}

.rankx-seo-keywords-history-label {
	color: #50575e;
	font-size: 12px;
	margin-inline-end: 8px;
}

.rankx-seo-keywords-history-item {
	margin: 2px;
}

.rankx-seo-keywords-metrics {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 16px 0;
}

.rankx-seo-metric-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
}

.rankx-seo-metric-value {
	font-size: 22px;
	font-weight: 700;
}

.rankx-seo-metric-label {
	color: #50575e;
	font-size: 12px;
}

.rankx-seo-sort-header {
	cursor: pointer;
}

.rankx-seo-sort-header:hover {
	text-decoration: underline;
}

.rankx-seo-paa-list,
.rankx-seo-serp-list {
	margin-inline-start: 20px;
}

/* ---------- Blog screen ---------- */

.rankx-seo-blog-form .form-table th {
	width: 200px;
}

.rankx-seo-blog-product-results {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin-top: 4px;
	max-height: 200px;
	max-width: 400px;
	overflow-y: auto;
}

.rankx-seo-blog-product-results[hidden] {
	display: none;
}

.rankx-seo-blog-product-result {
	background: none;
	border: none;
	cursor: pointer;
	display: block;
	padding: 8px 12px;
	text-align: start;
	width: 100%;
}

.rankx-seo-blog-product-result:hover {
	background: #f0f6fc;
}

.rankx-seo-blog-product-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
}

.rankx-seo-blog-product-chip {
	align-items: center;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 999px;
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 4px 10px;
}

.rankx-seo-blog-product-remove {
	color: #b32d2e;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

/* ---------- Header credits button + account link ---------- */

button.rankx-seo-credits {
	cursor: pointer;
	font-family: inherit;
}

.rankx-seo-account-link {
	color: #2271b1;
	font-size: 13px;
	text-decoration: none;
}

.rankx-seo-account-link:hover {
	text-decoration: underline;
}

/* ---------- Packs / upgrade modal ---------- */

.rankx-seo-packs-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin: 16px 0;
}

.rankx-seo-pack-card {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	position: relative;
	text-align: center;
}

.rankx-seo-pack-badge {
	align-self: center;
	margin-bottom: 4px;
}

.rankx-seo-pack-credits {
	font-size: 20px;
	font-weight: 700;
}

.rankx-seo-pack-price {
	font-size: 16px;
	font-weight: 600;
}

.rankx-seo-pack-per-credit {
	color: #50575e;
	font-size: 12px;
}

.rankx-seo-pack-select-btn {
	margin-top: 8px;
}

/* ---------- أثر السيو (Impact) ---------- */

.rankx-seo-impact-connect p {
	max-width: 560px;
}

.rankx-seo-impact-account-row {
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 12px 0 20px;
	padding: 12px 16px;
}

.rankx-seo-impact-account-email {
	font-weight: 600;
}

.rankx-seo-impact-select-label {
	align-items: center;
	display: flex;
	gap: 6px;
	font-size: 13px;
}

.rankx-seo-impact-toolbar {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.rankx-seo-impact-headline {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin-bottom: 20px;
}

.rankx-seo-impact-metric {
	align-items: flex-start;
}

.rankx-seo-impact-before-after {
	font-size: 18px;
	font-weight: 700;
}

.rankx-seo-impact-delta {
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
}

.rankx-seo-impact-delta.is-good {
	background: #edfaef;
	color: #1e7b34;
}

.rankx-seo-impact-delta.is-bad {
	background: #fdecea;
	color: #9a3a2b;
}

.rankx-seo-impact-trend-chip {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 8px;
	padding: 10px 14px;
}

.rankx-seo-impact-chart {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: block;
	height: auto;
	margin-bottom: 6px;
	max-width: 100%;
	padding: 10px;
	width: 100%;
}

.rankx-seo-chart-line-clicks {
	stroke: #2271b1;
	stroke-width: 2;
}

.rankx-seo-chart-line-impressions {
	stroke: #b8860b;
	stroke-width: 2;
}

.rankx-seo-chart-marker {
	stroke: #dcdcde;
	stroke-dasharray: 3 3;
	stroke-width: 1;
}

.rankx-seo-chart-legend {
	display: flex;
	gap: 16px;
	font-size: 12px;
	margin-bottom: 20px;
}

.rankx-seo-chart-legend-item::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	margin-inline-end: 4px;
	vertical-align: middle;
}

.rankx-seo-chart-legend-item.is-clicks::before {
	background: #2271b1;
}

.rankx-seo-chart-legend-item.is-impressions::before {
	background: #b8860b;
}

.rankx-seo-impact-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.rankx-seo-impact-filter-chip.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.rankx-seo-impact-row {
	cursor: pointer;
}

.rankx-seo-impact-reason-row td {
	background: #f6f7f7;
}

/* ---------- ضغط الصور (Images) ---------- */

.rankx-seo-images-summary {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin: 16px 0;
	max-width: 640px;
}

/* ---------- الفحص التقني (Audit) ---------- */

.rankx-seo-audit-last-date {
	color: #50575e;
	font-size: 13px;
	margin-inline-start: 12px;
}

.rankx-seo-audit-score-row {
	display: flex;
	justify-content: center;
	margin: 12px 0 24px;
}

.rankx-seo-score-ring text {
	fill: #1d2327;
}

.rankx-seo-audit-speed-card {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 20px;
}

.rankx-seo-speed-device {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
}

.rankx-seo-speed-device h4 {
	margin: 0 0 4px;
	font-size: 13px;
}

.rankx-seo-audit-sections {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rankx-seo-audit-section-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px 18px;
}

.rankx-seo-audit-section-card h3 {
	margin-top: 0;
}

.rankx-seo-audit-section-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rankx-seo-audit-item {
	align-items: flex-start;
	border-top: 1px solid #f0f0f1;
	display: flex;
	gap: 10px;
	padding: 10px 0;
}

.rankx-seo-audit-item:first-child {
	border-top: none;
}

.rankx-seo-audit-item-icon {
	flex-shrink: 0;
	font-weight: 700;
	width: 18px;
}

.rankx-seo-audit-item.is-ok .rankx-seo-audit-item-icon {
	color: #1e7b34;
}

.rankx-seo-audit-item.is-warn .rankx-seo-audit-item-icon {
	color: #b8860b;
}

.rankx-seo-audit-item.is-fail .rankx-seo-audit-item-icon {
	color: #b32d2e;
}

.rankx-seo-audit-item.is-info .rankx-seo-audit-item-icon {
	color: #8c8f94;
}

.rankx-seo-audit-item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rankx-seo-audit-item-label {
	font-weight: 600;
}

.rankx-seo-audit-item-detail {
	color: #50575e;
	font-size: 13px;
}

.rankx-seo-audit-item-fix {
	color: #9a3a2b;
	font-size: 13px;
	font-style: italic;
}

/* ---------- Shared generic card (home / auto-mode / welcome) ---------- */

.rankx-seo-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin: 0 0 16px;
	padding: 20px 22px;
}

.rankx-seo-card h2 {
	margin-top: 0;
}

/* ---------- الرئيسية (Home overview) ---------- */

.rankx-seo-home {
	display: flex;
	flex-direction: column;
	max-width: 900px;
}

.rankx-seo-home-hero-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.rankx-seo-home-ring-wrap {
	align-items: center;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 8px;
}

.rankx-seo-home-level {
	font-size: 13px;
	font-weight: 600;
}

.rankx-seo-home-hero-text {
	flex: 1;
	min-width: 240px;
}

.rankx-seo-home-hero-text h2 {
	margin-bottom: 4px;
}

.rankx-seo-home-delta {
	font-weight: 600;
}

.rankx-seo-home-delta.is-good,
.is-good {
	color: #1e7b34;
}

.rankx-seo-home-delta.is-bad,
.is-bad {
	color: #b32d2e;
}

.rankx-seo-home-motivation {
	color: #50575e;
}

.rankx-seo-home-refresh {
	margin-top: 8px;
}

.rankx-seo-home-metrics {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 12px 0;
}

.rankx-seo-home-achievements-note {
	color: #50575e;
	font-size: 13px;
	margin-bottom: 0;
}

.rankx-seo-home-proof-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin: 12px 0;
}

.rankx-seo-home-proof-chart {
	align-items: center;
	display: flex;
	gap: 12px;
	margin: 12px 0;
}

.rankx-seo-home-proof-chart-label {
	color: #50575e;
	font-size: 13px;
}

.rankx-seo-home-sparkline {
	display: block;
}

.rankx-seo-priority-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rankx-seo-priority-card {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px 16px;
}

.rankx-seo-priority-card-head {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.rankx-seo-priority-why {
	color: #50575e;
	font-size: 13px;
	margin: 6px 0 10px;
}

.rankx-seo-priority-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rankx-seo-home-priority-empty {
	font-size: 15px;
	font-weight: 600;
}

.rankx-seo-home-auto-note {
	background: #f0f6fc;
	border-radius: 6px;
	color: #1d2327;
	font-size: 13px;
	margin-top: 12px;
	padding: 10px 12px;
}

.rankx-seo-axis-tiles {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 12px;
}

.rankx-seo-axis-tile {
	background: #f6f7f7;
	border-radius: 8px;
	padding: 12px 14px;
	position: relative;
}

.rankx-seo-axis-tile-head {
	display: flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: space-between;
	margin-bottom: 6px;
}

.rankx-seo-axis-bar {
	background: #e2e4e7;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	width: 100%;
}

.rankx-seo-axis-bar-fill {
	height: 100%;
}

.rankx-seo-axis-bar-fill.is-good {
	background: #1e7b34;
}

.rankx-seo-axis-bar-fill.is-warn {
	background: #b8860b;
}

.rankx-seo-axis-bar-fill.is-bad {
	background: #b32d2e;
}

.rankx-seo-axis-tile-foot {
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	margin-top: 6px;
}

.rankx-seo-axis-weakest {
	display: inline-block;
	margin-top: 8px;
}

.rankx-seo-home-explainer {
	margin-top: 8px;
}

.rankx-seo-home-explainer summary {
	cursor: pointer;
	font-weight: 600;
}

.rankx-seo-home-explainer ul {
	list-style: disc;
	margin: 10px 0 0;
	padding-inline-start: 20px;
}

.rankx-seo-home-technical-row {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 12px 0;
}

.rankx-seo-home-weekly-list {
	list-style: disc;
	margin: 8px 0 0;
	padding-inline-start: 20px;
}

.rankx-seo-home-guide summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 16px;
	font-weight: 600;
	gap: 10px;
}

.rankx-seo-home-guide-list {
	list-style: none;
	margin: 10px 0;
	padding: 0;
}

.rankx-seo-home-guide-list li {
	color: #8c8f94;
	padding: 4px 0;
}

.rankx-seo-home-guide-list li.is-done {
	color: #1d2327;
}

.rankx-seo-home-guide-footer {
	font-size: 12px;
}

/* ---------- الوضع التلقائي (Auto mode) ---------- */

.rankx-seo-auto {
	max-width: 900px;
}

.rankx-seo-auto-state-head {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.rankx-seo-auto-switch-form {
	flex-shrink: 0;
}

.rankx-seo-auto-switch {
	background: #dcdcde;
	border: none;
	border-radius: 999px;
	color: #50575e;
	cursor: pointer;
	font-weight: 700;
	padding: 10px 26px;
}

.rankx-seo-auto-switch.is-on {
	background: #1e7b34;
	color: #fff;
}

.rankx-seo-auto-state-line {
	font-size: 16px;
	margin: 12px 0 4px;
}

.rankx-seo-auto-state-icon {
	font-size: 20px;
}

.rankx-seo-auto-stats {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 16px;
}

.rankx-seo-auto-advisor {
	background: #fdf3e7;
}

.rankx-seo-auto-review {
	border-color: #2271b1;
}

.rankx-seo-auto-parked-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rankx-seo-auto-parked-list li {
	align-items: center;
	border-top: 1px solid #f0f0f1;
	display: flex;
	gap: 10px;
	padding: 8px 0;
}

.rankx-seo-auto-parked-list li:first-child {
	border-top: none;
}

.rankx-seo-auto-ops {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 8px;
}

.rankx-seo-auto-op-card {
	background: #f6f7f7;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	transition: box-shadow 0.15s ease, border-color 0.3s ease;
}

.rankx-seo-auto-op-card:has(input:checked) {
	border-color: #2271b1;
}

.rankx-seo-auto-op-title {
	font-weight: 700;
}

.rankx-seo-auto-op-benefit {
	color: #50575e;
	font-size: 12px;
}

.rankx-seo-auto-op-card.rankx-seo-auto-pulse {
	animation: rankx-seo-auto-pulse 0.65s ease-in-out 3;
	border-color: #2271b1;
}

@keyframes rankx-seo-auto-pulse {
	0%, 100% {
		box-shadow: none;
	}
	50% {
		box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.35);
	}
}

.rankx-seo-auto-blog-settings {
	background: #f6f7f7;
	border-radius: 8px;
	margin: 4px 0 20px;
	padding: 14px 16px;
}

/* ---------- Wizard (welcome) ---------- */

.rankx-seo-welcome {
	max-width: 720px;
}

.rankx-seo-welcome-lead {
	color: #50575e;
	margin-bottom: 20px;
}

.rankx-seo-welcome-step {
	margin-bottom: 16px;
}

.rankx-seo-welcome-personas {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rankx-seo-welcome-personas form {
	margin: 0;
}

.rankx-seo-welcome-persona-btn {
	align-items: center;
	background: #f6f7f7;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	text-align: start;
	width: 100%;
}

.rankx-seo-welcome-persona-btn.is-selected {
	border-color: #2271b1;
}

.rankx-seo-welcome-persona-icon {
	font-size: 22px;
}

.rankx-seo-welcome-skip {
	margin-top: 8px;
}

/* 🎯 keyword-targeted optimize: the keyword the preview was written for. */
.rankx-seo-kw-chip { background: #fefce8; border: 1px solid #fde68a; color: #854d0e; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.rankx-seo-keyword-btn { margin-top: 4px; }
.rankx-seo-kw-chip.is-warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

/* Tag chip editor (product preview + «الوسوم»). */
.rx-tagedit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; }
.rx-tagchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 4px 3px 10px; background: #eef2ff; color: #3730a3; }
.rx-tagchip.is-new { background: #ecfdf5; color: #047857; }
.rx-tagchip.is-weak { background: #fff1f2; color: #be123c; text-decoration: line-through; }
.rx-tagchip-x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; opacity: .7; }
.rx-tagchip-x:hover { opacity: 1; }
.rx-tagedit-input { border: 0 !important; box-shadow: none !important; min-width: 90px; flex: 1; font-size: 12px; background: transparent; }
.rx-tags-current { display: flex; flex-wrap: wrap; gap: 4px; }

/* «دولة السوق» dropdown. */
.rankx-seo-country-wrap { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.rankx-seo-country-wrap select { min-height: 32px; border-radius: 8px; }
.rankx-seo-language-wrap { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.rankx-seo-language-wrap select { min-height: 32px; border-radius: 8px; }

/* ==========================================================================
   One identity (2026-09-27): the older screens wear the new sections' look —
   the gradient hero (RankX_SEO_Admin::hero), white 14px cards with a soft
   shadow, orange CTA for the main action, quiet outline for the rest.
   Scoped to our wrapper so WordPress' own screens are untouched.
   ========================================================================== */
.rankx-seo-wrap .rx-page-hero { margin: 8px 0 18px; }
.rankx-seo-wrap .rx-page-hero .rx-hero { padding: 24px 28px; }

.rankx-seo-wrap .rankx-seo-card,
.rankx-seo-wrap .rankx-seo-dashboard-card,
.rankx-seo-wrap .rankx-seo-metric-card,
.rankx-seo-wrap .rankx-seo-empty-state,
.rankx-seo-wrap .rankx-seo-bulk-progress,
.rankx-seo-wrap .rankx-seo-audit-section-card,
.rankx-seo-wrap .rankx-seo-speed-device,
.rankx-seo-wrap .rankx-seo-connect-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
.rankx-seo-wrap .rankx-seo-card h2,
.rankx-seo-wrap .rankx-seo-dashboard-card h2 { font-size: 17px; font-weight: 800; color: #0f172a; }
.rankx-seo-wrap .rankx-seo-axis-tile,
.rankx-seo-wrap .rankx-seo-priority-card { border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; }
.rankx-seo-wrap .rankx-seo-axis-bar { border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.rankx-seo-wrap .rankx-seo-axis-bar-fill { border-radius: 999px; }
.rankx-seo-wrap .rankx-seo-axis-bar-fill.is-good { background: #059669; }
.rankx-seo-wrap .rankx-seo-axis-bar-fill.is-warn { background: #f59e0b; }
.rankx-seo-wrap .rankx-seo-axis-bar-fill.is-bad { background: #e11d48; }
.rankx-seo-wrap .rankx-seo-badge-good { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.rankx-seo-wrap .rankx-seo-badge-weak { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }

/* Buttons: primary = the orange CTA, the rest = quiet outline. */
.rankx-seo-wrap .button.button-primary,
.rankx-seo-wrap .button-primary {
	background: linear-gradient(90deg, #f59e0b, #ea580c);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	text-shadow: none;
	box-shadow: 0 6px 18px rgba(234, 88, 12, .30);
	min-height: 34px;
	padding: 0 16px;
	line-height: 34px;
}
.rankx-seo-wrap .button.button-primary:hover,
.rankx-seo-wrap .button.button-primary:focus { background: linear-gradient(90deg, #f59e0b, #c2410c); color: #fff; box-shadow: 0 10px 24px rgba(234, 88, 12, .40); }
.rankx-seo-wrap .button:not(.button-primary) {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	color: #334155;
	font-weight: 600;
	min-height: 32px;
}
.rankx-seo-wrap .button:not(.button-primary):hover { border-color: #c4b5fd; color: #6d28d9; background: #faf5ff; }

/* Tables and forms. */
.rankx-seo-wrap .wp-list-table {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
	border-collapse: separate;
	border-spacing: 0;
}
.rankx-seo-wrap .wp-list-table thead th,
.rankx-seo-wrap .wp-list-table tfoot th { background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 700; }
.rankx-seo-wrap .wp-list-table.striped > tbody > :nth-child(odd) { background: #fff; }
.rankx-seo-wrap .wp-list-table tbody tr:hover td { background: #fafaff; }
.rankx-seo-wrap .form-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06); border-collapse: separate; }
.rankx-seo-wrap .form-table th { padding-inline-start: 20px; }
.rankx-seo-wrap input[type="text"],
.rankx-seo-wrap input[type="search"],
.rankx-seo-wrap input[type="number"],
.rankx-seo-wrap input[type="email"],
.rankx-seo-wrap input[type="url"],
.rankx-seo-wrap input[type="tel"],
.rankx-seo-wrap select,
.rankx-seo-wrap textarea { border-radius: 10px; border-color: #cbd5e1; }
.rankx-seo-wrap input[type="text"]:focus,
.rankx-seo-wrap input[type="search"]:focus,
.rankx-seo-wrap select:focus,
.rankx-seo-wrap textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, .18); }
.rankx-seo-wrap .rankx-seo-keywords-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06); }
.rankx-seo-wrap .rankx-seo-home-problems .rx-table td { vertical-align: middle; }

/* Full width like the new sections (the header spans the page; the content did not). */
.rankx-seo-wrap .rankx-seo-home,
.rankx-seo-wrap .rankx-seo-auto { max-width: none; }

/* Auto mode on/off: an action, not a grey status pill. Off = the orange CTA; on = live status + quiet pause. */
.rankx-seo-wrap .rankx-seo-auto-switch-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rankx-seo-wrap .rankx-seo-auto-switch {
	background: linear-gradient(90deg, #f59e0b, #ea580c);
	color: #fff;
	border: 0;
	border-radius: 14px;
	padding: 14px 26px;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(234, 88, 12, .40);
	animation: rankx-seo-pulse 2.2s ease-in-out infinite;
	min-width: 0;
	height: auto;
}
.rankx-seo-wrap .rankx-seo-auto-switch:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(234, 88, 12, .50); }
.rankx-seo-wrap .rankx-seo-auto-switch.is-on { background: #fff; color: #475569; border: 1px solid #e2e8f0; box-shadow: none; animation: none; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.rankx-seo-wrap .rankx-seo-auto-live { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 15px; }
@keyframes rankx-seo-pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(234, 88, 12, .40); } 50% { box-shadow: 0 10px 34px rgba(234, 88, 12, .65); } }
