/* ============================================================
   Mobile Specs — واجهة أمامية (RTL)
   ألوان هوية Qayimli:
     أزرق غامق #0C5DA5 | أزرق سماوي #29ABE2 | ذهبي #F5A623 | أخضر #34B233
   ============================================================ */

.msp-single, .msp-compare, .msp-specs-table, .msp-reviews {
	font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
	color: #2c3e50;
	line-height: 1.8;
}

.msp-single-inner { max-width: 1000px; margin: 0 auto; padding: 20px 15px; }

/* ---------- التبويبات ---------- */
.msp-tabs {
	display: flex; flex-wrap: wrap; gap: 6px;
	border-bottom: 2px solid #e6e9ee;
	margin-bottom: 25px;
}
.msp-tab {
	padding: 10px 18px; border-radius: 6px 6px 0 0;
	text-decoration: none; color: #5a6a7a; font-weight: 600;
	background: #f3f5f8; transition: .2s;
}
.msp-tab:hover { background: #e9edf2; }
.msp-tab.active { background: #0C5DA5; color: #fff; }
.msp-tab-content { display: none; animation: mspFade .3s; }
.msp-tab-content.active { display: block; }
@keyframes mspFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- الهيرو (الكتلة العلوية الثابتة) ---------- */
.msp-hero {
	display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px;
	align-items: center; margin-bottom: 28px;
	padding-bottom: 28px; border-bottom: 1px solid #e6e9ee;
}
.msp-title { font-size: 26px; font-weight: 700; margin: 0 0 18px; color: #1f2d3d; text-align: right; }
.msp-hero-image { text-align: center; }
.msp-hero-image img { max-width: 100%; height: auto; border-radius: 10px; }

.msp-compare-btn {
	display: inline-block; margin-top: 15px; padding: 8px 18px;
	background: #29ABE2; color: #fff; border-radius: 6px;
	text-decoration: none; font-weight: 600; font-size: 14px;
}
.msp-compare-btn:hover { background: #1C7FB0; }

/* المواصفات السريعة — شريط أزرق + مربع أيقونة أحمر (زي mobizil) */
.msp-quick-specs { display: flex; flex-direction: column; gap: 9px; }
.msp-quick-row {
	display: flex; align-items: stretch; gap: 0;
	background: #0C5DA5; color: #fff; border-radius: 6px; overflow: hidden;
}
.msp-quick-icon {
	background: #F5A623; flex-shrink: 0;
	width: 48px; display: flex; align-items: center; justify-content: center;
	font-size: 20px; line-height: 1;
}
.msp-quick-text { padding: 11px 15px; font-size: 14px; align-self: center; }
.msp-quick-text strong { color: #fff; font-weight: 700; }

.msp-review-text { background: #fafbfc; padding: 20px; border-radius: 10px; border: 1px solid #eef1f4; }
.msp-review-text h2 { font-size: 20px; color: #0C5DA5; margin-top: 0; }

/* ---------- جدول المواصفات ---------- */
.msp-spec-group { margin-bottom: 18px; border: 1px solid #e6e9ee; border-radius: 10px; overflow: hidden; }
.msp-spec-head {
	background: linear-gradient(135deg, #0C5DA5 0%, #29ABE2 100%); color: #fff; padding: 12px 18px;
	font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.msp-spec-icon { font-size: 18px; }
.msp-spec-group table { width: 100%; border-collapse: collapse; }
.msp-spec-group td { padding: 11px 18px; font-size: 14px; }
.msp-spec-key { color: #1f2d3d; font-weight: 600; width: 35%; text-align: right; }
.msp-spec-val { color: #4a5a6a; }
.msp-spec-group tr.msp-even { background: #f7f9fb; }
.msp-spec-group tr.msp-odd  { background: #fff; }

.msp-yes { color: #34B233; font-weight: 700; }
.msp-no  { color: #0C5DA5; font-weight: 700; }

/* ---------- المعرض ---------- */
.msp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.msp-gallery-link { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e6e9ee; }
.msp-gallery-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .3s; }
.msp-gallery-link:hover img { transform: scale(1.05); }

/* ---------- التقييمات ---------- */
.msp-rating-summary {
	display: flex; align-items: center; gap: 20px;
	background: #f7f9fb; padding: 20px; border-radius: 10px; margin-bottom: 18px;
}
.msp-rating-overall {
	background: #0C5DA5; color: #fff; width: 80px; height: 80px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.msp-rating-number { font-size: 28px; font-weight: 700; line-height: 1; }
.msp-rating-outof { font-size: 12px; opacity: .8; }
.msp-rating-meta h3 { margin: 0 0 4px; font-size: 18px; }
.msp-rating-meta p { margin: 0; color: #7a8a9a; font-size: 13px; }

.msp-rating-aspects { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 25px; }
.msp-aspect { background: #fff; border: 1px solid #e6e9ee; border-radius: 8px; padding: 12px; }
.msp-aspect-label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.msp-aspect-bar { background: #e6e9ee; border-radius: 20px; height: 6px; overflow: hidden; }
.msp-aspect-bar span { display: block; height: 100%; background: #F5A623; border-radius: 20px; }
.msp-aspect-val { font-size: 12px; color: #7a8a9a; }

.msp-reviews-list { margin: 20px 0; }
.msp-review-item { border: 1px solid #e6e9ee; border-radius: 10px; padding: 16px; margin-bottom: 12px; background: #fff; }
.msp-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.msp-review-head strong { font-size: 15px; }
.msp-review-date { color: #9aa7b4; font-size: 12px; }
.msp-review-score { margin-right: auto; background: #0C5DA5; color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.msp-review-body { margin: 6px 0; color: #4a5a6a; }
.msp-review-aspects { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #7a8a9a; }
.msp-review-aspects b { color: #F5A623; }

/* فورم التقييم */
.msp-review-form-wrap { background: #f7f9fb; border-radius: 10px; padding: 22px; margin-top: 25px; }
.msp-review-form-wrap h3 { text-align: center; margin: 0 0 4px; }
.msp-form-sub { text-align: center; color: #9aa7b4; margin: 0 0 18px; }
.msp-field { margin-bottom: 14px; }
.msp-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.msp-field label span { color: #0C5DA5; }
.msp-field input, .msp-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #d4dae0; border-radius: 8px;
	font-family: inherit; font-size: 14px; box-sizing: border-box; direction: rtl;
}
.msp-sliders-title { text-align: center; font-weight: 700; margin: 20px 0 14px; }
.msp-slider-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.msp-slider-row label { width: 80px; font-weight: 600; font-size: 14px; }
.msp-slider-row input[type=range] { flex: 1; accent-color: #29ABE2; }
.msp-slider-val {
	background: #29ABE2; color: #fff; min-width: 34px; text-align: center;
	border-radius: 6px; padding: 4px 6px; font-weight: 700; font-size: 13px;
}
.msp-submit-btn {
	display: block; width: 100%; margin-top: 18px; padding: 12px;
	background: #0C5DA5; color: #fff; border: 0; border-radius: 8px;
	font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s;
}
.msp-submit-btn:hover { background: #094B85; }
.msp-form-msg { margin-top: 12px; text-align: center; font-weight: 600; }
.msp-form-msg.ok { color: #34B233; }
.msp-form-msg.err { color: #0C5DA5; }

/* ---------- المقارنة ---------- */
.msp-compare { max-width: 1000px; margin: 0 auto; padding: 20px 15px; }
.msp-compare-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.msp-compare-select { padding: 10px; border: 1px solid #d4dae0; border-radius: 8px; font-family: inherit; font-size: 14px; }
.msp-compare-hint { text-align: center; color: #9aa7b4; padding: 30px; }
.msp-compare-table { width: 100%; border-collapse: collapse; }
.msp-compare-table th, .msp-compare-table td { border: 1px solid #e6e9ee; padding: 10px; text-align: center; font-size: 14px; }
.msp-compare-table thead th { background: linear-gradient(135deg, #0C5DA5 0%, #29ABE2 100%); color: #fff; }
.msp-compare-table thead img { max-width: 110px; height: auto; display: block; margin: 0 auto 8px; }
.msp-compare-table thead a { color: #fff; text-decoration: none; font-weight: 700; }
.msp-compare-group td { background: #0C5DA5; color: #fff; font-weight: 700; text-align: right; }
.msp-compare-label { background: #f7f9fb; font-weight: 600; text-align: right !important; }
.msp-compare-table tr.msp-diff td { background: #fff8e6; }

/* ---------- موبايل ---------- */
@media (max-width: 768px) {
	.msp-hero { grid-template-columns: 1fr; }
	.msp-compare-selects { grid-template-columns: 1fr; }
	.msp-spec-key { width: 45%; }
	.msp-tab { padding: 8px 12px; font-size: 13px; }
}

/* ---------- الأسئلة الشائعة (FAQ) ---------- */
.msp-faq { margin-top: 26px; }
.msp-faq > h2 { font-size: 20px; color: #0C5DA5; margin-bottom: 14px; }
.msp-faq-item { border: 1px solid #e6e9ee; border-radius: 8px; margin-bottom: 8px; overflow: hidden; background: #fff; }
.msp-faq-q {
	width: 100%; text-align: right; background: #f7f9fb; border: 0; cursor: pointer;
	padding: 14px 16px; font-family: inherit; font-size: 15px; font-weight: 600; color: #1f2d3d;
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.msp-faq-q span { color: #0C5DA5; font-size: 20px; font-weight: 700; flex-shrink: 0; transition: .2s; }
.msp-faq-q.open span { transform: rotate(45deg); }
.msp-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.msp-faq-a p { padding: 0 16px 14px; margin: 0; color: #4a5a6a; line-height: 1.9; }

/* ---------- هواتف ذات صلة ---------- */
.msp-related { max-width: 1000px; margin: 30px auto 0; padding: 24px 15px 0; border-top: 2px solid #e6e9ee; }
.msp-related-title { font-size: 20px; color: #0C5DA5; margin: 18px 0 14px; }
.msp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.msp-related-card {
	display: flex; flex-direction: column; text-decoration: none; color: #1f2d3d;
	border: 1px solid #e6e9ee; border-radius: 10px; padding: 10px; transition: .2s; background: #fff;
}
.msp-related-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.msp-related-img { text-align: center; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.msp-related-img img { max-width: 100%; height: auto; border-radius: 6px; }
.msp-related-name { font-size: 13px; font-weight: 600; margin-top: 8px; text-align: center; line-height: 1.6; }

/* ---------- الأفضل في المقارنة ---------- */
.msp-compare-table td.msp-win { background: #eafaf1 !important; font-weight: 700; }
.msp-trophy { font-size: 15px; }

/* ---------- صفحة الأرشيف + الفلترة ---------- */
.msp-archive-inner { max-width: 1100px; margin: 0 auto; padding: 20px 15px; }
.msp-archive-title { font-size: 24px; color: #1f2d3d; margin-bottom: 20px; }
.msp-archive { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.msp-archive-sidebar { position: sticky; top: 20px; }
.msp-filter-form { background: #f7f9fb; border: 1px solid #e6e9ee; border-radius: 10px; padding: 18px; }
.msp-filter-form h3 { margin: 0 0 14px; font-size: 17px; color: #0C5DA5; }
.msp-filter-row { margin-bottom: 12px; }
.msp-filter-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.msp-filter-row input, .msp-filter-row select {
	width: 100%; padding: 8px 10px; border: 1px solid #d4dae0; border-radius: 6px;
	font-family: inherit; font-size: 14px; box-sizing: border-box;
}
.msp-filter-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; cursor: pointer; }
.msp-filter-btn { width: 100%; margin-top: 12px; padding: 10px; background: #0C5DA5; color: #fff; border: 0; border-radius: 8px; font-family: inherit; font-weight: 700; cursor: pointer; }
.msp-filter-btn:hover { background: #094B85; }
.msp-filter-reset { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: #7a8a9a; }

.msp-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.msp-archive-card {
	display: flex; flex-direction: column; text-decoration: none; color: #1f2d3d;
	border: 1px solid #e6e9ee; border-radius: 10px; padding: 12px; background: #fff; transition: .2s;
}
.msp-archive-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-3px); }
.msp-archive-img { text-align: center; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.msp-archive-img img { max-width: 100%; height: auto; border-radius: 6px; }
.msp-archive-name { font-weight: 700; font-size: 14px; margin-top: 10px; text-align: center; }
.msp-archive-mini { font-size: 12px; color: #7a8a9a; text-align: center; margin-top: 4px; }
.msp-archive-price { color: #0C5DA5; font-weight: 700; text-align: center; margin-top: 6px; }
.msp-no-results { text-align: center; padding: 40px; color: #9aa7b4; }

/* ---------- ويدجت المقارنة العائم ---------- */
.msp-float-compare { position: fixed; bottom: 20px; left: 20px; z-index: 9998; font-family: "Tajawal","Cairo",sans-serif; }
.msp-float-toggle {
	background: #29ABE2; color: #fff; border: 0; border-radius: 30px; padding: 12px 20px;
	font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.msp-float-toggle:hover { background: #1C7FB0; }
.msp-float-panel {
	display: none; position: absolute; bottom: 56px; left: 0; width: 250px;
	background: #fff; border: 1px solid #e6e9ee; border-radius: 12px; padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.msp-float-compare.open .msp-float-panel { display: block; }
.msp-float-panel h4 { margin: 0 0 12px; font-size: 15px; color: #0C5DA5; }
.msp-float-panel select { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #d4dae0; border-radius: 6px; font-family: inherit; font-size: 13px; }
.msp-float-go { width: 100%; padding: 10px; background: #0C5DA5; color: #fff; border: 0; border-radius: 8px; font-family: inherit; font-weight: 700; cursor: pointer; }
.msp-float-go:hover { background: #094B85; }

@media (max-width: 768px) {
	.msp-archive { grid-template-columns: 1fr; }
	.msp-archive-sidebar { position: static; }
}

/* ---------- شبكة الماركات بالصور ---------- */
.msp-brands-grid {
	display: grid; grid-template-columns: repeat(var(--msp-cols, 4), 1fr); gap: 16px;
	max-width: 1000px; margin: 0 auto; padding: 10px 0;
}
.msp-brand-card {
	display: flex; flex-direction: column; align-items: center; text-decoration: none;
	border: 1px solid #e6e9ee; border-radius: 12px; padding: 18px 12px; background: #fff; transition: .2s;
}
.msp-brand-card:hover { box-shadow: 0 6px 18px rgba(12,93,165,.12); transform: translateY(-3px); border-color: #29ABE2; }
.msp-brand-img { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.msp-brand-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.msp-brand-noimg {
	width: 70px; height: 70px; border-radius: 50%;
	background: linear-gradient(135deg, #0C5DA5, #29ABE2); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.msp-brand-name { font-weight: 700; font-size: 15px; color: #1f2d3d; }
.msp-brand-count { font-size: 12px; color: #7a8a9a; margin-top: 3px; }

@media (max-width: 768px) {
	.msp-brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- [phones_by] ---------- */
.msp-by { max-width: 1000px; margin: 0 auto; padding: 10px 0; }
.msp-by-title { font-size: 20px; color: #0C5DA5; margin: 0 0 16px; padding-right: 12px; border-right: 4px solid #F5A623; }
.msp-by-grid { grid-template-columns: repeat(var(--msp-cols, 4), 1fr); }
@media (max-width: 768px) { .msp-by-grid { grid-template-columns: repeat(2, 1fr); } }
