/**
 * لوحة التاجر — سوق رؤية
 * الهوية: docs/brand/BRAND.md — النص فوق التركواز دائمًا «ليل عميق».
 *
 * Copyright © 2026 Roeia — roeia.com
 */

@font-face {
	font-family: 'Plex Arabic';
	src: url('../fonts/plex-arabic-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Arabic';
	src: url('../fonts/plex-arabic-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.roeia-dash {
	--roeia-night: #0E1B2C;
	--roeia-teal: #0CC0AE;
	--roeia-teal-dark: #0AA396;
	--roeia-coral: #FF6B57;
	--roeia-cloud: #F4F9F8;
	--roeia-mist: #8FA8B5;
	--roeia-stone: #5B6B74;
	--roeia-line: rgba(14, 27, 44, 0.08);
	--roeia-line-strong: rgba(14, 27, 44, 0.14);

	/* ظلال متدرّجة ناعمة — طبقتان: تماس قريب + هالة بعيدة (لا طين أسود) */
	--roeia-shadow-sm: 0 1px 2px rgba(14, 27, 44, 0.05), 0 1px 3px rgba(14, 27, 44, 0.04);
	--roeia-shadow-md: 0 2px 4px rgba(14, 27, 44, 0.04), 0 14px 30px -16px rgba(14, 27, 44, 0.20);
	--roeia-shadow-lg: 0 4px 10px rgba(14, 27, 44, 0.05), 0 24px 48px -20px rgba(14, 27, 44, 0.28);
	--roeia-shadow-side: 0 4px 12px rgba(14, 27, 44, 0.10), 0 24px 48px -22px rgba(14, 27, 44, 0.45);

	--roeia-arches: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='72'%20viewBox='0%200%20240%2072'%3E%3Cg%20fill='none'%20stroke-width='1.5'%3E%3Cpath%20stroke='%230E1B2C'%20stroke-opacity='0.09'%20d='M3,72V30C3,18,8,11,15,7C22,11,27,18,27,30V72M33,72V30C33,18,38,11,45,7C52,11,57,18,57,30V72M63,72V30C63,18,68,11,75,7C82,11,87,18,87,30V72M93,72V30C93,18,98,11,105,7C112,11,117,18,117,30V72M123,72V30C123,18,128,11,135,7C142,11,147,18,147,30V72M183,72V30C183,18,188,11,195,7C202,11,207,18,207,30V72M213,72V30C213,18,218,11,225,7C232,11,237,18,237,30V72'/%3E%3Cpath%20stroke='%23FF6B57'%20stroke-opacity='0.9'%20d='M153,72V30C153,18,158,11,165,7C172,11,177,18,177,30V72'/%3E%3C/g%3E%3C/svg%3E");
	--roeia-arches-teal: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='72'%20viewBox='0%200%20240%2072'%3E%3Cg%20fill='none'%20stroke-width='1.5'%3E%3Cpath%20stroke='%230CC0AE'%20stroke-opacity='0.16'%20d='M3,72V30C3,18,8,11,15,7C22,11,27,18,27,30V72M33,72V30C33,18,38,11,45,7C52,11,57,18,57,30V72M63,72V30C63,18,68,11,75,7C82,11,87,18,87,30V72M93,72V30C93,18,98,11,105,7C112,11,117,18,117,30V72M123,72V30C123,18,128,11,135,7C142,11,147,18,147,30V72M183,72V30C183,18,188,11,195,7C202,11,207,18,207,30V72M213,72V30C213,18,218,11,225,7C232,11,237,18,237,30V72'/%3E%3Cpath%20stroke='%23FF6B57'%20stroke-opacity='0.85'%20d='M153,72V30C153,18,158,11,165,7C172,11,177,18,177,30V72'/%3E%3C/g%3E%3C/svg%3E");

	font-family: 'Plex Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--roeia-night);
	direction: rtl;

	/* الغلاف يحمل alignfull ليتحرر من عرض عمود المحتوى الضيّق في الثيمات
	   البلوكية، والحاوية الداخلية .roeia-dash-layout تتولى التوسيط. */
	max-width: none;

	/* لوحة التطبيق: خلفية سحاب خفيفة تفصل مساحة العمل عن بقية الصفحة
	   وتمنح البطاقات البيضاء تباينًا وعمقًا. */
	background:
		radial-gradient(120% 60% at 100% 0%, rgba(12, 192, 174, 0.06), transparent 60%),
		var(--roeia-cloud);
}

.roeia-dash *,
.roeia-dash *::before,
.roeia-dash *::after {
	box-sizing: border-box;
}

.roeia-dash a {
	text-decoration: none;
}

.roeia-dash .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	flex: 0 0 auto;
}

/* ---------- الهيكل: شريط جانبي (يمين) + محتوى ---------- */

.roeia-dash-layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	max-width: 1180px;
	margin-inline: auto;
	padding-block: 18px 56px;
	padding-inline: clamp(16px, 3vw, 32px);
}

/* ---------- تطويع فراغ الثيم العلوي (هذا الملف يُحمَّل على صفحة اللوحة فقط — تحميل مشروط) ---------- */
/* عنوان الصفحة «لوحة التاجر» يكرّر ترحيب الهيرو ويترك فراغًا علويًا واسعًا؛
   نخفيه بصريًا مع إبقائه متاحًا لقارئات الشاشة، ونقلّم الحشو العلوي لمجموعة المحتوى
   حتى تبدأ اللوحة قرب ترويسة الموقع مباشرة. */
/* الثيم يضع حشوًا/هامشًا علويًا مضمّنًا (inline) بمقدار spacing-60 ≈ 70px في موضعين —
   نتجاوزه بـ !important محصورًا بصفحة اللوحة عبر :has(.roeia-dash). */
main.wp-block-group:has(.roeia-dash) {
	margin-top: 20px !important;
}

.wp-block-group.alignfull.has-global-padding:has(.roeia-dash) {
	padding-top: 20px !important;
}

.entry-content:has(.roeia-dash) {
	margin-top: 0 !important;
}

.wp-block-group.alignfull:has(.roeia-dash) > .wp-block-post-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ---------- الشريط الجانبي ---------- */

