:root {
  --green: #0f5f4e; --green-2: #137a64; --green-soft: #e7f4f0; --gold: #c9a227; --gold-2: #e0b93a;
  --ink: #16212b; --muted: #6b7785; --line: #e4e8ec; --bg: #f5f7f8; --card: #fff; --red: #d64545; --wa: #25d366;
  --radius: 14px; --shadow: 0 4px 18px rgba(16, 40, 50, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; margin: 0; font-family: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* الشريط العلوي */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--green); white-space: nowrap; }
.logo b { color: var(--gold); }
.logo-mark { background: var(--green-soft); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: #3a4652; font-size: 15px; }
.nav a:hover, .nav a.active { background: var(--green-soft); color: var(--green); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 17px; color: var(--red); }
.icon-btn .badge[hidden] { display: none; }
.icon-btn .badge { position: absolute; top: -6px; left: -6px; background: var(--red); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; color: var(--ink); }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; cursor: pointer; font-weight: 700; font-size: 13px; }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; background: var(--green); color: #fff; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--green-2); }
.btn-gold { background: var(--gold); color: #1b1300; }
.btn-gold:hover { background: var(--gold-2); }
.btn-wa { background: var(--wa); color: #fff; } .btn-wa:hover { background: #1fb457; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn-light:hover { background: #f1f4f5; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 14px; }

/* الواجهة الرئيسية */
.hero { background: linear-gradient(135deg, rgba(10, 60, 50, .92), rgba(15, 95, 78, .85)), radial-gradient(circle at 20% 20%, #1c8f74, #0b3d33); color: #fff; padding: 56px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--bg); border-radius: 50% 50% 0 0; z-index: 3; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); margin: 0 0 6px; line-height: 1.3; }
.hero p { opacity: .9; margin: 0 0 26px; font-size: 17px; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats b { font-size: 24px; color: var(--gold-2); display: block; }
.search-box { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); position: relative; z-index: 2; }
.tabs { display: inline-flex; background: #eef2f3; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.tabs button { border: 0; background: transparent; padding: 7px 20px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--green); color: #fff; }
.search-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; outline: none; min-height: 44px; }
.input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(19, 122, 100, .15); }
textarea.input { min-height: 120px; resize: vertical; }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head a { color: var(--green); font-weight: 700; }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.type-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; transition: .15s; }
.type-card:hover { border-color: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.type-card .ico { font-size: 30px; }
.type-card b { display: block; margin-top: 4px; }
.type-card small { color: var(--muted); }
/* الماركات: شرائح بالرئيسية مع عدد السيارات */
.makes { display: flex; flex-wrap: wrap; gap: 8px; }
.make-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; transition: .15s; }
.make-chip small { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.make-chip:hover { border-color: var(--green-2); color: var(--green); transform: translateY(-1px); }

.govs { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.gov-card { position: relative; border-radius: var(--radius); padding: 18px; color: #fff; min-height: 150px; background-size: cover; background-position: center; text-shadow: 0 1px 6px rgba(0,0,0,.5); display: flex; flex-direction: column; justify-content: end; overflow: hidden; box-shadow: var(--shadow); transition: .15s; }
.gov-card:hover { transform: translateY(-3px); }
.gov-card b { font-size: 19px; }
.gov-card small { opacity: .9; }
.gov-card .en { position: absolute; top: 10px; left: 14px; font-size: 12px; opacity: .6; letter-spacing: .5px; }

/* بطاقات العقارات */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .18s; border: 1px solid transparent; }
.card:hover { transform: translateY(-3px); border-color: #cfe5de; }
.card-img { position: relative; aspect-ratio: 16/10; background: #dfe7e5; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; right: 10px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tag.rent { background: #2563eb; }
.tag-feat { top: 40px; background: var(--gold); color: #1b1300; }
.card-actions { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; }
.round { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); cursor: pointer; display: grid; place-items: center; font-size: 15px; color: #8a96a3; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.round.on { color: var(--red); }
.round.cmp.on { color: var(--green); }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.price { font-size: 20px; font-weight: 800; color: var(--green); }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-title { font-weight: 700; font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loc { color: var(--muted); font-size: 14px; }
.specs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #43505c; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.card-foot { display: flex; gap: 8px; padding: 0 14px 14px; }
.card-foot .btn { flex: 1; padding: 8px; font-size: 14px; }
.list-view .grid { grid-template-columns: 1fr; }
.list-view .card { flex-direction: row; }
.list-view .card-img { width: 300px; flex: none; aspect-ratio: auto; min-height: 200px; }
.list-view .card-main { display: flex; flex-direction: column; flex: 1; }

/* صفحة البحث */
.search-page { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; padding: 24px 0 40px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; }
.filters h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.fgroup > b { font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 12px; font-size: 13.5px; cursor: pointer; }
.pill.on, .pill:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 14px; }
.checks label, .check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.area-list { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.area-list label { display: flex; justify-content: space-between; gap: 6px; cursor: pointer; }
.area-list label span:last-child { color: var(--muted); font-size: 12px; }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.results-bar h1 { font-size: 19px; margin: 0; }
.bar-tools { display: flex; gap: 8px; align-items: center; }
.view-toggle button { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.view-toggle button.on { background: var(--green-soft); border-color: var(--green-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--green-soft); color: var(--green); border-radius: 20px; padding: 3px 6px 3px 12px; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.chip button { border: 0; background: rgba(15, 95, 78, .15); color: var(--green); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.stats-strip { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.stats-strip b { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.pager button.on { background: var(--green); color: #fff; border-color: var(--green); }
.pager button:disabled { opacity: .4; cursor: default; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); }
.empty .big { font-size: 48px; }

/* تفاصيل العقار */
.details { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 24px 0 40px; align-items: start; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--green); }
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main { position: relative; aspect-ratio: 16/9; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 20px; }
.gal-nav.prev { right: 12px; } .gal-nav.next { left: 12px; }
.gal-count { position: absolute; bottom: 10px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 20px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 92px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--green); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: 16px; }
.panel h2, .panel h3 { margin: 0 0 12px; font-size: 19px; }
.d-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.d-head h1 { font-size: 23px; margin: 0 0 4px; }
.d-price { font-size: 28px; font-weight: 800; color: var(--green); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kv div { background: #f6f8f9; border-radius: 10px; padding: 10px 12px; }
.kv small { color: var(--muted); display: block; font-size: 12.5px; }
.kv b { font-size: 15px; }
.feat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-list span { background: var(--green-soft); color: var(--green); border-radius: 20px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.desc { white-space: pre-line; }
.contact-card { position: sticky; top: 82px; }
.contact-card .panel:first-child { margin-top: 0; }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.verified { color: #0a8f5a; font-size: 13px; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.phone-reveal { letter-spacing: 1px; direction: ltr; }
.ppm-bar { height: 8px; border-radius: 4px; background: #e5ecea; overflow: hidden; margin-top: 6px; }
.ppm-bar span { display: block; height: 100%; background: var(--green-2); }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef3f2; height: 260px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* النماذج */
.form-page { max-width: 900px; margin: 0 auto; padding: 24px 16px 50px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .two { grid-column: span 2; }
.req { color: var(--red); }
.uploader { display: block; border: 2px dashed #b9cdc7; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; background: #fbfdfc; }
.uploader:hover { border-color: var(--green-2); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.previews div { position: relative; }
.previews img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; }
.previews button { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.errors { background: #fdeeee; color: var(--red); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }

/* المكاتب */
.offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.office-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.office-top { display: flex; gap: 12px; align-items: center; }
.stars { color: var(--gold); font-size: 14px; }

/* المحافظات */
.gov-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.gov-block h3 { margin: 0 0 10px; display: flex; justify-content: space-between; }
.gov-block .pills a { border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; font-size: 13.5px; }
.gov-block .pills a:hover { border-color: var(--green-2); color: var(--green); }
.gov-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

/* المقارنة */
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cmp-table th { background: #f6f8f9; width: 160px; }
.cmp-table img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; }
.best { color: #0a8f5a; font-weight: 800; }

/* الفوتر */
.footer { background: #0c2d27; color: #d5e4df; margin-top: 30px; padding: 40px 0 20px; }
.footer .logo { color: #fff; } .footer .logo-mark { background: rgba(255, 255, 255, .1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a { display: block; padding: 3px 0; } .footer a:hover { color: var(--gold-2); }
.footer .muted { color: #93aca5; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 14px; font-size: 14px; text-align: center; }
.wa-float { position: fixed; bottom: 20px; left: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 20px rgba(37, 211, 102, .45); z-index: 60; }
.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%) translateY(120px); background: #16212b; color: #fff; padding: 10px 20px; border-radius: 10px; transition: .25s; z-index: 100; }
.toast.show { transform: translateX(50%) translateY(0); }
.loader { width: 44px; height: 44px; border: 4px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; margin: 80px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta { background: linear-gradient(135deg, var(--green), #0b4a3d); color: #fff; border-radius: 18px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 4px; }

/* الموبايل */
@media (max-width: 1080px) {
  .search-grid { grid-template-columns: 1fr 1fr 1fr; }
  .search-grid .grow { grid-column: 1 / -1; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: static; }
}
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 66px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .top-actions { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 66px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .search-page { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: fixed; inset: 0; z-index: 80; max-height: none; border-radius: 0; top: 0; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-view .card { flex-direction: column; }
  .list-view .card-img { width: 100%; min-height: 0; aspect-ratio: 16/10; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .cmp-link { display: none; }
}
@media (max-width: 600px) {
  .topbar-in { gap: 8px; }
  .logo { font-size: 18px; } .logo-mark { width: 32px; height: 32px; }
  .top-actions .btn-gold { padding: 8px 10px; font-size: 13px; }
  #currencyBtn { display: none; }
  #authLink { padding: 0; width: 40px; height: 40px; display: grid; place-items: center; }
  .top-actions .lbl { display: none; }
  .top-actions .btn-gold { width: 40px; height: 40px; padding: 0; font-size: 20px; }
  .topbar-in { min-width: 0; }
  .top-actions { gap: 6px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 34px 0 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .two { grid-column: auto; }
  .gov-wrap { grid-template-columns: 1fr; }
  .cmp-table { display: block; overflow-x: auto; }
  .bar-tools { width: 100%; }
  .bar-tools select { flex: 1; }
  .view-toggle { display: none; }
  .wa-float { width: 48px; height: 48px; font-size: 22px; bottom: 14px; left: 14px; }
}

/* الحسابات واللوحات */
.dash-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.dash-tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.dash-tabs a.on { color: var(--green); border-color: var(--green); }
.badge-in { background: var(--red); color: #fff; border-radius: 10px; font-size: 12px; padding: 0 7px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-cards > * { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--muted); border: 1px solid transparent; }
.stat-cards b { display: block; font-size: 26px; color: var(--ink); }
.stat-cards a:hover { border-color: var(--green-2); }
.stat-cards .hot { border-color: var(--gold); background: #fffaf0; }
.stat-cards .hot b { color: #a16207; }
.row-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 10px; }
.row-item > a img { width: 130px; height: 86px; object-fit: cover; border-radius: 10px; flex: none; }
.row-item.done { opacity: .6; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.row-main > a b { font-size: 16px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 300px; }
.danger { color: var(--red) !important; }
.st { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 20px; padding: 1px 10px; }
.st-ok { background: #e3f6ec; color: #0a7a47; } .st-wait { background: #fff4d6; color: #92600a; } .st-bad { background: #fde8e8; color: #b42318; }
.st-off { background: #eef1f3; color: #55606b; } .st-gold { background: #fff4d6; color: #92600a; }
.reject { background: #fdeeee; color: var(--red); border-radius: 8px; padding: 4px 10px; font-size: 14px; }
.notice { background: #fff8e6; border: 1px solid #f3dc9b; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.owner-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px dashed var(--green-2); border-radius: 12px; padding: 10px 14px; margin-top: 16px; }
.owner-bar .btn { margin-inline-start: auto; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.admin-tools form { flex: 1; min-width: 220px; max-width: 380px; }
details summary { cursor: pointer; }
@media (max-width: 700px) {
  .row-item { flex-wrap: wrap; }
  .row-item > a img { width: 100%; height: 150px; }
  .row-actions { max-width: none; justify-content: flex-start; width: 100%; }
}

/* الأيقونات */
.logo-mark { color: var(--green); }
.logo-mark .i { width: 22px; height: 22px; }
.footer .logo-mark { color: var(--gold-2); }
.icon-btn .i { width: 19px; height: 19px; }
.cmp-link, .menu-btn { color: var(--ink); }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; }
.type-card .ico { width: 58px; height: 58px; margin: 0 auto; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; transition: .15s; }
.type-card .ico .i { width: 28px; height: 28px; }
.type-card:hover .ico { background: var(--green); color: #fff; }
.specs span, .loc, .tag { display: inline-flex; align-items: center; gap: 4px; }
.specs .i { color: var(--green-2); }
.loc .i { color: var(--gold); }
.round .i { width: 17px; height: 17px; }
.wa-float .i { width: 28px; height: 28px; }
.empty .big .i { width: 52px; height: 52px; color: #9fb3ad; }
.uploader .i { width: 34px; height: 34px; color: var(--green-2); display: block; margin: 0 auto 6px; }
.uploader b { display: block; color: var(--green); }
.kv b .i, .verified .i { width: 1em; height: 1em; }
.verified { display: inline-flex; align-items: center; gap: 3px; }
.view-toggle button { display: inline-grid; place-items: center; }
.feat-list span { display: inline-flex; align-items: center; gap: 5px; }
.feat-list .i { width: 15px; height: 15px; }
.dash-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.stat-cards .i { color: var(--green-2); }
.card-img img { transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.video-box { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; }
.tag-video { top: auto; bottom: 10px; right: 10px; background: rgba(0,0,0,.65); }
@media (max-width: 600px) { .wa-float .i { width: 23px; height: 23px; } }

/* الفوتر دايماً تحت */
.app { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

/* الواجهة: صور معالم بتتبدّل ببطء متل الفيديو */
.hero { background: #0b3d33; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.08); }
.hero-slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translateX(1.5%); } to { transform: scale(1) translateX(0); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 45, 38, .62), rgba(10, 60, 50, .42) 45%, rgba(8, 45, 38, .8)); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-caption { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .hero-slide.on { animation: none; transform: none; } }

/* بطاقات المحافظات بصور معالمها */
.gov-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.gov-card .landmark { position: absolute; top: 10px; right: 12px; font-size: 11.5px; background: rgba(0,0,0,.45); padding: 1px 9px; border-radius: 20px; text-shadow: none; }
.gov-card:hover { transform: translateY(-3px) scale(1.01); }
.gov-banner { display: block; height: 130px; margin: -16px -16px 12px; border-radius: var(--radius) var(--radius) 0 0; background: center / cover no-repeat; position: relative; }
.gov-banner span { position: absolute; bottom: 8px; right: 12px; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.gov-block { overflow: hidden; }

/* من نحن: نفس قنطرة الواجهة */
.about-band { position: relative; background: linear-gradient(160deg, #0f5f4e, #0b3d33 70%); color: #fff; padding: 110px 0 60px; margin-top: 40px; margin-bottom: -30px; overflow: hidden; }
.about-band::before { content: ''; position: absolute; inset: -60px -10% auto -10%; height: 120px; background: var(--bg); border-radius: 0 0 50% 50%; }
.about-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.about-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 10px; }
.about-head p { opacity: .88; font-size: 16.5px; margin: 0; }
.kicker { display: inline-block; background: rgba(224, 185, 58, .18); color: var(--gold-2); border-radius: 20px; padding: 2px 14px; font-weight: 700; font-size: 14px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.about-grid > div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.about-grid .i { width: 30px; height: 30px; color: var(--gold-2); }
.about-grid b { font-size: 17px; }
.about-grid span { opacity: .82; font-size: 14.5px; }
.about-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.about-foot > div:first-child { display: flex; flex-direction: column; }
.about-foot span { opacity: .75; font-size: 14px; }

/* أزرار التطبيق */
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 6px 14px; min-width: 150px; direction: ltr; transition: .15s; }
.store-badge:hover { background: #1b1b1b; transform: translateY(-1px); }
.store-badge .i { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 10.5px; opacity: .8; direction: rtl; text-align: left; }
.store-badge b { font-size: 16px; letter-spacing: .2px; }
.footer .store-badges { margin-top: 14px; }
.footer .store-badge { padding: 4px 12px; min-width: 0; }
.empty .store-badges { justify-content: center; margin-top: 12px; }
.empty .big .i-android, .empty .big .i-apple { color: var(--green); }
.credits { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 14px; }
.credits a { color: var(--green); font-weight: 600; }
@media (max-width: 600px) { .about-band { padding-top: 90px; } .about-foot { justify-content: center; text-align: center; } .about-foot > div:first-child { align-items: center; } }
@media (max-width: 600px) { .govs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gov-card { min-height: 128px; padding: 12px; } .gov-card b { font-size: 16px; } .gov-card .en { display: none; } .gov-card .landmark { right: 8px; top: 8px; font-size: 10.5px; } }

/* أزرار المتاجر بشكلها الرسمي: أسود، شعار ملوّن، سطرين */
.store-badge { background: #000 !important; border: 1px solid #a6a6a6 !important; border-radius: 9px !important; padding: 6px 14px 6px 10px !important; min-width: 156px !important; gap: 9px !important; }
.store-badge:hover { background: #111 !important; }
.store-logo { width: 26px; height: 26px; flex: none; }
.store-badge small { font-size: 10px !important; opacity: .9 !important; font-weight: 600; }
.store-badge b { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 18px !important; font-weight: 600; letter-spacing: -.2px; }
.footer .store-badge { padding: 5px 12px 5px 9px !important; min-width: 146px !important; }

/* ───────── لوحة التحكم ───────── */
.announce { background: var(--gold); color: #1b1300; text-align: center; font-weight: 700; font-size: 14px; padding: 6px 16px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.announce[hidden] { display: none; }
body.is-admin { background: #eef2f3; }
body.is-admin .footer, body.is-admin .wa-float { display: none; }
.adm { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.adm-side { background: #0c2d27; color: #cfe0db; position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #2a5a50 transparent; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-brand > .i { width: 34px; height: 34px; color: var(--gold-2); }
.adm-brand b { color: #fff; display: block; font-size: 16px; }
.adm-brand small { opacity: .7; font-size: 12.5px; }
.adm-close { display: none; margin-inline-start: auto; }
.adm-nav { flex: 1; padding: 6px 10px 16px; }
.adm-group > span { display: block; font-size: 11.5px; letter-spacing: .3px; opacity: .5; padding: 14px 8px 4px; font-weight: 700; }
.adm-nav > .adm-group > a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #d7e6e1; font-weight: 600; font-size: 14.5px; }
.adm-nav > .adm-group > a:hover { background: rgba(255,255,255,.06); }
.adm-nav > .adm-group > a.on { background: var(--green-2); color: #fff; }
.adm-nav .i { width: 18px; height: 18px; opacity: .9; }
.cnt { margin-inline-start: auto; background: var(--gold); color: #1b1300; border-radius: 20px; font-size: 11.5px; padding: 0 8px; min-width: 22px; text-align: center; }
.tree { margin: 4px 14px 6px 0; border-inline-start: 1px solid rgba(255,255,255,.1); padding-inline-start: 6px; }
.tree a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; color: #b9cfc8; }
.tree a:hover { background: rgba(255,255,255,.05); color: #fff; }
.tree a.on { background: rgba(224,185,58,.15); color: var(--gold-2); font-weight: 700; }
.tree em { font-style: normal; font-size: 12px; opacity: .75; display: inline-flex; gap: 4px; align-items: center; }
.tree .dot { background: var(--gold); color: #1b1300; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.tree-sub { margin: 2px 12px 4px 0; border-inline-start: 1px dashed rgba(255,255,255,.12); max-height: 260px; overflow-y: auto; }
.tree-sub a { font-size: 12.8px; padding: 4px 10px; }
.adm-side-foot { display: flex; gap: 6px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.adm-side-foot a, .adm-side-foot button { flex: 1; display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); color: #d7e6e1; border: 0; cursor: pointer; font-weight: 600; }
.adm-side-foot a:hover, .adm-side-foot button:hover { background: rgba(255,255,255,.12); }
.adm-main { min-width: 0; padding: 18px 22px 40px; }
.adm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-top h1 { font-size: 22px; margin: 0; }
.adm-top-acts { margin-inline-start: auto; display: flex; gap: 8px; }
.adm-burger { display: none; }
.adm-card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,40,50,.08); padding: 16px; }
.adm-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.adm-card-h a { color: var(--green); font-weight: 700; font-size: 14px; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,40,50,.08); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; border: 1px solid transparent; }
.kpi .i { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--green-2); }
.kpi b { font-size: 24px; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13.5px; }
a.kpi:hover { border-color: var(--green-2); }
.kpi.warn { border-color: #f1d27a; background: #fffbef; }
.kpi.warn .i { color: #b8860b; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border: 0; }
.mini-row img { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.mini-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bar { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.bar > i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--green-2), #3fb393); min-width: 3px; }
.bar em { font-style: normal; color: var(--muted); text-align: left; }
.bar:hover span { color: var(--green); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 4px; border-radius: 12px; box-shadow: 0 1px 3px rgba(16,40,50,.08); margin-bottom: 12px; width: fit-content; max-width: 100%; }
.seg a { padding: 6px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg a.on { background: var(--green); color: #fff; }
.seg em { font-style: normal; background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.seg a.on em { background: rgba(255,255,255,.25); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.adm-filters .input { width: auto; min-width: 140px; min-height: 40px; padding: 7px 10px; }
.adm-filters input[name="q"] { flex: 1; min-width: 220px; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #0c2d27; color: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 10px; position: sticky; top: 74px; z-index: 5; }
.bulk[hidden] { display: none; }
.tbl-wrap { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,40,50,.08); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { background: #f6f8f9; color: var(--muted); font-weight: 700; font-size: 12.5px; text-align: right; padding: 10px; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fafcfb; }
.tbl tr.off td { opacity: .55; }
.tbl .thumb { width: 74px; height: 50px; object-fit: cover; border-radius: 8px; display: block; }
.t-main { min-width: 220px; }
.t-main b { display: block; font-size: 14.5px; }
.tbl small { display: block; font-size: 12.5px; }
.tbl .num { font-weight: 800; color: var(--green); white-space: nowrap; }
.tbl .msg { max-width: 360px; }
.nowrap { white-space: nowrap; }
.acts { white-space: nowrap; text-align: left; }
.ib { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #4a5763; cursor: pointer; margin-inline-start: 3px; vertical-align: middle; }
.ib:hover { border-color: var(--green-2); color: var(--green); }
.ib .i { width: 16px; height: 16px; }
.ib.ok { color: #0a8f5a; } .ib.ok:hover { background: #e3f6ec; }
.ib.bad { color: var(--red); } .ib.bad:hover { background: #fde8e8; border-color: #f3b4b4; }
.ib.gold { color: #b8860b; background: #fff8e1; }
.ib.dis { opacity: .3; pointer-events: none; }
.adm-side .ib { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; }
.adm-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.adm-pager .pager { margin: 0; }
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.list-pick { padding: 6px; display: flex; flex-direction: column; }
.list-pick a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 9px; font-weight: 600; }
.list-pick a em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 400; }
.list-pick a.on { background: var(--green-soft); color: var(--green); }
.inline-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.inline-add .input { flex: 1; min-width: 180px; min-height: 40px; }
.input.inl { min-height: 36px; padding: 5px 10px; border-color: transparent; background: transparent; }
.input.inl:hover { border-color: var(--line); }
.input.inl:focus { background: #fff; border-color: var(--green-2); }
.icon-pick { width: auto !important; flex: none !important; min-width: 0 !important; min-height: 36px; padding: 4px 8px; font-size: 13px; }
.ico-prev { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green-soft); color: var(--green); margin-inline-end: 6px; vertical-align: middle; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; cursor: pointer; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cdd5da; border-radius: 22px; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--green-2); }
.switch input:checked + span::after { right: 21px; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.tag-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
.tag-item.off { opacity: .55; }
.tag-item .inl { flex: 1; min-width: 0; }
.tag-item > a { font-size: 12.5px; min-width: 24px; text-align: center; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 12px; }
.danger-bg { background: var(--red); } .danger-bg:hover { background: #b83232; }
@media (max-width: 1000px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; top: 0; bottom: 0; right: 0; width: 290px; height: 100vh; z-index: 90; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 30px rgba(0,0,0,.25); }
  .adm-side.open { transform: none; }
  .adm-close, .adm-burger { display: inline-grid; }
  .adm-cols, .split { grid-template-columns: minmax(0, 1fr); }
  .adm-main { padding: 14px 12px 30px; }
}

.ib.adm-burger, .ib.adm-close { display: none; }
@media (max-width: 1000px) { .ib.adm-burger, .ib.adm-close { display: inline-grid; } }

/* التثبيت بأول البحث */
.card.pinned { border-color: var(--gold); box-shadow: 0 6px 22px rgba(201, 162, 39, .22); }
.tag-pin { top: auto; bottom: 10px; right: auto; left: 10px; background: var(--gold); color: #1b1300; }
.pin-group { margin-top: 14px; }
.pin-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pin-row.off { opacity: .55; }
.pin-rank { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1b1300; font-weight: 800; display: grid; place-items: center; flex: none; }
.pin-row img { width: 70px; height: 48px; object-fit: cover; border-radius: 8px; }
.pin-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.pin-row .input { width: auto; min-height: 36px; padding: 4px 8px; font-size: 13px; }

/* جرس الإشعارات */
.bell-wrap { position: relative; }
.bell-btn { color: var(--ink); }
.bell-panel { position: absolute; top: 48px; left: 0; width: 340px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); border: 1px solid var(--line); z-index: 70; padding: 6px; }
.bell-panel[hidden] { display: none; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-size: 14px; }
.bell-h button { border: 0; background: none; color: var(--green); font-weight: 700; cursor: pointer; font-size: 13px; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.bell-item:hover { background: #f4f7f6; }
.bell-item.new { background: #f0f8f5; }
.bell-item > .i { width: 20px; height: 20px; color: var(--green-2); margin-top: 2px; }
.bell-item span { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; min-width: 0; }
.bell-item small { font-size: 12.5px; }
.bell-item small.hot { color: #b8860b; font-weight: 700; }
.bell-empty { padding: 6px 12px 10px; margin: 0; font-size: 13px; }
#alertBtn.on { background: var(--green-soft); border-color: var(--green-2); color: var(--green); }
@media (max-width: 600px) { .bell-panel { position: fixed; top: 70px; left: 8px; right: 8px; width: auto; } #alertBtn span { display: none; } }

/* المقارنة: الأفضل */
.verdict { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff8e1, #fff); border: 1px solid #f1d27a; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.verdict-crown { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: #1b1300; display: grid; place-items: center; flex: none; }
.verdict-crown .i { width: 30px; height: 30px; }
.verdict > div:nth-child(2) { flex: 1; min-width: 220px; }
.verdict h3 { margin: 4px 0; font-size: 19px; }
.verdict p { margin: 2px 0; }
.verdict .kicker { background: #fff1c7; color: #92600a; }
.cmp-wrap { overflow-x: auto; }
.cmp-table td.winner { background: #fffbef; box-shadow: inset 0 3px 0 var(--gold); }
.rank { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; border-radius: 20px; padding: 2px 10px; margin-bottom: 6px; background: #eef1f3; color: #55606b; }
.rank.r1 { background: var(--gold); color: #1b1300; }
.score { height: 6px; border-radius: 4px; background: #eef1f3; overflow: hidden; margin-top: 8px; }
.score i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f2cf5b); }

.chip-btn { white-space: nowrap; }
.cmp-table { table-layout: fixed; min-width: 640px; }
.cmp-table th:first-child { width: 150px; }
.cmp-table img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* شاشة الترحيب: رسمة البيت بتنرسم خط خط، وبعدين بتختفي */
.intro { display: none; }
html.show-intro { overflow: hidden; }
html.show-intro .intro { display: flex; position: fixed; inset: 0; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 42%, #137a64 0%, #0f5f4e 45%, #0b3d33 100%); color: #fff; transition: opacity .55s ease, visibility .55s; }
html.intro-done .intro { opacity: 0; visibility: hidden; }
.intro-house { width: min(170px, 42vw); height: auto; overflow: visible; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.intro-house path { fill: none; stroke: #e0b93a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: introDraw .5s ease forwards; }
.intro-house .d1 { animation-delay: .05s; stroke: rgba(255,255,255,.55); }
.intro-house .d2 { animation-delay: .3s; animation-duration: .45s; }
.intro-house .d3 { animation-delay: .55s; animation-duration: .55s; }
.intro-house .d4 { animation-delay: .9s; animation-duration: .3s; }
.intro-house .d5 { animation-delay: 1.05s; animation-duration: .45s; }
.intro-house .d6 { animation-delay: 1.3s; animation-duration: .35s; stroke-width: 2.6; }
.intro-house .d7 { animation-delay: 1.45s; animation-duration: .3s; stroke-width: 2.6; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
html.intro-wait .intro * { animation-play-state: paused; }
.intro-name { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-size: clamp(28px, 7vw, 40px); font-weight: 800; opacity: 0; transform: translateY(8px); animation: introUp .5s ease 1.5s forwards; }
.intro-name b { color: #e0b93a; }
.intro-sub { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-size: 15px; opacity: 0; animation: introUp .5s ease 1.7s forwards; }
@keyframes introUp { to { opacity: .92; transform: none; } }
/* الحركة بتشتغل حتى لو جهاز الزائر مطفّي «تأثيرات الحركة» (هي قصيرة وجزء من هوية الموقع) */

/* ظل خفيف للرسمة كاملة: البيت بيبيّن حتى لو المتصفح ما شغّل الحركة */
.intro-house .ghost path { stroke: rgba(255, 255, 255, .2); stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

/* ───── اللغة: English (LTR). العربي هو الأصل، وهون بس القلب لليسار ───── */
html.i18n-wait body { visibility: hidden; }
.lang-btn { min-width: 40px; justify-content: center; }
[dir=ltr] .icon-btn .badge { left: auto; right: -6px; }
[dir=ltr] .gov-card .en { left: auto; right: 14px; }
[dir=ltr] .tag { right: auto; left: 10px; }
[dir=ltr] .card-actions { left: auto; right: 10px; }
[dir=ltr] .gal-nav.prev { right: auto; left: 12px; } [dir=ltr] .gal-nav.next { left: auto; right: 12px; }
[dir=ltr] .gal-nav { transform: scaleX(-1); }
[dir=ltr] .gal-count { right: auto; left: 12px; }
[dir=ltr] .previews button { left: auto; right: 4px; }
[dir=ltr] .cmp-table th, [dir=ltr] .cmp-table td, [dir=ltr] .tbl th { text-align: left; }
[dir=ltr] .wa-float { left: auto; right: 20px; }
[dir=ltr] .tag-video { right: auto; left: 10px; }
[dir=ltr] .tag-pin { left: auto; right: 10px; }
[dir=ltr] .gov-card .landmark { right: auto; left: 12px; }
[dir=ltr] .gov-banner span { right: auto; left: 12px; }
[dir=ltr] .bar em, [dir=ltr] .acts { text-align: right; }
[dir=ltr] .switch span::after { right: auto; left: 3px; }
[dir=ltr] .switch input:checked + span::after { right: auto; left: 21px; }
[dir=ltr] .bell-panel { left: auto; right: 0; }
[dir=ltr] .i-chevron-left, [dir=ltr] .i-chevron-right, [dir=ltr] .i-arrow-left, [dir=ltr] .i-arrow-right { transform: scaleX(-1); }
@media (max-width: 1000px) {
  [dir=ltr] .adm-side { right: auto; left: 0; transform: translateX(-100%); box-shadow: 10px 0 30px rgba(0,0,0,.25); }
  [dir=ltr] .adm-side.open { transform: none; }
}
@media (max-width: 600px) {
  [dir=ltr] .wa-float { left: auto; right: 14px; }
  [dir=ltr] .gov-card .landmark { left: 8px; right: auto; }
  [dir=ltr] .bell-panel { left: 8px; right: 8px; }
}
.nav .lang-nav { display: none; }
@media (max-width: 600px) {
  .lang-btn { display: none; }
  .nav .lang-nav { display: block; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
}
/* الهيدر مع زر اللغة: مسافات أضيق شوي لحتى يساع */
@media (min-width: 1121px) { .topbar-in { gap: 12px; } .nav a { padding: 8px 9px; } }
/* بالإنكليزي القائمة أعرض: الهيدر بياخد عرض أكبر، وتحت 1360 القائمة بتنطوي بزر ☰ */
[dir=ltr] .topbar .wrap { max-width: 1400px; }
@media (max-width: 1360px) {
  [dir=ltr] .nav { display: none; position: absolute; top: 66px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  [dir=ltr] .nav.open { display: flex; }
  [dir=ltr] .menu-btn { display: grid; }
  [dir=ltr] .top-actions { margin-inline-start: auto; }
}
[dir=ltr] .verified { margin-inline-start: 4px; }

/* إنشاء المدير، الأمان، شريط الكوكيز */
.setup-head { text-align: center; margin-bottom: 10px; }
.setup-head > .i { width: 46px; height: 46px; color: var(--green); }
.setup-head h2 { margin: 6px 0 2px; }
.pw-meter { height: 6px; border-radius: 4px; background: #e8edee; overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: .25s; }
.pw-meter i[data-n="2"] { background: #e0a21b; } .pw-meter i[data-n="3"], .pw-meter i[data-n="4"] { background: #0a8f5a; }
.totp-steps { padding-inline-start: 20px; margin: 0 0 10px; display: grid; gap: 8px; font-size: 14.5px; }
.totp-key { display: block; direction: ltr; text-align: left; font-size: 17px; letter-spacing: 2px; background: #f4f7f6; border: 1px dashed var(--green-2); border-radius: 10px; padding: 8px 12px; margin-top: 6px; user-select: all; }
.tbl tr.sec-bad td { background: #fff6f5; }
.cookie-bar { position: fixed; bottom: 16px; right: 50%; transform: translateX(50%); z-index: 95; width: min(680px, calc(100% - 32px)); background: #0c2d27; color: #e4eeeb; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar > .i { width: 22px; height: 22px; color: var(--gold-2); flex: none; }
.cookie-bar span { flex: 1; }
.cookie-bar a { color: var(--gold-2); text-decoration: underline; }
@media (max-width: 600px) { .cookie-bar { bottom: 76px; flex-wrap: wrap; } }

/* المحتوى الجاهز لمحركات البحث (بيبيّن بدون جافاسكربت، والتطبيق بيرسم مكانه) */
.seo-pre { padding: 24px 16px 40px; line-height: 1.9; }
.seo-pre h1 { font-size: 26px; } .seo-pre a { color: var(--green); }
.seo-list { padding-inline-start: 20px; }
html.js .seo-pre { display: none; }
.code { background: #0c2d27; color: #d7f0e6; border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; text-align: left; margin: 6px 0 12px; white-space: pre; }
/* صفحة انضمام المعارض */
.join-hero { background: linear-gradient(135deg, #0b3d33, #0f5f4e 60%, #137a64); color: #fff; padding: 56px 0 70px; position: relative; overflow: hidden; }
.join-hero::after { content: ''; position: absolute; inset: auto -10% -60px -10%; height: 110px; background: var(--bg); border-radius: 50% 50% 0 0; }
.join-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 10px 0 8px; max-width: 760px; line-height: 1.35; }
.join-hero p { font-size: 17px; opacity: .9; margin: 0 0 22px; max-width: 640px; }
.join-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.join-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.join-stats b { display: block; font-size: 26px; color: var(--gold-2); }
.join-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.join-grid > div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.join-grid .i { width: 30px; height: 30px; color: var(--green-2); }
.join-grid b { font-size: 16.5px; }
.join-grid span { color: var(--muted); font-size: 14.5px; }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: st; }
.join-steps li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 18px 18px; display: flex; flex-direction: column; gap: 4px; counter-increment: st; position: relative; padding-top: 56px; }
.join-steps li::before { content: counter(st); position: absolute; top: 14px; inset-inline-start: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1b1300; font-weight: 800; display: grid; place-items: center; }
.join-steps span { color: var(--muted); }
.faq { display: grid; gap: 8px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; }
.faq summary { font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.invite textarea { min-height: 150px; font-size: 14px; }

/* حذف الحساب (لوحتي ← كلمة السر) */
.danger-zone { margin-top: 14px; border: 1px solid #f3c7c3; }
.danger-zone h3 { color: #b42318; margin-top: 0; }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; }

/* ───────── 2026-12-05: محجوز، الدردشة الحيّة، صور الحسابات وصفحة لكل ناشر (من سيريا هوم) ───────── */
.tag-reserved { top: auto; bottom: 10px; left: 10px; right: auto; background: #b4261f; color: #fff; }
[dir=ltr] .tag-reserved { left: auto; right: 10px; }
.card-img .tag-reserved ~ .tag-video { bottom: 46px; }
.card.is-reserved .card-img img { filter: grayscale(.45) brightness(.92); }
.reserved-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1c16; border: 1px solid #f5c2bd; }
.reserved-bar span { color: #8a1c16; opacity: .85; font-size: 14px; }
.reserve-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.push-ask { width: 100%; border: 0; background: var(--green-soft); text-align: start; font: inherit; cursor: pointer; }

.chat-listing { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; }
.chat-listing img { width: 56px; height: 44px; object-fit: cover; border-radius: 10px; flex: none; background: #e9eef0; }
.chat-listing span { display: flex; flex-direction: column; min-width: 0; }
.chat-listing b, .chat-listing small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing small { color: var(--muted); font-size: 13px; }
.chat-listing a { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.chat-listing a:hover b { color: var(--green); }
.chat-av { flex: none; display: block; }
.chat-thumb { flex: none; display: block; }
.chat-thumb img { width: 56px; height: 44px; object-fit: cover; border-radius: 10px; display: block; background: #e9eef0; }
.chat-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100dvh - 64px); background: #eef3f2; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head .ib { flex: none; }
.chat-head .ib.wa { color: #1faa59; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.msg { max-width: 80%; padding: 8px 12px 5px; border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 40, 50, .08); line-height: 1.6; overflow-wrap: anywhere; }
.msg small { display: block; font-size: 11px; opacity: .65; text-align: left; margin-top: 2px; }
.msg small .i { width: 13px; height: 13px; vertical-align: -2px; color: #1faa59; }
.msg.out { align-self: flex-start; background: #d9f5e3; border-bottom-right-radius: 4px; }
.msg.in { align-self: flex-end; background: #fff; border-bottom-left-radius: 4px; }
.chat-note { text-align: center; margin: auto; padding: 10px; }
.chat-send { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.chat-send textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; border-radius: 22px; padding: 11px 16px; line-height: 1.4; }
.chat-send .btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center; flex: none; }
.chat-send .btn .i { transform: scaleX(-1); }
html:has(#app[data-page="chat"]) .wa-float, html:has(#app[data-page="chat"]) footer, html:has(#app[data-page="chat"]) .cookie-bar { display: none !important; }
html:has(#app[data-page="chat"]) body { padding-bottom: 0; }
.chat-list { display: flex; flex-direction: column; gap: 8px; }
.chat-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); color: inherit; }
.chat-row img { width: 64px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; background: #e9eef0; }
.chat-row > span:not(.chat-meta) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.new b { color: var(--green); }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chat-list .badge, .chat-meta .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; }
.badge[hidden] { display: none; }
.chat-mode { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.msg-link { position: relative; }

.avatar.has-img { padding: 0; overflow: hidden; background: #e9eef0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.seller { color: inherit; }
.seller-more { color: var(--green); font-weight: 700; font-size: 13px; }
.card-seller { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; color: var(--muted); font-size: 13px; min-width: 0; }
.card-seller .avatar { font-size: 13px; }
.card-seller span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.card-seller:hover span { color: var(--green); }
.office-card .office-top > a:first-child { flex: none; }
.office-card:hover { box-shadow: 0 6px 22px rgba(16, 40, 50, .14); }
.profile-cover { height: 180px; border-radius: var(--radius) var(--radius) 0 0; background-size: cover; background-position: center; }
.profile-panel.with-cover { border-radius: 0 0 var(--radius) var(--radius); }
.profile-panel.with-cover .avatar { margin-top: -46px; border: 4px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 768px) { .profile-cover { height: 130px; } }
.profile-edit { margin: 0 0 14px; padding: 0; overflow: hidden; }
.pe-cover { height: 110px; background: linear-gradient(135deg, #0f5c4d, #1c8a6f) center / cover; display: flex; align-items: flex-end; justify-content: flex-start; padding: 8px; }
.pe-row { display: flex; gap: 14px; align-items: center; padding: 14px; }
.pe-row > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; flex: 1; }
.pe-cover + .pe-row .pe-pic { margin-top: -40px; }
.pe-pic { position: relative; cursor: pointer; flex: none; }
.pe-pic .avatar { border: 3px solid #fff; box-shadow: var(--shadow); }
.pe-cam { position: absolute; bottom: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.pe-cam .i { width: 14px; height: 14px; }
.pe-row .btn { white-space: normal; max-width: 100%; height: auto; min-height: 36px; text-align: right; line-height: 1.4; padding-block: 6px; }
@media (max-width: 768px) {
  .profile-panel .office-top { flex-wrap: wrap; align-items: center; }
  .profile-panel .office-top > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
  .profile-panel .office-top h1 { font-size: 20px !important; }
  .profile-panel .office-top > div:nth-child(3) { flex: 1 1 100%; }
  .profile-panel .office-top > div:nth-child(3) .btn { flex: 1; justify-content: center; }
}
@media (max-width: 400px) { .top-actions { gap: 3px; } .top-actions .icon-btn, #authLink, .top-actions .btn-gold { width: 35px; height: 35px; } .logo { font-size: 17px; } .logo-mark { width: 30px; height: 30px; } .topbar-in { gap: 6px; } }
