/*!
 * إيمول للشركاء — أنماط الواجهة
 * كل شيء داخل .emole-wrap حتى لا تتعارض مع قالب الموقع.
 * الألوان كمتغيّرات: غيّر :root وحده لتتبع هوية موقعك.
 */

:root {
	--emole-accent: #1f6feb;
	--emole-accent-soft: rgba(31, 111, 235, 0.12);
	--emole-text: #16202c;
	--emole-muted: #5b6b7f;
	--emole-bg: #ffffff;
	--emole-surface: #f6f8fb;
	--emole-border: #e1e7ef;
	--emole-success: #1a7f4b;
	--emole-success-soft: rgba(26, 127, 75, 0.12);
	--emole-warning: #8a6100;
	--emole-warning-soft: rgba(201, 145, 0, 0.16);
	--emole-danger: #b42318;
	--emole-danger-soft: rgba(180, 35, 24, 0.12);
	--emole-radius: 12px;
	--emole-radius-sm: 8px;
	--emole-gap: 16px;
	--emole-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-emole-theme="light"]) {
		--emole-text: #e7edf5;
		--emole-muted: #9aa9bc;
		--emole-bg: #0f1621;
		--emole-surface: #16202e;
		--emole-border: #263447;
		--emole-accent-soft: rgba(88, 150, 255, 0.18);
		--emole-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
	}
}

/* ── الأساس ───────────────────────────────────────── */

.emole-wrap {
	color: var(--emole-text);
	background: var(--emole-bg);
	font-size: 16px;
	line-height: 1.75;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 16px;
	box-sizing: border-box;
}

.emole-wrap *,
.emole-wrap *::before,
.emole-wrap *::after {
	box-sizing: inherit;
}

.emole-wrap h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 0.5em; }
.emole-wrap h2 { font-size: 1.5rem; line-height: 1.35; margin: 0 0 0.5em; }
.emole-wrap h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; }
.emole-wrap h4 { font-size: 1.05rem; margin: 1.25em 0 0.5em; }
.emole-wrap h5 { font-size: 0.95rem; margin: 1em 0 0.5em; }

.emole-muted { color: var(--emole-muted); }
.emole-req { color: var(--emole-danger); }

.emole-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
	font-size: 0.85em;
	direction: ltr;
	unicode-bidi: embed;
}

.emole-sep {
	border: 0;
	border-top: 1px solid var(--emole-border);
	margin: 24px 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ── الأزرار ─────────────────────────────────────── */

.emole-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: var(--emole-radius-sm);
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.emole-btn:focus-visible {
	outline: 2px solid var(--emole-accent);
	outline-offset: 2px;
}

.emole-btn-primary {
	background: var(--emole-accent);
	color: #fff;
}

.emole-btn-primary:hover { opacity: 0.9; color: #fff; }

.emole-btn-ghost {
	background: transparent;
	border-color: var(--emole-border);
	color: var(--emole-text);
}

.emole-btn-ghost:hover { background: var(--emole-surface); color: var(--emole-text); }

.emole-btn-sm { padding: 6px 12px; font-size: 0.9rem; }
.emole-btn-lg { padding: 12px 26px; font-size: 1.05rem; }

.emole-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 16px;
}

.emole-form-inline { display: inline-block; margin: 0; }

/* ── البطاقات واللوحات ───────────────────────────── */

.emole-panel {
	background: var(--emole-surface);
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	padding: 20px;
	margin: 20px 0;
}

.emole-panel > legend,
.emole-panel > summary > h3 {
	font-weight: 700;
	padding: 0 6px;
	margin: 0;
}

.emole-panel-accent { border-color: var(--emole-accent); background: var(--emole-accent-soft); }

.emole-card {
	background: var(--emole-bg);
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	padding: 18px;
	box-shadow: var(--emole-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.emole-card-title { margin: 0; font-size: 1.1rem; }
.emole-card-title a { text-decoration: none; color: inherit; }
.emole-card-title a:hover { color: var(--emole-accent); }

.emole-card-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
}

.emole-card-body { margin: 0; color: var(--emole-muted); }

.emole-section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 24px 0 12px;
}

.emole-section-head h2,
.emole-section-head h3 { margin: 0; }

/* ── الشبكات ─────────────────────────────────────── */

.emole-grid {
	display: grid;
	gap: var(--emole-gap);
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.emole-grid-1 { grid-template-columns: 1fr; }
.emole-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.emole-grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.emole-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.emole-grid-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ── الأرقام ─────────────────────────────────────── */

.emole-stat {
	background: var(--emole-surface);
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.emole-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.emole-stat-label { color: var(--emole-muted); font-size: 0.9rem; }

/* ── الشارات والرقاقات ───────────────────────────── */

.emole-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--emole-surface);
	border: 1px solid var(--emole-border);
	color: var(--emole-muted);
}

.emole-badge-success { background: var(--emole-success-soft); color: var(--emole-success); border-color: transparent; }
.emole-badge-warning { background: var(--emole-warning-soft); color: var(--emole-warning); border-color: transparent; }
.emole-badge-danger  { background: var(--emole-danger-soft);  color: var(--emole-danger);  border-color: transparent; }
.emole-badge-info    { background: var(--emole-accent-soft);  color: var(--emole-accent);  border-color: transparent; }

.emole-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--emole-border);
	background: var(--emole-bg);
	color: var(--emole-muted);
	font-size: 0.875rem;
	text-decoration: none;
}

