/* ═══════════════════════════════════════════════════════════════
   عالم السيكا — نظام التصميم
   هوية: أشكال البلي الأربعة (△ ○ ✕ □) بألوانها + ذهبي للفلوس والرصيد
   ليلي افتراضياً (أجواء ألعاب)، ونهاري بزر.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Readex'; src: url('/assets/fonts/readex-ar.woff2') format('woff2'); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Readex'; src: url('/assets/fonts/readex-lat.woff2') format('woff2'); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Lalezar'; src: url('/assets/fonts/lalezar-ar.woff2') format('woff2'); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Lalezar'; src: url('/assets/fonts/lalezar-lat.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #090b19; --bg2: #0e1124; --s1: #141833; --s2: #1b2043; --s3: #252b58;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --tx: #f4f5ff; --tx2: #b7bce0; --tx3: #7a81ab;
  --tri: #3ee8a5; --cir: #ff5370; --crs: #5aa9ff; --sqr: #ff7ae0; --gold: #ffd84d; --gold2: #ffb020;
  --pri: #5aa9ff; --pri2: #8b6cff;
  --ok: #3ee8a5; --warn: #ffb547; --bad: #ff5370;
  --r1: 12px; --r2: 18px; --r3: 26px; --r4: 34px;
  --sh: 0 12px 34px rgba(0, 0, 0, .38);
  --sh2: 0 4px 14px rgba(0, 0, 0, .28);
  --glow-gold: 0 0 0 1px rgba(255, 216, 77, .35), 0 10px 40px rgba(255, 176, 32, .25);
  --font: 'Readex', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Lalezar', 'Readex', system-ui, sans-serif;
  --nav-h: 66px;
  --head-h: 60px;
  --wrap: 1180px;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f4f5fd; --bg2: #ffffff; --s1: #ffffff; --s2: #eef0fa; --s3: #e1e4f4;
  --line: rgba(22, 26, 70, .08); --line2: rgba(22, 26, 70, .15);
  --tx: #14173a; --tx2: #474d7e; --tx3: #8187ac;
  --tri: #0fbf85; --cir: #f0405e; --crs: #2d7cf3; --sqr: #d63fb8; --gold: #f1b400; --gold2: #e08a00;
  --pri: #2d7cf3; --pri2: #6d4dff;
  --sh: 0 12px 30px rgba(30, 36, 90, .12);
  --sh2: 0 3px 10px rgba(30, 36, 90, .1);
  --glow-gold: 0 0 0 1px rgba(225, 160, 0, .35), 0 10px 30px rgba(225, 160, 0, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--tx);
  background:
    radial-gradient(900px 500px at 105% -10%, rgba(90, 169, 255, .14), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(255, 122, 224, .10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(62, 232, 165, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
[data-theme='light'] body {
  background:
    radial-gradient(900px 500px at 105% -10%, rgba(45, 124, 243, .10), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(214, 63, 184, .07), transparent 60%),
    var(--bg);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--crs); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.shp { width: 1em; height: 1em; flex: none; }
.shp-tri { color: var(--tri); } .shp-cir { color: var(--cir); } .shp-crs { color: var(--crs); } .shp-sqr { color: var(--sqr); }
.num { font-family: var(--display); letter-spacing: .5px; font-feature-settings: 'tnum'; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--tx2); } .faint { color: var(--tx3); }
.hide { display: none !important; }
.skip { position: absolute; top: -40px; right: 8px; background: var(--pri); color: #fff; padding: 6px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 8px; }

/* ── الهيدر ── */
.head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  background: rgba(9, 11, 25, .92); border-bottom: 1px solid var(--line);
}
[data-theme='light'] .head { background: rgba(255, 255, 255, .94); }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 10px rgba(90, 169, 255, .25)); }
.brand-name { font-family: var(--display); font-size: 23px; line-height: 1; white-space: nowrap; letter-spacing: .3px; }
.brand-name b { font-weight: normal; background: linear-gradient(90deg, var(--crs), var(--sqr)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head-search {
  flex: 1; max-width: 460px; margin-inline-start: auto; display: none; align-items: center; gap: 8px;
  background: var(--s1); border: 1px solid var(--line2); border-radius: 999px; padding: 0 14px; height: 42px; color: var(--tx3);
}
.head-search:hover { border-color: var(--crs); }
@media (min-width: 720px) { .head-search { display: flex; } }
.head-acts { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (min-width: 720px) { .head-acts { margin-inline-start: 0; } }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--tx2); }
.icon-btn:hover { background: var(--s1); color: var(--tx); }
.icon-btn .ic { width: 23px; height: 23px; }
.badge-dot { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cir); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge-dot:empty, .badge-dot[data-n='0'] { display: none; }
.desk-nav { display: none; gap: 2px; margin-inline-start: 10px; }
@media (min-width: 900px) { .desk-nav { display: flex; } }
.desk-nav a { padding: 8px 12px; border-radius: 10px; color: var(--tx2); font-weight: 500; font-size: 14.5px; }
.desk-nav a:hover, .desk-nav a.on { color: var(--tx); background: var(--s1); }
.desk-nav a.swap-link { color: var(--gold); }

/* ── الشريط السفلي (موبايل) ── */
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 45; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 14, 32, .97); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
[data-theme='light'] .nav { background: rgba(255, 255, 255, .98); }
@media (min-width: 900px) { .nav { display: none; } }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--tx3); font-weight: 500; position: relative; padding-top: 4px; }
.nav a .ic { width: 24px; height: 24px; }
.nav a.on { color: var(--tx); }
.nav a.on::before { content: ''; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--crs), var(--sqr)); }
.nav .fab { transform: translateY(-16px); color: var(--tx); }
.nav .fab .disc {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #10122a;
  background: conic-gradient(from 200deg, var(--tri), var(--crs), var(--sqr), var(--cir), var(--gold), var(--tri));
  box-shadow: 0 8px 22px rgba(90, 169, 255, .35), inset 0 0 0 4px rgba(9, 11, 25, .9);
}
.nav .fab .disc .ic { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.nav .fab .disc::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a2f66, #12152e); z-index: -1; }
.nav .fab .disc { position: relative; isolation: isolate; }
.nav .fab.on::before { display: none; }

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; user-select: none;
  background: linear-gradient(100deg, var(--crs), var(--pri2)); color: #fff; box-shadow: 0 8px 22px rgba(90, 120, 255, .3);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-gold { background: linear-gradient(100deg, var(--gold), var(--gold2)); color: #2a1a00; box-shadow: 0 8px 24px rgba(255, 176, 32, .3); }
.btn-green { background: linear-gradient(100deg, var(--tri), #1fc7d6); color: #052a1d; box-shadow: 0 8px 22px rgba(62, 232, 165, .25); }
.btn-ghost { background: var(--s1); color: var(--tx); border: 1px solid var(--line2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--crs); }
.btn-wa { background: #1fae5b; color: #fff; box-shadow: 0 8px 20px rgba(31, 174, 91, .25); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.link { color: var(--crs); font-weight: 500; }

/* ── شرائح الاختيار ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-inline: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; white-space: nowrap;
  background: var(--s1); border: 1px solid var(--line2); color: var(--tx2); font-weight: 500; font-size: 14.5px; transition: all .15s;
}
.chip:hover { color: var(--tx); border-color: var(--line2); background: var(--s2); }
.chip.on { color: var(--tx); border-color: transparent; background: linear-gradient(var(--s2), var(--s2)) padding-box, linear-gradient(100deg, var(--crs), var(--sqr)) border-box; border: 1.5px solid transparent; }
.chip img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; margin-inline-start: -8px; }
.chip .n { font-size: 12px; color: var(--tx3); }

/* ── شارات ── */
.pf { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 700 11px/1 var(--font); letter-spacing: .4px; color: #fff; background: #0070d1; }
.pf.ps4 { background: #2b3a8f; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: var(--s2); color: var(--tx2); }
.tag .ic { width: 15px; height: 15px; }
.tag.g { color: var(--tri); background: rgba(62, 232, 165, .1); }
.tag.b { color: var(--crs); background: rgba(90, 169, 255, .1); }
.tag.p { color: var(--sqr); background: rgba(255, 122, 224, .1); }
.tag.r { color: var(--cir); background: rgba(255, 83, 112, .1); }
.tag.y { color: var(--gold); background: rgba(255, 216, 77, .1); }

/* ── الفلوس ── */
.money { display: inline-flex; align-items: baseline; gap: 4px; direction: rtl; }
.money .num { font-size: 1.15em; }
.money small { font-size: .7em; color: var(--tx3); font-family: var(--font); font-weight: 500; }

/* ── كروت الألعاب ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gcard { position: relative; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease; }
.gcard:active { transform: scale(.97); }
@media (hover: hover) { .gcard:hover { transform: translateY(-4px); } .gcard:hover .cover { box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px var(--line2); } }
.cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r2); overflow: hidden; background: var(--s2);
  box-shadow: var(--sh2); transition: box-shadow .2s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .pfs { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.cover .flag { position: absolute; bottom: 8px; right: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.cover .flag .tag { height: 22px; font-size: 11.5px; background: rgba(9, 11, 25, .82); color: #fff; }
.cover .flag .tag.g { color: #6ff3c0; } .cover .flag .tag.y { color: #ffe27a; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; text-align: center; font-family: var(--display); font-size: 20px; line-height: 1.2; color: rgba(255,255,255,.9); }
.gcard .t { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .p { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--tx3); }
.gcard .p .money { color: var(--tx); font-size: 15px; }
.gcard .out { color: var(--tx3); font-size: 13px; }

/* ── سكشنات ── */
.sec { margin: 34px 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 27px; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.sec-h h2 .shp { width: 22px; height: 22px; }
.sec-h p { margin: 2px 0 0; color: var(--tx2); font-size: 14px; }
.sec-h .more { color: var(--crs); font-weight: 500; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(138px, 42%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 10px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 560px) { .rail { grid-auto-columns: minmax(150px, 28%); } }
@media (min-width: 860px) { .rail { grid-auto-columns: minmax(160px, 19%); } }

/* ── الأقسام (كروت ملونة) ── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r3); padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--s1); border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.tile:active { transform: scale(.97); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); border-color: var(--line2); } }
.tile b { font-family: var(--display); font-weight: normal; font-size: 22px; line-height: 1.1; position: relative; }
.tile span { font-size: 13px; color: var(--tx2); position: relative; }
.tile .big { position: absolute; left: -14px; bottom: -18px; width: 96px; height: 96px; opacity: .22; transform: rotate(-12deg); }
.tile.t-tri { background: linear-gradient(140deg, rgba(62, 232, 165, .16), var(--s1) 70%); }
.tile.t-crs { background: linear-gradient(140deg, rgba(90, 169, 255, .18), var(--s1) 70%); }
.tile.t-cir { background: linear-gradient(140deg, rgba(255, 83, 112, .16), var(--s1) 70%); }
.tile.t-sqr { background: linear-gradient(140deg, rgba(255, 122, 224, .16), var(--s1) 70%); }
.tile.t-gold { background: linear-gradient(140deg, rgba(255, 216, 77, .16), var(--s1) 70%); }
.tile.wide { grid-column: span 2; }
@media (min-width: 720px) { .tile.wide { grid-column: span 1; } }

/* ── الحقول ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; color: var(--tx2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; background: var(--s1); border: 1.5px solid var(--line2); color: var(--tx);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; outline: none; appearance: none;
}
textarea.input { padding: 12px 16px; min-height: 90px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: 18px 22px, 23px 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.input:focus { border-color: var(--crs); box-shadow: 0 0 0 4px rgba(90, 169, 255, .15); }
.input::placeholder { color: var(--tx3); }
.input[dir='ltr'] { text-align: right; }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .row2 > * { min-width: 0; }
.err { color: var(--cir); font-size: 14px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }

/* ── خيارات كبيرة (كروت قابلة للاختيار) ── */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r2); background: var(--s1); border: 1.5px solid var(--line2); text-align: right; width: 100%;
  transition: border-color .15s, background .15s, transform .15s;
}
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--crs); background: linear-gradient(140deg, rgba(90, 169, 255, .10), var(--s1)); }
.opt .oi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--s2); flex: none; }
.opt .oi .ic { width: 25px; height: 25px; }
.opt .ob { flex: 1; min-width: 0; }
.opt .ob b { display: block; font-size: 15.5px; }
.opt .ob small { color: var(--tx2); font-size: 13px; }
.opt .oe { text-align: left; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; }
.opt.on .tick { background: var(--crs); border-color: var(--crs); }
.opt.on .tick::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ── اللوحات (Panel) ── */
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 17px; }

/* ── ورقة سفلية (Sheet) ── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(4, 5, 14, .66); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 61; inset: auto 0 0 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line2); padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .9, .3, 1);
}
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 4px auto 12px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-h h3 { margin: 0; font-size: 19px; font-family: var(--display); font-weight: normal; }
@media (min-width: 720px) {
  .sheet { inset: 50% auto auto 50%; width: min(560px, calc(100vw - 32px)); border-radius: 26px; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; max-height: 86vh; border: 1px solid var(--line2); transition: transform .25s, opacity .25s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
}

/* ── البحث (شاشة كاملة) ── */
.search-ov { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.search-ov.on { opacity: 1; pointer-events: auto; transform: none; }
.search-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-bar .input { border-radius: 999px; min-height: 48px; }
.search-res { flex: 1; overflow-y: auto; padding: 8px 12px 30px; }
.sres { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.sres:hover, .sres:focus { background: var(--s1); }
.sres img, .sres .ph { width: 48px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--s2); flex: none; }
.sres .sb { flex: 1; min-width: 0; }
.sres .sb b { display: block; font-size: 15px; line-height: 1.3; }
.sres .sb small { color: var(--tx3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ai-note { display: flex; align-items: center; gap: 8px; color: var(--sqr); font-size: 13px; padding: 6px 10px; }

/* ── تنبيه صغير ── */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: all .25s; background: var(--tx); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 500; font-size: 14.5px; box-shadow: var(--sh); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ── زر المساعد العائم ── */
.ask-fab {
  position: fixed; z-index: 44; left: 14px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  height: 48px; padding: 0 16px 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  background: var(--s2); border: 1px solid var(--line2); color: var(--tx); font-weight: 600; font-size: 14px; box-shadow: var(--sh);
}
.ask-fab .ic { width: 22px; height: 22px; color: var(--sqr); }
.ask-fab.mini span { display: none; }
.ask-fab.mini { padding: 0; width: 48px; justify-content: center; }
@media (min-width: 900px) { .ask-fab { bottom: 24px; left: 24px; } }

/* ── الفوتر ── */
.foot { margin-top: 50px; padding: 30px 0 30px; border-top: 1px solid var(--line); color: var(--tx2); font-size: 14px; }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { margin: 0 0 8px; color: var(--tx); font-size: 15px; }
.foot a { display: block; padding: 3px 0; }
.foot a:hover { color: var(--tx); }
.foot .small { font-size: 12.5px; color: var(--tx3); }

/* ── صفحة عامة ── */
.page-h { padding: 20px 0 6px; }
.page-h h1 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 32px; line-height: 1.15; }
.page-h p { margin: 4px 0 0; color: var(--tx2); }
.empty { text-align: center; padding: 50px 16px; color: var(--tx2); }
.empty .shapes { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.empty .shapes .shp { width: 30px; height: 30px; animation: bob 2.4s ease-in-out infinite; }
.empty .shapes .shp:nth-child(2) { animation-delay: .2s; } .empty .shapes .shp:nth-child(3) { animation-delay: .4s; } .empty .shapes .shp:nth-child(4) { animation-delay: .6s; }
.empty b { display: block; color: var(--tx); font-size: 18px; margin-bottom: 4px; }

/* ── حركات ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floaty { 0% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(var(--dx, 14px), var(--dy, -18px), 0) rotate(var(--rot, 18deg)); } 100% { transform: translate3d(0, 0, 0) rotate(0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes coin { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--cx), var(--cy)) scale(1) rotate(var(--cr)); opacity: 0; } }
@keyframes pulse-gold { 0%, 100% { box-shadow: var(--glow-gold); } 50% { box-shadow: 0 0 0 1px rgba(255, 216, 77, .55), 0 10px 50px rgba(255, 176, 32, .4); } }
.rise { animation: rise .45s ease both; }
.skel { background: linear-gradient(90deg, var(--s1) 25%, var(--s2) 37%, var(--s1) 63%); background-size: 400% 100%; animation: shine 1.4s ease infinite; border-radius: var(--r2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* أيقونات حسب الثيم + بحث الموبايل */
.only-light { display: none; }
[data-theme='light'] .only-light { display: block; }
[data-theme='light'] .only-dark { display: none; }
@media (min-width: 720px) { .msearch { display: none !important; } }
