/* ==========================================================
   صفحة «إدارة الأملاك» — تُحمَّل بعد aq.css
   مبنية على PageLab (landing: bento + steps) وHeroLab (split hero)
   ========================================================== */

/* ---------- الهيرو: نص بجانب صورة وعليها كشف المالك ---------- */
.mg-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 104px); }
.mg-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 90% at 85% 10%, rgba(var(--brand-rgb), .6), transparent 70%); pointer-events: none; }
.mg-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.mg-copy .crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.1rem; color: #aab4d2; font-size: 15px; }
.mg-copy .crumbs li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .6; }
.mg-copy .crumbs a { color: inherit; text-decoration: none; } .mg-copy .crumbs a:hover { color: #fff; text-decoration: underline; }
.mg-copy .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.mg-copy .eyebrow i { color: var(--accent); }
.mg-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.25; margin: 1rem 0 .9rem; text-wrap: balance; }
.mg-hero h1 em { font-style: normal; color: var(--accent); }
.mg-lead { color: #c9d0e6; font-size: clamp(17px, 1.5vw, 21px); margin: 0; }
.mg-acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.mg-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.mg-live li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); min-width: 0; }
.mg-live li > i { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--accent-rgb), .16); color: var(--accent); font-size: 1.2rem; }
.mg-live li > span { display: grid; line-height: 1.3; min-width: 0; }
.mg-live b { font-size: 26px; font-weight: 800; color: #fff; }
.mg-live li > span > small { color: #c3cbe3; font-weight: 600; }

.mg-art { position: relative; min-height: clamp(380px, 40vw, 560px); }
.mg-photo { position: absolute; inset-block: 0; inset-inline: 18% 0; border-radius: 36px 36px 120px 36px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.mg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-stmt { position: absolute; z-index: 2; inset-block-end: 8%; inset-inline-start: 0; width: min(360px, 74%); padding: 18px 20px 16px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.mg-stmt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.mg-stmt-h > div { display: grid; line-height: 1.35; }
.mg-stmt-h small { color: var(--muted); font-weight: 600; }
.mg-stmt-h b { font-size: 19px; }
.mg-tag { flex: 0 0 auto; padding: .1rem .7rem; border-radius: 999px; background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); font-size: 15px; font-weight: 700; }
.mg-stmt dl { margin: .5rem 0 0; display: grid; }
.mg-stmt dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mg-stmt dt { font-weight: 600; color: var(--muted); }
.mg-stmt dd { margin: 0; font-weight: 700; white-space: nowrap; }
.mg-stmt dd.out { color: var(--danger); }
.mg-stmt dl > .tot { border: 0; padding-top: .6rem; }
.mg-stmt .tot dt { color: var(--ink); font-weight: 800; font-size: 17px; }
.mg-stmt .tot dd { color: var(--ok); font-size: 21px; font-weight: 800; }
.mg-stmt-f { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; padding: .55rem .8rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 15px; font-weight: 700; }

/* ---------- ما نقدّمه: bento ---------- */
.mg-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mg-bt { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .5rem; padding: clamp(20px, 2.2vw, 30px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.mg-bt h3 { font-size: 21px; margin: 0; }
.mg-bt p { margin: 0; color: var(--muted); }
.mg-bt > .ico { width: 54px; height: 54px; font-size: 1.45rem; border-radius: 16px; margin-bottom: .3rem; }
.mg-bt-a { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, rgba(var(--brand-rgb), .09), transparent 60%), var(--surface); }
.mg-bt-b, .mg-bt-c, .mg-bt-d, .mg-bt-e, .mg-bt-f { grid-column: span 2; }
.mg-bt-e { background: var(--navy); border-color: transparent; }
.mg-bt-e h3 { color: #fff; } .mg-bt-e p { color: #c3cbe3; }

/* تحصيل الشهر الحالي */
.mg-month { margin-top: 1.4rem; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mg-month-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.mg-month-h > b { font-size: 18px; }
.mg-month-h > span { color: var(--muted); font-weight: 700; }
.mg-bar { height: 12px; margin: .8rem 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mg-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), rgba(var(--brand-rgb), .7)); }
.mg-month-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.2rem; font-size: 15px; font-weight: 600; color: var(--muted); }
.mg-month-f > span > i { color: var(--ok); margin-inline-end: .3rem; }
.mg-month-f > span:last-child > i { color: var(--brand-ink); }

/* جدول الدفعات */
.mg-sched { margin-top: auto; padding-top: 1.4rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mg-sched > div { display: grid; gap: .15rem; padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.mg-sched > div > b { font-size: 16px; }
.mg-sched > div > .num { font-weight: 700; color: var(--muted); font-size: 15px; }
.mg-sched > div > em { font-style: normal; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; }
.mg-sched .paid > em { color: var(--ok); }
.mg-sched .due { border-color: rgba(var(--brand-rgb), .45); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .1); }
.mg-sched .due > em { color: var(--brand-ink); }
.mg-sched .next { opacity: .55; border-style: dashed; }

/* موافقة صيانة */
.mg-ask { margin-top: auto; padding-top: 1rem; display: grid; gap: 10px; }
.mg-ask > div:first-child { display: flex; align-items: center; gap: .7rem; padding: 12px; border-radius: 16px; background: var(--warn-bg, #f7f5fd); }
.mg-ask > div:first-child > i { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--warn, #5f4aa6); font-size: 1.15rem; }
.mg-ask > div:first-child > span { display: grid; line-height: 1.4; min-width: 0; }
.mg-ask > div:first-child small { color: var(--muted); font-weight: 600; }
.mg-ask-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-ask-b > span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.mg-ask-b > .ok { background: var(--ink); color: var(--surface); border-color: transparent; }

/* سلسلة التأجير */
.mg-chain { margin: auto 0 0; padding: 1rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: c; }
.mg-chain li { counter-increment: c; position: relative; display: grid; justify-items: center; gap: .3rem; font-size: 15px; font-weight: 700; }
.mg-chain li::before { content: counter(c); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-weight: 800; position: relative; z-index: 1; }
.mg-chain li:last-child::before { background: var(--ink); color: var(--surface); }
.mg-chain li:not(:last-child)::after { content: ""; position: absolute; top: 18px; inset-inline-start: 50%; width: 100%; border-top: 2px dashed rgba(var(--brand-rgb), .3); }

/* تنبيه التجديد */
.mg-renew { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .7rem; font-size: 15px; font-weight: 600; }
.mg-renew > i { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.2rem; }
.mg-renew b { color: var(--brand-ink); font-size: 17px; }

/* صيانة دورية */
.mg-chips { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chips > span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.mg-chips > span > i { color: var(--brand-ink); }
.mg-bt-e .mg-chips > span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.mg-bt-e .mg-chips > span > i { color: var(--accent); }
.mg-under { margin-top: auto; padding-top: 1rem; }

/* ---------- كيف نعمل: خط أفقي ---------- */
.mg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.mg-steps > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.mg-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: .6rem; background: var(--navy); color: var(--accent); font-size: 24px; font-weight: 800; }
.mg-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 54px; inset-inline-end: calc(-1 * clamp(16px, 2vw, 28px)); width: clamp(16px, 2vw, 28px); border-top: 2px dashed rgba(var(--brand-rgb), .4); }
.mg-steps h3 { font-size: 20px; margin: 0; }
.mg-steps p { color: var(--muted); margin: 0; }
.mg-steps .tag { margin-top: auto; }
.mg-steps p + .tag { margin-top: .8rem; }

/* ---------- الحاسبة ---------- */
.mg-calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mg-calc-copy h2 { font-size: clamp(28px, 3vw, 42px); margin: 1rem 0 .6rem; }
.mg-ticks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.mg-ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.mg-ticks li::before { content: "\F26E"; font-family: "bootstrap-icons"; flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; margin-top: .2rem; border-radius: 50%; background: rgba(var(--brand-rgb), .12); color: var(--brand-ink); font-size: 1rem; }
.mg-calc-box { padding: clamp(20px, 2.6vw, 34px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mg-range { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.mg-range > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; }
.mg-range output { font-size: 22px; font-weight: 800; color: var(--brand-ink); white-space: nowrap; }
.mg-range input[type="range"] { width: 100%; height: 44px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.mg-ends { display: flex; justify-content: space-between; direction: ltr; color: var(--muted); font-size: 15px; font-weight: 600; margin-top: -.4rem; }
.mg-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mg-res > div { display: grid; gap: .1rem; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.mg-res small { color: var(--muted); font-weight: 600; }
.mg-res b { font-size: 21px; font-weight: 800; }
.mg-res > .big { grid-column: 1 / -1; background: var(--navy); }
.mg-res > .big small { color: #c3cbe3; }
.mg-res > .big b { color: var(--accent); font-size: clamp(26px, 3vw, 36px); }
.mg-note { margin: .9rem 0 0; color: var(--muted); font-size: 15px; }

/* ---------- الأسئلة + بطاقة التواصل ---------- */
.mg-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.mg-faq > div > .st { margin-bottom: 1.4rem; }
.mg-cta { position: sticky; top: calc(var(--hdr, 80px) + 20px); padding: clamp(22px, 2.6vw, 34px); border-radius: 28px; background: var(--navy); color: #c3cbe3; overflow: hidden; }
.mg-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 100% 0%, rgba(var(--brand-rgb), .7), transparent 70%); pointer-events: none; }
.mg-cta > * { position: relative; }
.mg-cta h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); }
.mg-cta p { margin: 0 0 1.4rem; }
.mg-cta-ch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mg-cta-ch a { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; text-decoration: none; }
.mg-cta-ch a:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- خدمات أخرى ---------- */
.mg-more { padding-top: clamp(40px, 5vw, 72px); }
.mg-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mg-oth { display: flex; align-items: flex-start; gap: 1rem; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); min-width: 0; }
.mg-oth:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.mg-oth > .ico { flex: 0 0 auto; width: 52px; height: 52px; font-size: 1.35rem; border-radius: 16px; }
.mg-oth > span:not(.ico) { display: grid; gap: .25rem; min-width: 0; }
.mg-oth b { font-size: 18px; }
.mg-oth small { color: var(--muted); line-height: 1.7; }
.mg-oth > .go { flex: 0 0 auto; margin-inline-start: auto; align-self: center; color: var(--brand-ink); font-size: 1.2rem; }

/* ---------- أجزاء خاصة بكل خدمة ---------- */
/* بطاقة الهيرو: صورة العقار وزر */
.mg-card-img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 16px; margin-top: .8rem; }
.mg-card-btn { margin-top: .7rem; background: var(--navy); color: #fff; }
.mg-card-btn:hover { color: #fff; filter: brightness(1.15); }
.mg-stmt .mg-stmt-h b { overflow-wrap: anywhere; }

/* شرطات مقارنة (مشاهدات ← عروض) */
.mg-funnel { display: grid; gap: 8px; margin-top: .9rem; }
.mg-funnel > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.mg-funnel .lb { color: var(--muted); }
.mg-funnel .br { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mg-funnel .br > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), rgba(var(--brand-rgb), .65)); }
.mg-funnel > div > b { text-align: end; }
.mg-funnel > small { color: var(--muted); }

/* بنود بأيقونة */
.mg-docs { margin-top: auto; padding-top: 1rem; display: grid; gap: 8px; }
.mg-docs > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.mg-docs > div > i { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--brand-ink); font-size: 1.1rem; }
.mg-docs > div > b { font-size: 15px; line-height: 1.4; }
.mg-docs > div > span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* رمز QR في بطاقة التقرير */
.mg-qr { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; padding: .6rem .8rem; border-radius: 14px; background: var(--surface-2); }
.mg-qr > i { font-size: 2.4rem; line-height: 1; color: var(--ink); }
.mg-qr > span { display: grid; line-height: 1.4; }
.mg-qr small { color: var(--muted); font-weight: 600; }

/* جدول المقارنات */
.mg-tbl { width: 100%; margin: .7rem 0; border-collapse: collapse; font-size: 15px; }
.mg-tbl th { text-align: start; color: var(--muted); font-weight: 600; padding: .35rem .3rem; border-bottom: 1px solid var(--line); }
.mg-tbl td { padding: .45rem .3rem; border-bottom: 1px dashed var(--line); font-weight: 600; }
.mg-tbl td.num { display: table-cell; font-weight: 700; }
.mg-tbl tr:last-child td { border-bottom: 0; }

/* مؤشر السعر العادل */
.mg-range-art { margin-top: auto; padding-top: 1.2rem; }
.mg-range-art .tr { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--brand-rgb), .12), rgba(var(--brand-rgb), .5), rgba(var(--brand-rgb), .12)); }
.mg-range-art .tr > i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); border: 4px solid var(--surface); box-shadow: var(--shadow); transform: translate(50%, -50%); }
.mg-range-art .lb { display: flex; justify-content: space-between; margin-top: .6rem; color: var(--muted); font-size: 15px; font-weight: 600; }
.mg-range-art .lb b { color: var(--ink); }