a.emole-chip:hover { border-color: var(--emole-accent); color: var(--emole-accent); }
.emole-chip.is-active { background: var(--emole-accent); border-color: var(--emole-accent); color: #fff; }

.emole-filters,
.emole-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

/* ── التنبيهات ───────────────────────────────────── */

.emole-notice {
	border: 1px solid var(--emole-border);
	border-inline-start: 4px solid var(--emole-accent);
	background: var(--emole-surface);
	border-radius: var(--emole-radius-sm);
	padding: 12px 16px;
	margin: 16px 0;
}

.emole-notice ul { margin: 8px 0 0; padding-inline-start: 20px; }
.emole-notice-success { border-inline-start-color: var(--emole-success); }
.emole-notice-warning { border-inline-start-color: var(--emole-warning); }
.emole-notice-error   { border-inline-start-color: var(--emole-danger); }

.emole-empty {
	text-align: center;
	padding: 40px 20px;
	border: 1px dashed var(--emole-border);
	border-radius: var(--emole-radius);
	color: var(--emole-muted);
}

/* ── النماذج ─────────────────────────────────────── */

.emole-form { margin: 16px 0; }

.emole-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }

/* display:flex يتغلّب على [hidden] الافتراضية، فنعيد إخفاءها صراحة */
.emole-wrap [hidden] { display: none !important; }
.emole-field-narrow { max-width: 220px; }

.emole-field > label { font-weight: 600; font-size: 0.95rem; }
.emole-field > small { color: var(--emole-muted); font-size: 0.85rem; }

.emole-field input[type="text"],
.emole-field input[type="email"],
.emole-field input[type="url"],
.emole-field input[type="tel"],
.emole-field input[type="number"],
.emole-field input[type="password"],
.emole-field input[type="search"],
.emole-field select,
.emole-field textarea,
.emole-search input[type="search"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	background: var(--emole-bg);
	color: var(--emole-text);
	font: inherit;
}

.emole-field textarea { resize: vertical; min-height: 64px; }
.emole-field textarea.emole-mono { line-height: 1.6; }

.emole-field input:focus,
.emole-field select:focus,
.emole-field textarea:focus {
	outline: 2px solid var(--emole-accent);
	outline-offset: 0;
	border-color: var(--emole-accent);
}

.emole-field-row {
	display: grid;
	gap: var(--emole-gap);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.emole-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 12px 0;
	cursor: pointer;
}

.emole-check input { margin-top: 5px; }
.emole-check-inline { display: inline-flex; margin: 0; }

.emole-radio-cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin: 12px 0;
}

.emole-radio-card {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	background: var(--emole-bg);
	cursor: pointer;
}

.emole-radio-card:has(input:checked) {
	border-color: var(--emole-accent);
	background: var(--emole-accent-soft);
}

.emole-radio-card span { display: flex; flex-direction: column; gap: 4px; }
.emole-radio-card small { color: var(--emole-muted); }

.emole-search {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 16px 0;
}

.emole-search input[type="search"] { max-width: 420px; }

/* ── الجداول ─────────────────────────────────────── */

.emole-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 0.95rem;
}

