/* ==========================================================
   العقارية — هوية المنصة (كحلي من خلفية الشعار + ذهبي) وأجزاء الصفحات
   تُحمَّل بعد pl.css و admin.css
   ========================================================== */
[data-site="aqaria"] {
  --brand: #26346a; --brand-rgb: 38, 52, 106; --brand-ink: #1a2551;
  --accent: #f5b81c; --accent-rgb: 245, 184, 28;
  --navy: #0d1322; --navy-2: #151d33; --gold-ink: #10162a;
  --page: #ffffff; --surface: #ffffff; --surface-2: #f4f6fb; --line: #e3e7f0;
  --side: #0d1322; --side-ink: #b9c1d9;
}
[data-site="aqaria"][data-bs-theme="dark"] {
  --brand: #4a63c9; --brand-rgb: 74, 99, 201; --brand-ink: #b6c4ff;
  --page: #0a0e1a; --surface: #121829; --surface-2: #171f33; --line: #262f49; --side: #070a14;
}
body { font-family: var(--font); }
.btx-gold { background: var(--accent); color: var(--gold-ink); }
.btx-gold:hover { color: var(--gold-ink); filter: brightness(1.05); }
.aq-shell .btx:not(.btx-ghost):not(.btx-soft):not(.btx-gold):not(.btx-dark):not(.btx-light):not(.btx-line-light) { color: #fff; }
.req { color: var(--danger); }
small { font-size: 15px; }
.pill i { font-size: .95em; }

/* ---------- الشعار ---------- */
.aq-logo { border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: var(--navy); }
.aq-logo.sd { border-radius: 12px; }
.aq-brandtxt { display: grid; line-height: 1.15; color: #fff; }
.aq-brandtxt b { font-size: 22px; font-weight: 800; }
.aq-brandtxt small { font-size: 15px; color: #c3cbe3; font-weight: 600; }
.aq-brandtxt.dark { color: var(--ink); }
.sd-logo .aq-logo { width: 44px; height: 44px; }
.sd-nav a[aria-current="page"]::before { background: var(--accent); }
.sd-nav .cnt { background: var(--accent); color: var(--gold-ink); }
.sd-nav .cnt.warn { background: #7660c4; color: #fff; }
.ad-top .ad-search kbd { direction: ltr; }
.av { background: hsl(var(--h, 220) 60% 90%); color: hsl(var(--h, 220) 55% 28%); }
[data-bs-theme="dark"] .av { background: hsl(var(--h, 220) 35% 26%); color: hsl(var(--h, 220) 80% 88%); }

/* ---------- الرأس ---------- */
.aq-head { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.aq-head.is-stuck { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.aq-head .ph-nav a { color: #c9d0e6; white-space: nowrap; }
.aq-head .btx { white-space: nowrap; }
.aq-head .ph-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.aq-head .ph-nav a[aria-current="page"] { color: var(--accent); }
.aq-head .icon-btn { color: #fff; }
.aq-head .icon-btn:hover { background: rgba(255,255,255,.1); border-color: transparent; }
.aq-menu { position: relative; }
.aq-menu > a i { font-size: .8rem; transition: transform var(--ease); }
.aq-menu > a[aria-expanded="true"] i { transform: rotate(180deg); }
.aq-mega { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 60; display: none; width: min(560px, 90vw); padding: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.aq-mega.is-open { display: grid; animation: pl-pop 160ms ease; }
.aq-head .aq-mega a { display: flex; align-items: center; gap: .8rem; min-height: 72px; padding: .6rem .8rem; border-radius: 14px; color: var(--ink); }
.aq-head .aq-mega a:hover { background: var(--surface-2); color: var(--ink); }
.aq-mega .ico { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 14px; }
.aq-mega b { display: block; font-size: 16px; } .aq-mega small { display: block; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.5; }
.ph-panel .sheet .aq-logo { border-radius: 12px; }

/* ---------- الفوتر ---------- */
.aq-foot { background: var(--navy); color: #c3cbe3; margin-top: 0; }
.aq-foot h4, .aq-foot .aq-brandtxt b { color: #fff; }
.aq-foot ul a { color: #b6bfd9; } .aq-foot ul a:hover { color: var(--accent); }
.aq-foot .pf-bottom { border-color: rgba(255,255,255,.1); color: #9aa5c4; }
.aq-foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(36px, 5vw, 60px); padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: linear-gradient(120deg, var(--navy-2), #1d2a52); border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; }
.aq-foot-cta::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(var(--accent-rgb), .12); }
.aq-foot-cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 .3rem; }
.aq-foot-cta p { margin: 0; color: #c3cbe3; }
.aq-foot-cta .acts { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }
.pf-cols { padding-top: 8px; }
.aq-foot-about { margin: 1rem 0; max-width: 42ch; }
.aq-contact { display: grid; gap: .3rem; }
.aq-contact li { display: flex; align-items: center; gap: .6rem; color: #c3cbe3; min-height: 36px; }
.aq-contact i { color: var(--accent); }
.ph-logo.foot { margin-bottom: .2rem; }

/* ---------- الرئيسية: البطل ---------- */
.hx { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding-block: clamp(36px, 5vw, 72px) clamp(110px, 12vw, 170px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(36px, 5vw, 72px)), 0 100%); }
.hx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 20%, rgba(var(--brand-rgb), .55), transparent 70%); }
.hx-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hx h1 { color: #fff; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.25; margin: .9rem 0 1rem; }
.hx h1 em { font-style: normal; color: var(--accent); }
.hx p.lead { color: #c3cbe3; font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; }
.hx .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.hx-pts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #dbe1f2; font-weight: 600; }
.hx-pts li { display: flex; align-items: center; gap: .45rem; } .hx-pts i { color: var(--accent); }
.hx-art { position: relative; min-height: clamp(320px, 38vw, 520px); }
.hx-art .ph1 { position: absolute; inset-block: 0; inset-inline: 8% 0; border-radius: 36px 36px 36px 120px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.hx-art .ph1 img { width: 100%; height: 100%; object-fit: cover; }
.hx-art .ph2 { position: absolute; inset-block-end: -28px; inset-inline-start: 0; width: 38%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 6px solid var(--navy); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.hx-art .ph2 img { width: 100%; height: 100%; object-fit: cover; }
.hx-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.hx-chip i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--accent-rgb), .22); color: #8a6200; font-size: 1.25rem; }
.hx-chip b { display: block; font-size: 22px; line-height: 1.2; } .hx-chip small { display: block; color: var(--muted); font-weight: 600; line-height: 1.3; }
.hx-chip.c1 { inset-block-start: 10%; inset-inline-end: -2%; } .hx-chip.c2 { inset-block-end: 12%; inset-inline-end: 4%; }
.hx-chip i.v { background: rgba(var(--brand-rgb), .12); color: var(--brand-ink); }

/* بحث الرئيسية */
.sbox { position: relative; z-index: 5; margin-top: calc(-1 * clamp(70px, 8vw, 110px)); }
.sbox-in { padding: clamp(16px, 2vw, 24px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.seg2 { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.seg2 label { cursor: pointer; } .seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.4rem; border-radius: 10px; font-weight: 800; color: var(--muted); }
.seg2 input:checked + span { background: var(--navy); color: #fff; }
.seg2 input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
@media (max-width: 991.98px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sgrid .btx { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .sgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 991.98px) { .hx-in { grid-template-columns: minmax(0, 1fr); } .hx-art { min-height: 280px; order: -1; } .hx-chip.c1 { inset-inline-end: 4%; } }
@media (max-width: 575.98px) { .hx-chip { padding: .45rem .7rem; } .hx-chip b { font-size: 18px; } .hx-chip i { width: 36px; height: 36px; } .hx-art .ph2 { display: none; } }

/* ---------- الخدمات: بينتو ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.bt { position: relative; display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform var(--ease), box-shadow var(--ease); }
.bt:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.bt .ico { width: 58px; height: 58px; font-size: 1.6rem; border-radius: 18px; }
.bt h3 { font-size: clamp(22px, 2vw, 28px); margin: .3rem 0 0; }
.bt p { color: var(--muted); margin: 0; }
.bt .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--brand-ink); }
.bt .more i { transition: transform var(--ease); } .bt:hover .more i { transform: translateX(-4px); }
.bt-lead { grid-column: span 6; grid-row: span 2; background: var(--navy); color: #fff; border-color: transparent; min-height: 420px; }
.bt-lead h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); } .bt-lead p { color: #c3cbe3; font-size: 18px; } .bt-lead .more { color: var(--accent); } .bt-lead:hover { color: #fff; }
.bt-lead .ico { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.bt-lead .bg { position: absolute; inset: 0; opacity: .22; background-size: cover; background-position: center; }
.bt-lead > *:not(.bg) { position: relative; }
.bt-lead ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; color: #dbe1f2; font-weight: 600; } .bt-lead li { display: flex; gap: .5rem; align-items: center; } .bt-lead li i { color: var(--accent); }
.bt-a, .bt-b { grid-column: span 6; }
.bt-c { grid-column: 1 / -1; }
.bt .stat { display: flex; gap: 1.4rem; margin-top: .4rem; } .bt .stat b { display: block; font-size: 26px; line-height: 1.2; } .bt .stat small { color: var(--muted); }
@media (max-width: 991.98px) { .bt-lead, .bt-a, .bt-b, .bt-c { grid-column: 1 / -1; grid-row: auto; min-height: 0; } }

/* ---------- بطاقة العقار ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard .im { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pcard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.pcard:hover .im img { transform: scale(1.05); }
.pcard .tags { position: absolute; inset: 12px 12px auto 12px; display: flex; gap: .4rem; flex-wrap: wrap; }
.pcard .tags .tg { padding: .1rem .75rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; }
.pcard .tags .tg.gold { background: var(--accent); color: var(--gold-ink); }
.pcard .tags .tg.mute { background: rgba(255,255,255,.92); color: #111827; }
.pcard .price { position: absolute; inset: auto 12px 12px auto; padding: .15rem .9rem; border-radius: 14px; background: rgba(13,19,34,.88); color: #fff; font-weight: 800; font-size: 18px; backdrop-filter: blur(4px); }
.pcard .bd { display: grid; gap: .4rem; padding: 16px 18px 18px; }
.pcard h3 { font-size: 19px; margin: 0; line-height: 1.5; }
.pcard h3 a { text-decoration: none; } .pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .loc { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: 15px; }
.pcard .mt { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .3rem; padding-top: .7rem; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.pcard .mt span { display: inline-flex; align-items: center; gap: .35rem; } .pcard .mt i { color: var(--brand-ink); }
.pcard .ref { margin-inline-start: auto; color: var(--muted); font-weight: 600; }

/* ---------- خطوات / أدوار ---------- */
.paths { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.paths .tabs-list { display: flex; flex-direction: column; width: 100%; border-radius: 22px; padding: 8px; gap: 6px; }
.paths .tabs-list button { display: flex; align-items: center; gap: .8rem; text-align: start; min-height: 68px; padding: 0 1rem; font-size: 18px; border-radius: 16px; }
.paths .tabs-list button i { 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; }
.paths .tabs-list button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.paths .tabs-list button[aria-selected="true"] i { background: rgba(var(--accent-rgb), .2); color: var(--accent); }
.flow { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow li { counter-increment: s; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.flow li::before { content: counter(s); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--accent); color: var(--gold-ink); font-weight: 800; font-size: 24px; direction: ltr; }
.flow b { display: block; font-size: 19px; } .flow span { color: var(--muted); }
@media (max-width: 991.98px) { .paths { grid-template-columns: minmax(0, 1fr); } .paths .tabs-list { flex-direction: row; overflow-x: auto; } .paths .tabs-list button { min-width: 190px; } }

/* ---------- شريط التثمين ---------- */
.vband { position: relative; background: var(--navy); color: #fff; border-radius: 36px; overflow: hidden; padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.vband::before { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(var(--accent-rgb), .08); }
.vband h2 { color: #fff; font-size: clamp(28px, 3.2vw, 44px); } .vband p { color: #c3cbe3; font-size: 18px; }
.vband ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .55rem; } .vband li { display: flex; gap: .6rem; align-items: center; font-weight: 600; } .vband li i { color: var(--accent); }
.vcert { position: relative; z-index: 1; padding: 22px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.45); transform: rotate(-2deg); }
.vcert .hd { display: flex; align-items: center; gap: .8rem; padding-bottom: 14px; border-bottom: 2px dashed var(--line); } .vcert .hd img { width: 44px; height: 44px; border-radius: 12px; }
.vcert .hd b { display: block; font-size: 17px; line-height: 1.3; } .vcert .hd small { color: var(--muted); }
.vcert dl { margin: 14px 0; display: grid; gap: .5rem; } .vcert dl div { display: flex; justify-content: space-between; gap: 1rem; } .vcert dt { color: var(--muted); font-weight: 600; } .vcert dd { margin: 0; font-weight: 800; }
.vcert .val { font-size: 30px; font-weight: 800; color: var(--brand-ink); line-height: 1.3; }
.vcert .qrw { display: flex; align-items: center; gap: 1rem; padding-top: 12px; border-top: 2px dashed var(--line); } .vcert .qrw i { font-size: 3.6rem; color: var(--ink); line-height: 1; }
@media (max-width: 991.98px) { .vband { grid-template-columns: minmax(0, 1fr); } .vcert { transform: none; } }

/* ---------- أرقام ---------- */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.nums > div { padding: clamp(20px, 3vw, 40px); background: var(--surface); display: grid; gap: .2rem; }
.nums b { font-size: clamp(32px, 4vw, 54px); line-height: 1.15; color: var(--brand-ink); font-weight: 800; }
.nums span { color: var(--muted); font-weight: 600; }
@media (max-width: 767.98px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ترويسة داخلية ---------- */
.ph-hero { position: relative; background: var(--navy); color: #fff; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); overflow: hidden; }
.ph-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 0%, rgba(var(--brand-rgb), .6), transparent 70%); }
.ph-hero > .wrap { position: relative; }
.ph-hero h1 { color: #fff; font-size: clamp(30px, 3.8vw, 52px); margin: .6rem 0 .5rem; }
.ph-hero p { color: #c3cbe3; font-size: clamp(17px, 1.4vw, 19px); max-width: 64ch; margin: 0; }
.ph-hero .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.ph-hero .crumbs { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .4rem; color: #aab4d2; font-size: 15px; } .ph-hero .crumbs li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .6; } .ph-hero .crumbs a { color: inherit; text-decoration: none; }

/* ---------- قائمة العقارات ---------- */
.plist { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.fside { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 14px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fside h2 { font-size: 20px; margin: 0; }
.pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 18px; }
.pl-top h2 { margin: 0; font-size: 22px; }
.fpills { display: flex; flex-wrap: wrap; gap: .4rem; }
.fpills a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .9rem; border-radius: 999px; background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.fpills a:hover { background: rgba(var(--brand-rgb), .16); }
.fbtn-m { display: none; }
.pgn { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 28px; }
.pgn a, .pgn span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; direction: ltr; }
.pgn .on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 991.98px) { .plist { grid-template-columns: minmax(0, 1fr); } .fside { position: static; } .fside.is-collapsed .fbody { display: none; } .fbtn-m { display: inline-flex; } }

/* ---------- صفحة العقار ---------- */
.pdet { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.gal { display: grid; gap: 10px; }
.gal .main { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.gal .main img { width: 100%; height: 100%; object-fit: cover; }
.gal .gn { position: absolute; inset-block: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(13,19,34,.7); color: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.gal .gn.p { inset-inline-start: 14px; } .gal .gn.n { inset-inline-end: 14px; } .gal .gn:hover { background: var(--navy); }
.gal .gc { position: absolute; inset: auto 14px 14px auto; padding: .1rem .8rem; border-radius: 999px; background: rgba(13,19,34,.75); color: #fff; font-weight: 700; direction: ltr; }
.gal .th { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gal .th button { padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); cursor: pointer; }
.gal .th button.on { border-color: var(--accent); } .gal .th img { width: 100%; height: 100%; object-fit: cover; }
.pd-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 22px 0 12px; }
.pd-h h1 { font-size: clamp(26px, 3vw, 38px); margin: .3rem 0; }
.pd-price { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--brand-ink); line-height: 1.2; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; }
.specs > div { display: grid; gap: .1rem; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.specs i { color: var(--brand-ink); font-size: 1.4rem; } .specs b { font-size: 20px; line-height: 1.3; } .specs span { color: var(--muted); font-size: 15px; font-weight: 600; }
.feat { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; } .feat li { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; } .feat i { color: var(--ok); }
.buyside { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 14px; }
.buybox { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.buybox h2 { font-size: 21px; margin: 0; }
.broker { display: flex; align-items: center; gap: .8rem; padding: 12px; border-radius: 16px; background: var(--surface-2); } .broker .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--navy); color: var(--accent); }
.maplink { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); } .maplink iframe { display: block; width: 100%; height: 280px; border: 0; }
@media (max-width: 1099.98px) { .pdet { grid-template-columns: minmax(0, 1fr); } .buyside { position: static; } }

/* ---------- صفحة الخدمة ---------- */
.svc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.svc-index { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 4px; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.svc-index a { display: flex; align-items: center; min-height: 46px; padding: 0 1rem; border-radius: 12px; color: var(--muted); font-weight: 700; text-decoration: none; }
.svc-index a:hover { background: var(--surface-2); color: var(--ink); } .svc-index a.on { background: var(--navy); color: #fff; }
.svc-sec { display: grid; gap: 1rem; margin-bottom: clamp(40px, 5vw, 72px); } .svc-sec > h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 0; }
.dlv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.dlv > div { display: flex; gap: .9rem; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); } .dlv .ico { width: 48px; height: 48px; border-radius: 14px; font-size: 1.2rem; }
.dlv b { display: block; font-size: 18px; } .dlv span { color: var(--muted); }
@media (max-width: 991.98px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-index { position: static; display: flex; overflow-x: auto; } .svc-index a { white-space: nowrap; } }

/* ---------- المعالج ---------- */
.wz-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.wz-aside { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 1rem; padding: clamp(22px, 2.4vw, 34px); border-radius: 28px; background: var(--navy); color: #fff; }
.wz-aside h2 { color: #fff; font-size: 28px; margin: 0; } .wz-aside p { color: #c3cbe3; margin: 0; }
.wz-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; } .wz-aside li { display: flex; gap: .7rem; align-items: flex-start; color: #dbe1f2; font-weight: 600; } .wz-aside li i { color: var(--accent); margin-top: .25rem; }
.wz-card { padding: clamp(20px, 2.6vw, 38px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wz-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 22px; }
.wz-chip { flex: 0 0 auto; padding: .15rem .9rem; border-radius: 999px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-weight: 800; font-size: 15px; white-space: nowrap; }
.wz-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); } .wz-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--accent); transition: width 300ms ease; }
.wz-step h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 .3rem; } .wz-step .help { color: var(--muted); margin-bottom: 1.2rem; }
.wz-step .fm-grid { margin-top: 6px; }
.js-wz .wz-step { display: none; } .js-wz .wz-step.is-active { display: block; animation: wz-in 260ms ease; }
@keyframes wz-in { from { opacity: 0; transform: translateX(14px); } }
.wz-nav { display: flex; gap: .6rem; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.wz-nav [data-next], .wz-nav [data-send] { margin-inline-start: auto; }
.wz-nav [hidden] { display: none !important; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.choices label { cursor: pointer; position: relative; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices .cd { display: grid; justify-items: center; align-content: center; gap: .4rem; min-height: 120px; padding: 14px 10px; text-align: center; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; line-height: 1.4; transition: all var(--ease); }
.choices .cd i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); font-size: 1.4rem; transition: all var(--ease); }
.choices .cd small { color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.4; }
.choices input:checked + .cd { border-color: var(--navy); background: var(--navy); color: #fff; } .choices input:checked + .cd i { background: rgba(var(--accent-rgb), .22); color: var(--accent); } .choices input:checked + .cd small { color: #c3cbe3; }
.choices input:focus-visible + .cd { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 3px; }
.wz-rv { margin-bottom: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.wz-rv-h { display: flex; justify-content: space-between; align-items: center; } .wz-rv-h h3 { font-size: 18px; margin: 0; }
.wz-rv dl { margin: .4rem 0 0; display: grid; gap: .3rem; } .wz-rv dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dashed var(--line); } .wz-rv dt { color: var(--muted); font-weight: 600; } .wz-rv dd { margin: 0; font-weight: 700; text-align: end; }
@media (max-width: 991.98px) {
  .wz-shell { grid-template-columns: minmax(0, 1fr); } .wz-aside { position: static; }
  .wz-nav { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(-1 * clamp(20px, 2.6vw, 38px)); padding: 12px clamp(20px, 2.6vw, 38px) 14px; background: var(--surface); border-radius: 0 0 28px 28px; }
}

/* ---------- الدخول ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--head-h)); }
.auth-art { position: relative; background: var(--navy) center/cover; color: #fff; display: grid; align-content: end; padding: clamp(28px, 5vw, 72px); overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,19,34,.95), rgba(13,19,34,.35)); }
.auth-art > * { position: relative; } .auth-art h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); } .auth-art p { color: #d3d9ec; font-size: 18px; max-width: 46ch; }
.auth-form { display: grid; align-content: center; padding: clamp(24px, 5vw, 72px); }
.auth-card { width: min(100%, 520px); margin-inline: auto; display: grid; gap: 14px; }
.auth-card h1 { font-size: clamp(28px, 3vw, 38px); margin: 0; }
.pw { position: relative; } .pw .fm-input { padding-inline-end: 52px; }
.pw button { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
[dir="rtl"] .pw .fm-input[dir="ltr"] { padding-inline-start: 52px; padding-inline-end: 14px; }
.pw-meter { display: flex; align-items: center; gap: .6rem; margin-top: 6px; } .pw-meter::before { content: ""; flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(to left, var(--line) 0 0) , var(--line); background: var(--line); }
.pw-meter[data-level="1"]::before { background: linear-gradient(to left, #dc2626 33%, var(--line) 33%); } .pw-meter[data-level="2"]::before { background: linear-gradient(to left, #7660c4 66%, var(--line) 66%); } .pw-meter[data-level="3"]::before { background: var(--ok); }
.pw-meter span { font-size: 15px; font-weight: 700; min-width: 4.5em; color: var(--muted); }
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; background: var(--info-bg); color: var(--info); }
.notice.bad { background: var(--danger-bg); color: var(--danger); } .notice.warn { background: var(--warn-bg); color: var(--warn); } .notice.ok { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 991.98px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }

/* ---------- لوحة التحكم: إضافات ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.grid21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.grid3a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1099.98px) { .grid21, .grid3a { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.box + .box, .box + .tcard, .tcard + .box { margin-top: 0; }
.task { display: flex; align-items: center; gap: .9rem; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: all var(--ease); }
.task:hover { border-color: rgba(var(--brand-rgb), .4); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.task > i { 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.25rem; }
.task b { font-size: 24px; line-height: 1.2; display: block; } .task span { color: var(--muted); font-size: 15px; font-weight: 600; }
.task.hot > i { background: var(--warn-bg); color: var(--warn); }
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.lbl-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px dashed var(--line); } .lbl-row:first-child { border-top: 0; } .lbl-row > span:first-child { color: var(--muted); font-weight: 600; } .lbl-row > b, .lbl-row > span:last-child { font-weight: 700; text-align: end; }
.mini-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; } .mini-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); } .mini-list li:first-child { border-top: 0; }
.mini-list .grow { flex: 1; min-width: 0; } .mini-list .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-list small { color: var(--muted); display: block; }
.fm-select { position: relative; }
.fm-sel-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: start; cursor: pointer; }
.fm-sel-btn [data-ph].is-ph { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.fm-sel-btn .bi-chevron-down { transition: transform var(--ease); color: var(--muted); }
.fm-sel-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.fm-list { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); display: none; }
.fm-list.is-open { display: block; }
.fm-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 46px; padding: .3rem .8rem; border-radius: 10px; cursor: pointer; outline: none; }
.fm-list li:hover, .fm-list li:focus { background: var(--surface-2); }
.fm-list li[aria-selected="true"] { color: var(--brand-ink); font-weight: 700; }
.fm-list li[aria-selected="true"]::after { content: "\F633"; font-family: "bootstrap-icons"; }
.fm-field > small.muted { font-size: 15px; }
.form-box { max-width: none; }
.fm-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 767.98px) { .fm-grid.three { grid-template-columns: minmax(0, 1fr); } }
.stepline { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.stepline li { display: grid; justify-items: center; gap: .3rem; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px; text-align: center; line-height: 1.4; }
.stepline li i { font-size: 1.3rem; } .stepline li.done { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); } .stepline li.now { border-color: var(--brand); color: var(--brand-ink); background: rgba(var(--brand-rgb), .07); }
.bar-h { height: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; } .bar-h i { display: block; height: 100%; border-radius: 10px; background: var(--accent); }
.kan { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.kan > section { padding: 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.kan h3 { font-size: 16px; margin: 4px 6px; display: flex; justify-content: space-between; }
.kcard { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: .3rem; font-size: 15px; } .kcard b { font-size: 16px; } .kcard small { color: var(--muted); }
.upl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .upl figure { margin: 0; position: relative; } .upl img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.upl .rm { position: absolute; top: 6px; inset-inline-start: 6px; }
.savebar { }

/* ---------- الطباعة (تقارير وفواتير) ---------- */
.doc-wrap { background: #e9ecf3; padding: 24px 12px; min-height: 100vh; }
.doc-tools { max-width: 210mm; margin: 0 auto 14px; display: flex; gap: .6rem; flex-wrap: wrap; }
.doc { width: 210mm; max-width: 100%; margin: 0 auto 20px; background: #fff; color: #111827; padding: 16mm 16mm 14mm; box-shadow: 0 10px 40px rgba(0,0,0,.15); font-size: 11pt; line-height: 1.8; }
.doc h1 { font-size: 20pt; margin: 0 0 4mm; } .doc h2 { font-size: 13pt; margin: 6mm 0 2mm; padding-bottom: 1mm; border-bottom: 2px solid #0d1322; } .doc p { margin: 0 0 2mm; }
.doc-hd { display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding-bottom: 5mm; border-bottom: 3px solid #0d1322; margin-bottom: 5mm; }
.doc-hd .b { display: flex; align-items: center; gap: 4mm; } .doc-hd img { width: 18mm; height: 18mm; border-radius: 3mm; } .doc-hd b { font-size: 15pt; display: block; line-height: 1.3; } .doc-hd small { font-size: 9pt; color: #5b6475; display: block; }
.doc table { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; font-size: 10pt; } .doc th, .doc td { border: 1px solid #cdd3e0; padding: 1.5mm 2.5mm; text-align: start; } .doc th { background: #eef1f8; } .doc thead { display: table-header-group; } .doc tr { break-inside: avoid; }
.doc .kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1mm 6mm; } .doc .kv div { display: flex; justify-content: space-between; border-bottom: 1px dashed #cdd3e0; padding: 1mm 0; } .doc .kv span { color: #5b6475; }
.doc .big { font-size: 20pt; font-weight: 800; color: #1a2551; }
.doc .sig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm; margin-top: 12mm; text-align: center; break-inside: avoid; } .doc .sig div { border-top: 1px solid #111827; padding-top: 2mm; font-size: 9.5pt; }
.doc .ver { display: flex; align-items: center; gap: 5mm; margin-top: 6mm; padding: 3mm; border: 1px dashed #8a93ab; border-radius: 3mm; break-inside: avoid; font-size: 9.5pt; }
.doc .stamp { display: inline-block; padding: 1mm 4mm; border: 2px solid #1a2551; color: #1a2551; border-radius: 2mm; font-weight: 800; transform: rotate(-4deg); }
@page { size: A4; margin: 0; }
@media print { body { background: #fff; } .doc-wrap { background: #fff; padding: 0; } .doc-tools { display: none; } .doc { box-shadow: none; margin: 0; width: auto; max-width: none; padding: 14mm 14mm 12mm; } }
@media (max-width: 767.98px) { .doc { padding: 20px 16px; font-size: 16px; } .doc .kv { grid-template-columns: minmax(0, 1fr); } .doc-hd img { width: 52px; height: 52px; } }

@media (max-width: 575.98px) { .aq-brandtxt small { display: none; } .aq-brandtxt b { font-size: 20px; } }

.split2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
@media (max-width: 991.98px) { .split2 { grid-template-columns: minmax(0, 1fr); } }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .kpis, .kpis.k3 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1099.98px) { .kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

code { font-size: 15px; color: inherit; }

.mini-list li { min-width: 0; }
.mini-list .grow { flex: 1 1 0; min-width: 0; overflow: hidden; }
.mini-list li > .pill { flex: 0 0 auto; }
.mini-list .grow b { white-space: normal; overflow: visible; text-overflow: clip; }

/* ---------- تبديل اللغة ---------- */
.aq-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); font-weight: 700; font-size: 15px; color: inherit; text-decoration: none; white-space: nowrap; }
.aq-lang:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.aq-head .aq-lang { color: #e6e9f5; }
.sheet .sheet-lang { justify-content: center; margin: 14px 0 10px; width: 100%; color: var(--ink); }
.ad-top .ad-lang { color: var(--ink); }
@media (max-width: 575.98px) { .ad-top .ad-lang span { display: none; } .ad-top .ad-lang { padding: 0 11px; } }

/* ---------- صفحة الترجمات ---------- */
.tr-row, .tr-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tr-row:first-of-type { border-top: 0; }
.tr-ar { color: var(--ink); overflow-wrap: anywhere; }
.tr-en { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .tr-row, .tr-item { grid-template-columns: 1fr; } }
