/* بيرون تِك — هوية BEACON. القيم كلها من tokens.css (مصدرها resources/brand/tokens.json).
   الأساس يعمل على أي متصفح؛ الميزات الحديثة (انتقال الصفحات، الكشف بالتمرير، الحاويات) طبقة فوقه. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  font-family: var(--font-text); font-size: 16px; line-height: 1.6;
  background: var(--c-bg); color: var(--c-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--c-muted); }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 16px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--c-accent); color: var(--c-on-accent); padding: 10px 16px; border-radius: var(--r-btn); z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- العلامة ---------- */
.mark { width: 36px; height: 36px; flex: none; }
.mark .mk-ink { fill: var(--c-text); }
.mark .mk-bg { fill: var(--c-bg); }
.mark .mk-sig { fill: var(--c-mark-signal); }
.mark .mk-line, .mark .mk-wave { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4.4; }
.mark .mk-line { stroke: var(--c-text); stroke-width: 4.2; }
.mark .mk-wave { stroke: var(--c-mark-signal); }
@media (prefers-reduced-motion: no-preference) {
  .mark.anim .mk-p { animation: mk-p 3.2s var(--m-spring) infinite; transform-origin: 13px 46px; }
  .mark.anim .mk-t { stroke-dasharray: 22; stroke-dashoffset: 22; animation: mk-t 3.2s .3s ease infinite; }
  .mark.anim .mk-d { animation: mk-d 3.2s .65s var(--m-spring) infinite; transform-origin: 40px 32px; }
  .mark.anim .mk-a1 { animation: mk-a 3.2s 1s ease-out infinite; }
  .mark.anim .mk-a2 { animation: mk-a 3.2s 1.25s ease-out infinite; }
}
@keyframes mk-p { 0% { transform: scale(0); } 15% { transform: scale(1.08); } 22%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes mk-t { 0% { stroke-dashoffset: 22; } 20%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 22; } }
@keyframes mk-d { 0% { transform: scale(0); } 12% { transform: scale(1.7); } 22%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes mk-a { 0%, 5% { opacity: 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- الرأس ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--c-bg) 92%, transparent); border-bottom: 1px solid var(--c-line); }
@supports (backdrop-filter: blur(1px)) { .top { backdrop-filter: saturate(1.4) blur(14px); } }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--c-bg); backdrop-filter: none; } }
.top-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.lock { display: flex; align-items: center; gap: 10px; flex: none; }
.lock-t { display: flex; flex-direction: column; line-height: 1; direction: ltr; text-align: left; }
.lock-t b { font-family: var(--font-word); font-weight: 700; font-size: 1.08rem; letter-spacing: .03em; }
.lock-t small { font-size: .62rem; color: var(--c-muted); letter-spacing: .14em; margin-top: 4px; }
.top-search { flex: 1; display: none; align-items: center; gap: 6px; max-width: 520px; margin-inline: auto; }
.top-search input { flex: 1; height: 44px; border: 1.5px solid var(--c-line); border-radius: var(--r-field); background: var(--c-surface); padding-inline: 14px; }
.top-act { display: flex; gap: 8px; margin-inline-start: auto; }
.ib { width: var(--touch); height: var(--touch); border-radius: var(--r-btn); display: grid; place-items: center; background: var(--c-surface); border: 1px solid var(--c-line); position: relative; flex: none; }
.ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bag-btn i:empty, .bag-btn i[data-zero] { display: none; }
.bag-btn i { position: absolute; top: -5px; inset-inline-start: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: var(--c-on-accent); font-style: normal; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
@media (min-width: 760px) { .top-search { display: flex; } }

/* ---------- الأزرار والحقول ---------- */
.btn { min-height: var(--touch); padding: 0 18px; border-radius: var(--r-btn); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; background: var(--c-surface); border: 1.5px solid var(--c-line-strong); transition: transform var(--m-fast) var(--m-spring); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--c-accent); color: var(--c-on-accent); border-color: transparent; }
.btn.wide { flex: 1; }
.btn.link { background: none; border: 0; color: var(--c-muted); font-weight: 600; }
.ico { width: 20px; height: 20px; flex: none; }
.search { display: flex; align-items: center; gap: 8px; background: var(--c-surface); border: 1.5px solid var(--c-line-strong); border-radius: var(--r-field); padding: 6px 6px 6px 14px; position: relative; }
.search > svg { width: 22px; height: 22px; fill: none; stroke: var(--c-muted); stroke-width: 2.2; margin-inline-start: 4px; flex: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 1rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { border-color: var(--c-focus); }
.search.big { max-width: 720px; z-index: 1; margin-top: 22px; box-shadow: 0 12px 34px color-mix(in oklab, var(--c-text) 9%, transparent); }

/* ---------- البطل ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 18px; }
.eyebrow { font-size: .8rem; font-weight: 700; color: var(--c-accent-text); letter-spacing: .02em; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.8rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; max-width: 16ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in oklab, var(--c-accent) 70%, transparent) 62%); }
.lead { color: var(--c-muted); margin-top: 12px; max-width: 46ch; }
.hero-mark { position: absolute; inset-inline-end: -24px; top: 54px; width: 230px; opacity: .09; pointer-events: none; }
.hero-mark .mark { width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-surface); display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; }
@media (min-width: 900px) { .hero { padding: 72px 0 34px; } .hero-mark { width: 380px; inset-inline-end: 4%; top: 40px; opacity: .1; } }

/* ---------- الأقسام ---------- */
.sec { padding: 22px 0; }
.sec.tight { padding: 14px 0; }
.page { padding-top: 14px; padding-bottom: 32px; }
.page.narrow { max-width: 680px; }
.h1 { font-size: clamp(1.5rem, 4.6vw, 2.3rem); line-height: 1.2; font-weight: 700; margin: 6px 0 12px; }
.h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-mark-signal); flex: none; }
.h2-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { color: var(--c-accent-text); font-weight: 700; font-size: .92rem; }
.crumb { font-size: .82rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.crumb a { color: var(--c-accent-text); }

.brands { display: grid; gap: 8px; }
.brand { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); }
.brand summary { min-height: 52px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; list-style: none; font-size: 1.02rem; }
.brand summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-inline-end: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: rotate(45deg); transition: transform var(--m-base) var(--m-smooth); }
.brand[open] summary::after { transform: rotate(-135deg); }
.brand summary::-webkit-details-marker { display: none; }
.devs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 14px; }
.dev { min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--c-surface-2); display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; }
.dev:hover { background: color-mix(in oklab, var(--c-accent) 30%, var(--c-surface-2)); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; min-height: 64px; }
.art { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--c-muted); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust div { background: var(--c-surface-2); border-radius: var(--r-card); padding: 14px 12px; }
.trust b { display: block; font-size: 1.1rem; color: var(--c-accent-text); }
.trust span { font-size: .84rem; font-weight: 600; line-height: 1.4; }

