/* فوزي أكريم — «أزرق الأطلسي»: أرضية بحرية عميقة، ذهب الزعفران، وألوان الزليج. خطوط: Aref Ruqaa (الاسم)، Cairo (العناوين)، Noto Naskh Arabic (النص). */
:root {
  --bg: #0d2538;
  --bg2: #091a28;
  --surface: #14354f;
  --surface2: #1c4767;
  --ink: #eef3f8;
  --muted: #b8c5d1;
  --gold: #f2b53c;
  --gold-ink: #0d2538;
  --teal: #3cc3b9;
  --coral: #f08a6c;
  --sky: #7cc4ee;
  --red: #ee5a54;
  --lav: #b9a7f7;
  --m: clamp(18px, 3.4vw, 48px);
  --gap: clamp(88px, 11vw, 168px);
  --f-small: 1rem;
  --f-body: 1.3rem;
  --f-lead: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  --f-head: clamp(2.3rem, 1.2rem + 4vw, 4.6rem);
  --brand: 'Aref Ruqaa', 'Noto Naskh Arabic', serif;
  --display: 'Cairo', 'Noto Naskh Arabic', system-ui, sans-serif;
  --text: 'Noto Naskh Arabic', 'Cairo', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg2); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--f-body); line-height: 1.85; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .08em; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.2; margin: 0; word-spacing: .06em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--m); top: -80px; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; z-index: 60; font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }

/* ===== الشريط واللوغو ===== */
.bar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--m); }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-ph { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: var(--gold); flex: none; transition: transform .5s var(--ease); }
.logo:hover .logo-ph { transform: rotate(-8deg) scale(1.06); }
.logo-ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.logo-tx { display: grid; line-height: 1.05; }
.logo-tx b { font-family: var(--brand); font-weight: 700; font-size: 2.15rem; color: var(--gold); letter-spacing: 0; }
.logo-tx small { font-family: var(--display); font-size: .85rem; font-weight: 500; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.bar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; font-family: var(--display); font-weight: 700; font-size: .98rem; }
.bar nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 14px; border-radius: 99px; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.bar nav a:hover { background: var(--surface); color: var(--gold); transform: translateY(-2px); }
.bar nav .ic { width: 1.15em; height: 1.15em; color: var(--gold); }
.bar .act { display: inline-flex; align-items: center; gap: 9px; background: var(--gold); color: var(--gold-ink); padding: 11px 22px; border-radius: 99px; text-decoration: none; font-family: var(--display); font-size: .98rem; font-weight: 900; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s; }
.bar .act:hover { background: #ffc85a; transform: translateY(-2px); }
.bar .act:active { transform: scale(.97); }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 32px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-weight: 900; font-size: 1.12rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s; }
.btn:hover { background: #ffc85a; transform: translateY(-3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.alt { background: var(--surface2); color: var(--ink); }
.btn.alt:hover { background: var(--teal); color: var(--gold-ink); }
.btn .ic { width: 1.3em; height: 1.3em; }
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(-5px); }

/* ===== الواجهة ===== */
.hero { position: relative; overflow: hidden; margin-top: -86px; padding: 86px var(--m) 0; min-height: min(100svh, 980px); display: grid; align-items: center; isolation: isolate; }
.hero .zel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero .glow { position: absolute; z-index: -1; width: min(60vw, 760px); aspect-ratio: 1; inset-inline-end: -8%; top: 8%; border-radius: 50%; background: var(--surface); opacity: .75; }
.hero-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-block: 40px 150px; }
.hero-txt { grid-column: 1 / span 7; }
.hero h1 { font-family: var(--brand); font-weight: 700; font-size: clamp(5.2rem, 2rem + 11vw, 12.5rem); line-height: .98; color: var(--gold); letter-spacing: 0; word-spacing: .12em; text-wrap: nowrap; }
.hero .lead { margin-top: 18px; font-size: var(--f-lead); line-height: 1.6; max-width: 26em; color: var(--ink); }
.hero .lead b { color: var(--gold); font-weight: 700; }
.hero .acts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 16px; }
.hero-vis { grid-column: 8 / span 5; justify-self: center; width: min(100%, 440px); }
.badge { width: 100%; height: auto; display: block; overflow: visible; }
.badge .ringtxt { transform-origin: 200px 200px; }
.sky { position: absolute; inset-inline: 0; bottom: 0; z-index: -1; width: 100%; height: clamp(110px, 14vw, 220px); display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js .badge .ringtxt { animation: spin 90s linear infinite; }
  @keyframes spin { to { transform: rotate(-360deg); } }
  .js .hero .glow { animation: breathe 9s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.06); } }
  .js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-r].in { opacity: 1; transform: none; }
  .js .hero-txt > * { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
  .js .hero-txt > *:nth-child(1) { animation-delay: .1s; }
  .js .hero-txt > *:nth-child(2) { animation-delay: .3s; }
  .js .hero-txt > *:nth-child(3) { animation-delay: .5s; }
  .js .hero-vis { opacity: 0; transform: scale(.9) rotate(-4deg); animation: pop 1.2s var(--ease) .25s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes pop { to { opacity: 1; transform: none; } }
}

/* ===== الأقسام ===== */
section { padding: var(--gap) var(--m) 0; position: relative; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
h2.big { font-size: var(--f-head); max-width: 13em; }
h2.big em { font-style: normal; color: var(--gold); }

/* مدخل */
.intro .grid { align-items: center; row-gap: 40px; }
.intro .t { grid-column: 1 / span 7; }
.intro .stm { margin-top: 30px; font-size: var(--f-lead); line-height: 1.7; max-width: 26em; color: var(--muted); }
.intro .arch { grid-column: 9 / span 4; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 18px 18px; background: var(--surface); }
.intro .arch img { width: 100%; height: 116%; object-fit: cover; object-position: 30% 50%; will-change: transform; }

/* الأبواب: بطاقات ملوّنة */
.doors .head { display: grid; gap: 26px; }
.pick { margin-top: 44px; background: var(--surface); border-radius: 26px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; }
.pick h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.pick .opts { display: flex; flex-wrap: wrap; gap: 12px; }
.pick .opts button { font-family: var(--display); font-weight: 700; font-size: 1.02rem; min-height: 50px; padding: 0 24px; border-radius: 99px; border: 0; cursor: pointer; background: var(--surface2); color: var(--ink); transition: transform .25s var(--ease), background-color .25s, color .25s; }
.pick .opts button:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.pick .opts button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.pick .out { font-size: var(--f-lead); min-height: 2.8em; }
.pick .out a { color: var(--gold); font-weight: 700; }
.cards { margin-top: 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; list-style: none; padding: 0; }
.cards li { display: contents; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 270px; padding: 28px 28px 26px; border-radius: 26px; text-decoration: none; color: var(--gold-ink); overflow: hidden; transition: transform .35s var(--ease); }
.card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .22); inset-inline-start: -60px; bottom: -70px; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-8px) rotate(-.6deg); }
.card:hover::after { transform: scale(1.5); }
.card.hot { outline: 4px solid var(--ink); outline-offset: 4px; }
.card .ico { width: 64px; height: 64px; border-radius: 20px; background: rgba(13, 37, 56, .14); display: grid; place-items: center; transition: transform .45s var(--ease); position: relative; z-index: 1; }
.card:hover .ico { transform: rotate(-10deg) scale(1.08); }
.card .ico .ic { width: 34px; height: 34px; stroke-width: 2; }
.card h3 { font-size: 1.85rem; line-height: 1.15; }
.card p { margin-top: 8px; font-size: 1.12rem; line-height: 1.6; max-width: 20em; }
.card .go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 1.02rem; position: relative; z-index: 1; margin-top: 18px; }
.card .go .ic { transition: transform .25s var(--ease); }
.card:hover .go .ic { transform: translateX(-6px); }
.card .txt { position: relative; z-index: 1; }
.card.c1 { grid-column: span 2; background: var(--gold); }
.card.c2 { grid-column: span 2; background: var(--teal); }
.card.c3 { grid-column: span 2; background: var(--coral); }
.card.c4 { grid-column: span 2; background: var(--sky); }
.card.c5 { grid-column: span 2; background: var(--red); }
.card.c6 { grid-column: span 2; background: var(--lav); }
.card.t1 { background: var(--gold); } .card.t2 { background: var(--sky); } .card.t3 { background: var(--teal); } .card.t4 { background: var(--lav); }
.tcards { grid-template-columns: repeat(4, 1fr); } .tcards .card { grid-column: span 1; }

