/* متجر ألعاب كميل: موجّه للوالدين. نفس هوية الألعاب (ألوان صلبة بلا تدرّج، ظل صلب، Baloo Bhaijaan 2) بشكل أهدأ وأنضج */
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 600; font-display: swap; src: url(/fonts/baloo-bhaijaan-2-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 800; font-display: swap; src: url(/fonts/baloo-bhaijaan-2-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 600; font-display: swap; src: url(/fonts/baloo-bhaijaan-2-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 800; font-display: swap; src: url(/fonts/baloo-bhaijaan-2-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #22264b; --ink-2: #3a3f6b; --ink-soft: #5b6088; --paper: #fff; --cream: #fbf8f2; --panel: #eef1f8; --line: #d5d9e6;
  --sky: #9ad8ff; --sky-soft: #dff2ff; --orange: #ff9f43; --orange-press: #e07f1f; --green: #2ecc71; --green-press: #1fa558; --green-ink: #16794a;
  --blue: #3aa0ff; --blue-press: #1f7fd9; --yellow: #ffc93c; --yellow-press: #e0a81c; --red: #ff5d5d; --purple: #a66cff; --teal: #1fc8b3; --pink: #ff6bcb;
  --night: #171b4d; --blank: #fff6d6; --danger: #c0392b;
  --r-chip: 18px; --r-card: 26px; --r-panel: 34px;
  --wrap: 1180px; --gutter: 16px;
  --font: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1.65; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-soft); }
.skip { position: absolute; top: -60px; right: 16px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ===== الأزرار ===== */
.btn { font: inherit; font-weight: 800; font-size: 18px; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 26px; border-radius: 999px; transition: transform .08s ease, box-shadow .08s ease; white-space: nowrap; color: var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.primary { background: var(--orange); box-shadow: 0 5px 0 var(--orange-press); }
.btn.primary:active { box-shadow: 0 1px 0 var(--orange-press); }
.btn.go { background: var(--green); box-shadow: 0 5px 0 var(--green-press); }
.btn.go:active { box-shadow: 0 1px 0 var(--green-press); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #0d1030; }
.btn.yellow { background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-press); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn.line:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px currentColor; }
.btn.big { min-height: 60px; font-size: 20px; padding: 10px 32px; }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; font-size: 16px; padding: 4px 18px; box-shadow: 0 4px 0 var(--line); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--blue-press); font-weight: 800; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }

/* ===== الرأس ===== */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; flex: none; }
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: none; gap: 4px; margin-inline-start: 18px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { background: var(--panel); color: var(--ink); }
.top-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--ink); text-decoration: none; border: 0; cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; line-height: 1; }
.account-btn { display: none; }
.menu-btn { display: inline-flex; }
.drawer { position: fixed; inset: 68px 0 auto 0; background: var(--paper); box-shadow: 0 12px 0 rgba(34,38,75,.08); padding: 10px var(--gutter) 20px; display: flex; flex-direction: column; gap: 4px; z-index: 39; }
.drawer a { text-decoration: none; padding: 12px 14px; border-radius: 16px; font-weight: 800; font-size: 18px; }
.drawer a:hover { background: var(--panel); }