/* ---------- بطاقة القطعة (تتكيّف مع عرضها لا عرض الشاشة) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 12px; }
.grid.rail { grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: inline mandatory; padding-bottom: 6px; scrollbar-width: none; }
.grid.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .grid.rail { grid-auto-columns: minmax(200px, 23%); } }
.card { container-type: inline-size; position: relative; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); overflow: hidden; transition: transform var(--m-base) var(--m-spring), box-shadow var(--m-base); }
.card.lit { transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }
.card.lit::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(50% 40% at var(--gx, 50%) var(--gy, 20%), color-mix(in oklab, var(--c-accent) 26%, transparent), transparent 70%); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in oklab, var(--c-text) 10%, transparent); }
.card-a { display: flex; flex-direction: column; height: 100%; }
.ph { aspect-ratio: 1; background: var(--c-stage); display: grid; place-items: center; }
.ph img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .16)); }
.ph .art { width: 40%; height: 40%; }
.bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nm { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.dv { font-size: .8rem; color: var(--c-muted); }
.rw { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.pr { font-weight: 700; }
.pr small { font-size: .72rem; color: var(--c-muted); }
.pill { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.pill.ok { background: var(--c-ok-bg); color: var(--c-ok); }
.pill.no { background: var(--c-no-bg); color: var(--c-no); }
.add { position: absolute; top: 8px; inset-inline-start: 8px; width: var(--touch); height: var(--touch); border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); transition: transform var(--m-fast) var(--m-spring); }
.add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.add:active { transform: scale(.88); }
.add.done { background: var(--c-text); color: var(--c-bg); }
@container (min-width: 260px) { .nm { font-size: 1.02rem; } .bd { padding: 14px 16px 16px; } }

/* ---------- صفحة القطعة ---------- */
.pp { display: grid; gap: 22px; }
.stage { border-radius: var(--r-stage); background: var(--c-stage); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.stage img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .2)); cursor: zoom-in; }
.stage .art { width: 36%; height: 36%; }
/* خط القلم يرسم حدود العلبة، ثم تظهر الصورة داخلها — بصمة الموقع منذ البداية، مطوّرة */
.ink { position: absolute; inset: 11%; width: 78%; height: 78%; pointer-events: none; overflow: visible; }
.ink polygon { fill: none; stroke: var(--c-mark-signal); stroke-width: 6; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ink polygon[points=""] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .stage.drawing .ink polygon { animation: ink 900ms var(--m-smooth) forwards; }
  .stage.drawing img { opacity: 0; animation: photo-in 420ms 760ms ease forwards; }
}
.stage:not(.drawing) .ink polygon { stroke-dashoffset: 0; opacity: .55; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes photo-in { to { opacity: 1; } }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at var(--lx, 70%) var(--ly, 25%), color-mix(in oklab, var(--c-accent) 24%, transparent), transparent 70%); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; border-radius: 12px; background: var(--c-stage); border: 2px solid transparent; padding: 4px; flex: none; }
.thumbs button.on { border-color: var(--c-focus); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.price b { font-size: 2.2rem; }
.price > span:not(.pill) { color: var(--c-muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; }
.facts div { background: var(--c-surface-2); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: .76rem; color: var(--c-muted); }
.facts dd { font-weight: 700; margin: 2px 0 0; }
.fits { font-size: .92rem; margin-bottom: 12px; }
.fits b { color: var(--c-accent-text); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn { min-height: 54px; }
.note { margin-top: 14px; font-size: .86rem; color: var(--c-muted); display: flex; gap: 8px; align-items: center; }
.note i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); flex: none; }
@media (min-width: 900px) { .pp { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .info { position: sticky; top: 90px; } }

/* ---------- قائمة الطلب والتكبير (نوافذ المتصفح الأصلية) ---------- */
dialog { border: 0; padding: 0; color: var(--c-text); background: var(--c-bg); }
dialog::backdrop { background: rgba(5, 10, 16, .55); }
.drawer { width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; margin-inline-start: auto; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: dr-in var(--m-base) var(--m-smooth); }
@keyframes dr-in { from { transform: translateX(-100%); } }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.dr-head h2 { font-size: 1.15rem; }
.dr-body { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; gap: 10px; align-content: start; }
.dr-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); display: grid; gap: 10px; }
.dr-foot textarea { border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-surface); padding: 10px 12px; resize: none; }
.dr-total { display: flex; justify-content: space-between; font-weight: 700; }
.dr-total b { font-size: 1.2rem; }
.ln { display: grid; grid-template-columns: 56px 1fr; gap: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 10px; }
.ln img, .ln .art { width: 56px; height: 56px; object-fit: contain; background: var(--c-stage); border-radius: 10px; padding: 4px; }
.ln b { font-size: .92rem; display: block; }
.ln-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 12px; }
.qty button { width: 40px; height: 40px; font-weight: 700; font-size: 1.1rem; }
.qty span { min-width: 26px; text-align: center; }
.dr-empty { text-align: center; color: var(--c-muted); padding: 30px 10px; }
.dr-empty b { display: block; color: var(--c-text); font-size: 1.05rem; margin-bottom: 6px; }
.zoom { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: var(--c-stage); }
.zoom[open] { display: grid; place-items: center; }
.zoom form { position: absolute; top: 12px; inset-inline-end: 12px; }
.zoom img { max-width: 96vw; max-height: 90dvh; object-fit: contain; touch-action: none; transform-origin: center; }