.roeia-dash-side {
	background: linear-gradient(180deg, #12233a 0%, var(--roeia-night) 62%);
	border-radius: 20px;
	padding: 14px;
	position: sticky;
	top: 24px;
	box-shadow: var(--roeia-shadow-side);
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.roeia-dash-store {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 16px;
	border-bottom: 1px solid rgba(244, 249, 248, 0.10);
	margin-bottom: 12px;
}

.roeia-dash-store-logo,
.roeia-dash-store-initial {
	width: 48px;
	height: 48px;
	border-radius: 13px;
	object-fit: cover;
	flex: 0 0 auto;
}

.roeia-dash-store-logo {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

.roeia-dash-store-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, rgba(12, 192, 174, 0.28), rgba(12, 192, 174, 0.12));
	color: var(--roeia-teal);
	font-size: 22px;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.35);
}

.roeia-dash-store-meta {
	min-width: 0;
}

.roeia-dash-store-meta strong {
	display: block;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.roeia-dash-store-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--roeia-teal);
	font-size: 12px;
	font-weight: 700;
	margin-top: 3px;
}

.roeia-dash-store-badge .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.roeia-dash-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.roeia-dash-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 13px;
	border-radius: 12px;
	color: var(--roeia-mist);
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.roeia-dash-nav a .dashicons {
	transition: transform 0.18s ease;
}

.roeia-dash-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.roeia-dash-nav a:hover .dashicons {
	transform: translateX(-2px);
}

.roeia-dash-nav a.is-active {
	background: linear-gradient(180deg, var(--roeia-teal), var(--roeia-teal-dark));
	color: var(--roeia-night); /* قاعدة الهوية: نص ليلي فوق التركواز */
	font-weight: 700;
	box-shadow: 0 6px 16px -6px rgba(12, 192, 174, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.roeia-dash-nav a.is-active .dashicons {
	transform: none;
}

.roeia-dash-nav a:focus-visible {
	outline: 2px solid var(--roeia-teal);
	outline-offset: 2px;
}

.roeia-dash-view-store {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 12px 13px 4px;
	border-top: 1px solid rgba(244, 249, 248, 0.10);
	color: var(--roeia-mist);
	font-size: 13px;
	font-weight: 500;
	transition: color 0.18s ease;
}

.roeia-dash-view-store:hover {
	color: var(--roeia-teal);
}

.roeia-dash-view-store .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

/* ---------- رأس القسم ---------- */

.roeia-dash-head {
	margin-bottom: 24px;
}

.roeia-dash-head h2 {
	margin: 0 0 5px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.015em;
	color: var(--roeia-night);
	text-wrap: balance;
}

.roeia-dash-head p {
	margin: 0;
	color: var(--roeia-stone);
	font-size: 14px;
}

/* ---------- هيرو الترحيب (الرئيسية) ---------- */

.roeia-dash-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(135deg, #12233a 0%, var(--roeia-night) 70%);
	border-radius: 20px;
	padding: 30px 30px 32px;
	margin-bottom: 24px;
	box-shadow: var(--roeia-shadow-md);
	isolation: isolate;
}

/* نمط «البوابات» — أقواس خافتة وبوابة واحدة مضيئة بالمرجان (هوية سوق رؤية) */
.roeia-dash-hero::before {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 72px;
	background-image: var(--roeia-arches-teal);
	background-repeat: repeat-x;
	background-position: bottom left;
	opacity: 0.65;
	z-index: -1;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 80%);
	mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.roeia-dash-hero::after {
	content: "";
	position: absolute;
	inset-block-start: -40%;
	inset-inline-start: -8%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(12, 192, 174, 0.22), transparent 60%);
	z-index: -1;
	pointer-events: none;
}

.roeia-dash-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: var(--roeia-teal);
	margin-bottom: 12px;
}

.roeia-dash-hero-eyebrow .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.roeia-dash-hero h2 {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: clamp(24px, 3.4vw, 32px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}

.roeia-dash-hero h2 b {
	color: var(--roeia-teal);
	font-weight: 700;
}

.roeia-dash-hero p {
	margin: 0;
	max-width: 52ch;
	color: var(--roeia-mist);
	font-size: 14.5px;
	line-height: 1.75;
}

/* ---------- بطاقات الإحصائيات ---------- */

.roeia-dash-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.roeia-stat {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	padding: 20px 22px 18px;
	box-shadow: var(--roeia-shadow-sm);
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

/* البطاقة الفعّالة (منتجاتي) — حضور أقوى: لمسة تركواز في الزاوية */
.roeia-stat:not(.is-soon) {
	box-shadow: var(--roeia-shadow-md);
}

.roeia-stat:not(.is-soon)::after {
	content: "";
	position: absolute;
	inset-block-start: -50px;
	inset-inline-end: -50px;
	width: 130px;
	height: 130px;
	background: radial-gradient(circle, rgba(12, 192, 174, 0.10), transparent 62%);
	pointer-events: none;
}

.roeia-stat:not(.is-soon):hover {
	transform: translateY(-3px);
	box-shadow: var(--roeia-shadow-lg);
	border-color: rgba(12, 192, 174, 0.28);
}

.roeia-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(12, 192, 174, 0.18), rgba(12, 192, 174, 0.09));
	color: var(--roeia-teal-dark);
	margin-bottom: 14px;
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.14);
}

.roeia-stat-icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.roeia-stat-value {
	display: block;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--roeia-night);
	font-variant-numeric: tabular-nums;
}

.roeia-stat-label {
	display: block;
	margin-top: 3px;
	color: var(--roeia-stone);
	font-size: 13px;
	font-weight: 700;
}

.roeia-stat-hint {
	display: block;
	margin-top: 5px;
	color: var(--roeia-mist);
	font-size: 12px;
	line-height: 1.5;
}

/* رمز الريال بدل أيقونة الدولار — سوق ريال سعودي */
.roeia-stat-icon--riyal {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

/* حالة «قريبًا» — تشويقة أنيقة لا صندوق رمادي */
.roeia-stat.is-soon {
	background:
		linear-gradient(180deg, rgba(244, 249, 248, 0.5), #fff);
	border-style: dashed;
	border-color: var(--roeia-line-strong);
}

.roeia-stat.is-soon .roeia-stat-icon {
	background: rgba(143, 168, 181, 0.14);
	color: var(--roeia-mist);
	box-shadow: inset 0 0 0 1px rgba(143, 168, 181, 0.18);
}

.roeia-stat.is-soon .roeia-stat-value {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 12px;
	margin-top: 8px;
	margin-bottom: 8px;
	border-radius: 999px;
	color: transparent;
	overflow: hidden;
	background: linear-gradient(90deg, rgba(143, 168, 181, 0.22), rgba(143, 168, 181, 0.12));
}

/* لمعة بطيئة تُوحي بأن البيانات «في الطريق» */
.roeia-stat.is-soon .roeia-stat-value::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
	transform: translateX(-100%);
	animation: roeia-shimmer 2.4s ease-in-out infinite;
}

.roeia-stat.is-soon .roeia-stat-label {
	color: var(--roeia-mist);
}

@keyframes roeia-shimmer {
	0% { transform: translateX(-100%); }
	60%, 100% { transform: translateX(100%); }
}

.roeia-chip-soon {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 107, 87, 0.11);
	color: #B8412D;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 87, 0.22);
}

