/* بريف — هوية الموقع (التصميم المعتمد): ليل داكن، أسطح هادئة، والليموني لون الفعل والتمييز. الخطوط مستضافة على الخادم. */
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url(/static/fonts/tajawal-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(/static/fonts/tajawal-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url(/static/fonts/tajawal-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Tajawal"; font-weight: 900; font-display: swap; src: url(/static/fonts/tajawal-arabic-900-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(/static/fonts/tajawal-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url(/static/fonts/tajawal-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; font-weight: 900; font-display: swap; src: url(/static/fonts/tajawal-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #070b12; --panel: #111925; --panel2: #151f2a; --stroke: rgba(185, 207, 220, .13); --line: rgba(255, 255, 255, .1);
  --muted: #9cacb9; --text: #f1f6f4; --lime: #c9f777; --lime2: #e4ffb1; --lime-ink: #0c120c; --cyan: #64d4df; --warn: #edc89b;
  --pad: clamp(20px, 5vw, 88px); --radius: 23px;
  --head: "Tajawal", Tahoma, sans-serif; --body: "IBM Plex Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  /* أسماء مستخدمة في صفحات الحساب والألعاب */
  --ink: var(--bg); --panel-2: var(--panel2); --ok: #a6f67b; --orange-ink: var(--warn); --blue-ink: var(--cyan); --display: var(--head);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); overflow-x: hidden; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 1200px; pointer-events: none;
  background: radial-gradient(ellipse 65% 47% at 78% 21%, rgba(49, 76, 83, .2), transparent 75%), radial-gradient(ellipse 35% 30% at 10% 50%, rgba(46, 72, 62, .17), transparent 76%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--lime); color: #101711; }
:focus-visible { outline: 3px solid #d1ff84; outline-offset: 4px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.container, .wrap { width: min(1360px, 100%); margin: auto; padding-inline: var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font-weight: 700; font-size: 13px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); }
.section-h { font-family: var(--head); font-size: clamp(34px, 4.3vw, 61px); line-height: 1.22; letter-spacing: -1.4px; margin: 13px 0 18px; font-weight: 800; }
.section-sub { max-width: 650px; font-size: 17px; color: #aab7c1; line-height: 1.95; margin: 0; }
.mark { color: var(--lime); }

/* الأزرار: الليموني للفعل الأساسي، والإطار للثانوي */
.btn { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 14px 23px;
  font-weight: 800; font-family: var(--head); font-size: 16px; white-space: nowrap; min-height: 51px; transition: transform .2s, background-color .2s, border-color .2s; touch-action: manipulation; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary, .btn.neon, .btn.primary, .btn.blue { background: var(--lime); color: var(--lime-ink); box-shadow: 0 9px 45px rgba(201, 247, 119, .12); }
.btn-primary:hover, .btn.neon:hover, .btn.primary:hover, .btn.blue:hover { background: #d8ff92; }
.btn-secondary, .btn.ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #f7f8fb; }
.btn-secondary:hover, .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.off { background: var(--panel2); color: var(--muted); border-color: var(--stroke); box-shadow: none; pointer-events: none; }
.btn:disabled { opacity: .5; }
.arr { font-size: 20px; line-height: 1; }

/* الشعار */
.logo, .brand { display: inline-flex; align-items: center; gap: 11px; font: 900 29px/1 var(--head); letter-spacing: -.8px; }
.logo img, .brand img { width: 38px; height: 38px; border-radius: 11px; }
.logo .dot, .brand .dot { color: var(--lime); }

/* ---------------------------------------------------------------- الترويسة (الصفحة الكاملة) */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7, 11, 18, .84); border-bottom: 1px solid rgba(255, 255, 255, .055); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-inner { height: 80px; display: flex; align-items: center; gap: 36px; justify-content: space-between; }
.navlinks { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.navlinks a { color: #aebac3; font: 700 14px var(--head); transition: color .2s; }
.navlinks a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 19px; min-height: 45px; font-size: 14px; }
.nav-account { color: #cbd5dc; font: 700 14px var(--head); }
.menu-button { display: none; background: transparent; color: #fff; border: 1px solid var(--stroke); border-radius: 10px; padding: 7px 12px; font-size: 20px; }

/* ---------------------------------------------------------------- البطل */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.12fr; align-items: center; gap: clamp(32px, 6vw, 110px); }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 100px; border: 1px solid rgba(201, 247, 119, .24); background: rgba(201, 247, 119, .065); color: #d4f7a7; font-size: 12px; font-weight: 700; }
.pulse { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 247, 119, .15); border-radius: 50%; }
.hero h1 { font: 900 clamp(48px, 5.6vw, 86px)/1.14 var(--head); letter-spacing: -2.4px; margin: 26px 0 18px; }
.hero h1 .stripe { display: block; color: var(--lime); }
.hero-lead { color: #b2c1cc; font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; line-height: 2; margin: 0 0 28px; }
.hero-lead b { color: #f3f7f4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #8e9ca9; font-size: 12.5px; margin-top: 21px; }
.hero-hint b { color: #d1dbdc; } .check { color: var(--lime); font-weight: bold; }
.hero-metrics { display: flex; gap: clamp(18px, 2.4vw, 40px); padding-top: 34px; margin-top: 38px; border-top: 1px solid rgba(255, 255, 255, .11); flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 3px; }
.metric b { font: 800 26px var(--head); }
.metric span { color: #91a1ad; font-size: 12px; }

/* العرض التوضيحي */
.stage-wrap { position: relative; isolation: isolate; min-width: 0; }
.stage-wrap::before { content: ""; position: absolute; inset: -15% -10%; background: radial-gradient(ellipse, rgba(135, 189, 127, .1), transparent 65%); filter: blur(20px); z-index: -1; }
.stage { position: relative; padding: 16px; background: linear-gradient(155deg, #233644, #101820 70%); border: 1px solid #334854; border-radius: 25px;
  box-shadow: 0 45px 120px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .04) inset; transform: perspective(1200px) rotateY(5deg) rotateX(1deg); }
.screen { width: 100%; aspect-ratio: 16/10.1; overflow: hidden; border-radius: 12px; position: relative; background: #152326; }
.game-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse 45% 47% at 70% 25%, rgba(255, 215, 155, .44), transparent 80%), linear-gradient(180deg, #566e78 0%, #253c45 52%, #111b25 100%); transition: background .7s; }
.game-art .sun { position: absolute; top: 12%; left: 23%; width: 15%; aspect-ratio: 1; background: #ffd59c; border-radius: 50%; filter: blur(15px); opacity: .7; }
.game-art .ridges { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-art .front { fill: #0b1d29; } .game-art .mid { fill: #1c3440; } .game-art .accent { fill: #345263; } .game-art .mist { fill: #9eb2ae; opacity: .13; }
.screen.scifi .game-art { background: radial-gradient(ellipse 27% 23% at 75% 25%, rgba(97, 217, 242, .45), transparent), linear-gradient(180deg, #17263e, #151632 58%, #0a1721); }
.screen.scifi .game-art .sun { background: #8eeefa; } .screen.scifi .game-art .ridges { filter: hue-rotate(65deg); }
.screen.detective .game-art { background: radial-gradient(ellipse 34% 65% at 63% 23%, rgba(225, 116, 65, .4), transparent), linear-gradient(180deg, #493a45, #272e3b 60%, #11151c); }
.screen.detective .game-art .ridges { filter: hue-rotate(155deg); }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 11, 18, .1), transparent 40%, rgba(0, 0, 0, .72) 100%); }
.game-hud { position: absolute; inset: 20px 20px auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.game-hud .label { background: rgba(10, 19, 23, .6); border: 1px solid rgba(255, 255, 255, .15); font: 600 10px Arial, sans-serif; letter-spacing: 1.5px; color: #e1eee7; padding: 6px 9px; border-radius: 5px; }
.game-hud .dotred { height: 6px; width: 6px; border-radius: 50%; background: var(--lime); margin-right: 5px; display: inline-block; }
.game-hud .tiny-mission { font: 600 10px Arial, sans-serif; color: #dfe1df; letter-spacing: 1.5px; }
.screen-subtitles { position: absolute; z-index: 3; bottom: 8%; left: 7%; right: 7%; text-align: center; display: grid; gap: 9px; transition: opacity .25s, transform .25s; }
.arabic-line { font: 800 clamp(15px, 1.6vw, 24px)/1.6 var(--head); background: rgba(4, 7, 11, .81); border-radius: 4px; padding: 10px 17px; color: #fff; display: inline-block; justify-self: center; text-shadow: 0 2px 10px #000; transition: opacity .25s, transform .25s; }
.arabic-line .speaker { color: var(--lime); font-size: .75em; margin-left: 8px; }
.english-line { font: 600 clamp(10px, 1vw, 14px)/1.4 Arial, sans-serif; color: #e4edf2; text-shadow: 0 2px 10px #000; direction: ltr; transition: transform .25s; }
.screen-subtitles.off .arabic-line { opacity: 0; transform: translateY(12px); }
.screen-subtitles.off .english-line { transform: translateY(-12px); }
.stage-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 5px 2px; }
.stage-status { color: #aebec4; font-size: 11.5px; display: flex; align-items: center; gap: 8px; }
.stage-status i { background: #a6f67b; width: 6px; height: 6px; display: inline-block; border-radius: 50%; box-shadow: 0 0 10px #a6f67b; }
.switcher { display: flex; align-items: center; gap: 10px; color: #d9e8df; font: 700 12px var(--head); }
.toggle { height: 23px; width: 43px; border-radius: 99px; background: var(--lime); border: 0; position: relative; transition: .2s; flex: none; }
.toggle::before { content: ""; position: absolute; right: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #122116; transition: transform .2s; }
.toggle[aria-pressed="false"] { background: #566472; }
.toggle[aria-pressed="false"]::before { transform: translateX(-20px); background: #fff; }
.under-stage { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 4px 0; }
.scene-select { display: flex; gap: 8px; }
.scene-select button { border: 1px solid rgba(255, 255, 255, .14); background: #101a25; color: #a4b5be; border-radius: 8px; padding: 5px 11px; font-size: 11.5px; }
.scene-select button.active { border-color: rgba(201, 247, 119, .48); color: #d8f5aa; background: rgba(201, 247, 119, .08); }
.stage-caption { color: #7f909d; font-size: 11px; }
.floating-note { position: absolute; z-index: 4; left: -35px; top: 20px; display: flex; align-items: center; gap: 11px; background: #1a292e; border: 1px solid rgba(201, 247, 119, .24); padding: 12px 15px; border-radius: 12px; box-shadow: 0 20px 50px #0006; transform: rotate(-3deg); }
.floating-note strong { display: block; color: #fff; font: 800 15px var(--head); }
.floating-note small { display: block; font-size: 11px; color: #aec4be; }
.floating-note .spark { width: 35px; height: 35px; display: grid; place-items: center; background: rgba(201, 247, 119, .12); color: var(--lime); border-radius: 9px; font-size: 21px; }

/* المنصات */
.platforms { padding: 26px 0 34px; }
.platform-box { border-block: 1px solid rgba(255, 255, 255, .09); padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.platform-box > span { color: #8f9eaa; font-size: 13px; }
.platform-items { display: flex; gap: clamp(18px, 3vw, 50px); align-items: center; flex-wrap: wrap; }
.platform-items span { color: #b9c5cc; font: 800 18px var(--head); display: inline-flex; align-items: center; gap: 9px; }
.platform-items svg { width: 22px; height: 22px; stroke: #c3e4dc; fill: none; stroke-width: 1.7; }

/* الأقسام */
.section { padding: 100px 0; scroll-margin-top: 90px; }
.section-dark { background: linear-gradient(180deg, #0b121b, #0b121a); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-intro p { max-width: 510px; }

/* التنزيل */
.dl-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 32px 36px; border-radius: 23px;
  background: radial-gradient(ellipse 70% 115% at 100% 0%, rgba(201, 247, 119, .11), transparent 80%), #142320; border: 1px solid rgba(201, 247, 119, .28); }
.dl-panel img { width: 72px; height: 72px; border-radius: 20px; }
.dl-panel h3 { font: 900 28px/1.25 var(--head); margin: 0 0 4px; }
.dl-panel p { margin: 0; color: #b4c8be; font-size: 15px; }
.dl-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dl-others a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-radius: 14px; background: #121c25; border: 1px solid var(--stroke); transition: border-color .2s; }
.dl-others a:hover { border-color: rgba(201, 247, 119, .35); }
.dl-others b { font: 800 16px var(--head); display: block; } .dl-others small { color: var(--muted); font-size: 12.5px; }
.dl-others i { font-style: normal; color: var(--lime); }

/* الخطوات والمميزات */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 30px 27px 29px; min-height: 230px; background: linear-gradient(155deg, rgba(26, 38, 48, .9), rgba(14, 22, 31, .8)); border: 1px solid var(--stroke); border-radius: 18px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(201, 247, 119, .3); }
.feature .ic { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(201, 247, 119, .08); border: 1px solid rgba(201, 247, 119, .1); border-radius: 12px; margin-bottom: 22px; }
.feature .ic svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font: 800 22px var(--head); margin: 0 0 7px; }
.feature p { font-size: 14px; color: #a3b2bb; line-height: 1.9; margin: 0; }
.feature-big { grid-column: span 2; background: radial-gradient(ellipse 80% 90% at 20% 95%, rgba(70, 112, 87, .2), transparent 70%), linear-gradient(155deg, #1b2a31, #0d1720); }
.step-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 44px; }
.step { padding: 28px 25px; background: #111c24; border: 1px solid rgba(255, 255, 255, .09); border-radius: 17px; position: relative; }
.step .num { font: 900 54px var(--head); color: rgba(201, 247, 119, .35); line-height: 1; margin-bottom: 13px; }
.step h3 { font: 800 22px var(--head); margin: 0 0 9px; }
.step p { font-size: 14px; color: #afbec7; margin: 0; }
.step:not(:last-child)::after { content: "←"; position: absolute; left: -16px; top: 42%; z-index: 1; color: var(--lime); background: #0e1720; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #26333b; display: grid; place-items: center; }

/* الإعداد (خطوات حقيقية من الدليل) */
.setup-panel { margin-top: 39px; display: grid; grid-template-columns: 1fr 1.12fr; background: #121f28; border: 1px solid rgba(255, 255, 255, .11); border-radius: 25px; overflow: clip; }
/* الاختيارات تبقى ظاهرة بينما تتصفح الخطوات */
.setup-controls { padding: 36px; position: sticky; top: 90px; align-self: start; }
.picker fieldset, .setup-controls fieldset { border: 0; padding: 0; margin: 0 0 29px; min-width: 0; }
.picker legend, .setup-controls legend { color: #e9f0ee; font-weight: 800; font-size: 14px; margin-bottom: 11px; padding: 0; }
.seg, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .pill { padding: 9px 15px; min-height: 40px; background: #192934; border: 1px solid #30424a; border-radius: 9px; color: #b5c2c8; font-size: 13px; transition: background-color .2s; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { background: #22343e; }
.seg button[aria-pressed="true"] { color: #0b1510; background: var(--lime); border-color: var(--lime); font-weight: 800; }
.seg button[aria-pressed="true"] small { color: #33452a; }
.seg small { color: #7f909d; font-size: 11px; }
.setup-result { padding: 40px; display: flex; flex-direction: column; justify-content: center; min-width: 0; border-inline-start: 1px solid rgba(255, 255, 255, .09);
  background: radial-gradient(ellipse 75% 70% at 100% 100%, rgba(81, 108, 77, .23), transparent 85%), #101a22; }
.setup-result .eyebrow { font-size: 12px; }
.setup-result h3 { font: 900 clamp(26px, 2.4vw, 36px) var(--head); margin: 13px 0 7px; direction: rtl; }
.setup-result > p { font-size: 14px; color: #aebbc2; margin: 0 0 15px; }
.result-steps { list-style: none; counter-reset: item; margin: 4px 0 22px; padding: 0; display: grid; gap: 11px; }
.result-steps li { counter-increment: item; position: relative; padding-inline-start: 35px; color: #dae3e2; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.result-steps li::before { content: counter(item); position: absolute; inset-inline-start: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: rgba(201, 247, 119, .1); color: var(--lime); font-size: 12px; font-weight: 800; text-align: center; line-height: 23px; }
.result-steps li.grp { counter-increment: none; padding: 12px 0 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.result-steps li.grp:first-child { padding-top: 0; border-top: 0; }
.result-steps li.grp::before { display: none; }
.result-steps li.grp b { font: 800 15px var(--head); color: #f1f6f4; }
.result-steps li.grp span { font-size: 11px; color: var(--lime); border: 1px solid rgba(201, 247, 119, .3); border-radius: 999px; padding: 0 9px; }
.result-steps .path { color: #8fa1ac; font-size: 12.5px; display: block; margin-top: 2px; }
.dl { display: inline-block; margin-inline-start: 6px; padding: 0 10px; border-radius: 8px; background: rgba(201, 247, 119, .12); color: var(--lime); font-size: .92em; white-space: nowrap; }
.code-big { font-size: 1.2em; letter-spacing: 3px; color: var(--lime); direction: ltr; unicode-bidi: isolate; }
.notice { background: rgba(255, 192, 113, .08); border: 1px solid rgba(255, 192, 113, .25); padding: 12px 15px; border-radius: 10px; color: var(--warn); font-size: 12.5px; margin-bottom: 20px; line-height: 1.9; }
.notice.soft { background: rgba(100, 212, 223, .06); border-color: rgba(100, 212, 223, .22); color: #bfe9ee; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.setup-controls .subtle-note { margin-top: 0; }

/* الاشتراك */
.offer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.offer { background: radial-gradient(ellipse 70% 115% at 100% 0%, rgba(201, 247, 119, .13), transparent 80%), #162620; border: 1px solid rgba(201, 247, 119, .3); border-radius: 23px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.offer h3 { font: 900 clamp(37px, 4vw, 54px)/1.2 var(--head); margin: 13px 0 8px; }
.offer p { font-size: 16px; color: #b4c8be; max-width: 510px; }
.offer-perks { display: flex; gap: 12px 24px; flex-wrap: wrap; margin: 16px 0 28px; color: #d4e4da; font-size: 13px; }
.offer-perks span::before { content: "✓"; color: var(--lime); margin-left: 8px; }
.offer .btn { margin-top: auto; }
.offer-side { padding: 32px; background: #121b24; border: 1px solid var(--stroke); border-radius: 23px; display: flex; flex-direction: column; gap: 12px; }
.offer-side h3 { font: 800 24px var(--head); margin: 0; }
.offer-side > p { color: #a8b6bf; margin: 0 0 6px; font-size: 14px; }
.plans { display: grid; gap: 10px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "per btn"; align-items: center; gap: 4px 16px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke); }
.plan.pick { border-color: rgba(201, 247, 119, .45); background: rgba(201, 247, 119, .05); }
.plan .name { grid-area: name; font: 800 18px var(--head); display: flex; align-items: center; gap: 8px; }
.plan .badge { font: 800 11.5px var(--head); color: var(--lime-ink); background: var(--lime); border-radius: 999px; padding: 2px 9px; }
.plan .price { grid-area: price; font: 900 30px/1 var(--head); text-align: left; }
.plan .price small { font: 600 13px var(--body); color: var(--muted); margin-inline-start: 4px; }
.plan .old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-inline-start: 8px; font-weight: 500; }
.plan .per { grid-area: per; color: var(--muted); font-size: 13px; }
.plan ul { display: none; }
.plan .btn { grid-area: btn; min-height: 40px; padding: 8px 16px; font-size: 14px; }
.redeem { display: flex; gap: 8px; margin-top: 4px; }
.redeem input { flex: 1; min-width: 0; margin: 0; direction: ltr; text-align: center; letter-spacing: 1px; }
.redeem .btn { min-height: 48px; padding: 0 18px; }
.subtle-note, .fine { font-size: 12.5px; color: #7e929a; margin: 6px 0 0; line-height: 1.9; }
.subtle-note a, .fine a { color: #b9c9c4; text-decoration: underline; }

/* الأسئلة */
.faq-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.faq-list details { background: #121c25; border: 1px solid rgba(255, 255, 255, .11); border-radius: 13px; overflow: hidden; }
.faq-list summary { padding: 19px 21px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--lime); font: 400 26px Arial, sans-serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: #aebcc5; margin: 0; padding: 0 21px 21px; font-size: 14px; line-height: 2; }
.last-cta { padding: 80px 0; }
.last-panel { min-height: 290px; background: radial-gradient(ellipse 75% 150% at 14% 95%, rgba(135, 189, 85, .17), transparent), linear-gradient(130deg, #172822, #0f1a24); border: 1px solid rgba(201, 247, 119, .18); border-radius: 27px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(29px, 5vw, 64px); }
.last-panel h2 { font: 900 clamp(35px, 4.2vw, 56px)/1.2 var(--head); margin: 5px 0 13px; }
.last-panel p { color: #b0c2ba; margin: 0; }
.last-panel .actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.last-panel .actions small { color: #9dabaa; font-size: 12px; }
footer { padding: 34px 0 60px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 24px; } .footer-inner .logo img { width: 30px; height: 30px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; color: #97a8af; font-size: 13px; }
.foot-links a:hover { color: var(--lime); }
.x-link { display: inline-flex; align-items: center; gap: 6px; }
.copyright { color: #7e8b94; font-size: 12px; }

/* ---------------------------------------------------------------- الصفحات الداخلية (الحساب، الألعاب، السياسات) */
.appbar { position: sticky; top: 0; z-index: 30; background: rgba(7, 11, 18, .86); border-bottom: 1px solid rgba(255, 255, 255, .06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding-top: env(safe-area-inset-top); }
.appbar .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.topnav { display: flex; gap: 26px; margin-inline-start: auto; }
.topnav a { color: #aebac3; font: 700 14px var(--head); }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }
.appbar .btn { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.page { padding: 42px 0 70px; }
.page .wrap { max-width: 1100px; }
.page h1 { font: 900 clamp(32px, 4vw, 48px)/1.25 var(--head); margin: 0 0 12px; }
.page h2 { font: 800 24px var(--head); margin: 36px 0 12px; }
.muted { color: var(--muted); }
.card { background: #121c25; border: 1px solid var(--stroke); border-radius: 18px; padding: 22px; min-width: 0; }
.card + .card { margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ok { color: var(--ok); } .bad { color: #ffb08a; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #30424a; background: #0d151e; color: var(--text); font-size: 16px; font-family: inherit; margin: 6px 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.games a { display: block; padding: 15px 18px; border-radius: 12px; background: #121c25; border: 1px solid var(--stroke); font-weight: 600; overflow-wrap: anywhere; transition: border-color .2s; }
.games a:hover { border-color: rgba(201, 247, 119, .35); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { padding: 10px; border-bottom: 1px solid var(--stroke); vertical-align: top; text-align: start; }
.doc h2 { font-size: 21px; margin-top: 30px; }
.doc p { color: #c3cfd6; max-width: 72ch; }
.tabbar { display: none; }

/* ---------------------------------------------------------------- الشاشات الصغيرة (نوافذ الكمبيوتر الضيقة وصفحات الحساب على الجوال) */
@media (max-width: 1110px) {
  .navlinks { gap: 18px; } .hero { padding-top: 64px; } .hero-grid { gap: 26px; }
  .stage { transform: none; } .floating-note { left: -10px; top: -27px; } .stage-caption { display: none; }
}
@media (max-width: 900px) {
  .nav-inner { height: 68px; }
  .navlinks { position: absolute; top: 68px; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: #111e27; border: 1px solid #33454a; border-radius: 15px; padding: 10px; box-shadow: 0 25px 50px #000a; }
  .navlinks.open { display: flex; } .navlinks a { padding: 12px 15px; font-size: 16px; }
  .menu-button { display: block; } .nav-account { display: none; }
  .hero-grid, .setup-panel, .offer-grid { grid-template-columns: 1fr; }
  .stage-wrap { max-width: 720px; width: 100%; margin: auto; }
  .platform-box { align-items: flex-start; flex-direction: column; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .step-layout { grid-template-columns: 1fr; } .step::after { display: none; }
  .setup-controls { position: static; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .setup-result { border-inline-start: 0; }
  .dl-panel { grid-template-columns: auto minmax(0, 1fr); } .dl-panel .btn { grid-column: 1 / -1; }
  .dl-others { grid-template-columns: 1fr; }
  .last-panel { flex-direction: column; align-items: flex-start; } .last-panel .actions { align-items: flex-start; }
  .section { padding: 72px 0; } .section-intro { align-items: start; flex-direction: column; gap: 3px; }
  .faq-list { grid-template-columns: 1fr; }
  /* الصفحات الداخلية على الجوال: تطبيق بشريط سفلي */
  html { scrollbar-width: none; } html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  body:has(.tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .appbar .wrap { height: 58px; gap: 12px; } .topnav, .appbar .btn { display: none; }
  .logo, .brand { font-size: 24px; } .logo img, .brand img { width: 34px; height: 34px; }
  .page { padding: 22px 0 40px; } .card { padding: 18px; }
  .games { grid-template-columns: 1fr 1fr; gap: 8px; } .games a { padding: 13px 14px; font-size: 14.5px; }
  table { display: block; overflow-x: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(12, 19, 26, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid #2b3a3b; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8e9ca9; font: 700 11.5px/1.2 var(--head); position: relative; }
  .tabbar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--lime); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime); }
  .tabbar a.main { color: #f1f6f4; } .tabbar a.main::before { display: none; }
  .tabbar .fab { width: 48px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--lime); margin-top: -2px; box-shadow: 0 6px 24px rgba(201, 247, 119, .18); }
  .tabbar .fab svg { stroke: var(--lime-ink); width: 22px; height: 22px; stroke-width: 2.3; }
}
@media (max-width: 540px) {
  :root { --pad: 18px; }
  .hero { padding: 40px 0 28px; } .hero h1 { letter-spacing: -1px; font-size: clamp(44px, 12.5vw, 60px); }
  .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn { width: 100%; }
  .features { grid-template-columns: 1fr; } .feature-big { grid-column: span 1; } .feature { min-height: 0; padding: 22px; }
  .setup-controls, .setup-result { padding: 22px; }
  .games { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
