/* منصة أوزون — نظام التصميم */
@font-face { font-family: 'Tajawal'; src: url('/assets/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/assets/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* الهوية: رمادي هادئ على طريقة أبل، يعلوه تدرّج شبه شفاف من الزهري إلى السماوي وشبكة مربعات وزخارف إسلامية خفيفة،
   وأسطح زجاجية فاتحة، والأقسام الداكنة جرافيت لا كحلي */
:root {
  --bg: #EFEFF2; --surface: rgba(255,255,255,.84); --surface-solid: #FFFFFF; --surface-2: rgba(245,245,247,.8);
  --line: rgba(60,60,67,.13); --line-2: rgba(60,60,67,.07);
  --ink: #1D1D1F; --text: #3A3A3C; --muted: #6E6E73; --faint: #A1A1A6;
  --navy: #1C1C1E; --navy-2: #2C2C2E; --green: #0E8F7A; --green-2: #10B39A; --green-soft: rgba(16,179,154,.12);
  --sky: #0EA5E9; --sky-ink: #0369A1; --sky-soft: rgba(14,165,233,.11);
  --pink: #EC4899; --pink-ink: #BE185D; --pink-soft: rgba(236,72,153,.11);
  --violet: #8B5CF6; --amber: #F59E0B; --blue: #2563EB;
  --gold: #D99A1E; --gold-2: #F5C86A; --gold-soft: rgba(245,158,11,.14); --red: #E11D48; --red-soft: rgba(225,29,72,.10);
  --grad: linear-gradient(135deg, #10B39A 0%, #0EA5E9 100%);
  --grad-soft: linear-gradient(135deg, rgba(244,114,182,.14), rgba(56,189,248,.16));
  --grad-text: linear-gradient(90deg, #F9A8D4, #7DD3FC);
  --glass-edge: rgba(255,255,255,.95);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 32px -20px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.05);
  --wash-pink: rgba(244,114,182,.13); --wash-sky: rgba(56,189,248,.15);
  --grid-line: rgba(60,60,67,.055); --arabesque: rgba(60,60,80,.095); --rosette: rgba(60,60,80,.085);
  --row-hover: rgba(0,0,0,.025); --band: rgba(255,255,255,.42);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 1px rgba(0,0,0,.03);
  --shadow: 0 14px 34px -16px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 30px 60px -22px rgba(0,0,0,.35);
  --r-sm: 10px; --r: 18px; --r-lg: 24px;
  --font: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --display: 'Readex Pro', 'Tajawal', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161618; --surface: rgba(38,38,41,.78); --surface-solid: #242427; --surface-2: rgba(58,58,62,.5);
  --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.06);
  --ink: #F5F5F7; --text: #D1D1D6; --muted: #A1A1A6; --faint: #6E6E73;
  --green-soft: rgba(16,179,154,.16); --sky-ink: #7DD3FC; --sky-soft: rgba(56,189,248,.14); --pink-ink: #F9A8D4; --pink-soft: rgba(244,114,182,.14);
  --gold-soft: rgba(245,158,11,.16); --red-soft: rgba(244,63,94,.16);
  --grad-soft: linear-gradient(135deg, rgba(244,114,182,.12), rgba(56,189,248,.14));
  --glass-edge: rgba(255,255,255,.08);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -22px rgba(0,0,0,.85);
  --wash-pink: rgba(236,72,153,.09); --wash-sky: rgba(14,165,233,.10);
  --grid-line: rgba(255,255,255,.035); --arabesque: rgba(255,255,255,.06); --rosette: rgba(255,255,255,.06);
  --row-hover: rgba(255,255,255,.03); --band: rgba(255,255,255,.025);
  --shadow: 0 14px 34px -16px rgba(0,0,0,.7); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* طبقات الخلفية الثابتة: التدرّج والشبكة، ثم النقش المتكرر، ثم وسامان زخرفيان في زاويتين */
body::before, body::after, html::before, html::after { content: ''; position: fixed; z-index: -1; pointer-events: none; }
body::before { inset: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(70% 60% at 100% 0%, var(--wash-pink), transparent 70%),
    radial-gradient(70% 65% at 0% 100%, var(--wash-sky), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--wash-pink) 55%, transparent), color-mix(in srgb, var(--wash-sky) 55%, transparent)); }
body::after { inset: 0; background: var(--arabesque);
  -webkit-mask: url('/assets/arabesque.svg') 0 0 / 132px 132px repeat, radial-gradient(90% 80% at 100% 0%, #000 10%, rgba(0,0,0,.35) 75%);
  -webkit-mask-composite: source-in;
  mask: url('/assets/arabesque.svg') 0 0 / 132px 132px repeat, radial-gradient(90% 80% at 100% 0%, #000 10%, rgba(0,0,0,.35) 75%);
  mask-composite: intersect; }
html::before, html::after { background: var(--rosette); -webkit-mask: url('/assets/rosette.svg') center / contain no-repeat; mask: url('/assets/rosette.svg') center / contain no-repeat; }
html::before { width: 620px; height: 620px; top: -200px; inset-inline-start: 120px; }
html::after { width: 460px; height: 460px; bottom: -230px; inset-inline-end: -150px; opacity: .8; }
@media (max-width: 980px) { html::before { width: 420px; height: 420px; inset-inline-start: -120px; } }
::selection { background: rgba(236,72,153,.2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120,120,128,.3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(120,120,128,.5); }
::-webkit-scrollbar-track { background: transparent; }

/* الأسطح الزجاجية المشتركة */
.card, .kpi, .table-wrap, .cat-card, .p-card, .role, .step, .plan, .faq details, .panel, .side, .stat, .lib-item, .rp-sec, .rp-bar {
  background: var(--surface); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }

/* الأقسام الداكنة: جرافيت بتوهج زهري وسماوي، ونقش أبيض فوقه */
.hero, .page-hero, .auth-art, .cta, .plan.featured, .site-footer {
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(244,114,182,.30), transparent 60%),
    radial-gradient(800px 480px at 0% 110%, rgba(56,189,248,.30), transparent 60%),
    linear-gradient(160deg, #2C2C2E 0%, #1C1C1E 70%); }
.hero::before, .page-hero::before, .auth-art::before, .cta::before, .plan.featured::before, .site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(255,255,255,.07);
  -webkit-mask: url('/assets/arabesque.svg') 0 0 / 120px 120px repeat; mask: url('/assets/arabesque.svg') 0 0 / 120px 120px repeat; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
i[data-lucide], svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -.2em; flex-shrink: 0; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; font-size: .95rem; background: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(14,165,233,.7), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(14,165,233,.8); transform: translateY(-1px); filter: saturate(1.1); }
.btn-gold { background: linear-gradient(135deg, #FDE3A7, #F2B84B); color: #3A2600; box-shadow: 0 10px 22px -10px rgba(217,154,30,.7), 0 1px 0 rgba(255,255,255,.5) inset; }
.btn-gold:hover { transform: translateY(-1px); filter: saturate(1.1); }
.btn-ghost { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--sky) 45%, transparent); color: var(--sky-ink); background: var(--sky-soft); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: .45em .95em; font-size: .85rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); transition: .2s; }
.icon-btn:hover { border-color: color-mix(in srgb, var(--sky) 45%, transparent); color: var(--sky-ink); background: var(--sky-soft); }
.menu-edge { position: absolute; top: 22px; inset-inline-end: -34px; width: 34px; height: 44px; padding: 0; z-index: 1; border-inline-start: 0; border-radius: 12px 0 0 12px; background: var(--surface); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: -6px 4px 18px rgba(0,0,0,.12); pointer-events: auto; }
.menu-edge:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.menu-login-halo { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.5), 0 0 18px 5px rgba(239,68,68,.3); animation: menu-login-halo .9s ease-in-out infinite; }
@keyframes menu-login-halo {
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,.2), 0 0 24px 8px rgba(239,68,68,.18); }
}
@media (prefers-reduced-motion: reduce) { .menu-login-halo { animation: none; } }
.menu-burger { position: relative; display: block; width: 22px; height: 17px; color: #78859F; }
:root[data-theme="dark"] .menu-burger { color: #A1A1A6; }
.menu-burger > span { position: absolute; inset-inline: 0; height: 3px; border-radius: 2px; background: currentColor; transition: top .22s ease .12s, transform .22s ease, opacity .16s ease .1s; }
.menu-burger > span:nth-child(1) { top: 0; }
.menu-burger > span:nth-child(2) { top: 7px; }
.menu-burger > span:nth-child(3) { top: 14px; }
[aria-expanded="true"] > .menu-burger > span { transition: top .22s ease, transform .22s ease .16s, opacity .16s ease; }
[aria-expanded="true"] > .menu-burger > span:nth-child(1) { top: 7px; transform: rotate(45deg); }
[aria-expanded="true"] > .menu-burger > span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
[aria-expanded="true"] > .menu-burger > span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.menu-veil { position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s .28s; }
.menu-veil.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
html:has(.adm-rail, .side-rail) { overflow-x: clip; }
html:has(body.oz-sidebar-menu-open) { overflow: hidden; }
body.oz-sidebar-menu-open { overflow: clip; }
.oz-catalog-menu-open .site-header { z-index: 70; }
.side[data-menu-state], .adm-side[data-menu-state] { transition: visibility 0s; }
.side[data-menu-state="closed"], .adm-side[data-menu-state="closed"] { visibility: hidden; transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .menu-burger > span, [aria-expanded="true"] > .menu-burger > span, .menu-veil, .side-rail, .adm-rail, .layout, .adm, .side[data-menu-state], .adm-side[data-menu-state] { transition: none !important; }
}

/* الترويسة */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(6,90,67,.18)); }
/* أخضر الشعار يخفت على الجرافيت، فيوضع على مربع أبيض في الليلي والتذييل */
:root[data-theme="dark"] .brand img, .site-footer .brand img { background: #fff; border-radius: 13px; padding: 3px; filter: none; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.brand small { display: block; font-family: var(--font); font-size: .7rem; font-weight: 500; color: var(--muted); margin-top: -4px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { padding: .5em .9em; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a { transition: .2s; }
.nav a:hover { color: var(--ink); background: var(--sky-soft); }
.nav a.active { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(14,165,233,.7); }
.nav a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
#how, #faq { scroll-margin-top: 96px; }
.header-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 1100px) {
  .site-header .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; gap: 0 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; margin-block: 14px; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .nav { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 8px 0 10px; border-top: 1px solid var(--line-2); justify-content: center; gap: 4px; }
  .site-header .nav a { flex: 1; max-width: 150px; min-height: 40px; display: grid; place-items: center; white-space: nowrap; padding: 6px 10px; text-align: center; }
  .header-actions .hide-sm { display: none; }
  #how, #faq { scroll-margin-top: 150px; }
}
@media (max-width: 560px) {
  .site-header .bar { gap: 8px; }
  .site-header .brand { gap: 6px; font-size: 1.15rem; }
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .nav { gap: 2px; }
  .site-header .nav a { padding-inline: 4px; font-size: .8rem; }
}
@media (max-width: 360px) {
  .site-header .bar { gap: 6px; }
  .site-header .brand { gap: 4px; font-size: 1.05rem; }
  .site-header .brand small { display: none; }
  .site-header .icon-btn { width: 34px; height: 36px; }
  .site-header .header-actions, .site-header [data-account] { gap: 4px !important; }
  .site-header .btn-sm { padding-inline: 8px; font-size: .8rem; }
}