.roeia-chip-soon::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--roeia-coral);
}

/* نسخة هادئة للبطاقات العلوية — نُبقي المرجان نادرًا (قاعدة الهوية) ونحصره
   في تشويقات الميزات القادمة أسفل الصفحة، لا في صفّ الإحصائيات. */
.roeia-chip-soon--muted {
	background: rgba(143, 168, 181, 0.16);
	color: var(--roeia-stone);
	box-shadow: inset 0 0 0 1px rgba(143, 168, 181, 0.3);
}

.roeia-chip-soon--muted::before {
	background: var(--roeia-mist);
}

/* ---------- بطاقة رابط المتجر ---------- */

.roeia-dash-storelink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: var(--roeia-shadow-sm);
}

.roeia-dash-storelink-info {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.roeia-dash-storelink-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 12px;
	background: rgba(12, 192, 174, 0.12);
	color: var(--roeia-teal-dark);
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.14);
}

.roeia-dash-storelink strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-dash-storelink-text {
	min-width: 0;
}

.roeia-dash-storelink-url {
	display: block;
	max-width: 100%;
	direction: ltr;
	text-align: left;
	color: var(--roeia-stone);
	font-size: 13px;
	margin-top: 3px;
	/* لا يُكسَر السلَگ منتصف الكلمة على الجوال — قُصّ بأناقة بثلاث نقاط */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

/* ---------- إجراءات سريعة (بلاطات) ---------- */

.roeia-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.roeia-quick-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 15px;
	padding: 15px 16px;
	box-shadow: var(--roeia-shadow-sm);
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.roeia-quick-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--roeia-shadow-md);
	border-color: rgba(12, 192, 174, 0.32);
}

.roeia-quick-tile:focus-visible {
	outline: 2px solid var(--roeia-teal);
	outline-offset: 2px;
}

.roeia-quick-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 11px;
	background: linear-gradient(145deg, rgba(12, 192, 174, 0.18), rgba(12, 192, 174, 0.09));
	color: var(--roeia-teal-dark);
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.16);
	transition: transform 0.2s ease;
}

.roeia-quick-tile:hover .roeia-quick-ic {
	transform: scale(1.06);
}

.roeia-quick-text {
	min-width: 0;
	flex: 1;
	line-height: 1.4;
}

.roeia-quick-text strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--roeia-night);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.roeia-quick-text span {
	display: block;
	font-size: 12px;
	color: var(--roeia-stone);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.roeia-quick-arrow {
	flex: 0 0 auto;
	color: var(--roeia-mist);
	transition: transform 0.2s ease, color 0.2s ease;
}

.roeia-quick-tile:hover .roeia-quick-arrow {
	color: var(--roeia-teal-dark);
	transform: translateX(-3px);
}

/* البلاطة الأساسية — «أضف منتجًا» بلون التركواز (نص ليلي فوق التركواز) */
.roeia-quick-tile.is-primary {
	background: linear-gradient(145deg, var(--roeia-teal), var(--roeia-teal-dark));
	border-color: transparent;
	box-shadow: 0 8px 20px -10px rgba(12, 192, 174, 0.8);
}

.roeia-quick-tile.is-primary .roeia-quick-ic {
	background: rgba(14, 27, 44, 0.14);
	color: var(--roeia-night);
	box-shadow: inset 0 0 0 1px rgba(14, 27, 44, 0.12);
}

.roeia-quick-tile.is-primary .roeia-quick-text strong {
	color: var(--roeia-night);
}

.roeia-quick-tile.is-primary .roeia-quick-text span {
	color: rgba(14, 27, 44, 0.7);
}

.roeia-quick-tile.is-primary .roeia-quick-arrow {
	color: var(--roeia-night);
}

.roeia-quick-tile.is-primary:hover {
	box-shadow: 0 12px 26px -10px rgba(12, 192, 174, 0.85);
	border-color: transparent;
}

/* ---------- شبكة الرئيسية: لوحة المنتجات + عمود التشويقات ---------- */

.roeia-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin-bottom: 24px;
}

.roeia-side-stack {
	display: grid;
	gap: 20px;
}

/* لوحة عامة */
.roeia-panel {
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	box-shadow: var(--roeia-shadow-md);
	overflow: hidden;
}

.roeia-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--roeia-line);
	background: linear-gradient(180deg, rgba(244, 249, 248, 0.6), #fff);
}

.roeia-panel-head h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-panel-head h3 .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: var(--roeia-teal-dark);
}

.roeia-panel-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--roeia-teal-dark);
	white-space: nowrap;
	transition: gap 0.18s ease, color 0.18s ease;
}

.roeia-panel-more .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
	transition: transform 0.18s ease;
}

.roeia-panel-more:hover {
	color: var(--roeia-teal);
}

.roeia-panel-more:hover .dashicons {
	transform: translateX(-3px);
}

/* قائمة أحدث المنتجات */
.roeia-home-prod {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 20px;
	border-top: 1px solid var(--roeia-line);
	color: var(--roeia-night);
	transition: background-color 0.16s ease;
}

.roeia-home-prod:first-child {
	border-top: 0;
}

.roeia-home-prod:hover {
	background: rgba(12, 192, 174, 0.05);
}

.roeia-home-prod:focus-visible {
	outline: 2px solid var(--roeia-teal);
	outline-offset: -2px;
}

.roeia-home-prod-thumb {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 auto;
	border: 1px solid var(--roeia-line);
	background: var(--roeia-cloud);
	box-shadow: var(--roeia-shadow-sm);
}

.roeia-home-prod-thumb.is-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--roeia-teal-dark);
	background: linear-gradient(145deg, rgba(12, 192, 174, 0.16), rgba(12, 192, 174, 0.06));
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.16);
}

.roeia-home-prod-thumb.is-empty .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.roeia-home-prod-meta {
	min-width: 0;
	flex: 1;
}

.roeia-home-prod-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--roeia-night);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.roeia-home-prod-sub {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 5px;
}