.emole-table th,
.emole-table td {
	padding: 10px 12px;
	text-align: start;
	border-bottom: 1px solid var(--emole-border);
	vertical-align: top;
}

.emole-table thead th {
	background: var(--emole-surface);
	font-weight: 700;
	white-space: nowrap;
}

.emole-table tbody tr:hover { background: var(--emole-surface); }

/* ── القوائم الوصفية ─────────────────────────────── */

.emole-kv {
	display: grid;
	grid-template-columns: minmax(140px, auto) 1fr;
	gap: 8px 16px;
	margin: 12px 0;
}

.emole-kv dt { color: var(--emole-muted); font-size: 0.9rem; }
.emole-kv dd { margin: 0; overflow-wrap: anywhere; }

.emole-copy { cursor: pointer; }
.emole-copy:hover { color: var(--emole-accent); }

/* ── الترقيم ─────────────────────────────────────── */

.emole-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 24px 0;
}

.emole-pagination a,
.emole-pagination span {
	padding: 6px 12px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	text-decoration: none;
	color: var(--emole-text);
}

.emole-pagination .is-current {
	background: var(--emole-accent);
	border-color: var(--emole-accent);
	color: #fff;
}

/* ── قائمة البوابة ───────────────────────────────── */

.emole-portal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	background: var(--emole-surface);
	padding: 10px 16px;
	margin: 0 auto 24px;
	max-width: 1120px;
}

.emole-portal-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.emole-portal-link {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--emole-muted);
	font-weight: 600;
}

.emole-portal-link:hover { color: var(--emole-accent); background: var(--emole-accent-soft); }
.emole-portal-link.is-active { background: var(--emole-accent); color: #fff; }

/* ── الدخول والتسجيل ─────────────────────────────── */

.emole-auth-narrow { max-width: 480px; }
.emole-auth-head { text-align: center; margin-bottom: 24px; }
.emole-auth-alt { text-align: center; margin-top: 16px; }
.emole-auth-note { text-align: center; font-size: 0.9rem; }

.emole-gate-panel { text-align: center; }
.emole-gate-panel .emole-actions { justify-content: center; }

/* ── المعالج ─────────────────────────────────────── */

.emole-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: none;
}

.emole-step {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--emole-border);
	font-size: 0.85rem;
	color: var(--emole-muted);
	background: var(--emole-bg);
}

.emole-step a { display: flex; gap: 6px; align-items: center; text-decoration: none; color: inherit; }
.emole-step-num { font-weight: 700; }
.emole-step.is-done { border-color: var(--emole-success); color: var(--emole-success); }
.emole-step.is-current { background: var(--emole-accent); border-color: var(--emole-accent); color: #fff; }
.emole-step.is-upcoming { opacity: 0.65; }

.emole-wizard-head { margin-bottom: 20px; }
.emole-wizard-title { margin: 0 0 8px; }
.emole-wizard-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.emole-wizard-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--emole-border);
}

.emole-blueprint { cursor: pointer; }
.emole-blueprint input { position: absolute; opacity: 0; }
.emole-blueprint:has(input:checked) { border-color: var(--emole-accent); box-shadow: 0 0 0 2px var(--emole-accent-soft); }
.emole-blueprint-body { display: flex; flex-direction: column; gap: 8px; }
.emole-blueprint-meta { font-size: 0.85rem; }

.emole-advanced { margin: 20px 0; }
.emole-advanced > summary { cursor: pointer; font-weight: 600; color: var(--emole-muted); }

/* مناطق العرض */
.emole-zone-group {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	margin-bottom: 8px;
	background: var(--emole-bg);
}

.emole-zone-group > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }

.emole-zone-list {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	padding: 8px 14px 14px;
	max-height: 320px;
	overflow-y: auto;
}

.emole-zone { margin: 0; font-size: 0.9rem; }
.emole-zone span { display: flex; flex-direction: column; }

/* المكرّرات */
.emole-repeater-row,
.emole-item-row {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	align-items: start;
	padding: 12px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	margin-bottom: 8px;
	background: var(--emole-bg);
}

.emole-repeater-row input,
.emole-repeater-row select,
.emole-item-row input,
.emole-item-row textarea {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	background: var(--emole-bg);
	color: var(--emole-text);
	font: inherit;
	font-size: 0.9rem;
}

.emole-repeater-remove,
[data-item-remove] { align-self: center; }