/* البطل */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 96px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .85rem; margin-bottom: 18px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #F9A8D4; box-shadow: 0 0 0 4px rgba(244,114,182,.25); }
.search-xl { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.6); border-radius: 18px; padding: 8px 8px 8px 8px; margin: 28px 0 18px; box-shadow: var(--shadow-lg); max-width: 600px; }
.search-xl i, .search-xl svg { color: var(--sky); margin-inline-start: 10px; }
.search-xl input { flex: 1; border: 0; outline: 0; background: none; color: #1D1D1F; padding: 10px 4px; font-size: 1.02rem; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: .15s; }
.chip { backdrop-filter: blur(8px); }
.chip:hover, .chip.active { border-color: color-mix(in srgb, var(--sky) 45%, transparent); color: var(--sky-ink); background: var(--sky-soft); }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.hero .chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--display); font-size: 1.9rem; color: #fff; }
.hero-stats span { color: rgba(255,255,255,.65); font-size: .9rem; }

/* مجسم المكتبة في البطل */
.hero-art { position: relative; height: 500px; }
.stack-card { position: absolute; background: rgba(255,255,255,.97); color: #1D1D1F; border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(16px); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px 18px; }
.stack-card .head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--display); font-size: .95rem; }
.stack-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.tree-mini { margin-top: 12px; font-size: .85rem; color: #48484A; }
.tree-mini div { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed rgba(60,60,67,.15); }
.tree-mini div:first-child { border-top: 0; }
.tree-mini .lvl2 { padding-inline-start: 18px; } .tree-mini .lvl3 { padding-inline-start: 36px; color: #0369A1; font-weight: 600; }
.card-a { inset-inline-end: 0; top: 10px; width: 340px; animation: float 7s ease-in-out infinite; }
.card-b { inset-inline-start: 0; top: 285px; width: 290px; animation: float 8s ease-in-out -2s infinite; }
.card-c { inset-inline-end: 20px; bottom: -10px; width: 220px; animation: float 6s ease-in-out -4s infinite; background: linear-gradient(135deg, #F472B6, #38BDF8); color: #fff; border-color: rgba(255,255,255,.35); }
.card-c b { font-family: var(--display); font-size: 1.6rem; display: block; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .stack-card { animation: none; } }
@media (max-width: 960px) { .hero .container { grid-template-columns: minmax(0, 1fr); padding: 48px 0 64px; } .hero-art { display: none; } }
.hero .container > div, .layout > *, .product-wrap > * { min-width: 0; }
@media (max-width: 480px) { .search-xl .btn { padding-inline: 1em; } .hero-stats { gap: 20px; } }

/* الأقسام */
section.block { padding: 80px 0; }
section.block.alt { background: var(--band); border-block: 1px solid var(--line-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.kicker { background: linear-gradient(90deg, var(--pink), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; font-weight: 700; font-size: .85rem; letter-spacing: .02em; display: block; margin-bottom: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat-card { --c: var(--green); position: relative; border-radius: var(--r-lg); padding: 24px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.cat-card::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .08; transition: .3s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow), 0 22px 40px -26px var(--c); }
.cat-card:hover::after { transform: scale(1.4); opacity: .12; }
.cat-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 10px 20px -10px var(--c); margin-bottom: 16px; }
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.cat-card .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cat-card .subs span { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.cat-card .foot { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--c); font-size: .92rem; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; }
.role { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px; border-radius: var(--r); font-weight: 600; color: var(--ink); transition: .2s; }
.role .ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: .2s; }
.role:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 20px 36px -24px rgba(14,165,233,.6); }
.role:hover .ic { background: var(--grad); color: #fff; }

/* بطاقة المنتج */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.p-card { --c: var(--green); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 22px 40px -26px var(--c); }
.p-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 72%, #1C1C1E)); display: grid; place-items: center; color: rgba(255,255,255,.95); overflow: hidden; }
.p-cover::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.16); -webkit-mask: url('/assets/arabesque.svg') 0 0 / 66px 66px repeat; mask: url('/assets/arabesque.svg') 0 0 / 66px 66px repeat; }
.p-cover > svg:not(.oz-art) { width: 40px; height: 40px; position: relative; }
.p-cover .code { position: absolute; bottom: 8px; inset-inline-start: 10px; font-size: .72rem; opacity: .9; background: rgba(0,0,0,.18); padding: 1px 7px; border-radius: 6px; font-family: ui-monospace, monospace; direction: ltr; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.p-cover .badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.88); color: #1D1D1F; backdrop-filter: blur(6px); }
.p-cover .hot { position: absolute; top: 10px; inset-inline-end: 10px; background: linear-gradient(135deg, #F472B6, #EC4899); color: #fff; }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body h3 { font-size: 1rem; margin: 0; font-family: var(--font); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-body .path { font-size: .8rem; color: var(--muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.price small { font-family: var(--font); font-size: .75rem; color: var(--muted); font-weight: 500; }
.price s { font-size: .8rem; color: var(--faint); margin-inline-start: 6px; font-weight: 400; }

/* كيف تعمل */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; border-radius: var(--r-lg); padding: 26px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 35%, transparent), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: 0 10px 20px -10px rgba(14,165,233,.7); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

/* الباقات */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { --c: var(--green); position: relative; border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { color: #fff; border-color: rgba(255,255,255,.1); box-shadow: var(--shadow-lg); overflow: visible; }
.plan.featured::before { border-radius: inherit; }
.plan.featured > :not(.ribbon) { position: relative; }
.plan.featured h3, .plan.featured .amount { color: #fff; }
.plan.featured .muted, .plan.featured li { color: rgba(255,255,255,.8); }
.plan .ribbon { position: absolute; z-index: 1; top: -12px; inset-inline-start: 24px; background: linear-gradient(135deg, #F472B6, #38BDF8); color: #fff; box-shadow: 0 8px 18px -8px rgba(236,72,153,.7); font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan .tag { width: 44px; height: 6px; border-radius: 6px; background: var(--c); margin-bottom: 18px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .amount { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--ink); margin: 14px 0 0; }
.plan .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .value { font-size: .85rem; margin-bottom: 16px; }
.plan .value b { color: var(--green-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: .93rem; }
.plan li svg { color: var(--green-2); margin-top: 4px; }

/* الأسئلة */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--r); padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--sky); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #fff; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255,255,255,.8); }

/* التذييل */
.site-footer { position: relative; overflow: hidden; color: rgba(255,255,255,.7); padding: 56px 0 28px; margin-top: 80px; }
.site-footer > .container { position: relative; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { display: block; padding: 4px 0; color: rgba(255,255,255,.65); font-size: .93rem; }
.site-footer a:hover { color: #7DD3FC; }
.site-footer .brand { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* صفحات المعلومات والسياسات والتذييل المشترك */
.sf-inner { position: relative; width: min(1100px, 92%); margin: auto; text-align: center; }
.sf-brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 24px; }
.sf-brand img { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
.sf-links, .sf-guide, .sf-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.site-footer .sf-links a, .sf-links .here { padding: 9px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; }
.sf-links .here { color: #fff; background: rgba(255,255,255,.1); }
.sf-guide { margin: 20px 0; }
.sf-platforms { margin: 24px 0 4px; }
.sf-platforms h4 { margin: 0 0 10px; color: #fff; font-size: 1rem; font-weight: 800; }
.sf-platform-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
.sf-platform-links a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.sf-platform-links a:hover, .sf-platform-links a:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.sf-platform-links img { width: 28px; height: 28px; border-radius: 8px; background: #fff; object-fit: cover; flex-shrink: 0; }
.sf-platform-links svg { width: 15px; height: 15px; opacity: .7; flex-shrink: 0; }
@media (max-width: 600px) { .sf-platform-links a { font-size: .88rem; } }
.sf-disclaimer { max-width: 900px; margin: 24px auto; font-size: .88rem; line-height: 1.9; }
.sf-disclaimer svg, .sf-bottom svg { width: 16px; height: 16px; vertical-align: middle; margin-inline-end: 5px; }
.sf-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: .8rem; }
.legal-page { max-width: 1000px; padding-top: 52px; }
.legal-page .section-intro { text-align: center; margin-bottom: 30px; }
.legal-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.doc-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); margin-bottom: 18px; font-size: .9rem; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 18px 0; scroll-margin-top: 100px; overflow-wrap: anywhere; }
.doc-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-top: 0; }
.doc-card h3 { font-size: 1rem; }
.doc-card p, .doc-card li { line-height: 2; }
.doc-card li { margin: 7px 0; }
.doc-card a { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 4px; }
.doc-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-card .chip-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.doc-card .icon-tile { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--sky-soft); border-radius: 12px; color: var(--sky-ink); }
.doc-card .icon-tile svg { width: 22px; height: 22px; }
.provider-table { width: 100%; border-collapse: collapse; }
.provider-table th, .provider-table td { padding: 12px; text-align: start; border-bottom: 1px solid var(--line); }
.provider-table th { width: 38%; }
.table-wrap { overflow-x: auto; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.doc-card .ch-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); padding: 20px; border-radius: 14px; text-decoration: none; color: var(--text); }
.ch-card h3 { margin: 5px 0; }
.ch-card .val { font-weight: 700; color: var(--sky-ink); text-align: start; }
.ch-card > span:last-child, .sf-hours { color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .doc-card { padding: 18px; } .sf-bottom .sep { display: none; } .sf-brand { font-size: 1rem; } .sf-links { gap: 8px; } .site-footer .sf-links a { font-size: .85rem; } }

/* صفحة الكتالوج */
.page-hero { color: #fff; padding: 36px 0 40px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.crumbs a:hover { color: #fff; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; padding: 32px 0; align-items: start; transition: grid-template-columns .35s cubic-bezier(.2,.8,.2,1), gap .35s cubic-bezier(.2,.8,.2,1); }
.layout.menu-collapsed { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
.layout > div { min-width: 0; }
.layout > div:last-child { grid-column: 2; }
.side-rail { --rail-inset: max(16px, calc((100vw - 1240px) / 2)); position: fixed; top: 88px; inset-inline-start: var(--rail-inset); width: 290px; height: calc(100dvh - 110px); z-index: 60; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.layout.menu-collapsed .side-rail { transform: translateX(calc(100% + var(--rail-inset))); }
@media (min-width: 961px) { .catalog-menu-open .page-hero .container { padding-inline-start: 338px; } }
.side { position: relative; border-radius: var(--r); padding: 12px; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-width: none; pointer-events: auto; }
.side::-webkit-scrollbar { display: none; }
.side:focus-visible, .adm-side:focus-visible { outline: 2px solid var(--sky); outline-offset: -3px; }
@media (max-width: 960px) {
  .layout, .layout.menu-collapsed { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .layout > div:last-child { grid-column: 1; }
  .side-rail { --rail-inset: 0px; top: var(--menu-top, 72px); bottom: 0; width: min(300px, calc(100vw - 44px)); height: auto; transition-duration: .28s; transition-timing-function: ease; }
  .side-rail:not(:has([data-menu-state])) { transform: translateX(100%); visibility: hidden; }
  .side-rail .side { border-radius: 0; background: var(--surface-solid); box-shadow: var(--shadow-lg); }
  .side-rail .menu-edge { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.side-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; font-weight: 700; color: var(--ink); }
.tree a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; font-size: .9rem; color: var(--text); }
.tree a { transition: background .2s, box-shadow .2s; }
.tree a:hover { background: color-mix(in srgb, var(--c) 8%, transparent); }
.tree a.active { font-weight: 700; color: var(--ink); }
.tree a .count { margin-inline-start: auto; font-size: .75rem; color: var(--faint); }
.tree .l1 { --c: var(--sky); }
.tree .l1 > a { font-weight: 700; color: var(--ink); gap: 11px; padding: 6px 8px; margin-bottom: 2px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-inline-start: 14px; border-inline-start: 1px dashed var(--line); margin-inline-start: 14px; }
.tree li:not(.open) > ul { display: none; }
.tree .tg { margin-inline-start: auto; color: var(--faint); transition: .2s; }
.tree li.open > a .tg { transform: rotate(-90deg); }

/* القوائم الجانبية (الأقسام ولوحة الإدارة): تدرّج باهت من الزاوية العليا، ونقش خافت يتلاشى نحو الأسفل،
   وأيقونات بلون كل عنصر في مربعات ناعمة، والعنصر النشط مظلل بلونه لا بتدرّج عام */
.side, .adm-side { isolation: isolate;
  background:
    linear-gradient(200deg, color-mix(in srgb, var(--wash-pink) 75%, transparent) 0%, transparent 42%, transparent 60%, color-mix(in srgb, var(--wash-sky) 85%, transparent) 100%),
    var(--surface);
  box-shadow: var(--glass-shadow), 0 28px 56px -36px rgba(30,40,80,.28); }
.side::before, .adm-side::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 340px; pointer-events: none; border-radius: inherit;
  background: var(--arabesque); opacity: .75;
  -webkit-mask: url('/assets/arabesque.svg') 0 0 / 92px 92px repeat, radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
  -webkit-mask-composite: source-in;
  mask: url('/assets/arabesque.svg') 0 0 / 92px 92px repeat, radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
  mask-composite: intersect; }
.tree .l1 > a > svg:first-child, .adm-nav a > svg:first-child { width: 32px; height: 32px; padding: 7px; flex-shrink: 0; border-radius: 10px; color: var(--c);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent), 0 5px 12px -8px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .2s, background .2s, color .2s; }
:root[data-theme="dark"] :is(.tree .l1 > a, .adm-nav a) > svg:first-child { color: color-mix(in srgb, var(--c) 55%, #fff); }
:is(.tree .l1 > a, .adm-nav a):hover > svg:first-child { transform: scale(1.06); }
:is(.tree .l1 > a, .adm-nav a).active > svg:first-child { color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c) 80%, transparent), 0 1px 0 rgba(255,255,255,.35) inset; }
:is(.tree, .adm-nav) a.active {
  background: linear-gradient(270deg, color-mix(in srgb, var(--c) 15%, transparent), color-mix(in srgb, var(--c) 5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent), 0 10px 22px -16px color-mix(in srgb, var(--c) 70%, transparent); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
/* مفتاح «إظهار الكل»: الجاهز فقط افتراضيًا */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--grad); }
.switch input:checked + .track::after { transform: translateX(-16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--sky-soft); }
.input, select.input, textarea.input { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 78%, transparent); color: var(--ink); border-radius: 14px; padding: .65em .9em; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: color-mix(in srgb, var(--sky) 30%, var(--line)); }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); background: var(--surface-solid); }
.search-in { position: relative; flex: 1; min-width: 200px; }
.search-in svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--sky); }
.search-in .input { width: 100%; padding-inline-start: 38px; }
/* القائمة المنسدلة الملوّنة: أيقونة القسم بلونه ورقمه */
.picker { position: relative; min-width: 0; }
.pk-btn { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 78%, transparent); color: var(--ink); border-radius: 14px; padding: .42em .55em; padding-inline-end: .8em; cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .15s, box-shadow .15s; white-space: nowrap; }
.pk-btn:hover { border-color: color-mix(in srgb, var(--sky) 30%, var(--line)); }
.pk-btn:focus-visible, .picker.open .pk-btn { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); outline: none; background: var(--surface-solid); }
.pk-btn .pk-label { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: start; max-width: 190px; }
.pk-caret { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; flex: none; }
.picker.open .pk-caret { transform: rotate(180deg); }
.pk-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.pk-ic svg { width: 17px; height: 17px; }
.pk-menu { position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-start: 0; min-width: 100%; width: max-content; max-width: min(380px, calc(100vw - 32px)); max-height: 420px; overflow: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top; transition: opacity .16s, transform .16s, visibility .16s; }
.picker.open .pk-menu { opacity: 1; visibility: visible; transform: none; }
.pk-menu li { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 12px; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink); outline: none; }
.pk-menu li:hover, .pk-menu li:focus { background: color-mix(in srgb, var(--c, var(--sky)) 8%, var(--surface-2)); }
.pk-menu li[aria-selected="true"] { background: color-mix(in srgb, var(--sky) 10%, transparent); font-weight: 700; }
.pk-menu li.off { opacity: .45; cursor: default; }
.pk-menu .pk-label { flex: 1; white-space: nowrap; }
.pk-num { font-size: .74rem; color: var(--muted); min-width: 20px; }
.pk-count { font-size: .74rem; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 1px 8px; }
.pk-ok { width: 16px; height: 16px; color: var(--sky); flex: none; }
@media (max-width: 600px) { .toolbar .picker { flex: 1 1 100%; } .pk-btn .pk-label { max-width: none; } .pk-menu { width: 100%; } }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--sky); opacity: .6; margin-bottom: 12px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); cursor: pointer; transition: .2s; }
.pager button:hover { border-color: color-mix(in srgb, var(--sky) 45%, transparent); color: var(--sky-ink); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(14,165,233,.7); }