.roeia-home-prod-price {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--roeia-stone);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.roeia-home-prod-price del {
	color: var(--roeia-mist);
	font-weight: 400;
	margin-inline-start: 5px;
}

.roeia-home-prod-price ins {
	text-decoration: none;
	color: var(--roeia-coral);
}

.roeia-home-prod-go {
	flex: 0 0 auto;
	color: var(--roeia-mist);
	transition: transform 0.18s ease, color 0.18s ease;
}

.roeia-home-prod:hover .roeia-home-prod-go {
	color: var(--roeia-teal-dark);
	transform: translateX(-3px);
}

/* شارات الحالة في المعاينة */
.roeia-home-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px 3px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.roeia-home-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.roeia-home-badge--publish {
	background: rgba(12, 192, 174, 0.14);
	color: #06695F;
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.22);
}

.roeia-home-badge--publish::before {
	background: var(--roeia-teal-dark);
}

.roeia-home-badge--pending {
	background: rgba(255, 107, 87, 0.13);
	color: #A63A28;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 87, 0.24);
}

.roeia-home-badge--pending::before {
	background: var(--roeia-coral);
}

.roeia-home-badge--draft {
	background: rgba(143, 168, 181, 0.18);
	color: var(--roeia-stone);
	box-shadow: inset 0 0 0 1px rgba(143, 168, 181, 0.3);
}

.roeia-home-badge--draft::before {
	background: var(--roeia-mist);
}

/* حالة فارغة داخل اللوحة */
.roeia-panel-empty {
	text-align: center;
	padding: 40px 24px 44px;
}

.roeia-panel-empty-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(12, 192, 174, 0.16), rgba(12, 192, 174, 0.06));
	color: var(--roeia-teal-dark);
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.16);
}

.roeia-panel-empty-ic .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
}

.roeia-panel-empty h4 {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-panel-empty p {
	margin: 0 auto 18px;
	max-width: 34ch;
	color: var(--roeia-stone);
	font-size: 13.5px;
	line-height: 1.75;
}

/* ---------- بطاقات التشويق (تقارير/طلبات قريبًا) ---------- */

.roeia-teaser {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #fff, rgba(244, 249, 248, 0.7));
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	padding: 18px 20px 20px;
	box-shadow: var(--roeia-shadow-sm);
}

.roeia-teaser-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-teaser-title .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
	color: var(--roeia-teal-dark);
}

/* شارة «قريبًا» في سياق طبيعي (ليست مطلقة) */
.roeia-chip-soon--static {
	position: absolute;
	top: 16px;
	inset-inline-end: 18px;
}

.roeia-spark {
	display: block;
	width: 100%;
	height: 76px;
	margin-bottom: 12px;
}

.roeia-teaser-note {
	margin: 0;
	color: var(--roeia-stone);
	font-size: 12.5px;
	line-height: 1.7;
}

/* صفوف تشويقية لآخر الطلبات (هياكل شبحية) */
.roeia-teaser-rows {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 11px;
}

.roeia-teaser-rows li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.roeia-teaser-dot {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 8px;
	background: rgba(143, 168, 181, 0.16);
	box-shadow: inset 0 0 0 1px rgba(143, 168, 181, 0.16);
}

.roeia-teaser-bar {
	height: 9px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(143, 168, 181, 0.22), rgba(143, 168, 181, 0.1));
}

/* ---------- الأزرار ---------- */

.roeia-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 12px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.roeia-btn:active {
	transform: translateY(1px);
}

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

.roeia-btn--primary {
	background: var(--roeia-teal);
	color: var(--roeia-night); /* دائمًا ليل فوق التركواز — مش أبيض */
	box-shadow: 0 6px 16px -8px rgba(12, 192, 174, 0.8);
}

.roeia-btn--primary:hover {
	background: var(--roeia-teal-dark);
	color: var(--roeia-night);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -8px rgba(12, 192, 174, 0.85);
}

.roeia-btn--primary:active {
	transform: translateY(1px);
	box-shadow: 0 4px 10px -6px rgba(12, 192, 174, 0.8);
}

.roeia-btn--ghost {
	background: #fff;
	border: 1px solid var(--roeia-line-strong);
	color: var(--roeia-night);
}

.roeia-btn--ghost:hover {
	border-color: var(--roeia-night);
	color: var(--roeia-night);
	transform: translateY(-1px);
}

/* ---------- النموذج ---------- */

.roeia-form {
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 18px;
	padding: 8px 28px 28px;
	max-width: 760px;
	box-shadow: var(--roeia-shadow-md);
}

/* أقسام النموذج المجمّعة */
.roeia-form-group {
	padding-block: 24px;
	border-top: 1px solid var(--roeia-line);
}

.roeia-form-group:first-of-type {
	border-top: 0;
	padding-top: 20px;
}

.roeia-form-group-head {
	margin-bottom: 18px;
}

.roeia-form-group-head h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 3px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-form-group-head h3 .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: var(--roeia-teal-dark);
}

.roeia-form-group-head p {
	margin: 0;
	padding-inline-start: 27px;
	color: var(--roeia-stone);
	font-size: 12.5px;
}

.roeia-field {
	margin-bottom: 18px;
}

.roeia-field:last-child {
	margin-bottom: 0;
}

.roeia-field > label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--roeia-night);
	margin-bottom: 7px;
}

.roeia-field input[type='text'],
.roeia-field input[type='tel'],
.roeia-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--roeia-line-strong);
	border-radius: 11px;
	background: var(--roeia-cloud);
	color: var(--roeia-night);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.7;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.roeia-field input::placeholder,
.roeia-field textarea::placeholder {
	color: var(--roeia-mist);
}

.roeia-field input:hover,
.roeia-field textarea:hover {
	border-color: rgba(14, 27, 44, 0.28);
}

.roeia-field input:focus,
.roeia-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--roeia-teal);
	box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.18);
}

.roeia-field input[type='tel'] {
	direction: ltr;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.roeia-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--roeia-stone);
}

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

/* عناصر رفع الوسائط — بطاقة معاينة + زر ملف مصمَّم */
.roeia-media-field {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px;
	border: 1px dashed var(--roeia-line-strong);
	border-radius: 14px;
	background: var(--roeia-cloud);
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.roeia-media-field:hover {
	border-color: rgba(12, 192, 174, 0.4);
	background: rgba(12, 192, 174, 0.04);
}

.roeia-media-thumb {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid var(--roeia-line);
	background: #fff;
	flex: 0 0 auto;
	box-shadow: var(--roeia-shadow-sm);
}

.roeia-media-thumb.is-banner {
	width: 140px;
	height: 62px;
}

.roeia-media-thumb.is-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--roeia-mist);
	background:
		repeating-linear-gradient(45deg, rgba(143, 168, 181, 0.07) 0 8px, transparent 8px 16px), #fff;
}

