/* مذكور — عالم «الإجابة والقلم الفسفوري»: اسمك إذا انذكر بينعلّم بالأصفر */
@font-face { font-family: Body; src: url(/fonts/gess-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Body; src: url(/fonts/gess-Medium.woff2) format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Body; src: url(/fonts/gess-Bold.woff2) format('woff2'); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Body; src: url(/fonts/futura-Book.woff2) format('woff2'); font-weight: 300 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2026; }
@font-face { font-family: Body; src: url(/fonts/futura-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2026; }
@font-face { font-family: Body; src: url(/fonts/futura-Demi.woff2) format('woff2'); font-weight: 600 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2026; }
@font-face { font-family: Head; src: url(/fonts/kufi800.woff2) format('woff2'); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Head; src: url(/fonts/kufi600.woff2) format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Head; src: url(/fonts/futura-Bold.woff2) format('woff2'); font-weight: 500 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2026; }
@font-face { font-family: Num; src: url(/fonts/futura-Demi.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #F4EEE3; --paper2: #EAE2D3; --card: #FFFDF8;
  --ink: #1A1226; --ink2: #3B3249; --mute: #6F6680; --line: #DCD2C1; --line2: #CBBFAB;
  --marker: #FFD43B; --marker2: #FFE680; --coral: #E9542D; --coral-bg: #FCE3D9; --grass: #1C7D52; --grass-bg: #DDF1E6;
  --night: #1A1226; --night-ink: #F4EEE3; --night-mute: #B8AEC6; --night-line: #3A2F4B;
  --r: 6px; --wrap: 1180px;
  --f-body: Body, 'Segoe UI', Tahoma, sans-serif; --f-head: Head, Body, 'Segoe UI', sans-serif; --f-num: Num, Body, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #140F1C; --paper2: #1B1525; --card: #1F1829;
  --ink: #F2ECE2; --ink2: #D8D0E2; --mute: #A69DB5; --line: #33293F; --line2: #463A55;
  --coral-bg: #3A1D17; --grass-bg: #143323; --marker2: #5A4A12;
  --night: #0D0913; --night-line: #2C2338;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.num, .tnum { font-family: var(--f-num); font-variant-numeric: tabular-nums lining-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.35; margin: 0; letter-spacing: 0; }

/* القلم الفسفوري: توقيع الموقع */
.mk { background-image: linear-gradient(180deg, transparent 52%, var(--marker) 52%, var(--marker) 90%, transparent 90%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-theme="dark"] .mk { background-image: linear-gradient(180deg, transparent 52%, #8A6F00 52%, #8A6F00 90%, transparent 90%); }
.mk.draw { background-size: 0% 100%; background-position: right; transition: background-size .9s cubic-bezier(.6, 0, .2, 1) .35s; }
.mk.draw.on { background-size: 100% 100%; }
.mk-grey { background-image: linear-gradient(180deg, transparent 55%, rgba(26, 18, 38, .12) 55%, rgba(26, 18, 38, .12) 90%, transparent 90%); }
html[data-theme="dark"] .mk-grey { background-image: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .14) 55%, rgba(255, 255, 255, .14) 90%, transparent 90%); }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: var(--r); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.y { background: var(--marker); border-color: var(--ink); color: #1A1226; }
.btn.o { background: transparent; color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) {
  .btn:hover { box-shadow: 4px 4px 0 var(--marker); }
  .btn.y:hover { box-shadow: 4px 4px 0 var(--ink); }
  .btn.o:hover { background: var(--ink); color: var(--paper); }
}
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--marker); }

/* الهيدر */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-head); font-weight: 800; font-size: 26px; line-height: 1; }
.logo .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--marker); border: 2px solid var(--ink); display: grid; place-items: center; }
.logo .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink2); }
.nav a:not(.btn) { padding: 6px 0; }
.nav a.btn { color: var(--paper); }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 6px; } }
.theme-btn { width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: var(--r); background: transparent; display: grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
@media (max-width: 860px) { .nav a.hide-m { display: none; } .nav { gap: 12px; } }

/* الهيرو */
.hero { padding: 64px 0 72px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; color: var(--mute); margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow .eng { font-family: var(--f-head); font-weight: 600; color: var(--ink2); }
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line2); }
.hero h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.36; }
.hero .lead { font-size: 19px; color: var(--ink2); margin: 22px 0 30px; max-width: 34em; }
.scanbox { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 10px; box-shadow: 8px 8px 0 var(--ink); max-width: 560px; }
.scanbox .row { display: flex; gap: 8px; }
.scanbox input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; font-size: 18px; padding: 0 14px; outline: none; }
.scanbox input::placeholder { color: var(--mute); }
.scanbox .alt { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 4px; }
.scanbox.nosite .alt { display: grid; }
.scanbox.nosite .urlrow input { display: none; }
.scanbox .alt input { height: 48px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; }
.scanbox .alt input.full { grid-column: 1 / -1; }
.scanbox .email { display: none; padding: 4px 4px 2px; }
.scanbox .email input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; }
.scan-under { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--mute); align-items: center; }
.scan-under button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.scan-err { color: var(--coral); font-size: 15px; margin: 12px 0 0; min-height: 1px; }