/* ---------- البحث، الفارغ، الخدمات، الصيانة ---------- */
.filter input { width: 100%; height: 48px; border: 1.5px solid var(--c-line); border-radius: var(--r-field); background: var(--c-surface); padding-inline: 14px; margin-bottom: 14px; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); max-height: 60vh; overflow-y: auto; padding: 6px; }
.suggest h3 { font-size: .74rem; color: var(--c-muted); padding: 8px 10px 4px; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; min-height: var(--touch); align-items: center; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--c-surface-2); }
.suggest a small { color: var(--c-muted); }
.empty { text-align: center; padding: 34px 12px; display: grid; justify-items: center; gap: 10px; }
.empty .mark { width: 72px; height: 72px; }
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--c-muted); max-width: 44ch; }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.svc-c { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 6px; }
.svc-c b { font-size: 1.05rem; }
.svc-c span { color: var(--c-muted); font-size: .9rem; }
.track-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--c-brand); color: var(--c-on-brand); border-radius: var(--r-card); padding: 18px; }
.track-box > div { flex: 1 1 200px; display: grid; }
.track-box > div span { opacity: .8; font-size: .88rem; }
.track-box input { flex: 1 1 150px; height: 48px; border: 0; border-radius: var(--r-btn); padding-inline: 14px; background: color-mix(in oklab, var(--c-on-brand) 14%, transparent); color: inherit; letter-spacing: .1em; }
.track-box input::placeholder { color: inherit; opacity: .6; }
.track-box .btn { background: var(--c-accent); color: var(--c-on-accent); border: 0; }
.alert { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--c-no-bg); color: var(--c-no); font-weight: 600; }
.repair { margin: 18px 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.rp-head .code { font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 22px 18px 0; border-inline-start: 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-mark-signal); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 20px; bottom: 0; width: 2px; background: var(--c-line); }
.timeline li:last-child::after { display: none; }
.timeline li { padding-inline-start: 24px; padding-inline-end: 0; }
.timeline b { display: block; }
.timeline span { font-size: .82rem; color: var(--c-muted); }