.roeia-media-thumb.is-empty .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.roeia-media-field input[type='file'] {
	font-family: inherit;
	font-size: 13px;
	color: var(--roeia-stone);
	max-width: 100%;
	min-width: 0;
}

.roeia-media-field input[type='file']::file-selector-button {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--roeia-night);
	background: #fff;
	border: 1px solid var(--roeia-line-strong);
	border-radius: 10px;
	padding: 8px 16px;
	margin-inline-end: 12px;
	cursor: pointer;
	transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.roeia-media-field input[type='file']::file-selector-button:hover {
	border-color: var(--roeia-teal);
	color: var(--roeia-teal-dark);
	background: rgba(12, 192, 174, 0.06);
}

.roeia-form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
	padding-top: 22px;
	border-top: 1px solid var(--roeia-line);
}

/* ---------- التنبيهات داخل الأقسام ---------- */

.roeia-notice-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 13px;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
	box-shadow: var(--roeia-shadow-sm);
}

.roeia-notice-inline .dashicons {
	flex: 0 0 auto;
}

.roeia-notice-inline.is-success {
	background: rgba(12, 192, 174, 0.12);
	border: 1px solid rgba(12, 192, 174, 0.35);
	color: #06695F;
}

.roeia-notice-inline.is-error {
	background: rgba(255, 107, 87, 0.1);
	border: 1px solid rgba(255, 107, 87, 0.35);
	color: #A63A28;
}

/* ---------- قسم «منتجاتي» — تجاوز أنماط القالب المضمّنة عبر خصوصية أعلى ---------- */
/* .roeia-vp داخل .roeia-dash-main، والتجاوز يعتمد محدِّدًا مركّبًا ليتغلّب على <style> المضمّن. */

.roeia-dash-main .roeia-vp {
	font-family: 'Plex Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	color: var(--roeia-night);
}

.roeia-dash-main .roeia-vp-head {
	margin-bottom: 20px;
}

.roeia-dash-main .roeia-vp-head h3 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--roeia-night);
}

.roeia-dash-main .roeia-vp-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--roeia-teal);
	color: var(--roeia-night);
	font-weight: 700;
	font-size: 14px;
	padding: 11px 20px;
	border-radius: 12px;
	box-shadow: 0 6px 16px -8px rgba(12, 192, 174, 0.8);
	transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.roeia-dash-main .roeia-vp-add:hover,
.roeia-dash-main .roeia-vp-add:focus {
	filter: none;
	background: var(--roeia-teal-dark);
	color: var(--roeia-night);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -8px rgba(12, 192, 174, 0.85);
}

.roeia-dash-main .roeia-vp-table-wrap {
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--roeia-shadow-md);
	overflow: auto hidden;
}

.roeia-dash-main .roeia-vp-table {
	font-size: 14px;
}

.roeia-dash-main .roeia-vp-table th {
	background: var(--roeia-cloud);
	color: var(--roeia-stone);
	font-weight: 700;
	font-size: 12.5px;
	text-align: right;
	padding: 14px 20px;
	border-bottom: 1px solid var(--roeia-line);
}

.roeia-dash-main .roeia-vp-table td {
	padding: 15px 20px;
	border-top: 1px solid var(--roeia-line);
	color: var(--roeia-night);
	vertical-align: middle;
}

.roeia-dash-main .roeia-vp-table tbody tr {
	transition: background-color 0.15s ease;
}

.roeia-dash-main .roeia-vp-table tbody tr:hover {
	background: rgba(12, 192, 174, 0.045);
}

.roeia-dash-main .roeia-vp-table tbody tr:first-child td {
	border-top: 0;
}

.roeia-dash-main .roeia-vp-table td.roeia-vp-name {
	display: flex;
	align-items: center;
	gap: 13px;
	font-weight: 700;
	color: var(--roeia-night);
}

/* بلاطة منتج مصغّرة بنمط «البوابة» (هوية سوق رؤية) قبل كل اسم منتج */
.roeia-dash-main .roeia-vp-name::before {
	content: "";
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20stroke='%230AA396'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4,21V11C4,6.5,7.5,3.5,12,3.5C16.5,3.5,20,6.5,20,11V21'/%3E%3C/svg%3E") center / 24px 24px no-repeat,
		linear-gradient(145deg, rgba(12, 192, 174, 0.16), rgba(12, 192, 174, 0.06));
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.16);
}

.roeia-dash-main .roeia-vp-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 700;
}

.roeia-dash-main .roeia-vp-price del {
	color: var(--roeia-mist);
	font-weight: 400;
	margin-inline-start: 6px;
}

.roeia-dash-main .roeia-vp-price ins {
	text-decoration: none;
	color: var(--roeia-coral);
}

/* شارات الحالة المصمَّمة — نقطة + خلفية خفيفة */
.roeia-dash-main .roeia-vp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--roeia-night);
	white-space: nowrap;
}

.roeia-dash-main .roeia-vp-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.roeia-dash-main .roeia-vp-badge--publish {
	background: rgba(12, 192, 174, 0.14);
	color: #06695F;
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.22);
}

.roeia-dash-main .roeia-vp-badge--publish::before {
	background: var(--roeia-teal-dark);
}

.roeia-dash-main .roeia-vp-badge--pending {
	background: rgba(255, 107, 87, 0.13);
	color: #A63A28;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 87, 0.24);
}

.roeia-dash-main .roeia-vp-badge--pending::before {
	background: var(--roeia-coral);
}

.roeia-dash-main .roeia-vp-badge--draft {
	background: rgba(143, 168, 181, 0.18);
	color: var(--roeia-stone);
	box-shadow: inset 0 0 0 1px rgba(143, 168, 181, 0.3);
}

.roeia-dash-main .roeia-vp-badge--draft::before {
	background: var(--roeia-mist);
}

/* إجراءات الجدول — أزرار أيقونية مصمَّمة بدل روابط نصية */
.roeia-dash-main .roeia-vp-actions {
	white-space: nowrap;
}

.roeia-dash-main .roeia-vp-actions a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--roeia-stone);
	font-weight: 700;
	font-size: 13px;
	border: 1px solid var(--roeia-line-strong);
	border-bottom: 1px solid var(--roeia-line-strong);
	background: #fff;
	padding: 6px 13px 6px 11px;
	border-radius: 10px;
	margin-inline-start: 7px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.roeia-dash-main .roeia-vp-actions a::before {
	font-family: dashicons;
	font-size: 15px;
	line-height: 1;
	speak: never;
	-webkit-font-smoothing: antialiased;
}