/* بطاقة الإجابة بالهيرو */
.answer { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(26, 18, 38, .35); }
.answer .tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--paper2); overflow-x: auto; scrollbar-width: none; }
.answer .tabs::-webkit-scrollbar { display: none; }
.answer .tab { flex: 1; min-width: 92px; border: 0; background: transparent; padding: 14px 10px 12px; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--mute); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.answer .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); background: var(--card); }
.answer .tab .pip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-start: 6px; vertical-align: middle; background: var(--line2); }
.answer .tab .pip.hit { background: var(--grass); }
.answer .tab .pip.miss { background: var(--coral); }
.answer .body { padding: 22px 24px 24px; min-height: 360px; }
.q-bubble { display: inline-block; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 16px 16px 16px 4px; font-size: 16px; margin-bottom: 18px; max-width: 92%; }
.a-text { font-size: 16px; line-height: 1.95; color: var(--ink2); }
.a-text ol { margin: 10px 0 0; padding-inline-start: 22px; }
.a-text li { margin: 6px 0; }
.a-text b { color: var(--ink); font-weight: 600; }
.verdict { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line2); display: flex; align-items: center; gap: 12px; font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag.hit { background: var(--grass-bg); color: var(--grass); }
.tag.miss { background: var(--coral-bg); color: var(--coral); }
.tag.wait { background: var(--paper2); color: var(--mute); }
.tag.y { background: var(--marker); color: #1A1226; }
.slot { display: inline-block; border: 2px dashed var(--coral); color: var(--coral); padding: 0 8px; border-radius: 4px; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* الأقسام */
section { position: relative; }
.sec { padding: 96px 0; }
.sec-h { max-width: 720px; margin-bottom: 48px; }
.sec-h h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sec-h p { color: var(--ink2); font-size: 18px; margin: 14px 0 0; }
.kicker { font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--mute); margin-bottom: 12px; display: block; }

/* الشريط الليلي */
.night { background: var(--night); color: var(--night-ink); }
.night .mute, .night .sec-h p { color: var(--night-mute); }
.night .kicker { color: var(--marker); }
.statement { padding: 88px 0; }
.statement p.big { font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.5; margin: 0; max-width: 22em; }
.statement .facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--night-line); color: var(--night-mute); font-size: 16px; }
.statement .facts b { font-family: var(--f-num); color: var(--marker); font-size: 30px; font-weight: 600; margin-inline-end: 8px; vertical-align: -3px; }