/* مراحل المشروع */
.mg-stage { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mg-stage li { display: grid; place-items: center; min-height: 40px; padding: 0 .3rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 15px; font-weight: 700; text-align: center; }
.mg-stage li.done { background: var(--ok-bg); color: var(--ok); }
.mg-stage li.now { background: var(--navy); color: #fff; }

/* لوحة مهام مصغّرة */
.mg-kan { margin-top: auto; padding-top: 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mg-kan > div { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.mg-kan > div > b { font-size: 15px; color: var(--muted); }
.mg-kan > div > span { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 600; border-inline-start: 3px solid var(--line); }
.mg-kan > div > span.dn { border-inline-start-color: var(--ok); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.mg-kan > div > span.nw { border-inline-start-color: var(--brand); background: rgba(var(--brand-rgb), .08); }

/* عرض سعر مصغّر */
.mg-quote { margin-top: auto; padding-top: .6rem; }
.mg-quote dl { margin: 0; display: grid; }
.mg-quote dl > div { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mg-quote dt { color: var(--muted); font-weight: 600; }
.mg-quote dd { margin: 0; font-weight: 700; white-space: nowrap; }
.mg-quote .tot { border: 0; } .mg-quote .tot dt { color: var(--ink); font-weight: 800; } .mg-quote .tot dd { color: var(--brand-ink); font-size: 17px; }

/* اختيار نوع الاستشارة */
.mg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mg-more-link { margin-top: clamp(20px, 2.4vw, 32px); display: flex; justify-content: center; }
.mg-more-link .btx { background: var(--navy); color: #fff; }
.mg-verify-btn { margin-top: 1rem; background: var(--navy); color: #fff; }
.mg-verify-btn:hover { color: #fff; filter: brightness(1.15); }
.mg-calc-box .fm-field { display: grid; gap: .4rem; }

/* ---------- الشاشات ---------- */
@media (max-width: 1199.98px) {
  .mg-bt-a { grid-column: span 6; grid-row: auto; }
  .mg-bt-b, .mg-bt-c, .mg-bt-d, .mg-bt-e, .mg-bt-f { grid-column: span 3; }
  .mg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-steps > li::after { display: none; }
}
@media (max-width: 991.98px) {
  .mg-hero-in, .mg-calc, .mg-faq { grid-template-columns: minmax(0, 1fr); }
  .mg-art { min-height: 400px; }
  .mg-cta { position: static; order: 2; }
  .mg-others, .mg-pick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .mg-bt-b, .mg-bt-c, .mg-bt-d, .mg-bt-e, .mg-bt-f { grid-column: span 6; }
  .mg-sched { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mg-live { gap: 8px; }
  .mg-live li { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem .75rem; }
  .mg-live li > i { width: 36px; height: 36px; font-size: 1rem; border-radius: 11px; }
  .mg-live b { font-size: 22px; }
}
@media (max-width: 575.98px) {
  .mg-steps { grid-template-columns: minmax(0, 1fr); }
  .mg-art { min-height: 0; display: grid; }
  .mg-photo { position: relative; inset: auto; height: 260px; border-radius: 28px 28px 80px 28px; }
  .mg-stmt { position: relative; inset: auto; width: auto; margin: -70px 14px 0; }
  .mg-res { grid-template-columns: minmax(0, 1fr); }
  .mg-kan { grid-template-columns: minmax(0, 1fr); }
  .mg-funnel > div { grid-template-columns: 72px minmax(0, 1fr) 48px; }
}
@media (prefers-reduced-motion: reduce) { .mg-oth, .mg-oth:hover { transition: none; transform: none; } }

/* تعديلات بعد المراجعة */
.mg-card-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; color: var(--muted); font-size: 15px; font-weight: 600; }
.mg-card-meta > span > i { margin-inline-end: .3rem; color: var(--brand-ink); }
.mg-card-img { height: 110px; }
.mg-tbl th:not(:first-child), .mg-tbl td:not(:first-child) { text-align: center; }
@media (max-width: 1199.98px) {
  .mg-live { gap: 8px; }
  .mg-live li { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem .75rem; }
  .mg-live li > i { width: 36px; height: 36px; font-size: 1rem; border-radius: 11px; }
  .mg-live b { font-size: 22px; }
}
@media (max-width: 575.98px) { .mg-sched > div { padding: 12px 6px; } .mg-sched > div > em { gap: .15rem; } }