/* تحرير (القلم) دائمًا أول رابط */
.roeia-dash-main .roeia-vp-actions a:first-child::before {
	content: "\f464";
}

/* عرض (العين) */
.roeia-dash-main .roeia-vp-actions a:nth-child(2)::before {
	content: "\f177";
}

.roeia-dash-main .roeia-vp-actions a:first-child {
	margin-inline-start: 0;
}

.roeia-dash-main .roeia-vp-actions a:hover {
	color: var(--roeia-teal-dark);
	background: rgba(12, 192, 174, 0.1);
	border-color: rgba(12, 192, 174, 0.4);
	transform: translateY(-1px);
}

.roeia-dash-main .roeia-vp-actions a:focus-visible {
	outline: 2px solid var(--roeia-teal);
	outline-offset: 2px;
}

/* الحالة الفارغة */
.roeia-dash-main .roeia-vp-empty {
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(12, 192, 174, 0.06), transparent 60%),
		#fff;
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	padding: 56px 24px;
	box-shadow: var(--roeia-shadow-md);
}

.roeia-dash-main .roeia-vp-empty h4 {
	font-size: 19px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-dash-main .roeia-vp-empty p {
	color: var(--roeia-stone);
	font-size: 14px;
	max-width: 38ch;
	margin-inline: auto;
}

/* ---------- بطاقة الحراسة / الحالات (زائر، قيد المراجعة، مرفوض، معلّق) ---------- */

.roeia-guard {
	max-width: 520px;
	margin: 44px auto 56px;
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 20px;
	overflow: hidden;
	text-align: center;
	box-shadow: var(--roeia-shadow-lg);
}

.roeia-guard-arches {
	height: 96px;
	background-color: var(--roeia-cloud);
	background-image: var(--roeia-arches);
	background-repeat: repeat-x;
	background-position: bottom center;
	background-size: auto 80px;
	border-bottom: 1px solid rgba(14, 27, 44, 0.06);
}

.roeia-guard-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: -29px auto 0;
	border-radius: 50%;
	background: var(--roeia-night);
	color: var(--roeia-cloud);
	position: relative;
	box-shadow: 0 8px 20px -8px rgba(14, 27, 44, 0.6), 0 0 0 5px #fff;
}

.roeia-guard-icon .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
}

.roeia-guard-body {
	padding: 20px 32px 36px;
}

.roeia-guard-body h3 {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--roeia-night);
	text-wrap: balance;
}

.roeia-guard-body p {
	margin: 0 auto;
	max-width: 42ch;
	color: var(--roeia-stone);
	font-size: 14.5px;
	line-height: 1.9;
}

.roeia-guard-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 24px;
}

/* ---------- حركات الدخول (تُعطَّل مع تقليل الحركة) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.roeia-dash-hero,
	.roeia-stat,
	.roeia-quick-tile,
	.roeia-home-grid > *,
	.roeia-dash-storelink,
	.roeia-dash-main .roeia-vp-table-wrap,
	.roeia-dash-main .roeia-vp-empty {
		animation: roeia-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.roeia-dash-stats .roeia-stat:nth-child(1) { animation-delay: 0.05s; }
	.roeia-dash-stats .roeia-stat:nth-child(2) { animation-delay: 0.11s; }
	.roeia-dash-stats .roeia-stat:nth-child(3) { animation-delay: 0.17s; }
	.roeia-quick-tile:nth-child(1) { animation-delay: 0.18s; }
	.roeia-quick-tile:nth-child(2) { animation-delay: 0.22s; }
	.roeia-quick-tile:nth-child(3) { animation-delay: 0.26s; }
	.roeia-quick-tile:nth-child(4) { animation-delay: 0.30s; }
	.roeia-home-grid > *:nth-child(1) { animation-delay: 0.30s; }
	.roeia-home-grid > *:nth-child(2) { animation-delay: 0.36s; }
	.roeia-dash-storelink { animation-delay: 0.40s; }
}

@keyframes roeia-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- استجابة الشاشات الصغيرة ---------- */

@media (max-width: 880px) {
	.roeia-dash-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding-block: 20px 48px;
	}

	.roeia-dash-side {
		position: static;
		top: auto;
	}

	.roeia-dash-nav {
		flex-flow: row wrap;
		gap: 8px;
		overflow: visible;
	}

	.roeia-dash-nav a {
		flex: 1 1 auto;
		justify-content: center;
		white-space: nowrap;
	}

	.roeia-dash-hero {
		padding: 24px 22px 26px;
	}

	.roeia-form {
		padding-inline: 20px;
	}
}

@media (max-width: 720px) {
	.roeia-home-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.roeia-dash-storelink {
		flex-direction: column;
		align-items: stretch;
	}

	.roeia-dash-storelink .roeia-btn {
		width: 100%;
	}

	.roeia-form-actions {
		justify-content: stretch;
	}

	.roeia-form-actions .roeia-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roeia-dash *,
	.roeia-dash *::before,
	.roeia-dash *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================
   قسم «طلباتي» (المرحلة 2) — قائمة/تفصيل الطلبات الفرعية
   ============================================================ */

.roeia-section-head.roeia-panel-head {
	margin-bottom: 18px;
}
.roeia-section-head h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--roeia-night);
}
.roeia-section-head h2 .dashicons { color: var(--roeia-teal); }

.roeia-dash-stats.roeia-dash-stats--3 {
	grid-template-columns: repeat(3, 1fr);
}
.roeia-stat-value.roeia-stat-value--sm {
	font-size: 20px;
	letter-spacing: -0.01em;
}