/* ===== البطل ===== */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 34px; padding-top: 44px; padding-bottom: 64px; position: relative; z-index: 1; }
.eyebrow { display: block; font-size: 15px; font-weight: 800; color: var(--orange-press); }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(36px, 8.4vw, 64px); line-height: 1.12; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: clamp(17px, 2.6vw, 20px); color: #d8dbf0; max-width: 34ch; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn:not(.primary) { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: #c9cde8; font-size: 15px; }
.hero-facts b { display: block; color: #fff; font-size: 26px; line-height: 1.1; }
.hero-art { position: relative; min-height: 340px; }
.hero-art .tile { position: absolute; border-radius: var(--r-card); overflow: hidden; background: var(--paper); box-shadow: 0 10px 0 rgba(0,0,0,.25); }
.hero-art .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .t1 { width: 62%; aspect-ratio: 4/3; top: 0; right: 0; transform: rotate(3deg); }
.hero-art .t2 { width: 50%; aspect-ratio: 4/3; top: 34%; left: 2%; transform: rotate(-5deg); }
.hero-art .t3 { width: 42%; aspect-ratio: 4/3; bottom: 0; right: 14%; transform: rotate(-1deg); }
.hero-art .blob { position: absolute; border-radius: 50%; }
.hero-art .b1 { width: 120px; height: 120px; background: var(--orange); top: -30px; left: 22%; }
.hero-art .b2 { width: 70px; height: 70px; background: var(--green); bottom: 8%; left: 8%; }
.hero-art .b3 { width: 46px; height: 46px; background: var(--sky); top: 40%; right: -10px; }
.hero .shapes { position: absolute; inset: 0; pointer-events: none; }
.hero .shapes i { position: absolute; display: block; border-radius: 50%; }
.wave { display: block; width: 100%; height: 40px; margin-top: -1px; }

/* ===== الشريط الموثوق ===== */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; color: var(--ink-soft); }
.pay-logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pay-logos img { height: 34px; width: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: #fff; }

/* ===== الأقسام ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--paper); }
.section.sky { background: var(--sky-soft); }
.section.night { background: var(--night); color: #fff; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.head h2 { font-size: clamp(28px, 5vw, 42px); }
.head p { color: var(--ink-soft); margin-top: 6px; max-width: 52ch; }
.night .head p { color: #c9cde8; }
.kicker { font-size: 15px; font-weight: 800; color: var(--orange-press); display: block; margin-bottom: 6px; }

/* ===== بطاقة اللعبة ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--paper); border-radius: var(--r-card); box-shadow: 0 6px 0 var(--line); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease; position: relative; }
.card:hover { transform: translateY(-4px); }
.card .media { aspect-ratio: 4/3; background: var(--c, var(--sky)); position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 17px; }
.card h3 a { text-decoration: none; }
.card .meta { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.owned-txt { font-weight: 800; font-size: 14px; color: var(--green-ink); }
.vid-badge { position: absolute; bottom: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(23,27,77,.82); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 10px 2px 8px; border-radius: 999px; }
.vid-badge svg { width: 12px; height: 12px; }
.card .tagline { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.card .price { font-size: 18px; }
.price { font-weight: 800; font-size: 22px; white-space: nowrap; }
.money { display: inline-flex; align-items: center; gap: .16em; white-space: nowrap; }
.sar { width: .78em; height: .86em; flex: none; }
s .money { opacity: .75; }
.price small { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.price s { font-size: 15px; color: var(--ink-soft); font-weight: 600; margin-inline-end: 6px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--ink-2); line-height: 1.7; }
.tag.letters { background: #ffe3e3; color: #a3302f; }
.tag.numbers { background: #dff0ff; color: #155e9e; }
.tag.words { background: #efe5ff; color: #6236b0; }
.ribbon { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; padding: 2px 12px; border-radius: 999px; }
.ribbon.owned { background: var(--green); }
.card .add { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; box-shadow: 0 4px 0 var(--orange-press); }
.card .add svg { width: 20px; height: 20px; }
.card .btn.small { min-height: 38px; padding: 2px 12px; font-size: 14px; }

/* ===== الباقات (منفصلة عن بطاقات الألعاب) ===== */
.bundles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.bundle { border-radius: var(--r-panel); color: var(--ink); background: var(--c, var(--yellow)); box-shadow: 0 8px 0 rgba(34,38,75,.18); display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.bundle:hover { transform: translateY(-4px); }
.bundle-img { display: block; }
.bundle-img img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.bundle-body { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.bundle-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bundle-name { font-size: 24px; }
.bundle-count { font-weight: 800; font-size: 15px; }
.bundle-tag { font-size: 15px; }
.bundle .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.bundle .save { background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.bundle .price s { color: rgba(34,38,75,.6); font-size: 16px; margin-inline-end: 8px; }

/* ===== لماذا ===== */
.why { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-item { background: var(--paper); border-radius: var(--r-card); padding: 24px; box-shadow: 0 6px 0 var(--line); }
.why-item .ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--c); }
.why-item .ic svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 21px; margin-bottom: 6px; }
.why-item p { font-size: 16px; color: var(--ink-soft); }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--r-card); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.step b { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-size: 22px; margin-bottom: 12px; }
.step h3 { font-size: 21px; margin-bottom: 4px; }
.step p { color: #c9cde8; font-size: 16px; }

.quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quote { background: var(--paper); border-radius: var(--r-card); padding: 24px; box-shadow: 0 6px 0 var(--line); display: flex; flex-direction: column; gap: 14px; }
.quote p { font-size: 17px; }
.quote .who { display: flex; align-items: center; gap: 10px; margin-top: auto; font-weight: 800; }
.quote .who i { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; background: var(--c, var(--sky)); }
.quote .who small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.stars-row { display: flex; gap: 3px; color: var(--yellow); }
.stars-row svg { width: 20px; height: 20px; }

.faq details { background: var(--paper); border-radius: 20px; box-shadow: 0 4px 0 var(--line); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--orange-press); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); }