/* لوحات طريقة العمل: ظاهرة كلها بلا جافاسكربت، ويُخفي JS غير المعني */
.emole-mode-panel.is-hidden { display: none; }

/* مصمّم الصفحة */
.emole-section-card {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	background: var(--emole-surface);
	margin-bottom: 12px;
}

.emole-section-card > summary {
	cursor: pointer;
	padding: 12px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-weight: 600;
}

.emole-section-body { padding: 0 16px 16px; }

.emole-section-items {
	border-top: 1px dashed var(--emole-border);
	margin-top: 12px;
	padding-top: 12px;
}

.emole-section-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--emole-border);
}

.emole-page-preview { margin-top: 32px; }
.emole-page-preview > summary { cursor: pointer; font-weight: 600; }
.emole-page-preview-stage {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	padding: 16px;
	margin-top: 12px;
	background: var(--emole-bg);
}

/* المعاينة الحيّة */
.emole-preview {
	display: grid;
	gap: var(--emole-gap);
	grid-template-columns: minmax(240px, 320px) 1fr;
	margin: 16px 0;
}

.emole-preview-stage,
.emole-preview-form {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	padding: 16px;
	background: var(--emole-surface);
}

.emole-preview-stage iframe {
	width: 100%;
	min-height: 320px;
	border: 0;
	background: #fff;
	border-radius: var(--emole-radius-sm);
}

.emole-preview-status { margin: 8px 0 0; font-size: 0.9rem; color: var(--emole-muted); }
.emole-preview-flag {
	background: var(--emole-warning-soft);
	color: var(--emole-warning);
	padding: 6px 12px;
	border-radius: var(--emole-radius-sm);
	font-size: 0.85rem;
	margin: 0 0 16px;
}

.emole-checklist { list-style: none; padding: 0; margin: 12px 0; }
.emole-checklist li { padding: 6px 0; border-bottom: 1px solid var(--emole-border); }
.emole-checklist .is-missing::before { content: "⬤"; color: var(--emole-warning); margin-inline-end: 8px; font-size: 0.6em; vertical-align: middle; }

/* ── بطاقات الإضافات والمتجر ─────────────────────── */

.emole-app-card-head,
.emole-store-card-head {
	display: flex;
	gap: 12px;
	align-items: center;
}

.emole-app-card-head img,
.emole-store-icon { border-radius: var(--emole-radius-sm); object-fit: cover; }

.emole-app-card-foot,
.emole-store-card-foot,
.emole-market-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	color: var(--emole-muted);
	margin-top: auto;
}

.emole-store-price { font-weight: 700; color: var(--emole-text); }

.emole-store-cover,
.emole-market-shot,
.emole-article-thumb {
	border-radius: var(--emole-radius-sm);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--emole-surface);
}

.emole-store-cover img,
.emole-market-shot img,
.emole-article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── صفحة التطبيق ────────────────────────────────── */

.emole-app-page { --accent: var(--emole-accent); }
.emole-app-page.emole-theme-dark { background: #0f1621; color: #e7edf5; }

.emole-app-cover {
	border-radius: var(--emole-radius);
	overflow: hidden;
	margin-bottom: 20px;
	max-height: 320px;
}

.emole-app-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.emole-app-identity {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}

.emole-app-icon { border-radius: var(--emole-radius); object-fit: cover; }
.emole-app-identity-text { flex: 1 1 260px; }
.emole-app-title { margin: 0 0 6px; }
.emole-app-tagline { margin: 0 0 8px; color: var(--emole-muted); font-size: 1.05rem; }

.emole-app-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 0.9rem;
}

.emole-app-cta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	padding: 16px;
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius);
	background: var(--emole-surface);
	min-width: 200px;
}

.emole-app-price { font-size: 1.3rem; font-weight: 700; }

.emole-app-section { margin: 40px 0; }

.emole-hero {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: center;
	padding: 28px;
	border-radius: var(--emole-radius);
	background: var(--emole-accent-soft);
}

.emole-hero h2 { margin-top: 0; }
.emole-hero-sub { font-size: 1.1rem; color: var(--emole-muted); }
.emole-hero-image img { width: 100%; border-radius: var(--emole-radius); display: block; }

.emole-feature-icon { font-size: 1.5rem; }

.emole-gallery-item,
.emole-screenshot { margin: 0; }