/* صفحة المنتج */
.product-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 32px 0; align-items: start; }
@media (max-width: 960px) { .product-wrap { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r-lg); padding: 28px; }
.p-hero-cover { height: 220px; border-radius: var(--r); margin-bottom: 24px; }
.p-hero-cover svg { width: 72px; height: 72px; }
.buy-box { position: sticky; top: 92px; }
.buy-box .price { font-size: 2.2rem; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.feature-list svg { color: var(--green-2); margin-top: 3px; }
.insight-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.insight-stats div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.insight-stats svg { color: var(--green-2); width: 20px; height: 20px; }
.insight-stats b { font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.insight-stats span { font-size: .8rem; color: var(--muted); }
.insight-toc { columns: 2 220px; column-gap: 26px; padding-inline-start: 22px; margin: 12px 0 22px; }
.insight-toc li { break-inside: avoid; padding: 4px 0; font-size: .92rem; }
.insight-criteria { list-style: none; padding: 0; margin: 12px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.insight-criteria li { display: inline-flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.insight-criteria svg { width: 15px; height: 15px; color: var(--green-2); }
.insight-steps { list-style: none; counter-reset: st; padding: 0; margin: 12px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.insight-steps li { counter-increment: st; border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.insight-steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; background: var(--green-2); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.insight-steps span { font-size: .85rem; color: var(--muted); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.meta-grid div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.meta-grid span { display: block; font-size: .78rem; color: var(--muted); }
.meta-grid b { color: var(--ink); }
section.included-plans { padding-top: 0; }
.included-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.included-plan { display: block; padding: 0; overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.included-plan:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); }
.included-plan-art { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 150px; background: radial-gradient(circle at 20% 10%, #ffffff24, transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--c) 75%, #17202b), color-mix(in srgb, var(--c) 40%, #17202b)); color: #fff; }
.included-plan-art svg { width: 64px; height: 64px; stroke-width: 1.3; }
.included-plan-art span { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.included-plan-body { padding: 24px; }
.included-plan-body h3 { margin: 0 0 8px; }
.included-plan-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.included-plan-footer .price { font-size: 1.5rem; }
.included-plan-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--sky-ink); }
/* الإهداءات: نافذة الإهداء في لوحة الإدارة */
.grant-h { margin: 16px 0 8px; font-size: .9rem; color: var(--muted); font-weight: 700; }
.grant-results { display: grid; gap: 6px; margin-top: 8px; max-height: 260px; overflow: auto; }
.grant-results:empty { display: none; }
.grant-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: .15s; }
.grant-opt:hover, .grant-opt.active { border-color: color-mix(in srgb, var(--sky) 45%, transparent); background: var(--sky-soft); }
.grant-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.grant-validity { display: grid; gap: 10px; }
.grant-validity .chip input { position: absolute; opacity: 0; pointer-events: none; }
.grant-box { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.grant-box .grant-h { margin-top: 0; }
.grant-h svg { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }
.grant-pick { display: grid; gap: 8px; }
.grant-pick select:disabled { opacity: .6; }

/* التنبيهات */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green); margin-bottom: 18px; font-size: .93rem; }
.alert.warn { background: var(--gold-soft); color: #8A5A00; }
.alert.err { background: var(--red-soft); color: var(--red); }
:root[data-theme="dark"] .alert.warn { color: var(--gold-2); }
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(20px); background: rgba(29,29,31,.92); color: #fff; backdrop-filter: blur(10px); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; z-index: 200; font-weight: 500; pointer-events: none; }
[dir="rtl"] .toast { transform: translateX(50%) translateY(20px); }
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
.toast.err { background: var(--red); color: #fff; }

/* الدخول */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-art > * { position: relative; }
.auth-art .eyebrow { align-self: flex-start; }
.auth-art h2 { color: #fff; font-size: 2rem; }
.auth-art li { margin-bottom: 10px; color: rgba(255,255,255,.82); display: flex; gap: 10px; }
.auth-art ul { list-style: none; padding: 0; }
.auth-form { display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); }
.tabs { display: flex; gap: 4px; background: rgba(120,120,128,.12); padding: 4px; border-radius: 14px; margin-bottom: 24px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: .92rem; }
.tabs button { transition: .2s; }
.tabs button.active { background: var(--surface-solid); color: var(--ink); box-shadow: 0 3px 8px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.04); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* مكتبتي */
.lib-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #F472B6, #38BDF8); color: #fff; box-shadow: 0 12px 24px -12px rgba(236,72,153,.7); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0; }
.stat { border-radius: var(--r); padding: 16px 18px; }
.stat span { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.stat span svg { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--grad-soft); color: var(--sky-ink); }
.stat b { font-family: var(--display); font-size: 1.7rem; color: var(--ink); display: block; margin-top: 4px; }
/* قوائم المكتبة قد تبلغ مئات العناصر (الباقات والمحاكاة)؛ طبقة ضبابية لكل عنصر تستنفد ذاكرة Safari على iPhone فتنهار الصفحة */
.lib-item { display: flex; gap: 14px; align-items: center; border-radius: var(--r); padding: 14px; transition: .2s; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lib-item:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow), 0 20px 36px -24px rgba(14,165,233,.6); }
.lib-item .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.lib-item .info { flex: 1; min-width: 0; }
.lib-item.is-new { box-shadow: 0 0 0 2px var(--green-2), var(--glass-shadow); }
.lib-item h4 .pill { vertical-align: middle; margin-inline-start: 6px; font-size: .72rem; }

/* إرشاد ما بعد الشراء: سطر تحت زر الشراء، ونافذة قبل الانتقال إلى سلة، وشريط المنتج الجديد في حسابي */
.buy-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sky-soft); color: var(--sky-ink); font-size: .84rem; line-height: 1.7; }
.buy-hint svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
:root[data-theme="dark"] .buy-hint { color: #7DD3FC; }
dialog.buy-guide { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 22px; background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.buy-guide::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
dialog.buy-guide::backdrop { background: rgba(10,10,14,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.buy-guide h2 { font-size: 1.25rem; margin: 12px 0 4px; }
.buy-guide-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(14,165,233,.7); }
.buy-guide-steps { list-style: none; counter-reset: st; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.buy-guide-steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.buy-guide-steps li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--green-2); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.buy-guide-steps b { color: var(--ink); }
.buy-guide-steps span { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.buy-guide-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: #8A5A00; font-size: .85rem; margin: 0 0 12px; }
:root[data-theme="dark"] .buy-guide-note { color: var(--gold-2); }
.buy-guide-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.buy-guide-off { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); cursor: pointer; margin-bottom: 14px; }
.buy-guide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-guide-actions .btn-primary { flex: 1; }
.new-buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r); background: linear-gradient(120deg, var(--green-soft), var(--sky-soft)); border: 1px solid color-mix(in srgb, var(--green-2) 35%, transparent); }
.new-buy-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.new-buy-text { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.new-buy-text b { color: var(--ink); font-family: var(--display); }
.new-buy-text span { font-size: .87rem; color: var(--muted); }
.new-buy-actions { display: flex; gap: 8px; align-items: center; }
.lib-item h4 { margin: 0; font-family: var(--font); font-size: .98rem; }
.lib-item .path { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .lib-list { grid-template-columns: minmax(0, 1fr); } .lib-item { flex-wrap: wrap; min-width: 0; } }
.lib-files { grid-column: 1 / -1; background: var(--surface); backdrop-filter: blur(12px); border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 16px; }
.lib-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-files a { display: inline-flex; gap: 6px; align-items: center; color: var(--sky-ink); }
.lib-files svg { width: 16px; height: 16px; }
.sub-card { border-radius: var(--r); padding: 18px 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: start; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr:hover td { background: var(--row-hover); }
.table-wrap { overflow-x: auto; border-radius: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.ok { background: rgba(16,179,154,.13); color: #0B7A68; }
.pill.warn { background: rgba(245,158,11,.15); color: #A15C07; }
.pill.err { background: rgba(244,63,94,.12); color: #BE123C; }
.pill.off { background: rgba(120,120,128,.12); color: #5E5E63; }
:root[data-theme="dark"] .pill.ok { color: #5EEAD4; }
:root[data-theme="dark"] .pill.warn { color: #FCD34D; }
:root[data-theme="dark"] .pill.err { color: #FDA4AF; }
:root[data-theme="dark"] .pill.off { color: #A3B1C6; }

.skeleton { background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 220px; }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.p-cover .badge.hot { inset-inline-start: auto; }
.p-cover .badge.soon { inset-inline-start: auto; inset-inline-end: 10px; background: #F59E0B; color: #fff; }
.p-card.is-soon .p-cover { filter: saturate(.55); }
.p-card.is-soon .price { color: var(--muted); }
.p-cover .badge svg { width: 13px; height: 13px; }
.p-cover.has-img { background: #1C1C1E; }
.p-cover.has-img::before { display: none; }
.p-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-cover.has-img .code { display: none; }
.gallery { margin-bottom: 24px; }
.gallery-stage { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.gallery-stage > * { animation: gallery-enter .45s ease-out; }
@keyframes gallery-enter { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--r); background: var(--surface-2); display: block; box-shadow: var(--glass-shadow); }
.gallery-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.gallery-count { min-width: 58px; text-align: center; color: var(--muted); font-size: .85rem; direction: ltr; }
.gallery-toggle { margin-inline-start: auto; }
@media (prefers-reduced-motion: reduce) { .gallery-stage > * { animation: none; } .included-plan { transition: none; } .included-plan:hover { transform: none; } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 96px; height: 62px; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: .15s; }
.thumbs button.on, .thumbs button:hover { border-color: var(--sky); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* هوية المنتج: غلاف البطاقة والبوستر والبروشور (identity-art.js) */
.p-cover.has-art { background: #0D1726; }
.p-cover.has-art::before { display: none; }
.p-cover > svg.oz-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-cover.has-art .code { background: rgba(0,0,0,.34); }
.oz-poster { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; border-radius: var(--r); box-shadow: var(--glass-shadow); isolation: isolate; color: var(--pi); }
.oz-poster > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.oz-poster .txt { position: absolute; top: 8.5cqw; inset-inline-start: 6cqw; width: 42cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.7cqw; }
.oz-poster .eyebrow { font-size: 1.5cqw; padding: .5cqw 1.5cqw; border-radius: 999px; border: 1px solid var(--pl); background: color-mix(in srgb, var(--pi) 8%, transparent); color: var(--ps); font-weight: 500; line-height: 1.7; }
.oz-poster .txt h3 { margin: 0; color: var(--pi); font-family: var(--display); font-weight: 700; line-height: 1.22; }
.oz-poster .txt h3 span, .oz-poster .txt h3 b { display: block; }
.oz-poster .txt h3 b { color: var(--ph); }
.oz-poster .txt p { margin: 0; font-size: 1.85cqw; line-height: 1.75; color: var(--ps); }
.oz-poster .chips { display: flex; flex-wrap: wrap; gap: 1cqw; list-style: none; margin: .4cqw 0 0; padding: 0; }
.oz-poster .chips li { font-size: 1.42cqw; line-height: 1.6; padding: .65cqw 1.5cqw; border-radius: 1.1cqw; border: 1px solid var(--pl); background: color-mix(in srgb, var(--pi) 9%, transparent); color: var(--pi); font-weight: 500; }
.oz-poster .foot { position: absolute; bottom: 3.4cqw; inset-inline-start: 6cqw; display: flex; gap: 2.4cqw; font-size: 1.35cqw; color: var(--ps); letter-spacing: .03em; }
.gallery-stage .oz-poster, .gallery-stage .gallery-main { width: 100%; }
.thumbs .thumb-art { display: block; width: 100%; height: 100%; }
.thumbs .thumb-art svg { width: 100%; height: 100%; display: block; }
.brochure-link { display: inline-flex; margin-top: 12px; }
/* بوستر العائلة المصمم (poster-art.js): الرئيس كامل فوق ضبابه، والبقية أربعة تخطيطات */
.p-cover.has-poster { background: #0D1726; }
.p-cover.has-poster::before { display: none; }
.p-cover.has-poster .code { background: rgba(0,0,0,.38); }
.p-cover > .oz-pst { position: absolute; inset: 0; }
.oz-pst { position: relative; overflow: hidden; container-type: inline-size; isolation: isolate; background: #0D1726; color: #fff; }
.oz-pst.hero { aspect-ratio: 16 / 10; width: 100%; border-radius: var(--r); box-shadow: var(--glass-shadow); }
.oz-pst img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.oz-pst .bg { object-fit: cover; object-position: var(--pp, center); z-index: -2; }
.oz-pst.lead .bg { filter: blur(14px) brightness(.72) saturate(1.2); transform: scale(1.18); }
.oz-pst.lead .fg { object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.oz-pst .veil { position: absolute; inset: 0; z-index: -1; }
.oz-pst .veil::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.12); -webkit-mask: url('/assets/arabesque.svg') 0 0 / 11cqw 11cqw repeat; mask: url('/assets/arabesque.svg') 0 0 / 11cqw 11cqw repeat; }
.oz-pst .plq { position: absolute; display: flex; flex-direction: column; gap: 1.6cqw; line-height: 1.35; }
.oz-pst .plq small { align-self: flex-start; font-size: 3.1cqw; font-weight: 600; padding: .5cqw 2.2cqw; border-radius: 99px; background: rgba(255,255,255,.9); color: color-mix(in srgb, var(--c) 80%, #000); }
.oz-pst .plq b { font-family: var(--display); font-size: 6.4cqw; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oz-pst.hero .plq small { font-size: 2.2cqw; }
.oz-pst.hero .plq b { font-size: 5.2cqw; }
/* 0: لوح جانبي بلون القسم */
.oz-pst.v0 .bg { filter: saturate(1.15); }
.oz-pst.v0 .veil { background: linear-gradient(to left, color-mix(in srgb, var(--c) 92%, #000) 0 46%, color-mix(in srgb, var(--c) 40%, transparent) 72%, transparent); }
.oz-pst.v0 .plq { inset-block: 0; inset-inline-start: 0; width: 50%; justify-content: center; padding-inline: 6cqw 2cqw; }
/* 1: شريط سفلي */
.oz-pst.v1 .bg { filter: saturate(1.1) brightness(.92); }
.oz-pst.v1 .veil { background: linear-gradient(to top, color-mix(in srgb, var(--c) 88%, #000) 0 30%, color-mix(in srgb, var(--c) 30%, transparent) 62%, transparent 80%); }
.oz-pst.v1 .plq { inset-inline: 0; bottom: 0; padding: 0 6cqw 5cqw; }
.oz-pst.v1 .plq b { -webkit-line-clamp: 2; }
/* 2: لوحة زجاجية في الوسط */
.oz-pst.v2 .bg { filter: blur(3px) saturate(1.25) brightness(.8); transform: scale(1.06); }
.oz-pst.v2 .veil { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 75%, #000)); }
.oz-pst.v2 .plq { inset: 14% 12%; align-items: center; justify-content: center; text-align: center; padding: 3cqw 4cqw; border-radius: 4cqw; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.oz-pst.v2 .plq small { align-self: center; }
/* 3: قطري من الجهة الأخرى */
.oz-pst.v3 .bg { filter: saturate(1.15); }
.oz-pst.v3 .veil { background: linear-gradient(245deg, transparent 0 34%, color-mix(in srgb, var(--c) 55%, transparent) 50%, color-mix(in srgb, #0D1726 60%, var(--c)) 64%); }
.oz-pst.v3 .plq { inset-block: 0; inset-inline-end: 0; width: 46%; justify-content: center; padding-inline: 1cqw 5cqw; }
.oz-pst .foot { position: absolute; bottom: 2.6cqw; inset-inline-end: 3.4cqw; display: flex; gap: 2cqw; font-size: 1.5cqw; padding: .4cqw 1.6cqw; border-radius: 99px; background: rgba(0,0,0,.4); color: #fff; }
.thumbs .thumb-art .oz-pst { width: 100%; height: 100%; }

.oz-brochure { width: 210mm; min-height: 297mm; margin: 0 auto; background: #FFFFFF; color: #1F2937; display: flex; flex-direction: column; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oz-brochure header { color: #FFFFFF; padding: 13mm 14mm 11mm; display: grid; grid-template-columns: 30mm 1fr 32mm; gap: 7mm; align-items: center; border-radius: 0 0 9mm 9mm; }
.oz-brochure header .lg svg { width: 30mm; height: 30mm; display: block; }
.oz-brochure .eyebrow { font-size: 9pt; color: rgba(255,255,255,.78); }
.oz-brochure h1 { color: #FFFFFF; font-size: 20pt; line-height: 1.35; margin: 1.5mm 0 2mm; }
.oz-brochure header p { margin: 0; font-size: 10.5pt; line-height: 1.75; color: rgba(255,255,255,.88); }
.oz-brochure .mock { width: 32mm; height: auto; transform: rotate(5deg); overflow: visible; }
.oz-brochure section { padding: 0 14mm; margin-top: 6.5mm; }
.oz-brochure .cols { display: grid; grid-template-columns: 1fr 1fr; }
.oz-brochure .cols section:first-child { padding-inline-end: 4mm; } .oz-brochure .cols section + section { padding-inline-start: 4mm; }
.oz-brochure h2 { display: flex; align-items: center; gap: 2.2mm; font-size: 12.5pt; color: var(--ad); margin: 0 0 2.5mm; }
.oz-brochure h2 svg { width: 5.2mm; height: 5.2mm; flex: none; }
.oz-brochure p, .oz-brochure li { font-size: 10pt; line-height: 1.8; margin: 0; }
.oz-brochure ol, .oz-brochure ul { margin: 0; padding-inline-start: 5.5mm; }
.oz-brochure .parts { columns: 2; column-gap: 9mm; }
.oz-brochure .parts li { break-inside: avoid; }
.oz-brochure li::marker { color: var(--a); font-weight: 700; }
.oz-brochure .edge { margin: 7mm 14mm 0; padding: 4.5mm 6mm; border-radius: 4mm; background: var(--a2); border-inline-start: 1.4mm solid var(--a); }
.oz-brochure .delivery { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 6mm; }
.oz-brochure .delivery li::before { content: '✓'; color: var(--a); font-weight: 700; margin-inline-end: 2mm; }
.oz-brochure footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 6mm 14mm; border-top: .3mm solid #E5E7EB; font-size: 9pt; color: #6B7280; }
.oz-brochure footer b { color: var(--ad); font-size: 11pt; }