/* شارة حالة الطلب */
.roeia-ostatus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}
.roeia-ostatus--ok { background: rgba(12, 192, 174, 0.14); color: var(--roeia-teal-dark); }
.roeia-ostatus--active { background: rgba(12, 192, 174, 0.10); color: var(--roeia-teal-dark); }
.roeia-ostatus--wait { background: rgba(143, 168, 181, 0.18); color: var(--roeia-stone); }
.roeia-ostatus--off { background: rgba(255, 107, 87, 0.14); color: #c0392b; }

/* جدول الطلبات */
.roeia-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.roeia-orders-table thead th {
	text-align: start;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--roeia-stone);
	border-bottom: 1px solid var(--roeia-line);
}
.roeia-orders-table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--roeia-line);
	color: var(--roeia-night);
	vertical-align: middle;
}
.roeia-orders-table tbody tr:last-child td { border-bottom: 0; }
.roeia-orders-table tbody tr { transition: background 0.2s ease; }
.roeia-orders-table tbody tr:hover { background: var(--roeia-cloud); }
.roeia-ocell-num a { font-weight: 700; color: var(--roeia-teal-dark); text-decoration: none; }
.roeia-ocell-num a:hover { text-decoration: underline; }
.roeia-ocell-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.roeia-ocell-go a {
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--roeia-stone);
	transition: background 0.2s ease, color 0.2s ease;
}
.roeia-ocell-go a:hover { background: rgba(12, 192, 174, 0.12); color: var(--roeia-teal-dark); }

/* تفصيل الطلب */
.roeia-order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.roeia-order-title { font-size: 22px; font-weight: 700; color: var(--roeia-night); margin: 0; }
.roeia-order-date { color: var(--roeia-stone); font-size: 13px; }

.roeia-order-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 18px;
	align-items: start;
}

.roeia-otable { width: 100%; border-collapse: collapse; }
.roeia-otable td { padding: 12px 4px; border-bottom: 1px solid var(--roeia-line); }
.roeia-otable tr:last-child td { border-bottom: 0; }
.roeia-otable-name { font-weight: 600; color: var(--roeia-night); }
.roeia-otable-qty { color: var(--roeia-stone); font-variant-numeric: tabular-nums; text-align: center; }
.roeia-otable-amt { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }

.roeia-ship {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed var(--roeia-line-strong);
}
.roeia-ship strong { display: flex; align-items: center; gap: 6px; color: var(--roeia-night); margin-bottom: 6px; }
.roeia-ship strong .dashicons { color: var(--roeia-teal); }
.roeia-ship address { font-style: normal; color: var(--roeia-stone); line-height: 1.9; }

.roeia-earn-rows { list-style: none; margin: 0; padding: 0; }
.roeia-earn-rows li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--roeia-line);
	font-size: 14px;
	color: var(--roeia-stone);
}
.roeia-earn-rows li b { color: var(--roeia-night); font-variant-numeric: tabular-nums; }
.roeia-earn-rows li b.is-neg { color: var(--roeia-coral); }
.roeia-earn-net {
	border-bottom: 0 !important;
	margin-top: 4px;
	padding-top: 14px !important;
	border-top: 2px solid var(--roeia-line-strong);
	font-weight: 700;
	color: var(--roeia-night) !important;
	font-size: 15px !important;
}
.roeia-earn-net b { font-size: 18px; color: var(--roeia-teal-dark) !important; }

.roeia-status-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.roeia-status-form { padding-top: 4px; }

.roeia-pager { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

.roeia-inline-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 14px;
}
.roeia-inline-notice.is-success {
	background: rgba(12, 192, 174, 0.12);
	color: var(--roeia-teal-dark);
}
.roeia-inline-notice .dashicons { color: var(--roeia-teal); }

@media (max-width: 860px) {
	.roeia-dash-stats.roeia-dash-stats--3 { grid-template-columns: 1fr; }
	.roeia-order-grid { grid-template-columns: 1fr; }
	.roeia-orders-table thead { display: none; }
	.roeia-orders-table tbody td { padding: 8px 12px; }
	.roeia-orders-table tbody tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 8px 0;
		border-bottom: 1px solid var(--roeia-line);
	}
	.roeia-orders-table tbody td { border-bottom: 0; }
}

/* ============================================================
   قسم «محفظتي» (المرحلة 3)
   ============================================================ */

.roeia-wallet-top {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 18px;
	align-items: stretch;
	margin-bottom: 18px;
}

/* بطاقة الرصيد — واجهة داكنة بلمسة العلامة */
.roeia-wallet-balance {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 26px 28px;
	border-radius: 18px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(12, 192, 174, 0.22), transparent 55%),
		linear-gradient(150deg, #12293c, var(--roeia-night));
	color: #fff;
	box-shadow: var(--roeia-shadow-side);
}
.roeia-wallet-balance-label { font-size: 13px; color: var(--roeia-mist); }
.roeia-wallet-balance-value {
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: #fff;
}
.roeia-wallet-balance-value .woocommerce-Price-currencySymbol { color: var(--roeia-teal); font-weight: 600; font-size: 0.6em; margin-inline-start: 4px; }
.roeia-wallet-balance-sub { display: inline-flex; align-items: center; gap: 6px; color: var(--roeia-mist); font-size: 13px; }
.roeia-wallet-balance-sub .dashicons { color: var(--roeia-coral); font-size: 16px; width: 16px; height: 16px; }

.roeia-wallet-form-panel { margin: 0; }
.roeia-wallet-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-top: 4px;
}
.roeia-field { display: flex; flex-direction: column; gap: 6px; }
.roeia-field--full { grid-column: 1 / -1; }
.roeia-field-label { font-size: 12.5px; font-weight: 600; color: var(--roeia-stone); }
.roeia-wallet-form input,
.roeia-wallet-form select,
.roeia-wallet-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--roeia-line-strong);
	border-radius: 10px;
	background: var(--roeia-cloud);
	color: var(--roeia-night);
	font: inherit;
	font-size: 14px;
}
.roeia-wallet-form input:focus,
.roeia-wallet-form select:focus,
.roeia-wallet-form textarea:focus {
	outline: none;
	border-color: var(--roeia-teal);
	box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.16);
	background: #fff;
}
.roeia-wallet-form textarea { resize: vertical; font-variant-numeric: tabular-nums; }
.roeia-wallet-form button[type="submit"] { grid-column: 1 / -1; justify-content: center; }