.emole-gallery-item img,
.emole-screenshot img {
	width: 100%;
	border-radius: var(--emole-radius-sm);
	border: 1px solid var(--emole-border);
	display: block;
}

.emole-gallery-item figcaption,
.emole-screenshot figcaption {
	font-size: 0.875rem;
	color: var(--emole-muted);
	margin-top: 6px;
}

.emole-screenshots {
	display: flex;
	gap: var(--emole-gap);
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
}

.emole-screenshot {
	flex: 0 0 min(80%, 480px);
	scroll-snap-align: start;
}

.emole-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--emole-radius);
	overflow: hidden;
	background: #000;
}

.emole-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.emole-steps-list { counter-reset: emole-step; list-style: none; padding: 0; }

.emole-steps-list li {
	counter-increment: emole-step;
	padding: 12px 0 12px 0;
	padding-inline-start: 44px;
	position: relative;
	border-bottom: 1px solid var(--emole-border);
}

.emole-steps-list li::before {
	content: counter(emole-step);
	position: absolute;
	inset-inline-start: 0;
	top: 12px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--emole-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
}

.emole-faq-item {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	padding: 12px 16px;
	margin-bottom: 8px;
	background: var(--emole-bg);
}

.emole-faq-item > summary { cursor: pointer; font-weight: 600; }

.emole-plan-price { font-size: 1.4rem; font-weight: 700; margin: 4px 0; }
.emole-plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--emole-muted); }