/* الفكر: الأسماء فقرة واحدة */
.work .names { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.6; max-width: 40em; color: var(--ink); }
.work .names .lead-in { color: var(--gold); }
.work .names a { text-decoration: none; color: var(--muted); transition: color .2s; }
.work .names a:hover, .work .names a:focus-visible { color: var(--gold); }
.work .names .fr { display: inline-block; width: 1.4em; height: .72em; vertical-align: -.04em; overflow: hidden; margin-inline: .12em; border-radius: 99px; transform-origin: right center; transition: transform .45s var(--ease); background: var(--surface); }
.work .names .fr img { width: 100%; height: 100%; object-fit: cover; }
.work .names a:hover + .fr { transform: scale(1.35); }
.work .meta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; font-size: var(--f-small); color: var(--muted); }

/* شريط الصورة */
.band + .band, .band.tight { margin-top: 28px; }
.band { margin: var(--gap) var(--m) 0; overflow: hidden; border-radius: 28px; aspect-ratio: 21 / 8; background: var(--surface); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* عن */
.about .grid { row-gap: 44px; align-items: start; }
.about .pt { grid-column: 1 / span 4; position: sticky; top: 24px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.about .pt .ph { width: min(100%, 300px); aspect-ratio: 1; border-radius: 50%; padding: 8px; background: var(--gold); }
.about .pt .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about .pt .nm { font-family: var(--brand); font-weight: 700; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.about .pt .rl { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--muted); line-height: 1.6; }
.about .bio { grid-column: 5 / span 8; }
.about .bio h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); margin-bottom: 26px; }
.about .bio p { font-size: 1.34rem; line-height: 1.95; max-width: 34em; }
.about .bio p + p { margin-top: 1.1em; color: var(--muted); }
.path { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.path li { display: grid; grid-template-columns: 5.2em 1fr; gap: 16px; align-items: baseline; background: var(--surface); border-radius: 18px; padding: 16px 20px; font-size: 1.15rem; line-height: 1.6; transition: transform .3s var(--ease), background-color .3s; }
.path li:hover { transform: translateX(-6px); background: var(--surface2); }
.path b { font-family: var(--display); font-weight: 900; color: var(--gold); font-size: 1.2rem; }

/* دعوة */
.cta { margin-top: var(--gap); background: var(--gold); color: var(--gold-ink); padding: clamp(64px, 8vw, 110px) var(--m) 48px; position: relative; overflow: hidden; isolation: isolate; }
.cta .zel2 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 34px; align-items: end; }
.cta h2 { grid-column: 1 / span 8; font-size: clamp(2.8rem, 1.2rem + 7vw, 8rem); line-height: 1.1; font-family: var(--brand); font-weight: 700; }
.cta .side { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.cta .side p { font-size: 1.35rem; line-height: 1.7; }
.cta .btn { background: var(--bg); color: var(--ink); }
.cta .btn:hover { background: var(--bg2); }

/* تذييل */
footer.end { background: var(--bg2); padding: 56px var(--m) 30px; }
footer.end .top { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 700; }
footer.end .top .n { display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer.end a { text-decoration: none; }
footer.end a:hover { color: var(--gold); text-decoration: underline; }
footer.end .big { display: block; margin-block: 54px 36px; font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 1rem + 7.4vw, 8.6rem); line-height: 1.05; color: var(--gold); direction: ltr; text-align: right; word-break: break-word; text-decoration: none; }
footer.end .big:hover { text-decoration: none; color: #ffc85a; }
footer.end .meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; font-size: .95rem; line-height: 1.7; color: var(--muted); }
footer.end .meta p:nth-child(2) { text-align: center; }
footer.end .meta p:last-child { text-align: left; }
footer.end .credits a { text-decoration: underline; }

/* ===== صفحة QCM ===== */
.qcm-wrap { padding: clamp(36px, 6vw, 88px) var(--m) 0; }
.qcm-head h1 { font-size: clamp(2.6rem, 1rem + 6vw, 6.2rem); }
.qcm-head h1 em { font-style: normal; color: var(--gold); }
.qcm-head p { margin-top: 24px; font-size: var(--f-lead); line-height: 1.7; color: var(--muted); max-width: 30em; }
.qcm-two { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.qcm-two .card { min-height: 380px; padding: 40px; }
.qcm-two .card h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.15; }
.qcm-two .card p { font-size: 1.3rem; max-width: 22em; }
.qcm-two .card .ico { width: 78px; height: 78px; border-radius: 24px; }
.qcm-two .card .ico .ic { width: 42px; height: 42px; }
.qcm-two .card.s1 { background: var(--coral); }
.qcm-two .card.s2 { background: var(--teal); }
.qcm-note { margin-top: 36px; max-width: 40em; color: var(--muted); font-size: 1.15rem; }
.qcm-note a { color: var(--gold); font-weight: 700; }

/* ===== المقال ===== */
.art-head { padding: clamp(36px, 6vw, 84px) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.art-head .t { grid-column: 1 / span 10; }
.byline { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 30px; text-decoration: none; }
.byline .ph { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--gold); flex: none; }
.byline .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.byline .who { display: grid; line-height: 1.25; }
.byline .who b { font-family: var(--brand); font-weight: 700; font-size: 1.9rem; color: var(--gold); }
.byline .who small { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--muted); }
.art-head h1 { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.4rem); line-height: 1.25; }
.art-head .dek { margin-top: 26px; font-size: var(--f-lead); line-height: 1.65; color: var(--muted); max-width: 34em; }
.art-head .info { margin-top: 20px; font-size: var(--f-small); color: var(--muted); }
.art-pic { margin: clamp(34px, 5vw, 60px) var(--m) 0; overflow: hidden; border-radius: 28px; aspect-ratio: 21 / 8; background: var(--surface); }
.art-pic img { width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: clamp(44px, 6vw, 84px) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.prose { grid-column: 3 / span 8; font-size: 1.34rem; line-height: 2.05; }
.prose p + p { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 2.1em 0 .7em; color: var(--gold); }
.prose ul, .prose ol { margin: 1.2em 0; padding-inline-start: 1.4em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 700; color: #fff; }
.note { grid-column: 3 / span 8; margin-top: 52px; background: var(--surface); border-radius: 22px; padding: 28px clamp(20px, 3vw, 40px); font-size: 1.12rem; line-height: 1.9; }
.note a { font-weight: 700; color: var(--gold); }
.more { padding: var(--gap) var(--m) 0; }
.more h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); margin-bottom: 34px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more a { display: block; padding: 26px; background: var(--surface); border-radius: 22px; text-decoration: none; height: 100%; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.more a:hover { background: var(--gold); color: var(--gold-ink); transform: translateY(-5px); }
.more .tt { font-family: var(--display); font-weight: 900; font-size: 1.4rem; line-height: 1.35; display: block; }
.more .ds { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.65; opacity: .85; }
.list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; max-width: 64em; }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; padding: 24px 28px; border-radius: 22px; background: var(--surface); text-decoration: none; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.list a:hover { background: var(--gold); color: var(--gold-ink); transform: translateX(-8px); }
.list .k { font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1.35; }
.list .d { grid-column: 1; font-size: 1.12rem; line-height: 1.65; opacity: .88; }
.list .go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-weight: 700; white-space: nowrap; }
.page-end { height: var(--gap); }

