/* المفضلة */
.rn-fav { position: absolute; top: 10px; left: 10px; z-index: 4; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(14, 36, 51, .18); cursor: pointer; transition: transform .15s, background .2s; }
.rn-fav:hover { transform: scale(1.08); }
.rn-fav:focus-visible { outline: 3px solid #ffd79a; outline-offset: 2px; }
.rn-fav svg { flex: none; width: 21px; height: 21px; fill: none; stroke: #6b7c8a; stroke-width: 2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.rn-fav.on svg { fill: #e0245e; stroke: #e0245e; }
.rn-fav.on { animation: rnFavPop .3s ease; }
@keyframes rnFavPop { 50% { transform: scale(1.22); } }
.rn-fav.rn-fav-sm { width: 32px; height: 32px; top: 8px; left: 8px; }
.rn-fav.rn-fav-sm svg { width: 18px; height: 18px; }
.rn-fav.rn-fav-inline { position: static; flex: none; box-shadow: none; border: 1px solid #dbe5ec; }

/* رسالة خفيفة */
.rn-toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); z-index: 99999; background: #0e2433; color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; direction: rtl; }
.rn-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* نافذة الزائر */
.rn-fmodal { position: fixed; inset: 0; z-index: 99998; background: rgba(14, 36, 51, .55); display: grid; place-items: center; padding: 16px; direction: rtl; animation: rnFade .2s ease; }
@keyframes rnFade { from { opacity: 0; } }
.rn-fm-box { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); color: #0e2433; }
.rn-fm-x { position: absolute; top: 10px; left: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #6b7c8a; }
.rn-fm-ic { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fdeaf0; margin-bottom: 8px; }
.rn-fm-ic svg { width: 30px; height: 30px; fill: #e0245e; }
.rn-fm-box h3 { margin: 0 0 8px; font-size: 19px; }
.rn-fm-box p { margin: 0 0 14px; color: #4b6070; line-height: 1.8; }
.rn-fm-btn { display: block; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #0a6fa8; color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.rn-fm-btn:hover { background: #08557f; }
.rn-fm-btn[disabled] { opacity: .6; }
.rn-fm-alt { margin: 12px 0 0 !important; font-size: 14px; }
.rn-fm-link { border: 0; background: none; color: #0a6fa8; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.rn-fm-login input { display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 11px 14px; border: 1px solid #cfdbe5; border-radius: 12px; font: inherit; }
.rn-fm-login input:focus { border-color: #0a6fa8; outline: none; box-shadow: 0 0 0 3px rgba(10, 111, 168, .15); }
.rn-fm-err { color: #b6401f !important; font-weight: 700; margin: 0 0 8px !important; min-height: 0; }
.rn-fm-err:empty { display: none; }

/* صفحة المفضلة */
.rn-fav-group { margin: 0 0 22px; }
.rn-fav-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.15rem; }
.rn-fav-h::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: #a8650f; }
.rn-fav-h small { color: #6b7c8a; font-weight: 400; font-size: .85rem; }
.rn-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rn-fav-card { position: relative; background: #fff; border: 1px solid #cfdde7; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(14, 36, 51, .05); }
.rn-fav-img { display: block; aspect-ratio: 4 / 3; background: #eef3f7; }
.rn-fav-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-fav-noimg { display: grid; place-items: center; height: 100%; font-size: 2rem; font-weight: 700; color: #9fb3c1; }
.rn-fav-b { display: grid; gap: 2px; padding: 10px 12px 12px; color: #0e2433; text-decoration: none; }
.rn-fav-b b { font-size: .98rem; }
.rn-fav-b small { color: #6b7c8a; }
.rn-fav-b em { font-style: normal; font-weight: 700; color: #a8650f; }
.rn-fav-card .rn-fav { width: 34px; height: 34px; top: 8px; left: 8px; }

/* القلب مع عدد المهتمين (الإعلانات) */
.rn-fav.rn-fav-num { width: auto; min-width: 38px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.rn-fav.rn-fav-num.rn-fav-sm { min-width: 32px; padding: 0 8px; }
.rn-fav-c { font-size: 13px; font-weight: 700; color: #4b6070; line-height: 1; font-family: inherit; }
.rn-fav.on .rn-fav-c { color: #e0245e; }

/* قلب بطاقة الإعلان: أصغر قليلاً */
.rn-uc-media .rn-fav { width: 33px; height: 33px; top: 8px; left: 8px; }
.rn-uc-media .rn-fav.rn-fav-num { width: auto; min-width: 33px; padding: 0 9px; gap: 4px; }
.rn-uc-media .rn-fav svg { width: 17px; height: 17px; }
.rn-uc-media .rn-fav-c { font-size: 12px; }