/* كيف بيشتغل */
.steps { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: 110px 1fr 1.1fr; gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line2); align-items: start; }
.step .n { font-family: var(--f-num); font-size: 64px; line-height: 1; color: var(--ink); }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink2); }
.mini { background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 18px; font-size: 15px; }
.mini .k { color: var(--mute); font-size: 13px; }
.mini .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; background: var(--paper); white-space: nowrap; }
.mini .qline { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini .qline:last-child { border-bottom: 0; }
.mini .grid2 { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }

/* قسم التقرير الأصفر */
.yellow { background: var(--marker); color: #1A1226; }
.yellow .sec-h p, .yellow .mute { color: #4A3F2A; }
.yellow .kicker { color: #4A3F2A; }
.sheet { background: #FFFDF8; color: #1A1226; border: 2px solid #1A1226; border-radius: 10px; box-shadow: 12px 12px 0 #1A1226; padding: 30px; display: grid; grid-template-columns: 280px 1fr; gap: 34px; }
.sheet .scorebig { font-family: var(--f-num); font-size: 88px; line-height: 1; }
.sheet .scorebig small { font-size: 26px; color: #6F6680; }
.bar { height: 10px; background: #EAE2D3; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #1A1226; border-radius: 99px; }
.sheet .mrow { display: grid; grid-template-columns: 1fr repeat(3, 64px); gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #EAE2D3; font-size: 15px; }
.sheet .mrow.h { font-size: 12px; color: #6F6680; padding-top: 0; }
.cell { height: 26px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.cell.hit { background: #FFD43B; }
.cell.miss { background: #F4EEE3; color: #B0A79C; }
.sheet .side-h { font-family: var(--f-head); font-weight: 600; font-size: 15px; margin: 22px 0 8px; }
.sheet .comp { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; border-bottom: 1px dashed #EAE2D3; }

/* الأسعار */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; }
.plan { padding: 30px 26px 28px; border-inline-start: 1px solid var(--line2); display: flex; flex-direction: column; }
.plan:first-child { border-inline-start: 0; }
.plan.hot { background: var(--marker); color: #1A1226; }
.plan.hot .mute, .plan.hot li { color: #3E3527; }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--f-num); font-size: 52px; line-height: 1; margin: 18px 0 4px; }
.plan .price sup { font-size: 22px; vertical-align: 22px; margin-inline-end: 2px; }
.plan .per { font-size: 14px; color: var(--mute); min-height: 22px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; font-size: 15px; flex: 1; }
.plan li { padding: 9px 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); color: var(--ink2); }
.plan .btn { margin-top: auto; }
.plan .badge { display: inline-block; font-size: 12px; font-weight: 600; background: #1A1226; color: #FFD43B; padding: 3px 9px; border-radius: 4px; margin-bottom: 12px; align-self: flex-start; }
.plan.hot .btn { background: #1A1226; color: #FFFDF8; border-color: #1A1226; }
.guarantee { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink2); }
.guarantee b { color: var(--ink); }

/* الأسئلة الشائعة */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--night-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--f-head); font-weight: 600; font-size: 19px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; flex: none; border: 1px solid var(--night-line); border-radius: 50%; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; inset: 50% 7px auto; height: 2px; margin-top: -1px; background: var(--marker); }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .2s; }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { margin: 0 0 24px; color: var(--night-mute); max-width: 44em; }

/* الفوتر */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--mute); }
.foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }

/* ===== صفحة الفحص ===== */
.scanpage { padding: 40px 0 90px; min-height: 70vh; }
.lane { display: flex; gap: 0; margin-bottom: 34px; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--card); }
.lane span { flex: 1; padding: 12px 10px; text-align: center; font-size: 14px; color: var(--mute); border-inline-start: 1px solid var(--line); white-space: nowrap; }
.lane span:first-child { border-inline-start: 0; }
.lane span.on { color: var(--ink); font-weight: 600; background: var(--marker2); }
html[data-theme="dark"] .lane span.on { color: #FFE680; }
.lane span.done { color: var(--ink2); }
.stagebox { max-width: 860px; margin: 0 auto; }
.reading { text-align: center; padding: 70px 0; }
.reading h2 { font-size: 30px; }
.reading .host { font-family: var(--f-num); font-size: 18px; color: var(--mute); margin-top: 10px; }
.ticker { margin: 34px auto 0; max-width: 520px; text-align: start; font-size: 16px; }
.ticker div { padding: 10px 0; border-bottom: 1px dashed var(--line2); color: var(--mute); display: flex; gap: 10px; align-items: center; }
.ticker div.on { color: var(--ink); }
.ticker div.ok { color: var(--ink2); }
.spin { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.okdot { width: 16px; height: 16px; border-radius: 50%; background: var(--marker); border: 2px solid var(--ink); flex: none; }
.waitdot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.profile { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 28px; box-shadow: 8px 8px 0 var(--ink); }
.profile h2 { font-size: 26px; margin-bottom: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.f { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.f input, .f textarea, .f select { height: 48px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--paper); padding: 0 12px; font-size: 16px; color: var(--ink); width: 100%; }
.f textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.7; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--marker); outline-offset: 1px; border-color: var(--ink); }
.f.full { grid-column: 1 / -1; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips .chip { font-size: 14px; padding: 6px 12px; display: inline-flex; gap: 8px; align-items: center; }
.svc-chips .chip button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--mute); font-size: 16px; line-height: 1; }
.profile .act { display: flex; gap: 12px; margin-top: 26px; align-items: center; flex-wrap: wrap; }

.live-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.live-h h2 { font-size: 26px; }
.live-count { font-family: var(--f-num); font-size: 15px; color: var(--mute); }
.progress { height: 6px; background: var(--paper2); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s; }
.qlist { border-top: 2px solid var(--ink); }
.qrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qrow .qi { font-family: var(--f-num); color: var(--mute); font-size: 15px; }
.qrow .qt { font-size: 16px; }
.qrow .qt small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.qrow .cells { display: flex; gap: 6px; }
.qcell { min-width: 84px; height: 32px; padding: 0 10px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; background: var(--paper2); color: var(--mute); white-space: nowrap; }
.qcell.hit { background: var(--marker); color: #1A1226; }
.qcell.miss { background: transparent; border: 1px solid var(--line2); color: var(--mute); }
.qcell.busy .spin { width: 12px; height: 12px; }

/* ===== التقرير ===== */
.rep { padding: 40px 0 90px; }
.rep-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
.rep-head h1 { font-size: clamp(28px, 3.6vw, 44px); }
.rep-head .meta { color: var(--mute); font-size: 15px; margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.scorecard { text-align: center; min-width: 220px; }
.scorecard .big { font-family: var(--f-num); font-size: 96px; line-height: .95; }
.scorecard .big small { font-size: 28px; color: var(--mute); }
.scorecard .lbl { font-size: 14px; color: var(--mute); margin-top: 8px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line2); }
.summary > div { padding: 26px 0; border-inline-start: 1px solid var(--line2); padding-inline-start: 26px; }
.summary > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.summary .k { font-size: 14px; color: var(--mute); }
.summary .v { font-family: var(--f-head); font-weight: 800; font-size: 26px; margin-top: 4px; }
.summary .v.num { font-family: var(--f-num); font-weight: 600; font-size: 34px; }
.rsec { padding: 54px 0 10px; }
.rsec > h2 { font-size: 26px; margin-bottom: 6px; }
.rsec > p.mute { margin: 0 0 22px; }
.etable { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.etable th { text-align: start; font-weight: 600; font-size: 13px; color: var(--mute); padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.etable td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.etable th.c, .etable td.c { text-align: center; width: 104px; }
.etable .qtext { cursor: pointer; }
.etable .intent { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--mute); }
.etable tr.open td { background: var(--paper2); }
.ans-detail td { padding: 0 8px 18px; background: var(--paper2); }
.ans-detail .ad { display: grid; gap: 12px; }
.ans-detail .ab { background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 14px 16px; font-size: 15px; line-height: 1.9; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.ans-detail .ab h4 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 600; font-size: 14px; }
.comps { display: grid; gap: 10px; max-width: 760px; }
.comprow { display: grid; grid-template-columns: 200px 1fr 70px; gap: 14px; align-items: center; font-size: 15px; }
.comprow .bar > i { background: var(--ink2); }
.comprow.me .bar > i { background: var(--marker); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.check { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.check .d { color: var(--mute); font-size: 14px; display: block; margin-top: 2px; }
.shots { display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: start; }
.shots figure { margin: 0; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--card); }
.shots img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.shots figcaption { font-size: 13px; color: var(--mute); padding: 8px 12px; border-top: 1px solid var(--line); }
.issues { display: grid; gap: 12px; margin-top: 22px; }
.issue { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line2); border-radius: 8px; }
.issue b { display: block; font-size: 16px; }
.issue p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); margin-bottom: 22px; }
.metrics > div { padding: 18px; border-inline-start: 1px solid var(--line); }
.metrics > div:first-child { border-inline-start: 0; }
.metrics .k { font-size: 13px; color: var(--mute); }
.metrics .v { font-family: var(--f-num); font-size: 30px; line-height: 1.2; }
.locked { position: relative; border: 2px dashed var(--line2); border-radius: 10px; padding: 26px; overflow: hidden; }
.locked .blur { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.locked .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: color-mix(in srgb, var(--paper) 40%, transparent); }
.locked .over > div { max-width: 440px; }
.locked .over h3 { font-size: 22px; margin-bottom: 8px; }
.upsell { margin-top: 60px; background: var(--night); color: var(--night-ink); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.upsell h2 { font-size: 30px; }
.upsell p { color: var(--night-mute); }
.upsell .opts { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--night-line); border-radius: 8px; }
.opt b { font-family: var(--f-head); font-weight: 600; }
.opt .p { font-family: var(--f-num); font-size: 26px; color: var(--marker); }
.opt small { display: block; color: var(--night-mute); font-size: 13px; }
.plan-list { counter-reset: s; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.plan-list li { list-style: none; display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-list li::before { counter-increment: s; content: counter(s); font-family: var(--f-num); font-size: 26px; line-height: 1; }
.plan-list b { display: block; }
.plan-list p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
.notice { padding: 14px 18px; border-radius: 8px; background: var(--marker2); color: var(--ink); font-size: 15px; }
html[data-theme="dark"] .notice { color: #FFE680; }
.codebox { position: relative; }
.codebox pre { direction: ltr; text-align: left; background: #1A1226; color: #F4EEE3; padding: 18px; border-radius: 8px; overflow: auto; font: 13px/1.6 ui-monospace, Consolas, monospace; max-height: 360px; white-space: pre-wrap; word-break: break-word; }
.codebox .copy { position: absolute; top: 10px; left: 10px; }
.kit h3 { font-size: 20px; margin: 34px 0 10px; }
.kit .stepcard { border: 1px solid var(--line2); background: var(--card); border-radius: 8px; padding: 20px; margin-bottom: 14px; }
.kit .stepcard h4 { margin: 0 0 8px; font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.kit .stepcard p, .kit .stepcard li { color: var(--ink2); font-size: 15px; }

/* لوحة الإدارة */
.adm { padding: 30px 0 80px; }
.adm h1 { font-size: 26px; margin-bottom: 18px; }
.adm .tabsn { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.adm .tabsn a { padding: 8px 14px; border: 1px solid var(--line2); border-radius: var(--r); text-decoration: none; font-size: 14px; }
.adm .tabsn a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.adm table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.adm th, .adm td { text-align: start; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm th { color: var(--mute); font-weight: 600; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); margin-bottom: 24px; }
.kpis > div { padding: 18px; border-inline-start: 1px solid var(--line); }
.kpis > div:first-child { border-inline-start: 0; }
.kpis .v { font-family: var(--f-num); font-size: 28px; }
.kpis .k { font-size: 13px; color: var(--mute); }
.setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 900px; }
.flash { padding: 12px 16px; border-radius: 8px; background: var(--grass-bg); color: var(--grass); margin-bottom: 18px; }
.flash.err { background: var(--coral-bg); color: var(--coral); }

/* صفحات نصية */
.prose { max-width: 780px; padding: 50px 0 90px; }
.prose h1 { font-size: 34px; margin-bottom: 20px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink2); }

/* الجوال */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 34px 0 56px; }
  .step { grid-template-columns: 70px 1fr; }
  .step .mini { grid-column: 1 / -1; }
  .step .n { font-size: 46px; }
  .sheet { grid-template-columns: 1fr; padding: 22px; box-shadow: 8px 8px 0 #1A1226; }
  .prices { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-inline-start: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .upsell { grid-template-columns: 1fr; padding: 28px; }
  .shots { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .sec { padding: 68px 0; }
  .hero .lead { font-size: 17px; }
  .scanbox { box-shadow: 5px 5px 0 var(--ink); }
  .scanbox .row { flex-direction: column; }
  .scanbox .row .btn { width: 100%; }
  .scanbox input { height: 52px; }
  .answer .body { padding: 18px; min-height: 0; }
  .prices { grid-template-columns: 1fr; }
  .plan { border-inline-start: 0 !important; border-top: 1px solid var(--line2); }
  .plan:first-child { border-top: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .lane span { font-size: 12px; padding: 10px 4px; }
  .qrow { grid-template-columns: 26px 1fr; }
  .qrow .cells { grid-column: 2; flex-wrap: wrap; }
  .rep-head { grid-template-columns: 1fr; }
  .scorecard { text-align: start; }
  .summary { grid-template-columns: 1fr; }
  .summary > div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(3) { border-inline-start: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .comprow { grid-template-columns: 1fr 70px; }
  .comprow .bar { grid-column: 1 / -1; grid-row: 2; }
  .etable th.c, .etable td.c { width: 62px; }
  .etable .qcell { min-width: 0; width: 100%; padding: 0 4px; font-size: 11px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .setgrid { grid-template-columns: 1fr; }
  .statement .facts { gap: 14px 24px; }
  .sheet .mrow { grid-template-columns: 1fr repeat(3, 40px); gap: 6px; font-size: 14px; }
  .sheet .mrow.h span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mk.draw { background-size: 100% 100%; }
}

/* الطباعة (PDF) */
@page { size: A4; margin: 0; }
.print body, body.print { background: #fff; color: #1A1226; font-size: 12.5px; }
.pp { width: 210mm; min-height: 297mm; padding: 16mm 15mm; page-break-after: always; break-after: page; position: relative; background: #fff; }
.pp:last-child { page-break-after: auto; break-after: auto; }
.pp .ph { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #6F6680; border-bottom: 1px solid #DCD2C1; padding-bottom: 8px; margin-bottom: 18px; }
.pp h2 { font-size: 20px; margin: 0 0 6px; }
.pp h3 { font-size: 15px; margin: 18px 0 8px; }
.pp .etable { font-size: 11.5px; }
.pp .etable td, .pp .etable th { padding: 7px 6px; }
.pp .qcell { min-width: 0; height: 22px; font-size: 10.5px; padding: 0 6px; }
.pp .cover { height: 265mm; display: flex; flex-direction: column; justify-content: space-between; }
.pp .cover h1 { font-size: 34px; line-height: 1.35; }
.pp .cover .big { font-family: var(--f-num); font-size: 120px; line-height: 1; }
.pp .check { padding: 7px 0; font-size: 11.5px; grid-template-columns: 62px 1fr; }
.pp .tag { font-size: 10px; padding: 2px 7px; }
.pp .issue { padding: 10px; grid-template-columns: 62px 1fr; }
.pp .issue p { font-size: 11.5px; }
.pp .metrics .v { font-size: 22px; }
.pp .shots { grid-template-columns: 1fr 150px; }
.pp.cov { background: #FFD43B; }
.pp.cov .cover h1 { font-size: 40px; }
.pp.cov .mute { color: #4A3F2A; }
.pp.cov .logo .dot { background: #fff; }
.pp:not(.cov) { min-height: 0; }