/* دفتر المحفظة */
.roeia-ledger { list-style: none; margin: 0; padding: 0; }
.roeia-ledger-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 2px;
	border-bottom: 1px solid var(--roeia-line);
}
.roeia-ledger-row:last-child { border-bottom: 0; }
.roeia-ledger-ic {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
}
.roeia-ledger-ic--in { background: rgba(12, 192, 174, 0.14); color: var(--roeia-teal-dark); }
.roeia-ledger-ic--out { background: rgba(255, 107, 87, 0.14); color: #c0392b; }
.roeia-ledger-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.roeia-ledger-note { font-weight: 600; color: var(--roeia-night); font-size: 13.5px; }
.roeia-ledger-date { color: var(--roeia-stone); font-size: 12px; }
.roeia-ledger-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roeia-ledger-amt--in { color: var(--roeia-teal-dark); }
.roeia-ledger-amt--out { color: var(--roeia-coral); }

.roeia-inline-notice.is-error { background: rgba(255, 107, 87, 0.12); color: #c0392b; }
.roeia-inline-notice.is-error .dashicons { color: var(--roeia-coral); }

@media (max-width: 860px) {
	.roeia-wallet-top { grid-template-columns: 1fr; }
	.roeia-wallet-form { grid-template-columns: 1fr; }
}

/* ============================================================
   قسم «الشحن» (المرحلة 4)
   ============================================================ */

.roeia-ship-form { display: flex; flex-direction: column; gap: 18px; }
.roeia-ship-form button[type="submit"] { align-self: flex-start; }

/* مفتاح تفعيل */
.roeia-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	padding: 14px 16px;
	border: 1px solid var(--roeia-line);
	border-radius: 12px;
	background: var(--roeia-cloud);
}
.roeia-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.roeia-toggle-track {
	flex: 0 0 auto;
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: var(--roeia-mist);
	transition: background 0.2s ease;
}
.roeia-toggle-track::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(14, 27, 44, 0.28);
	transition: inset-inline-start 0.2s ease;
}
.roeia-toggle input:checked + .roeia-toggle-track { background: var(--roeia-teal); }
.roeia-toggle input:checked + .roeia-toggle-track::after { inset-inline-start: 23px; }
.roeia-toggle input:focus-visible + .roeia-toggle-track { box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.25); }
.roeia-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.roeia-toggle-text strong { color: var(--roeia-night); font-size: 14px; }
.roeia-toggle-text span { color: var(--roeia-stone); font-size: 12.5px; }

/* ============================================================
   قسم «الباقة» (المرحلة 5)
   ============================================================ */

.roeia-plan-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border-radius: 14px;
	background: linear-gradient(150deg, #12293c, var(--roeia-night));
	color: #fff;
	margin-bottom: 20px;
	box-shadow: var(--roeia-shadow-md);
}
.roeia-plan-summary-label { display: block; font-size: 12.5px; color: var(--roeia-mist); }
.roeia-plan-summary-name { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; }
.roeia-plan-summary-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.roeia-plan-summary-meta span { display: inline-flex; align-items: center; gap: 6px; color: #cfe0e9; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.roeia-plan-summary-meta .dashicons { color: var(--roeia-teal); font-size: 17px; width: 17px; height: 17px; }

.roeia-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.roeia-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px;
	background: #fff;
	border: 1px solid var(--roeia-line-strong);
	border-radius: 16px;
	box-shadow: var(--roeia-shadow-sm);
	transition: transform 0.25s var(--roeia-ease), box-shadow 0.25s var(--roeia-ease), border-color 0.25s var(--roeia-ease);
}
.roeia-plan-card:hover { transform: translateY(-4px); box-shadow: var(--roeia-shadow-md); }
.roeia-plan-card.is-current { border-color: var(--roeia-teal); box-shadow: 0 0 0 2px rgba(12, 192, 174, 0.28), var(--roeia-shadow-md); }
.roeia-plan-badge {
	position: absolute;
	top: 16px;
	inset-inline-start: 22px;
	background: var(--roeia-teal);
	color: var(--roeia-night);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.roeia-plan-name { font-size: 18px; font-weight: 700; color: var(--roeia-night); margin: 8px 0 0; }
.roeia-plan-price { display: flex; align-items: baseline; gap: 6px; }
.roeia-plan-price strong { font-size: 26px; font-weight: 700; color: var(--roeia-night); font-variant-numeric: tabular-nums; }
.roeia-plan-price span { color: var(--roeia-stone); font-size: 13px; }
.roeia-plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.roeia-plan-features li { display: flex; align-items: flex-start; gap: 8px; color: var(--roeia-stone); font-size: 13.5px; line-height: 1.6; }
.roeia-plan-features .dashicons { color: var(--roeia-teal-dark); font-size: 18px; width: 18px; height: 18px; flex: 0 0 auto; }
.roeia-plan-note { display: block; margin-top: 8px; font-size: 11.5px; color: var(--roeia-stone); text-align: center; }
.roeia-plan-card form button { width: 100%; justify-content: center; }

.roeia-btn--ghost {
	background: transparent;
	border: 1px solid var(--roeia-line-strong);
	color: var(--roeia-stone);
	justify-content: center;
	width: 100%;
}
.roeia-btn--ghost.is-disabled { cursor: default; opacity: 0.7; }

/* ============================================================
   قسم «الكوبونات» (المرحلة 5ب)
   ============================================================ */

.roeia-icon-btn {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--roeia-line);
	border-radius: 9px;
	background: #fff;
	color: var(--roeia-stone);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.roeia-icon-btn:hover { background: rgba(255, 107, 87, 0.10); color: var(--roeia-coral); border-color: rgba(255, 107, 87, 0.4); }
.roeia-icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.22); }

/* ============================================================
   قسم «التقييمات» في لوحة التاجر (المرحلة 6أ)
   ============================================================ */

.roeia-stars { display: inline-flex; align-items: center; color: #F5A623; line-height: 1; }
.roeia-stars .dashicons { font-size: 16px; width: 16px; height: 16px; }
.roeia-stars--lg .dashicons { font-size: 20px; width: 20px; height: 20px; }

.roeia-reviews-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.roeia-review { border-top: 1px solid var(--roeia-line); padding-top: 14px; }
.roeia-review:first-child { border-top: 0; padding-top: 0; }
.roeia-review-head { display: flex; align-items: center; gap: 10px; }
.roeia-review-author { font-weight: 700; color: var(--roeia-night); font-size: 13.5px; }
.roeia-review-body { margin: 5px 0 0; color: var(--roeia-stone); line-height: 1.8; font-size: 13.5px; }

/* ============================================================
   قسم «التقارير» في لوحة التاجر (المرحلة 6د)
   ============================================================ */

.roeia-periods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.roeia-period {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--roeia-line);
	background: #fff;
	color: var(--roeia-stone);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.roeia-period:hover,
.roeia-period:focus { border-color: var(--roeia-teal); color: var(--roeia-night); }
.roeia-period.is-active {
	background: var(--roeia-night);
	border-color: var(--roeia-night);
	color: #fff;
}

.roeia-otable--reports th { text-align: start; color: var(--roeia-stone); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--roeia-line); }
.roeia-reports-empty { color: var(--roeia-mist); text-align: center; padding: 26px 0; margin: 0; }