/* ---------- التذييل والإشعار ---------- */
.foot { margin-top: 30px; border-top: 1px solid var(--c-line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--c-muted); font-size: .9rem; }
.foot-in { display: grid; gap: 22px; }
.foot .lock { color: var(--c-text); margin-bottom: 10px; }
.foot nav { display: grid; gap: 4px; }
.foot nav a { min-height: var(--touch); display: flex; align-items: center; gap: 8px; color: var(--c-text); font-weight: 600; }
.foot .tag { margin-top: 8px; color: var(--c-accent-text); font-weight: 700; }
.stamp { margin-top: 14px; font-size: .78rem; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline: 16px; margin-inline: auto; max-width: 420px; background: var(--c-text); color: var(--c-bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(20px); transition: all var(--m-base) var(--m-spring); pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; transform: none; }

/* ---------- طبقات حديثة: انتقال الصفحات، الكشف بالتمرير ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes reveal { from { opacity: .3; transform: translateY(18px); } }

/* الوضع الخفيف (توفير البيانات أو اتصال بطيء): بلا زخارف ولا حركة */
html.lite .hero-mark, html.lite .stage::after { display: none; }
html.lite * { animation: none !important; transition: none !important; }

/* الصورة التوضيحية (partials/shot): رسم منتج بألوان الهوية، يتبع الوضع الفاتح والغامق */
.shot { width: 100%; height: 100%; display: block; direction: ltr; }
.shot .s-hi { stop-color: var(--c-surface); }
.shot .s-lo { stop-color: var(--c-stage); }
.shot .s-floor { fill: var(--c-text); opacity: .08; }
.shot .s-label { fill: var(--c-accent); }
.shot .s-bolt { fill: var(--c-on-accent); }
.shot .s-on-label { fill: var(--c-on-accent); font-size: 18px; font-weight: 700; }
.shot .s-ridge { stroke: var(--c-accent); }
.shot .s-tape { stroke: var(--c-accent); }
.shot .s-mono { font-family: var(--font-mono); }
.shot .s-dev { font-family: var(--font-word); font-size: 22px; font-weight: 700; fill: var(--c-text); }
.shot .s-chip { fill: var(--c-text); }
.shot .s-on-chip { fill: var(--c-bg); font-size: 14px; font-weight: 700; }
.shot .s-tag { font-family: var(--font-text); font-size: 13px; fill: var(--c-muted); }
.ph .shot, .stage .shot { width: 100%; height: 100%; }
.ln .shot { width: 56px; height: 56px; border-radius: 10px; }

/* مراجعة عامة: أيقونات المواقع في التذييل، وزرّا الإجراء في صفحة القطعة بعرض ونمط واحد */
.foot nav a .soc{display:inline-block;vertical-align:middle;margin-inline-end:8px}
.foot nav a{display:block}
.cta{display:flex;flex-wrap:wrap;gap:10px}
.cta .btn{flex:1 1 0;white-space:nowrap;min-height:54px;padding:0 14px;font-size:16px}

/* مراجعة CSP: تنسيقات كانت مضمّنة في القوالب */
.promo-strip{text-align:center;padding:10px 16px;font-weight:700;background:#7CF5C8;color:#070B12;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noscript-note{padding:18px 20px;color:#E8B34A;text-align:center}

/* قسم الثقة: بطاقات بارتفاع واحد، عنوان واضح بلون النص، ورقم بلون الإبراز */
.trust { align-items: stretch; }
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust b { font-size: 1rem; line-height: 1.35; color: var(--c-text); }
.trust b .num { color: var(--c-accent-text); }
.trust span { color: var(--c-muted); font-size: .88rem; font-weight: 500; }