.emole-testimonial { margin: 0; }
.emole-testimonial footer { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.emole-testimonial img { border-radius: 50%; object-fit: cover; }

.emole-changelog { list-style: none; padding: 0; }
.emole-changelog li { padding: 12px 0; border-bottom: 1px solid var(--emole-border); }

.emole-permissions { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.emole-permissions li { display: flex; gap: 10px; align-items: center; }

.emole-cta {
	text-align: center;
	padding: 32px;
	border-radius: var(--emole-radius);
	background: var(--emole-accent-soft);
}

.emole-rich img { max-width: 100%; height: auto; }
.emole-rich > :first-child { margin-top: 0; }
.emole-rich > :last-child { margin-bottom: 0; }

/* ── المحادثة والسجلات ───────────────────────────── */

.emole-chat { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.emole-chat-item {
	padding: 10px 14px;
	border-radius: var(--emole-radius);
	background: var(--emole-surface);
	border: 1px solid var(--emole-border);
	max-width: 85%;
}

.emole-chat-item.is-mine {
	margin-inline-start: auto;
	background: var(--emole-accent-soft);
	border-color: transparent;
}

.emole-chat-item time { display: block; font-size: 0.8rem; color: var(--emole-muted); margin-top: 4px; }

.emole-timeline { list-style: none; padding: 0; }

.emole-timeline li {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--emole-border);
}

.emole-timeline time { color: var(--emole-muted); font-size: 0.85rem; margin-inline-start: auto; }

.emole-install {
	border: 1px solid var(--emole-border);
	border-radius: var(--emole-radius-sm);
	padding: 12px 16px;
	margin-bottom: 8px;
	background: var(--emole-bg);
}

.emole-install > summary {
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* ── التقييم ─────────────────────────────────────── */

.emole-rating { color: #d99100; letter-spacing: 2px; }
.emole-rating-value { color: var(--emole-muted); font-size: 0.85rem; margin-inline-start: 6px; }

/* ── الجوال ──────────────────────────────────────── */

@media (max-width: 782px) {
	.emole-wrap { font-size: 15px; }
	.emole-preview { grid-template-columns: 1fr; }
	.emole-kv { grid-template-columns: 1fr; gap: 2px 0; }
	.emole-kv dd { margin-bottom: 10px; }

	.emole-table thead { display: none; }
	.emole-table tbody tr {
		display: block;
		border: 1px solid var(--emole-border);
		border-radius: var(--emole-radius-sm);
		margin-bottom: 10px;
		padding: 8px;
	}
	.emole-table td { display: block; border: 0; padding: 4px 6px; }

	.emole-app-cta { width: 100%; }
	.emole-portal-nav { border-radius: 0; margin-inline: -16px; }
}

/* ── الحساب بانتظار القبول ─────────────────────────── */

.emole-wrap .emole-pending,
.emole-pending {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 22px 24px; margin: 0 0 20px;
	border-radius: var(--emole-radius);
	background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(99, 102, 241, .08));
	border: 1px solid rgba(2, 132, 199, .22);
}

.emole-pending-icon {
	width: 46px; height: 46px; flex-shrink: 0;
	display: grid; place-items: center; font-size: 22px;
	background: #fff; border-radius: 12px; box-shadow: var(--emole-shadow);
}

.emole-pending strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.emole-pending p { margin: 0 0 4px; }

.emole-check-card { display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.emole-check-card input { margin-top:4px; }
.emole-check-card span { display:grid; gap:2px; }
.emole-check-card code { font-size:11px; opacity:.7; }

/* ── منشئ القالب ───────────────────────────────────── */
.emole-theme-section summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; cursor:pointer; padding:4px 0; }
.emole-theme-section .emole-order { width:64px; }
.emole-theme-section code { font-size:12px; opacity:.7; }
.emole-theme-preview { width:100%; height:720px; border:1px solid var(--emole-border); border-radius:var(--emole-radius); background:#fff; margin:8px 0 20px; }
.emole-cli-box pre { background:#0b1220; color:#e2e8f0; padding:14px; border-radius:10px; overflow-x:auto; }

/* صور الشريك في منشئ القالب */
.emole-images-box { margin: 16px 0; }
.emole-upload-form { align-items: center; gap: 10px; flex-wrap: wrap; }
.emole-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.emole-image-grid figure { margin: 0; border: 1px solid var(--emole-line, #e5e7eb); border-radius: 10px; padding: 8px; background: #fff; display: grid; gap: 6px; }
.emole-image-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.emole-image-grid input { width: 100%; box-sizing: border-box; font-size: 11px; padding: 4px 6px; }
.emole-upload-form input[type="file"] { padding: 8px; border: 1px dashed var(--emole-line, #cbd5e1); border-radius: 10px; background: #f8fafc; }
.emole-link-danger { background: none; border: 0; color: #dc2626; cursor: pointer; font-size: 12px; padding: 0; }

/* الخطوة 1: أنواع رئيسية ← أقسام فرعية */
.emole-bp-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.emole-bp-type { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--emole-line, #e5e7eb); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.emole-bp-type strong { font-size: 1.05rem; }
.emole-bp-type small { color: var(--emole-muted, #64748b); line-height: 1.5; }
.emole-bp-type:hover { border-color: var(--emole-primary, #0284c7); }
.emole-bp-type.is-active { border-color: var(--emole-primary, #0284c7); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); background: #f0f9ff; }
.emole-bp-sub { margin: 22px 0 10px; font-size: 1rem; color: #334155; border-inline-start: 4px solid var(--emole-primary, #0284c7); padding-inline-start: 10px; }

/* تبويبات قوالب الصفحات في منشئ القالب */
.emole-tpl-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 12px; border-bottom:1px solid var(--ep-border, #e5e7eb); }
.emole-tpl-tabs a { padding:8px 14px; border-radius:10px 10px 0 0; text-decoration:none; font-weight:700; color:inherit; opacity:.7; border:1px solid transparent; margin-bottom:-1px; }
.emole-tpl-tabs a.is-active { opacity:1; background:var(--ep-surface, #fff); border-color:var(--ep-border, #e5e7eb); border-bottom-color:var(--ep-surface, #fff); }
.emole-tpl-tabs small { font-weight:400; opacity:.7; }
.emole-theme-section summary select { width:auto; min-width:150px; }

/* ── محرّر القالب بالسحب والإفلات ─────────────────────── */
.ete{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:18px;align-items:start;margin:18px 0}
.ete-side{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px}
.ete-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ete-tabs button{border:1px solid #e5e7eb;background:#f8fafc;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.ete-tabs button.is-on{background:#0f172a;border-color:#0f172a;color:#fff}
.ete-hint{font-size:13px;margin:0 0 10px}
.ete-area{margin:0 0 14px}
.ete-area h4{margin:0 0 6px;font-size:12px;color:#64748b;font-weight:700;letter-spacing:.2px}
.ete-list{list-style:none;margin:0 0 6px;padding:6px;min-height:42px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:grid;gap:6px}
.ete-list.is-over{border-color:#0ea5e9;background:#f0f9ff}
.ete-empty{color:#94a3b8;font-size:12px;text-align:center;padding:8px}
.ete-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.ete-card.is-drag{opacity:.4}
.ete-card.is-hidden .ete-name{opacity:.45;text-decoration:line-through}
.ete-card.is-open{border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.15)}
.ete-card-head{display:flex;align-items:center;gap:2px;padding:4px}
.ete-card-head button{border:0;background:transparent;cursor:pointer;font:inherit;padding:6px;border-radius:7px;color:#475569}
.ete-card-head button:hover{background:#f1f5f9}
.ete-handle{cursor:grab;color:#94a3b8;padding:0 6px;font-size:16px;user-select:none}
.ete-name{flex:1;text-align:start;font-weight:600!important;color:#0f172a!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ete-del:hover{color:#dc2626!important}
.ete-card-body{padding:6px 12px 12px;display:grid;gap:10px;border-top:1px solid #f1f5f9}
.ete-field{display:grid;gap:4px;font-size:13px}
.ete-field span{color:#475569;font-weight:600}
.ete-field input,.ete-field select,.ete-field textarea{width:100%;box-sizing:border-box}
.ete-field input[type=color]{height:36px;padding:2px}
.ete-add{width:100%;font-size:13px}
.ete-tip{font-size:12px;margin-top:8px}
.ete-stage{background:#e2e8f0;border-radius:14px;padding:10px;position:sticky;top:12px}
.ete-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.ete-devices{display:flex;gap:4px}
.ete-devices button{border:0;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;opacity:.6}
.ete-devices button.is-on{opacity:1;box-shadow:0 0 0 2px #0ea5e9}
.ete-status{font-size:12px;color:#475569}
.ete-frame-wrap{display:flex;justify-content:center;position:relative;overflow:hidden}
.ete-frame{width:100%;height:calc(100vh - 90px);min-height:560px;border:0;border-radius:10px;background:#fff;transition:width .2s}
.ete.is-mobile .ete-frame{width:390px}
@media(max-width:1000px){.ete{grid-template-columns:1fr}.ete-side,.ete-stage{position:static;max-height:none}.ete-frame{height:70vh}}
.ete-merchant{border:1px solid #e5e7eb;border-radius:12px;padding:8px 12px;margin-bottom:12px;background:#fffbeb}
.ete-merchant summary{cursor:pointer}
.ete-merchant-body{display:grid;gap:6px;margin-top:8px}
.ete-perm{display:flex;align-items:center;gap:6px;font-size:12px;color:#92400e;font-weight:600;cursor:pointer}
.ete-perm-sm{margin-top:2px}
.ete-field .ete-perm-sm{justify-self:start;display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap}

/* شرح الخيارات تحت كل خانة اختيار، وصندوق المثال القابل للفتح */
.emole-check-help { display: block; margin: 2px 26px 0 0; font-size: 12px; font-weight: 400; color: var(--emole-muted, #64748b); line-height: 1.6; }
.emole-help-box { margin: 8px 0 14px; padding: 10px 14px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.emole-help-box summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.emole-help-box ol { margin: 10px 0 6px; padding-inline-start: 20px; line-height: 1.9; }
.emole-help-box code { background: #e2e8f0; padding: 1px 6px; border-radius: 6px; }
#emole-data-tables .emole-field select, #emole-data-tables .emole-field input { width: 100%; max-width: 100%; box-sizing: border-box; }
#emole-data-tables .emole-check { display: inline-block; vertical-align: top; max-width: 260px; margin-inline-end: 14px; }
/* كتل القسم في منشئ القالب */
.ete-blocks{display:grid;gap:6px;margin-top:10px;padding-top:10px;border-top:1px dashed #e2e8f0}
.ete-block{border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}
.ete-block.is-hidden .ete-name{opacity:.45;text-decoration:line-through}
.ete-block .ete-card-body{background:#fff;border-radius:0 0 9px 9px}
.ete-block-add{display:flex;gap:6px}.ete-block-add select{flex:1;min-width:0}

/* زر اللغة في شريط البوابة */
.emole-lang-switch{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid #e2e8f0;border-radius:999px;font-size:13px;font-weight:600;color:#0f172a;text-decoration:none;background:#fff;margin-inline-end:8px}
.emole-lang-switch:hover{border-color:#0ea5e9;color:#0369a1}