.cta-band { background: var(--orange); border-radius: var(--r-panel); padding: 34px 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; box-shadow: 0 8px 0 var(--orange-press); }
.cta-band h2 { font-size: clamp(26px, 5vw, 38px); }

/* ===== التصفية ===== */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .label { font-weight: 800; font-size: 15px; color: var(--ink-soft); align-self: center; flex: none; margin-inline-end: 4px; }
.chip { font: inherit; font-weight: 800; font-size: 16px; border: 0; cursor: pointer; flex: none; padding: 6px 18px; min-height: 42px; border-radius: 999px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

/* ===== صفحة اللعبة ===== */
.pg-head { padding: 22px 0 8px; }
.crumbs { font-size: 15px; color: var(--ink-soft); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: 30px; padding-bottom: 40px; }
.product > *, .layout-2 > * { min-width: 0; }
.gallery .stage { border-radius: var(--r-card); overflow: hidden; background: var(--c, var(--sky)); aspect-ratio: 4/3; position: relative; box-shadow: 0 6px 0 var(--line); }
.gallery .stage img, .gallery .stage video { width: 100%; height: 100%; object-fit: contain; background: var(--c, var(--sky)); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 8px; }
.thumbs button { flex: none; width: 84px; height: 64px; border-radius: 14px; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: var(--panel); box-shadow: 0 0 0 2px var(--line); position: relative; }
.thumbs button[aria-current="true"] { box-shadow: 0 0 0 3px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(34,38,75,.45); }
.thumbs .play-ic svg { width: 26px; height: 26px; color: #fff; }
.info h1 { font-size: clamp(32px, 6vw, 48px); margin: 8px 0 8px; }
.info .tagline { font-size: 19px; color: var(--ink-soft); }
.facts { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.facts li svg { width: 20px; height: 20px; flex: none; color: var(--ink-soft); }
.facts li span { color: var(--ink-soft); min-width: 74px; }
.buybox { background: var(--paper); border-radius: var(--r-card); padding: 20px; box-shadow: 0 6px 0 var(--line); display: flex; flex-direction: column; gap: 14px; }
.buybox .price { font-size: 34px; }
.buybox .row { display: flex; gap: 12px; flex-wrap: wrap; }
.buybox .row .btn { flex: 1 1 200px; }
.buybox .note { font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.buybox .note svg { width: 18px; height: 18px; flex: none; color: var(--green-ink); }
.desc { font-size: 17px; white-space: pre-line; }
.included { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 14px; }
.included a { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 8px; text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); }
.included img { width: 60px; height: 45px; border-radius: 10px; object-fit: cover; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border-radius: 999px; padding: 4px; }
.qty button { width: 38px; height: 38px; min-height: 38px; border-radius: 50%; border: 0; background: var(--paper); font: inherit; font-weight: 800; font-size: 20px; cursor: pointer; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }

/* ===== السلة والنماذج ===== */
.layout-2 { display: grid; gap: 26px; padding-top: 26px; padding-bottom: 60px; align-items: start; }
.panel { background: var(--paper); border-radius: var(--r-card); box-shadow: 0 6px 0 var(--line); padding: 22px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--panel); }
.line-item:last-child { border-bottom: 0; }
.line-item img, .line-item .ph { width: 76px; height: 57px; border-radius: 12px; object-fit: cover; background: var(--c, var(--sky)); }
.line-item h3 { font-size: 18px; }
.line-item .sub { font-size: 14px; color: var(--ink-soft); }
.line-item .end { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.remove { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 17px; }
.sum-row.total { font-size: 22px; font-weight: 800; border-top: 2px solid var(--panel); margin-top: 8px; padding-top: 14px; }
.sum-row.disc { color: var(--green-ink); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; font-size: 16px; }
.input { font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); background: var(--panel); border: 2px solid transparent; border-radius: 16px; padding: 10px 16px; min-height: 52px; width: 100%; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; }
.input.code { letter-spacing: 10px; text-align: center; font-size: 26px; }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; }
.err { color: var(--danger); font-weight: 800; font-size: 15px; min-height: 1.2em; }
.ok { color: var(--green-ink); font-weight: 800; font-size: 15px; }
.notice { background: var(--blank); border-radius: 16px; padding: 12px 16px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice.green { background: #dcf7e7; }
.notice.blue { background: var(--sky-soft); }

.auth { max-width: 492px; margin: 0 auto; padding-top: 40px; padding-bottom: 80px; }
.auth .panel { padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { font-size: 30px; }
.phone-in { display: flex; gap: 8px; direction: ltr; }
.phone-in span { display: flex; align-items: center; padding: 0 14px; background: var(--panel); border-radius: 16px; font-weight: 800; }
.dev-code { background: var(--blank); border-radius: 14px; padding: 8px 14px; font-size: 15px; }

/* ===== النجاح ===== */
.success { max-width: 792px; margin: 0 auto; padding-top: 34px; padding-bottom: 70px; display: flex; flex-direction: column; gap: 22px; }
.state { text-align: center; padding: 34px 22px; }
.state .ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--green); box-shadow: 0 6px 0 var(--green-press); }
.state .ring svg { width: 52px; height: 52px; color: #fff; }
.state .ring.wait { background: var(--sky); box-shadow: 0 6px 0 var(--blue-press); }
.state .ring.wait svg { animation: spin 1.1s linear infinite; color: var(--ink); }
.state .ring.bad { background: var(--red); box-shadow: 0 6px 0 #c94040; }
@keyframes spin { to { transform: rotate(360deg); } }
.state h1 { font-size: clamp(28px, 6vw, 38px); }
.libbox { display: grid; gap: 22px; align-items: center; }
.qr { background: #fff; border-radius: 20px; padding: 14px; box-shadow: inset 0 0 0 2px var(--line); width: 200px; height: 200px; margin: 0 auto; }
.qr svg { width: 100%; height: 100%; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 12px; }
.howto li { counter-increment: h; display: flex; gap: 12px; align-items: flex-start; }
.howto li::before { content: counter(h, arabic-indic); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.howto svg { width: 20px; height: 20px; vertical-align: -4px; }

/* ===== الطلبات ===== */
.order { border-bottom: 1px solid var(--panel); padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.order:last-child { border-bottom: 0; }
.order .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.status { font-size: 14px; font-weight: 800; padding: 2px 12px; border-radius: 999px; background: var(--panel); }
.status.paid { background: #dcf7e7; color: var(--green-ink); }
.status.pending { background: var(--blank); color: #8a5a00; }
.status.refunded, .status.failed, .status.canceled { background: #ffe3e3; color: #a3302f; }

/* ===== الصفحات الثابتة ===== */
.doc { max-width: 812px; margin: 0 auto; padding-top: 34px; padding-bottom: 70px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-inline-start: 22px; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 22px; }

/* ===== التذييل ===== */
.foot-site { background: var(--ink); color: #c9cde8; padding: 50px 0 30px; font-size: 15px; }
.foot-site .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-site h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.foot-site a { color: #c9cde8; text-decoration: none; display: block; padding: 3px 0; }
.foot-site a:hover { color: #fff; }
.foot-site .logo { color: #fff; margin-bottom: 10px; }
.foot-site .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot-site .pay-logos img { box-shadow: none; }

/* ===== تنبيه منبثق ===== */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 14px 10px 22px; font-weight: 800; z-index: 60; display: flex; gap: 14px; align-items: center; transition: transform .25s ease; box-shadow: 0 6px 0 rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast a { color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 4px 14px; text-decoration: none; white-space: nowrap; }
.sticky-buy { position: fixed; bottom: 0; inset-inline: 0; background: var(--paper); box-shadow: 0 -1px 0 var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; z-index: 30; }
.sticky-buy .btn { flex: 1; }
.has-sticky { padding-bottom: 90px; }

.skeleton { background: var(--panel); border-radius: var(--r-card); min-height: 280px; }

/* ===== جوال: بطل أقصر ===== */
@media (max-width: 719px) {
  .hero .wrap { padding-top: 26px; padding-bottom: 30px; gap: 0; }
  .hero h1 { font-size: 32px; margin: 8px 0 10px; }
  .hero .lead { font-size: 16px; }
  .hero-art { display: none; }
  .hero .ctas { flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .hero .ctas .btn { flex: 1; min-height: 52px; font-size: 17px; padding: 8px 12px; }
  .price-tag { margin-top: 14px; font-size: 15px; }
  .hero-facts { margin-top: 18px; gap: 18px; font-size: 13px; }
  .hero-facts b { font-size: 20px; }
  .consent { flex-direction: row; align-items: center; padding: 12px 14px; gap: 10px; }
  .consent p { flex: 1; }
  .consent .row { flex-wrap: nowrap; }
}
/* ===== آيباد ===== */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 90px; }
  .hero-art { min-height: 440px; }
  .product { grid-template-columns: 1.15fr 1fr; align-items: start; padding-top: 10px; }
  .product .info { position: sticky; top: 90px; }
  .layout-2 { grid-template-columns: 1.4fr 1fr; }
  .layout-2 aside { position: sticky; top: 90px; }
  .libbox { grid-template-columns: auto 1fr; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; }
  .sticky-buy { display: none; }
  .has-sticky { padding-bottom: 0; }
}
/* ===== كمبيوتر ===== */
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .account-btn { display: inline-flex; }
  .drawer { display: none !important; }
  .section { padding: 90px 0; }
  .filters { flex-direction: row; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== التصنيفات (فلتر بسطر واحد) ===== */
.cats { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 20; }
.cats .chips { padding: 12px 0; margin: 0; }

/* ===== القيمة ===== */
.value { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.value-item { background: var(--paper); border-radius: var(--r-card); padding: 22px; box-shadow: 0 6px 0 var(--line); }
.value-item b { display: block; font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.value-item b .money { font-size: inherit; }
.value-item p { color: var(--ink-soft); font-size: 16px; }
.price-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 4px 16px; font-weight: 800; font-size: 17px; margin-top: 18px; }

/* ===== كيف تلعب بعد الشراء ===== */
.how-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: hs; }
.how-steps li { counter-increment: hs; background: var(--paper); border-radius: var(--r-card); padding: 22px; box-shadow: 0 6px 0 var(--line); }
.how-steps li::before { content: counter(hs, arabic-indic); width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.how-steps h3 { font-size: 19px; margin-bottom: 4px; }
.how-steps p { color: var(--ink-soft); font-size: 15px; }

/* ===== واتساب العائم ===== */
.wa-float { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 #179c4a; }
.wa-float svg { width: 30px; height: 30px; }
.has-sticky .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ===== الكوكيز ===== */
.consent { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ink); color: #fff; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 0 rgba(0,0,0,.2); max-width: 640px; margin: 0 auto; font-size: 15px; }
.consent a { color: var(--yellow); }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn:not(.primary) { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card .body { padding: 14px 16px 16px; gap: 6px; }
  .card h3 { font-size: 20px; }
  .card .meta { font-size: 14px; }
  .card .price { font-size: 21px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { top: 68px; }
}
.bundle-count { font-weight: 800; font-size: 15px; }