/* ===== الهاتف ===== */
@media (max-width: 960px) {
  .bar { flex-wrap: wrap; row-gap: 10px; }
  .bar nav { order: 3; width: 100%; justify-content: flex-start; }
  .bar nav a { padding: 8px 12px; }
  .hero { margin-top: 0; padding-top: 8px; min-height: 0; }
  .hero-in { padding-block: 20px 120px; row-gap: 34px; }
  .hero-txt, .hero-vis { grid-column: 1 / -1; }
  .hero-vis { width: min(78vw, 360px); order: -1; }
  .hero h1 { font-size: clamp(4.4rem, 22vw, 9rem); }
  .intro .t, .intro .arch { grid-column: 1 / -1; }
  .intro .arch { aspect-ratio: 4 / 3; order: 2; border-radius: 999px 999px 18px 18px; max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.c1, .card.c2, .card.c3, .card.c4, .card.c5, .card.c6 { grid-column: span 1; }
  .tcards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 240px; padding: 22px; }
  .card h3 { font-size: 1.6rem; }
  .work .names { font-size: 1.5rem; line-height: 1.55; }
  .work .names .fr { display: none; }
  .band { aspect-ratio: 3 / 2; border-radius: 20px; }
  .about .pt, .about .bio { grid-column: 1 / -1; position: static; }
  .cta h2 { grid-column: 1 / -1; font-size: clamp(2.8rem, 14vw, 5.5rem); }
  .cta .side { grid-column: 1 / -1; }
  footer.end .meta { grid-template-columns: 1fr; }
  footer.end .meta p:nth-child(2), footer.end .meta p:last-child { text-align: right; }
  footer.end .big { text-align: left; }
  .qcm-two { grid-template-columns: 1fr; }
  .qcm-two .card { min-height: 300px; padding: 28px; }
  .art-head .t, .prose, .note { grid-column: 1 / -1; }
  .art-pic { aspect-ratio: 3 / 2; border-radius: 20px; }
  .more ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bar .act { display: none; }
  .logo-tx small { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card.c1, .card.c2, .card.c3, .card.c4, .card.c5, .card.c6 { grid-column: span 1; }
  .tcards { grid-template-columns: 1fr; }
  .list a { grid-template-columns: 1fr; }
  .list .go { grid-row: auto; grid-column: 1; }
  .path li { grid-template-columns: 1fr; gap: 2px; }
}
/* ===== الأدوات القانونية ===== */
.tools { padding: clamp(36px, 5vw, 72px) var(--m) 0; }
.tools.homenews { padding-top: var(--gap); }
.tool-wrap { max-width: 56rem; }
.tool-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; background: var(--surface); border-radius: 26px; padding: clamp(22px, 3vw, 40px); }
.tool-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tool-form legend { float: right; font-family: var(--display); font-weight: 900; margin-inline-start: 14px; padding: 0; }
.tool-form label { display: grid; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; }
.tool-form .wide { grid-column: 1 / -1; }
.tool-form .ck, .tool-form .rd, .tool-form .f-husband { display: inline-flex; align-items: center; gap: 10px; background: var(--surface2); padding: 12px 18px; border-radius: 99px; cursor: pointer; font-weight: 700; }
.tool-form input[type=checkbox], .tool-form input[type=radio] { width: 20px; height: 20px; accent-color: var(--gold); }
.tool-form input:not([type=checkbox]):not([type=radio]), .tool-form select, .qsearch input { font: inherit; font-family: var(--text); font-size: 1.1rem; color: var(--ink); background: var(--bg); border: 0; border-radius: 16px; padding: 14px 16px; width: 100%; min-height: 52px; }
.tool-form select, .tool-form input, .qsearch input, .news-f input { color-scheme: dark; }
.tool-form select option { background: #14354f; color: #eef3f8; }
.tool-form select option:checked { background: #f2b53c; color: #0d2538; }
.tool-form input:focus-visible, .tool-form select:focus-visible, .qsearch input:focus-visible { outline: 3px solid var(--gold); }
.tool-form [hidden], .term[hidden] { display: none !important; }
.tool-out { margin-top: 28px; display: grid; gap: 14px; }
.tool-out h3 { font-size: 1.7rem; color: var(--gold); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; font-size: 1.15rem; }
.tbl th, .tbl td { padding: 14px 18px; text-align: right; }
.tbl thead th { background: var(--surface2); font-family: var(--display); font-weight: 900; }
.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .04); }
.tbl td.num { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.why { margin: 4px 0 0; padding-inline-start: 1.3em; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.why li::marker { color: var(--gold); }
.warn { background: rgba(240, 138, 108, .16); border-radius: 16px; padding: 14px 18px; line-height: 1.8; font-size: 1.1rem; }
.res { font-size: 1.35rem; line-height: 1.8; }
.res.big { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--gold); }
.tool-note { grid-column: auto; margin-top: 0; max-width: 56rem; }
.news { background: var(--surface); border-radius: 28px; padding: clamp(24px, 3.4vw, 44px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px 36px; align-items: center; }
.news h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--gold); margin-bottom: 10px; }
.news p { color: var(--muted); font-size: 1.12rem; line-height: 1.8; }
.news-f { display: grid; gap: 12px; }
.news-f input { font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--bg); border: 0; border-radius: 99px; padding: 0 24px; min-height: 56px; width: 100%; }
.news-f input:focus-visible { outline: 3px solid var(--gold); }
.news .btn { justify-self: stretch; }
.news .news-note { grid-column: 1 / -1; font-size: .95rem; }
.news > a.btn { justify-self: start; }
.terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.term { background: var(--surface); border-radius: 20px; padding: 22px 26px; scroll-margin-top: 90px; transition: background-color .3s; }
.term[hidden] { display: none; }
.term h3 { font-size: 1.45rem; color: var(--gold); margin-bottom: 8px; }
.term p { font-size: 1.18rem; line-height: 1.9; }
.term a, .qa-a a { color: var(--gold); font-weight: 700; }
.term.flash { background: var(--surface2); }
.qsearch { display: grid; gap: 8px; font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.qcount { color: var(--muted); margin-bottom: 18px; font-size: 1rem; }
.qa-list { display: grid; gap: 14px; }
.qa { background: var(--surface); border-radius: 22px; transition: background-color .3s; }
.qa[open] { background: var(--surface2); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 26px; font-family: var(--display); font-weight: 900; font-size: 1.4rem; line-height: 1.5; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--gold); font-size: 1.8rem; line-height: 1; flex: none; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa-a { padding: 0 26px 24px; font-size: 1.22rem; line-height: 2; }
.qa-a .src { margin-top: 14px; color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) {
  .tool-form { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
}

/* ===== قائمة منسدلة ===== */
.bar nav { align-items: center; }
.dd { position: relative; }
.dd-t .car { font-size: .8em; opacity: .7; }
.dd-m { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; min-width: 230px; background: var(--surface); border-radius: 18px; padding: 10px; display: none; z-index: 30; }
.dd:hover .dd-m, .dd:focus-within .dd-m { display: grid; gap: 2px; }
.dd-m a { display: block; padding: 11px 16px; border-radius: 12px; white-space: nowrap; }
.dd-m a:hover { background: var(--surface2); color: var(--gold); transform: none; }
.dd-m a.all { color: var(--gold); }
/* ===== مسار الصفحة ===== */
.crumbs { padding: 6px var(--m) 0; font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }
/* ===== مسارات الصفحة الرئيسية ===== */
.paths .big { margin-bottom: 38px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pcard { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 3vw, 40px); color: var(--gold-ink); display: flex; flex-direction: column; gap: 16px; min-height: 300px; isolation: isolate; transition: transform .35s var(--ease); }
.pcard::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .2); inset-inline-start: -70px; bottom: -90px; transition: transform .5s var(--ease); }
.pcard:hover { transform: translateY(-6px); }
.pcard:hover::after { transform: scale(1.35); }
.pcard .ico { width: 64px; height: 64px; border-radius: 20px; background: rgba(13, 37, 56, .14); display: grid; place-items: center; }
.pcard .ico .ic { width: 34px; height: 34px; stroke-width: 2; }
.pcard h3 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; }
.pcard p { font-size: 1.15rem; line-height: 1.7; max-width: 26em; }
.pcard .pb { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 99px; background: rgba(13, 37, 56, .14); color: var(--gold-ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1rem; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.pbtn:hover { background: var(--bg); color: var(--ink); transform: translateY(-2px); }
.pbtn.main { background: var(--bg); color: var(--ink); }
.pbtn.main:hover { background: var(--bg2); }
.pbtn .ic { width: 1.2em; height: 1.2em; }
.pcard.p1 { background: var(--gold); } .pcard.p2 { background: var(--lav); } .pcard.p3 { background: var(--teal); } .pcard.p4 { background: var(--sky); }
/* ===== أعمدة التذييل ===== */
footer.end .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
footer.end .cols h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 12px; }
footer.end .cols a { display: block; padding: 5px 0; font-family: var(--display); font-weight: 500; color: var(--ink); }
@media (max-width: 960px) {
  .pgrid { grid-template-columns: 1fr; }
  footer.end .cols { grid-template-columns: repeat(2, 1fr); }
  .dd-m { position: static; display: grid; background: transparent; padding: 0 0 0 0; min-width: 0; }
  .dd:hover .dd-m { display: grid; }
  .dd { display: contents; }
  .dd-m { display: none; }
}

/* ===== صفحة الإرث: وسط، ألوان، زخرفة إسلامية ===== */
.tool-page { position: relative; isolation: isolate; text-align: center; }
.pagezel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tool-page .art-head { display: block; text-align: center; }
.tool-page .art-head .t { max-width: 46rem; margin-inline: auto; }
.tool-page .art-head .dek { margin-inline: auto; }
.tool-page .crumbs { justify-content: center; }
.orn { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--gold); margin: 6px auto 22px; --hole: var(--bg); }
.orn .o-s { width: 22px; height: 22px; } .orn .o-s.big { width: 46px; height: 46px; } .orn .o-d { width: 10px; height: 10px; opacity: .8; }
.tool-page .tool-wrap { max-width: 62rem; margin-inline: auto; }
.frame { position: relative; margin-top: 10px; padding: 10px; border-radius: 34px; background: var(--gold); }
.frame .corner { position: absolute; width: 46px; height: 46px; color: var(--gold); z-index: 2; --hole: var(--bg); }
.frame .c1 { top: -18px; inset-inline-start: -18px; } .frame .c2 { top: -18px; inset-inline-end: -18px; }
.frame .c3 { bottom: -18px; inset-inline-start: -18px; } .frame .c4 { bottom: -18px; inset-inline-end: -18px; }
.tool-form.irth { background: var(--bg); border-radius: 26px; padding: clamp(18px, 3vw, 34px); grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
.irth .g { display: grid; gap: 10px; align-content: start; border-radius: 22px; padding: 16px 18px 18px; color: var(--gold-ink); font-family: var(--display); font-weight: 700; justify-items: center; }
.irth .gl { font-family: var(--display); font-weight: 900; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; }
.irth .gl::before { content: ""; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.irth .g-sex { background: var(--sky); grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.irth .g-wives, .irth .g-husband { background: var(--lav); }
.irth .g-father { background: var(--teal); }
.irth .g-mother { background: var(--coral); }
.irth .g-sons { background: var(--sky); }
.irth .g-daughters { background: var(--gold); }
.irth .g-amount { background: var(--surface2); color: var(--ink); grid-column: 1 / -1; }
.irth .g-amount .gl { color: var(--gold); }
.irth .rd, .irth .sw { display: inline-flex; align-items: center; gap: 10px; background: rgba(13, 37, 56, .16); padding: 12px 24px; border-radius: 99px; cursor: pointer; font-size: 1.1rem; color: var(--gold-ink); }
.irth .rd:has(input:checked), .irth .sw:has(input:checked) { background: var(--bg); color: var(--ink); }
.irth input[type=checkbox], .irth input[type=radio] { width: 22px; height: 22px; accent-color: var(--gold); }
.irth .g input:not([type=checkbox]):not([type=radio]), .irth .g select { text-align: center; text-align-last: center; font-weight: 700; background: var(--bg); color: var(--ink); width: 100%; max-width: 20rem; }
.irth .g-amount input { max-width: 28rem; }
.tool-page .tool-out { margin-top: 36px; justify-items: center; text-align: center; }
.tool-out h3 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); display: inline-flex; align-items: center; gap: 14px; }
.tool-out h3::before, .tool-out h3::after { content: ""; width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); border-radius: 3px; }
.sbar { display: flex; width: 100%; max-width: 48rem; min-height: 54px; border-radius: 99px; overflow: hidden; background: var(--surface); }
.sbar .seg { display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: var(--gold-ink); min-width: 6px; }
.tbl { width: 100%; max-width: 48rem; }
.tbl th, .tbl td { text-align: center; }
.tbl tbody tr { --c: var(--gold); }
.tbl tbody tr td:first-child { border-inline-start: 10px solid var(--c); font-family: var(--display); font-weight: 900; }
.tbl tbody tr.rk-husband, .tbl tbody tr.rk-wives { --c: var(--lav); } .tbl tbody tr.rk-mother { --c: var(--coral); } .tbl tbody tr.rk-father { --c: var(--teal); } .tbl tbody tr.rk-sons { --c: var(--sky); } .tbl tbody tr.rk-daughters { --c: var(--gold); }
.sbar .rk-husband, .sbar .rk-wives { background: var(--lav); } .sbar .rk-mother { background: var(--coral); } .sbar .rk-father { background: var(--teal); } .sbar .rk-sons { background: var(--sky); } .sbar .rk-daughters { background: var(--gold); }
.tbl td.num { font-size: 1.25rem; }
.why { list-style: none; padding: 0; display: grid; gap: 6px; text-align: center; max-width: 46rem; }
.warn { max-width: 46rem; text-align: center; }
.info3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 74rem; margin-inline: auto; }
.info3 article { border-radius: 26px; padding: 28px 26px 30px; color: var(--gold-ink); text-align: center; position: relative; overflow: hidden; }
.info3 article::after { content: ""; position: absolute; width: 150px; height: 150px; background: rgba(255, 255, 255, .18); border-radius: 50%; inset-inline-start: -50px; bottom: -60px; }
.info3 h2 { font-size: 1.6rem; margin-bottom: 14px; max-width: none; }
.info3 p, .info3 li { font-size: 1.12rem; line-height: 1.9; position: relative; z-index: 1; }
.info3 ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info3 li + li { border-top: 2px dotted rgba(13, 37, 56, .28); padding-top: 10px; }
.info3 .ic1 { background: var(--teal); } .info3 .ic2 { background: var(--coral); } .info3 .ic3 { background: var(--gold); }
.tool-page .tool-note, .tool-page .news { max-width: 74rem; margin-inline: auto; }
/* إعلان الكاتب أون لاين */
.kad { position: relative; overflow: hidden; isolation: isolate; max-width: 74rem; margin-inline: auto; border-radius: 34px; background: var(--gold); color: var(--gold-ink); padding: clamp(30px, 5vw, 64px) clamp(22px, 5vw, 70px); display: grid; grid-template-columns: auto 1fr auto; gap: 18px clamp(20px, 4vw, 48px); align-items: center; text-align: right; }
.kad .zel2 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.kad .kico { width: clamp(92px, 12vw, 150px); aspect-ratio: 1; border-radius: 32px; background: var(--bg); color: var(--gold); display: grid; place-items: center; --hole: var(--bg); }
.kad .kico .ic { width: 58%; height: 58%; stroke-width: 1.7; }
.kad h2 { font-family: var(--brand); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.1; max-width: none; }
.kad p { margin-top: 10px; font-size: 1.25rem; line-height: 1.8; max-width: 34em; }
.kad .kl { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; padding: 0; list-style: none; }
.kad .kl li { background: rgba(13, 37, 56, .16); padding: 6px 16px; border-radius: 99px; font-family: var(--display); font-weight: 700; font-size: .98rem; }
.kad .btn { background: var(--bg); color: var(--ink); min-height: 64px; font-size: 1.2rem; }
.kad .btn:hover { background: var(--bg2); }
.kad .corner { position: absolute; width: 54px; height: 54px; color: rgba(13, 37, 56, .22); z-index: -1; --hole: var(--gold); }
.kad .corner.c1 { top: 12px; inset-inline-start: 12px; } .kad .corner.c2 { bottom: 12px; inset-inline-end: 12px; }
@media (max-width: 960px) {
  .tool-form.irth { grid-template-columns: 1fr; }
  .info3 { grid-template-columns: 1fr; }
  .frame .corner { width: 36px; height: 36px; }
  .kad { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .kad .kl { justify-content: center; }
}

/* ===== نموذج الإرث: أقسام عمودية ===== */
.tool-form.irth { display: grid; grid-template-columns: 1fr; gap: 14px; }
.irth section.g { display: grid; gap: 12px; justify-items: center; padding: 18px 20px 22px; border-radius: 24px; color: var(--gold-ink); }
.irth section.g .gl { font-family: var(--display); font-weight: 900; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.irth section.g .gl::before { content: ""; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.irth .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; width: 100%; }
.irth .fld { display: grid; gap: 8px; justify-items: center; font-family: var(--display); font-weight: 700; font-size: 1rem; min-width: min(100%, 13rem); }
.irth .fld.wide { min-width: min(100%, 26rem); }
.irth .g-sex { background: var(--sky); }
.irth .g-spouse { background: var(--lav); }
.irth .g-parents { background: var(--teal); }
.irth .g-kids { background: var(--gold); }
.irth .g-sibs { background: var(--coral); }
.irth .g-amount { background: var(--surface2); color: var(--ink); }
.irth .g-amount .gl { color: var(--gold); }
.irth .g-amount .fld { color: var(--ink); }
.irth .fld input, .irth .fld select { max-width: 16rem; }
.tbl tbody tr.rk-fbro { --c: var(--coral); } .tbl tbody tr.rk-fsis { --c: #f5b19c; } .tbl tbody tr.rk-pbro { --c: #e2744f; } .tbl tbody tr.rk-psis { --c: #f7c6b5; } .tbl tbody tr.rk-msib { --c: #d9694b; }
.sbar .rk-fbro { background: var(--coral); } .sbar .rk-fsis { background: #f5b19c; } .sbar .rk-pbro { background: #e2744f; } .sbar .rk-psis { background: #f7c6b5; } .sbar .rk-msib { background: #d9694b; }
.blocked { background: rgba(255, 255, 255, .06); border-radius: 20px; padding: 16px 22px; max-width: 46rem; width: 100%; }
.blocked h4 { font-family: var(--display); font-weight: 900; color: var(--gold); margin: 0 0 8px; font-size: 1.15rem; }
.blocked p { margin: 4px 0; font-size: 1.08rem; line-height: 1.8; color: var(--muted); }

/* ===== الجد والحفدة ===== */
.irth .g-gpar { background: #f3a7c2; }
.irth .g-gkids { background: #b7e08a; }
.tbl tbody tr.rk-gm { --c: #f3a7c2; } .tbl tbody tr.rk-gfather { --c: #e07fa4; } .tbl tbody tr.rk-gsons { --c: #b7e08a; } .tbl tbody tr.rk-gdaughters { --c: #d4efb3; }
.sbar .rk-gm { background: #f3a7c2; } .sbar .rk-gfather { background: #e07fa4; } .sbar .rk-gsons { background: #b7e08a; } .sbar .rk-gdaughters { background: #d4efb3; }
/* ===== نموذج الإرث: هوية بصرية لكل نوع ===== */
.tool-form.irth { gap: 18px; }
.irth section.g { --k: #38bdf8; --kd: #0a5e86; position: relative; overflow: hidden; background-color: var(--k); background-image: radial-gradient(rgba(13, 37, 56, .13) 1.6px, transparent 1.7px); background-size: 20px 20px; border-radius: 26px; padding: 20px 22px 24px; color: #0b1c2c; box-shadow: inset -9px 0 0 var(--kd); transition: transform .35s var(--ease), box-shadow .35s; }
.irth section.g:hover { transform: translateY(-2px); }
.irth section.g.on { transform: translateY(-3px); box-shadow: inset -9px 0 0 var(--kd), 0 0 0 4px #fff, 0 16px 34px rgba(0, 0, 0, .38); }
.irth section.g.g-sex { --k: #38bdf8; --kd: #0a5e86; }
.irth section.g.g-spouse { --k: #a78bfa; --kd: #5b3fb3; }
.irth section.g.g-parents { --k: #34d399; --kd: #0b7a55; }
.irth section.g.g-gpar { --k: #fb7185; --kd: #a8203f; }
.irth section.g.g-kids { --k: #fbbf24; --kd: #a06a00; }
.irth section.g.g-gkids { --k: #a3e635; --kd: #4d7a0a; }
.irth section.g.g-sibs { --k: #fb923c; --kd: #a3470a; }
.irth section.g.g-amount { --k: #1c4767; --kd: #f2b53c; color: var(--ink); background-image: radial-gradient(rgba(255, 255, 255, .08) 1.6px, transparent 1.7px); }
.irth .gh { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.irth .med { display: inline-flex; gap: 2px; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 12px; border-radius: 99px; background: #0d2538; color: var(--k); box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); transition: transform .4s var(--ease); }
.irth section.g:hover .med, .irth section.g.on .med { transform: rotate(-6deg) scale(1.08); }
.irth .med-i { width: 30px; height: 30px; }
.irth .g-amount .med { color: var(--kd); }
.irth section.g .gl { font-size: 1.35rem; color: inherit; }
.irth section.g .gl::before { display: none; }
.irth .okb { display: none; font-family: var(--display); font-weight: 900; font-size: .85rem; background: #0d2538; color: var(--k); padding: 4px 12px; border-radius: 99px; }
.irth section.g.on .okb { display: inline-block; animation: pop2 .4s var(--ease); }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.irth .row { gap: 14px 18px; }
.irth .fl { display: inline-flex; align-items: center; gap: 8px; }
.irth .mi { width: 22px; height: 22px; flex: none; }
.irth .fld { background: rgba(255, 255, 255, .34); border-radius: 20px; padding: 14px 16px 16px; min-width: min(100%, 14rem); }
.irth .fld.wide { background: transparent; padding: 0; }
.irth .g-amount .fld input { background: #0d2538; color: var(--ink); border-radius: 99px; }
.irth select, .irth .fld input[type=text] { font-size: 1.15rem; min-height: 54px; background: #0d2538; color: #fff; border: 0; border-radius: 99px; width: 100%; text-align: center; font-weight: 700; padding: 0 16px; }
/* عدّاد بالأزرار */
.stp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(13, 37, 56, .22); border-radius: 99px; padding: 5px; }
.stp button { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: #0d2538; color: var(--k); font-size: 1.7rem; line-height: 1; font-family: var(--display); font-weight: 900; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.stp button:hover { background: #fff; color: #0d2538; transform: scale(1.1); }
.stp button:active { transform: scale(.92); }
.stp input { width: 4.2rem !important; min-height: 46px !important; background: transparent !important; color: #0b1c2c !important; border: 0; text-align: center; font-size: 1.5rem; font-weight: 900; font-family: var(--display); padding: 0 !important; -moz-appearance: textfield; }
.stp input::-webkit-outer-spin-button, .stp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* مفاتيح التبديل */
.irth .sw { position: relative; display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .34); padding: 12px 20px 12px 16px; border-radius: 99px; cursor: pointer; font-size: 1.12rem; color: #0b1c2c; transition: background-color .3s, color .3s, transform .25s var(--ease); }
.irth .sw:hover { transform: translateY(-2px); }
.irth .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.irth .sw .tg { width: 52px; height: 30px; border-radius: 99px; background: rgba(13, 37, 56, .35); position: relative; flex: none; transition: background-color .3s; }
.irth .sw .tg::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.irth .sw:has(input:checked) { background: #0d2538; color: #fff; }
.irth .sw:has(input:checked) .tg { background: var(--k); }
.irth .sw:has(input:checked) .tg::after { transform: translateX(-22px); background: #0d2538; }
.irth .sw:has(input:checked) .mi { color: var(--k); }
.irth .sw:has(input:focus-visible), .irth .rd:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.irth .rd { position: relative; display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .34); padding: 12px 26px; border-radius: 99px; cursor: pointer; font-size: 1.15rem; color: #0b1c2c; transition: background-color .3s, color .3s, transform .25s var(--ease); }
.irth .rd input { position: absolute; opacity: 0; }
.irth .rd:has(input:checked) { background: #0d2538; color: #fff; transform: scale(1.06); }
.irth .rd:has(input:checked) .mi { color: var(--k); }
/* النتيجة */
.tbl tbody tr { animation: rowin .45s var(--ease) both; }
.tbl tbody tr:nth-child(2) { animation-delay: .06s; } .tbl tbody tr:nth-child(3) { animation-delay: .12s; } .tbl tbody tr:nth-child(4) { animation-delay: .18s; } .tbl tbody tr:nth-child(n+5) { animation-delay: .24s; }
@keyframes rowin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tbl tbody tr td:first-child { border-inline-start-width: 14px; }
.sbar { min-height: 62px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.sbar .seg { transition: flex-grow .6s var(--ease); font-size: 1.05rem; border-inline-end: 3px solid #0d2538; }
.sbar .seg:last-child { border-inline-end: 0; }
.sbar .rk-husband, .sbar .rk-wives, .tbl tr.rk-husband, .tbl tr.rk-wives { --c: #a78bfa; background-color: var(--seg, #a78bfa); }
.tbl tbody tr.rk-husband, .tbl tbody tr.rk-wives { --c: #a78bfa; } .tbl tbody tr.rk-mother { --c: #34d399; } .tbl tbody tr.rk-father { --c: #22b8cf; }
.tbl tbody tr.rk-gm { --c: #fb7185; } .tbl tbody tr.rk-gfather { --c: #e11d74; }
.tbl tbody tr.rk-sons { --c: #fbbf24; } .tbl tbody tr.rk-daughters { --c: #ffd966; }
.tbl tbody tr.rk-gsons { --c: #84cc16; } .tbl tbody tr.rk-gdaughters { --c: #bef264; }
.tbl tbody tr.rk-fbro { --c: #fb923c; } .tbl tbody tr.rk-fsis { --c: #fdba74; } .tbl tbody tr.rk-pbro { --c: #ea580c; } .tbl tbody tr.rk-psis { --c: #fed7aa; } .tbl tbody tr.rk-msib { --c: #f97316; }
.sbar .seg.rk-husband, .sbar .seg.rk-wives { background: #a78bfa; } .sbar .seg.rk-mother { background: #34d399; } .sbar .seg.rk-father { background: #22b8cf; }
.sbar .seg.rk-gm { background: #fb7185; } .sbar .seg.rk-gfather { background: #e11d74; color: #fff; }
.sbar .seg.rk-sons { background: #fbbf24; } .sbar .seg.rk-daughters { background: #ffd966; }
.sbar .seg.rk-gsons { background: #84cc16; } .sbar .seg.rk-gdaughters { background: #bef264; }
.sbar .seg.rk-fbro { background: #fb923c; } .sbar .seg.rk-fsis { background: #fdba74; } .sbar .seg.rk-pbro { background: #ea580c; color: #fff; } .sbar .seg.rk-psis { background: #fed7aa; } .sbar .seg.rk-msib { background: #f97316; }
@media (prefers-reduced-motion: reduce) { .tbl tbody tr, .irth .okb { animation: none !important; } }
/* ===== صفحة الإرث: طراز قانوني صارم + لمسة إلكترونية ===== */
html:has(.irth-page), body:has(.irth-page) { background: #070d14; }
.irth-page { --cy: #3fd0ff; --line: rgba(120, 165, 195, .30); --panel: #0b131c; --mono: 'Share Tech Mono', ui-monospace, 'Courier New', monospace; --txt: #dbe6ef; --mut: #8fa6b8; }
.irth-page::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(63, 208, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 208, 255, .055) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }
.irth-page .pagezel { opacity: .35; }
.irth-page .orn { color: #c9a227; --hole: #070d14; }
.irth-page .art-head h1 { letter-spacing: 0; text-shadow: 0 0 28px rgba(63, 208, 255, .18); }
.irth-page .art-head .dek, .irth-page .crumbs { color: var(--mut); }
/* إطار HUD */
.irth-page .frame { background: transparent; padding: 22px; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(63, 208, 255, .06), 0 0 80px rgba(63, 208, 255, .07); background-image: linear-gradient(rgba(10, 18, 27, .75), rgba(10, 18, 27, .75)); }
.irth-page .frame .corner { display: none; }
.irth-page .frame::before { content: "CALC // IRTH.MOD ▌"; position: absolute; top: -12px; inset-inline-start: 26px; padding: 0 12px; background: #070d14; color: var(--cy); font-family: var(--mono); font-size: .9rem; letter-spacing: .12em; direction: ltr; }
.irth-page .frame::after { content: ""; position: absolute; inset: -7px; pointer-events: none; background:
  linear-gradient(var(--cy), var(--cy)) top left / 26px 2px no-repeat, linear-gradient(var(--cy), var(--cy)) top left / 2px 26px no-repeat,
  linear-gradient(var(--cy), var(--cy)) top right / 26px 2px no-repeat, linear-gradient(var(--cy), var(--cy)) top right / 2px 26px no-repeat,
  linear-gradient(var(--cy), var(--cy)) bottom left / 26px 2px no-repeat, linear-gradient(var(--cy), var(--cy)) bottom left / 2px 26px no-repeat,
  linear-gradient(var(--cy), var(--cy)) bottom right / 26px 2px no-repeat, linear-gradient(var(--cy), var(--cy)) bottom right / 2px 26px no-repeat; }
.irth-page .tool-form.irth { background: transparent; padding: 0; gap: 14px; position: relative; overflow: hidden; border-radius: 0; }
.irth-page .tool-form.irth::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 90px; pointer-events: none; background: linear-gradient(transparent, rgba(63, 208, 255, .10), transparent); animation: scanline 7s linear infinite; }
@keyframes scanline { from { transform: translateY(-120px); } to { transform: translateY(1400px); } }
/* الأقسام: ألواح داكنة بلون تمييز لكل نوع */
.irth-page .irth section.g { --k: #8fa8bf; border-radius: 6px; color: var(--txt); background-color: color-mix(in srgb, var(--k) 10%, #0a121b); background-image: linear-gradient(90deg, color-mix(in srgb, var(--k) 20%, transparent), transparent 45%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px); border: 1px solid color-mix(in srgb, var(--k) 50%, #0a121b); border-inline-start: 6px solid var(--k); box-shadow: none; padding: 18px 20px 22px; }
.irth-page .irth section.g:hover { transform: none; border-color: color-mix(in srgb, var(--k) 80%, #0a121b); }
.irth-page .irth section.g.on { transform: none; box-shadow: 0 0 0 1px var(--k), 0 0 30px color-mix(in srgb, var(--k) 32%, transparent); }
.irth-page .irth section.g.g-sex { --k: #8fa8bf; }
.irth-page .irth section.g.g-spouse { --k: #e0527a; }
.irth-page .irth section.g.g-parents { --k: #3ddc97; }
.irth-page .irth section.g.g-gpar { --k: #ffb15e; }
.irth-page .irth section.g.g-kids { --k: #ffd34d; }
.irth-page .irth section.g.g-gkids { --k: #b7d84b; }
.irth-page .irth section.g.g-sibs { --k: #5cb3ff; }
.irth-page .irth section.g.g-amount { --k: #f2b53c; color: var(--txt); }
.irth-page .irth .gh { justify-content: flex-start; gap: 14px; position: relative; }
.irth-page .irth .gh::before { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--k); opacity: .9; direction: ltr; order: 5; margin-inline-start: auto; border: 1px solid color-mix(in srgb, var(--k) 60%, transparent); padding: 2px 8px; border-radius: 3px; }
.irth-page .g-sex .gh::before { content: "MOD·00"; } .irth-page .g-spouse .gh::before { content: "MOD·01"; } .irth-page .g-parents .gh::before { content: "MOD·02"; } .irth-page .g-gpar .gh::before { content: "MOD·03"; }
.irth-page .g-kids .gh::before { content: "MOD·04"; } .irth-page .g-gkids .gh::before { content: "MOD·05"; } .irth-page .g-sibs .gh::before { content: "MOD·06"; } .irth-page .g-amount .gh::before { content: "MOD·07"; }
.irth-page .irth .med { border-radius: 6px; background: #050a10; color: var(--k); box-shadow: inset 0 0 0 1px var(--k), 0 0 14px color-mix(in srgb, var(--k) 30%, transparent); min-width: 54px; height: 54px; }
.irth-page .irth section.g:hover .med, .irth-page .irth section.g.on .med { transform: none; }
.irth-page .irth section.g .gl { color: #fff; font-size: 1.3rem; }
.irth-page .irth .okb { order: 4; font-family: var(--mono); background: var(--k); color: #06101a; border-radius: 3px; font-size: .8rem; letter-spacing: .08em; padding: 3px 10px; }
.irth-page .irth .row { justify-content: flex-start; }
/* الحقول */
.irth-page .irth .fld { background: rgba(255, 255, 255, .035); border: 1px solid rgba(160, 190, 215, .22); border-radius: 6px; padding: 12px 14px 14px; justify-items: center; }
.irth-page .irth .fld .fl { color: var(--mut); font-size: .98rem; }
.irth-page .irth .fld .mi { color: var(--k); }
.irth-page .irth select, .irth-page .irth .fld input[type=text] { background: #050a10; color: #e8f3fb; border: 1px solid var(--k); border-radius: 4px; font-family: var(--mono); min-height: 50px; font-size: 1.15rem; }
.irth-page .irth .g-amount .fld input { background: #050a10; color: #ffe08a; text-align: center; letter-spacing: .06em; }
.irth-page .stp { background: transparent; gap: 0; border: 1px solid var(--k); border-radius: 4px; padding: 0; overflow: hidden; }
.irth-page .stp button { width: 48px; height: 48px; border-radius: 0; background: #050a10; color: var(--k); font-family: var(--mono); border: 0; border-inline: 1px solid color-mix(in srgb, var(--k) 40%, transparent); }
.irth-page .stp button:first-child { border-inline-end: 1px solid color-mix(in srgb, var(--k) 40%, transparent); }
.irth-page .stp button:hover { background: var(--k); color: #06101a; transform: none; }
.irth-page .stp button:active { transform: none; filter: brightness(.85); }
.irth-page .stp input { color: #fff !important; background: #0a121b !important; font-family: var(--mono); font-size: 1.6rem; width: 4.4rem !important; text-shadow: 0 0 12px color-mix(in srgb, var(--k) 60%, transparent); }
/* مفاتيح LED */
.irth-page .irth .sw, .irth-page .irth .rd { background: rgba(255, 255, 255, .035); border: 1px solid rgba(160, 190, 215, .25); border-radius: 4px; color: var(--txt); padding: 11px 18px 11px 14px; transform: none; }
.irth-page .irth .sw:hover, .irth-page .irth .rd:hover { border-color: var(--k); transform: none; }
.irth-page .irth .sw .tg { width: 46px; height: 24px; border-radius: 3px; background: #050a10; border: 1px solid rgba(160, 190, 215, .4); }
.irth-page .irth .sw .tg::after { top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 2px; background: #5a6e80; }
.irth-page .irth .sw:has(input:checked), .irth-page .irth .rd:has(input:checked) { background: color-mix(in srgb, var(--k) 16%, #050a10); color: #fff; border-color: var(--k); transform: none; }
.irth-page .irth .sw:has(input:checked) .tg { background: #050a10; border-color: var(--k); }
.irth-page .irth .sw:has(input:checked) .tg::after { background: var(--k); transform: translateX(-22px); box-shadow: 0 0 12px var(--k); }
.irth-page .irth .sw:has(input:checked) .mi, .irth-page .irth .rd:has(input:checked) .mi { color: var(--k); }
/* النتيجة: لوحة بيانات */
.irth-page .tool-out h3 { font-size: 1.5rem; color: #fff; letter-spacing: 0; }
.irth-page .tool-out h3::before, .irth-page .tool-out h3::after { background: var(--cy); border-radius: 0; width: 10px; height: 10px; box-shadow: 0 0 10px var(--cy); }
.irth-page .sbar { background: #050a10; border-radius: 3px; padding: 4px; gap: 3px; min-height: 58px; box-shadow: 0 0 0 1px var(--line); }
.irth-page .sbar .seg { border-radius: 2px; border: 0; color: #06101a; font-family: var(--mono); font-size: 1.1rem; font-weight: 400; }
.irth-page .tbl { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.irth-page .tbl thead th { background: #050a10; color: var(--cy); font-family: var(--display); border-bottom: 1px solid var(--cy); }
.irth-page .tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.irth-page .tbl td { color: var(--txt); border-top: 1px solid rgba(160, 190, 215, .12); }
.irth-page .tbl td.num { font-family: var(--mono); font-size: 1.3rem; color: #fff; letter-spacing: .04em; }
.irth-page .tbl tbody tr td:first-child { border-inline-start-width: 8px; color: #fff; }
.irth-page .tbl tbody tr.rk-husband, .irth-page .tbl tbody tr.rk-wives { --c: #e0527a; } .irth-page .tbl tbody tr.rk-mother { --c: #3ddc97; } .irth-page .tbl tbody tr.rk-father { --c: #2bb6a3; }
.irth-page .tbl tbody tr.rk-gm { --c: #ffb15e; } .irth-page .tbl tbody tr.rk-gfather { --c: #ff8a3d; } .irth-page .tbl tbody tr.rk-sons { --c: #ffd34d; } .irth-page .tbl tbody tr.rk-daughters { --c: #f2c94c; }
.irth-page .tbl tbody tr.rk-gsons { --c: #b7d84b; } .irth-page .tbl tbody tr.rk-gdaughters { --c: #8fbf3a; } .irth-page .tbl tbody tr.rk-fbro { --c: #5cb3ff; } .irth-page .tbl tbody tr.rk-fsis { --c: #8cc8ff; }
.irth-page .tbl tbody tr.rk-pbro { --c: #3a86d8; } .irth-page .tbl tbody tr.rk-psis { --c: #a9d4ff; } .irth-page .tbl tbody tr.rk-msib { --c: #6f8fff; }
.irth-page .sbar .seg.rk-husband, .irth-page .sbar .seg.rk-wives { background: #e0527a; } .irth-page .sbar .seg.rk-mother { background: #3ddc97; } .irth-page .sbar .seg.rk-father { background: #2bb6a3; }
.irth-page .sbar .seg.rk-gm { background: #ffb15e; } .irth-page .sbar .seg.rk-gfather { background: #ff8a3d; color: #06101a; } .irth-page .sbar .seg.rk-sons { background: #ffd34d; } .irth-page .sbar .seg.rk-daughters { background: #f2c94c; }
.irth-page .sbar .seg.rk-gsons { background: #b7d84b; } .irth-page .sbar .seg.rk-gdaughters { background: #8fbf3a; } .irth-page .sbar .seg.rk-fbro { background: #5cb3ff; } .irth-page .sbar .seg.rk-fsis { background: #8cc8ff; }
.irth-page .sbar .seg.rk-pbro { background: #3a86d8; color: #fff; } .irth-page .sbar .seg.rk-psis { background: #a9d4ff; } .irth-page .sbar .seg.rk-msib { background: #6f8fff; color: #06101a; }
.irth-page .why { color: var(--mut); }
.irth-page .warn { background: rgba(255, 177, 94, .08); border: 1px solid rgba(255, 177, 94, .45); border-radius: 4px; color: #ffd9b0; }
.irth-page .blocked { background: rgba(224, 82, 122, .07); border: 1px solid rgba(224, 82, 122, .4); border-radius: 4px; }
.irth-page .blocked h4 { color: #ff8fae; }
/* بطاقات الشرح والإعلان */
.irth-page .info3 article { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-top: 3px solid var(--k, var(--cy)); border-radius: 4px; text-align: center; }
.irth-page .info3 article::after { display: none; }
.irth-page .info3 .ic1 { --k: #3ddc97; } .irth-page .info3 .ic2 { --k: #e0527a; } .irth-page .info3 .ic3 { --k: #f2b53c; }
.irth-page .info3 h2 { color: var(--k); }
.irth-page .info3 li + li { border-top: 1px dotted rgba(160, 190, 215, .3); }
.irth-page .tool-note { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; color: var(--mut); }
.irth-page .kad { background: var(--panel); color: var(--txt); border: 1px solid #c9a227; border-inline-start: 10px solid #c9a227; border-radius: 4px; }
.irth-page .kad .zel2 { opacity: .35; }
.irth-page .kad .kico { background: #050a10; color: #f2b53c; border-radius: 4px; box-shadow: inset 0 0 0 1px #c9a227, 0 0 24px rgba(242, 181, 60, .25); }
.irth-page .kad h2 { color: #f2b53c; }
.irth-page .kad .kl li { background: transparent; border: 1px solid rgba(242, 181, 60, .5); color: #f2d28a; border-radius: 3px; font-family: var(--display); }
.irth-page .kad .btn { background: #f2b53c; color: #06101a; border-radius: 4px; }
.irth-page .kad .btn:hover { background: #ffc85a; }
.irth-page .kad .corner { color: rgba(242, 181, 60, .25); }
.irth-page .news { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }

.irth-page .tbl tr.rk-husband, .irth-page .tbl tr.rk-wives { background-color: transparent; }
.irth-page .tbl tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, .03); }
.irth-page .irth section.g { background-image: linear-gradient(90deg, color-mix(in srgb, var(--k) 18%, transparent), transparent 45%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px); }
/* ===== صفحة الإرث: وسط + قسم المتوفّى المميّز ===== */
.irth-page .irth .gh { justify-content: center; text-align: center; position: static; gap: 14px; }
.irth-page .irth .gh::before { position: absolute; top: 10px; inset-inline-end: 12px; margin: 0; order: 0; }
.irth-page .irth .row { justify-content: center; }
.irth-page .irth section.g { text-align: center; }
.irth-page .irth .sw, .irth-page .irth .rd { justify-content: center; }
/* ===== قسم المتوفّى: ملف التركة ===== */
.irth-page .irth section.g.g-sex { --k: #e8c872; padding: 30px 22px 34px; border: 1px solid #c9a227; border-inline-start: 1px solid #c9a227; border-radius: 6px; background-color: #0a121b; background-image: radial-gradient(ellipse at 50% 0%, rgba(232, 200, 114, .16), transparent 65%), radial-gradient(rgba(232, 200, 114, .12) 1.4px, transparent 1.6px); background-size: auto, 22px 22px; box-shadow: inset 0 0 0 5px #0a121b, inset 0 0 0 6px rgba(201, 162, 39, .55), 0 0 40px rgba(201, 162, 39, .12); }
.irth-page .irth section.g.g-sex::before { content: "FILE · 0001"; position: absolute; top: 14px; inset-inline-start: 18px; font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; color: #c9a227; direction: ltr; }
.irth-page .irth section.g.g-sex .gh { flex-direction: column; gap: 10px; }
.irth-page .irth section.g.g-sex .gh::before { content: "MOD·00 / ROOT"; border-color: rgba(201, 162, 39, .7); color: #c9a227; }
.irth-page .irth section.g.g-sex .med { width: 84px; height: 84px; min-width: 84px; border-radius: 50%; background: radial-gradient(circle, #14202c, #050a10); color: #e8c872; box-shadow: inset 0 0 0 2px #c9a227, 0 0 0 6px #0a121b, 0 0 0 7px rgba(201, 162, 39, .5), 0 0 30px rgba(201, 162, 39, .25); }
.irth-page .irth section.g.g-sex .med-i { width: 36px; height: 36px; }
.irth-page .irth section.g.g-sex .gl { font-size: 2rem; letter-spacing: .02em; color: #fff; }
.irth-page .irth section.g.g-sex .row::before { content: "اختر جنس المتوفّى"; display: block; width: 100%; font-family: var(--display); font-weight: 500; color: var(--mut); font-size: 1rem; margin-bottom: 2px; }
.irth-page .irth section.g.g-sex .row { gap: 18px; }
.irth-page .irth .g-sex .rd { flex-direction: column; gap: 8px; min-width: 150px; padding: 18px 26px 16px; font-family: var(--display); font-weight: 900; font-size: 1.25rem; border-radius: 6px; border: 1px solid rgba(201, 162, 39, .35); background: rgba(255, 255, 255, .03); color: var(--mut); }
.irth-page .irth .g-sex .rd .mi { width: 44px; height: 44px; color: #6a7f92; transition: color .3s, transform .3s var(--ease); }
.irth-page .irth .g-sex .rd:hover { border-color: #c9a227; color: #fff; }
.irth-page .irth .g-sex .rd:has(input:checked) { color: #fff; background: linear-gradient(#171f12, #0c1308); border-color: #e8c872; box-shadow: 0 0 0 1px #e8c872, 0 0 28px rgba(232, 200, 114, .3); transform: none; }
.irth-page .irth .g-sex .rd:has(input:checked) .mi { color: #e8c872; transform: scale(1.12); }
.irth-page .irth .g-sex .rd:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 10px; color: #e8c872; font-family: var(--mono); }
/* ===== بلاطات النقر: رمادي خامل، أخضر نشط ===== */
.irth-page .irth .sw { flex-direction: column; gap: 8px; min-width: 150px; padding: 16px 22px 14px; border-radius: 6px; background: rgba(255,255,255,.03); border: 1px solid rgba(160,190,215,.25); color: #8b9aa8; font-family: var(--display); font-weight: 700; position: relative; }
.irth-page .irth .sw .tg { display: none; }
.irth-page .irth .sw .mi { width: 38px; height: 38px; color: #5f7080; transition: color .3s, transform .3s var(--ease); }
.irth-page .irth .sw:hover { border-color: #3ddc97; color: #cfd8e0; }
.irth-page .irth .sw:has(input:checked) { background: linear-gradient(#0e2a1f, #08150f); border-color: #3ddc97; color: #fff; box-shadow: 0 0 0 1px #3ddc97, 0 0 24px rgba(61,220,151,.28); }
.irth-page .irth .sw:has(input:checked) .mi { color: #3ddc97; transform: scale(1.12); }
.irth-page .irth .sw:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 10px; color: #3ddc97; font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { .irth-page .tool-form.irth::after { animation: none; display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== النسخة المضمّنة في 50dar ===== */
.irth-page.embed { padding-block: 12px 18px; min-height: 0; }
.irth-page.embed .pagezel { display: none; }
.irth-page.embed .tools { margin-block: 0; padding-block: 8px; }
.embed-credit { text-align: center; margin: 14px 0 6px; font-size: .95rem; }
.embed-credit a { color: #3fd0ff; }

/* القائمة العلوية: روابط مباشرة بلا قائمة ثانوية، تضيق على الشاشات المتوسطة */
@media (max-width: 1500px) { .bar nav { gap: 0; } .bar nav a { padding: 8px 9px; font-size: .95rem; gap: 6px; } .bar .act { padding-inline: 16px; } }
@media (max-width: 1260px) { .bar nav a { padding: 7px 6px; font-size: .88rem; } }
@media (min-width: 961px) { .bar nav { flex-wrap: nowrap; } .bar nav a { white-space: nowrap; } }
@media (min-width: 961px) and (max-width: 1500px) { .bar { gap: 10px; } .bar .logo-tx small { display: none; } }
.bar nav .nav-irth { color: var(--gold); font-weight: 700; }
@media (min-width: 961px) and (max-width: 1400px) { .bar nav a { padding: 7px 5px; font-size: .86rem; gap: 4px; } .bar nav a .ic, .bar nav a svg { width: 16px; height: 16px; } }
