/* ════════════════════════════════════════════════════════════════
   GAYYAR PRO · coins.css — صفحة شحن عملات الألعاب (pages/coins.html)
   بانرات «بطلة» متراصة — لعبة لكل بانر، بثيم المتجر الكحلي/السماوي
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0f1e; --bg-2: #0c1426;
  --card: rgba(228,240,246,0.025); --card-hover: rgba(228,240,246,0.055);
  --ink: #e4f0f6; --ink-soft: #b9c8d4; --ink-dim: #6b7d8f;
  --line: rgba(228,240,246,0.08); --line-strong: rgba(228,240,246,0.16);
  --gold: #4ea8de; --gold-light: #8fc6ea;
  --gold-glow: rgba(78,168,222,0.42); --gold-soft: rgba(78,168,222,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.coins {
  background: var(--bg); color: var(--ink);
  font-family: 'Cairo', sans-serif; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #04121a; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.cn-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── خلفية ─────────────────────────────────────────────── */
.cn-bgfx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(78,168,222,0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(78,168,222,0.05), transparent 60%);
}
section, .cn-nav, footer { position: relative; z-index: 1; }

/* ── النافبار ──────────────────────────────────────────── */
.cn-nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.cn-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cn-brand img { width: 38px; height: 38px; object-fit: contain; }
.cn-brand .name { display: flex; flex-direction: column; line-height: 1.15; }
.cn-brand .name .b { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 2px; }
.cn-brand .name .s { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 2.5px; color: var(--gold); margin-top: 2px; }
.cn-nav-links { display: flex; gap: 24px; }
.cn-nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.cn-nav-links a:hover { color: var(--gold-light); }
.cn-nav .cta {
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px;
  padding: 10px 22px; background: var(--gold); color: #04121a;
  border: none; cursor: pointer; text-decoration: none; transition: .2s;
}
.cn-nav .cta:hover { background: var(--gold-light); box-shadow: 0 0 24px var(--gold-glow); }

/* ── رأس الصفحة ────────────────────────────────────────── */
.cn-head { text-align: center; padding: 150px 24px 30px; }
.cn-head .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 4px;
  color: var(--gold-light); margin-bottom: 14px;
}
.cn-head h1 { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.3; }
.cn-head h1 .accent { color: var(--gold); }
.cn-head .sub {
  font-size: clamp(14px, 1.5vw, 17px); font-weight: 400; color: var(--ink-soft);
  line-height: 1.9; max-width: 560px; margin: 10px auto 0;
}

/* شريط الثقة */
.cn-trust {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  padding: 22px 24px 10px;
}
.cn-trust .pt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.cn-trust .pt svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

/* ── التنقّل السريع بين الألعاب ─────────────────────────── */
.cn-quicknav {
  display: flex; justify-content: center; gap: 10px;
  padding: 18px 24px 0; flex-wrap: wrap;
}
.cn-quicknav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 20px; border-radius: 99px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: var(--acc, var(--gold));
  border: 1px solid color-mix(in srgb, var(--acc, #4ea8de) 45%, transparent);
  background: color-mix(in srgb, var(--acc, #4ea8de) 8%, transparent);
  transition: .2s; white-space: nowrap;
}
.cn-quicknav a:hover { background: color-mix(in srgb, var(--acc, #4ea8de) 18%, transparent); transform: translateY(-2px); }

/* ── بانرات الألعاب (بطلة 4·D) ─────────────────────────── */
.cn-games { display: flex; flex-direction: column; gap: 26px; padding: 34px 0 10px; }

.cn-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-strong); min-height: 300px;
  display: flex; align-items: center;
  scroll-margin-top: 96px;
  transition: border-color .25s, box-shadow .25s;
}
.cn-hero:hover { border-color: var(--acc, var(--gold)); box-shadow: 0 22px 70px -18px var(--acc, var(--gold)); }

.cn-hero .bgimg { position: absolute; inset: 0; }
.cn-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 20%; }
.cn-hero .bgfx {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, var(--accsoft, rgba(78,168,222,.12)), transparent 65%),
    linear-gradient(150deg, var(--tint, #16233c), #0a0f1e 75%);
}
.cn-hero .bgfx svg { width: 130px; height: 130px; color: var(--acc, var(--gold)); opacity: .3; margin-left: 18%; }
.cn-hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,24,.96) 34%, rgba(8,12,24,.6) 62%, rgba(8,12,24,.18));
}
.cn-in { position: relative; z-index: 2; padding: 38px 42px; max-width: 560px; width: 100%; }
.cn-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px;
  color: var(--acc, var(--gold));
  border: 1px solid color-mix(in srgb, var(--acc, #4ea8de) 45%, transparent);
  background: color-mix(in srgb, var(--acc, #4ea8de) 10%, transparent);
  padding: 5px 12px; border-radius: 99px;
}
.cn-in h2 { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(27px, 3.4vw, 42px); line-height: 1.35; margin-top: 14px; }
.cn-in h2 em { font-style: normal; color: var(--acc, var(--gold)); }
.cn-in p.lead { font-size: 14px; color: var(--ink-soft); line-height: 1.85; margin-top: 8px; }

.cn-packs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cn-pk {
  /* هدف لمس ≥ 44px — الجمهور الأساسي موبايل */
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center;
  border-radius: 10px; cursor: pointer; transition: .15s;
  border: 1px solid var(--line-strong); color: var(--ink-soft); background: rgba(4,18,26,.5);
}
.cn-pk:hover, .cn-pk.on {
  border-color: var(--acc, var(--gold)); color: var(--acc, var(--gold));
  background: color-mix(in srgb, var(--acc, #4ea8de) 12%, transparent);
}
.cn-pk .pr { opacity: .75; }
/* باقة نفدت كميتها في المخزون */
.cn-pk.out, .cn-pk.out:hover {
  opacity: .45; cursor: not-allowed; text-decoration: line-through;
  border-color: var(--line-strong); color: var(--ink-dim); background: rgba(4,18,26,.5);
}

.cn-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--acc, var(--gold)); color: #04121a;
  font-weight: 700; font-size: 15px; padding: 13px 28px;
  border: none; text-decoration: none; cursor: pointer; transition: .2s;
}
.cn-cta:hover { filter: brightness(1.15); box-shadow: 0 0 28px color-mix(in srgb, var(--acc, #4ea8de) 45%, transparent); transform: translateY(-2px); }

/* بانر «لعبتك غير موجودة؟» */
.cn-ask { min-height: 200px; }
.cn-ask .cn-in { max-width: 640px; }

/* ── كيف أشحن؟ ─────────────────────────────────────────── */
.cn-steps { padding: 70px 24px 90px; }
.cn-steps .hd {
  text-align: center; font-family: 'Cairo', sans-serif; font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 34px;
}
.cn-steps .hd .accent { color: var(--gold); }
.cn-steps-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cn-step {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; text-align: center; transition: border-color .25s;
}
.cn-step:hover { border-color: rgba(78,168,222,.4); }
.cn-step .num {
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 15px; color: var(--gold);
  border: 1px solid rgba(78,168,222,.4); width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; margin: 0 auto 12px; background: var(--gold-soft);
}
.cn-step b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.cn-step span { font-size: 13px; color: var(--ink-dim); line-height: 1.75; }

/* ── الفوتر ────────────────────────────────────────────── */
.cn-footer {
  border-top: 1px solid var(--line);
  padding: 34px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cn-footer .f-brand { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-dim); }
.cn-footer .f-brand img { width: 30px; height: 30px; object-fit: contain; }
.cn-footer .f-meta { font-size: 12.5px; color: var(--ink-dim); }
.cn-footer .f-meta a { color: inherit; text-decoration: none; transition: color .2s; }
.cn-footer .f-meta a:hover { color: var(--gold-light); }

/* ── استجابة ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cn-nav-links { display: none; }
  .cn-in { padding: 30px 24px; }
  .cn-hero .shade { background: linear-gradient(90deg, rgba(8,12,24,.96) 55%, rgba(8,12,24,.75)); }
  .cn-steps-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .cn-head { padding-top: 130px; }
  .cn-hero { min-height: 340px; }
  .cn-hero .bgimg img { object-position: 80% 15%; }
  /* زر الطلب بعرض كامل — أسهل وصولاً بالإبهام */
  .cn-cta { width: 100%; justify-content: center; }
  /* شريط التنقّل قابل للسحب أفقياً بدل الالتفاف */
  .cn-quicknav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cn-quicknav::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── وضع الأداء الخفيف (perf-lite.js) — أجهزة ضعيفة ─────────────── */
html.gp-lite .cn-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ════════════════════════════════════════════════════════════════
   شبكة الألعاب — صور فقط، والباقات في لوحةٍ تحتها
   ────────────────────────────────────────────────────────────────
   البطاقة صورةُ اللعبة كما رُفعت في NEXUS: بلا اسمٍ ولا أيقونة ولا
   سعر. العين تلتقط الصورة أسرع من أي نصّ، والزبون يعرف لعبته من
   غلافها. الاسم يظهر في اللوحة بعد الاختيار حيث يفيد فعلاً.
   ════════════════════════════════════════════════════════════════ */
.cn-shop { padding-bottom: 40px; }

.cn-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 700px)  { .cn-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .cn-grid { grid-template-columns: repeat(4, 1fr); } }

.cn-tile {
  position: relative; overflow: hidden; padding: 0; cursor: pointer;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--bg-2);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cn-tile img { width: 100%; height: 100%; object-fit: cover; }
.cn-tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.cn-tile.on {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-soft), 0 14px 34px -16px var(--gold-glow);
}
/* الحلقة الصغيرة تقول أيّ لعبة مفتوحة الآن دون أن تحجب الصورة */
.cn-tile.on::after {
  content: ""; position: absolute; inset-inline-end: 9px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(10,15,30,.75);
}
/* بلا صورة في NEXUS: الاسم بدل مربّعٍ فارغ */
.cn-tile.noimg {
  display: grid; place-items: center; padding: 12px; text-align: center;
  background: linear-gradient(160deg, rgba(78,168,222,.14), rgba(10,15,30,.6));
}
.cn-tile .nm { font-size: 14px; font-weight: 900; line-height: 1.5; color: var(--ink); }
.cn-tile.out { opacity: .45; }
.cn-tile .out-tag {
  position: absolute; inset-inline: 0; bottom: 0; padding: 5px;
  font-size: 11px; font-weight: 700; text-align: center;
  background: rgba(10,15,30,.85); color: #ff8c8c;
}

/* ── لوحة الباقات ─────────────────────────────────────────── */
.cn-panel {
  margin-top: 14px; padding: 16px 15px 15px;
  border: 1px solid var(--gold-soft); border-radius: 18px;
  background: linear-gradient(180deg, rgba(78,168,222,.07), rgba(228,240,246,.02));
}
.cn-panel .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.cn-panel .ph h2 { font-size: 16.5px; font-weight: 900; }
.cn-panel .ph .cnt { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-dim); }

.cn-rows { display: grid; gap: 9px; margin-bottom: 13px; }
.cn-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 50px; padding: 0 13px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(228,240,246,.03); color: var(--ink);
  font-family: inherit; text-align: start;
  transition: border-color .16s, background .16s;
}
.cn-row .amt { font-size: 15px; font-weight: 900; }
.cn-row .unit { font-size: 11.5px; color: var(--ink-dim); }
.cn-row .val { margin-inline-start: auto; font-size: 15px; font-weight: 900; color: var(--gold-light); }
.cn-row .val small { font-size: 11px; font-weight: 400; color: var(--ink-dim); margin-inline-start: 3px; }
.cn-row:hover { border-color: var(--gold); }
.cn-row.on { border-color: var(--gold); background: var(--gold-soft); }
.cn-row.out { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.cn-row.out:hover { border-color: var(--line-strong); }

.cn-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; border: none; border-radius: 13px;
  background: var(--gold); color: #04121a;
  font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 26px -12px var(--gold-glow);
  transition: filter .16s, transform .16s;
}
.cn-add:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cn-add:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.cn-msg {
  margin-top: 16px; padding: 30px 20px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 16px;
  font-size: 13.5px; line-height: 2; color: var(--ink-dim);
}

@media (max-width: 560px) {
  .cn-container { padding: 0 16px; }
  .cn-grid { gap: 10px; }
  .cn-tile { border-radius: 14px; }
  .cn-panel { padding: 14px 13px 13px; border-radius: 16px; }
  .cn-panel .ph h2 { font-size: 15px; }
}
/* هدف اللمس لا ينزل عن ٤٤ بكسل */
@media (max-width: 768px) { .cn-row, .cn-add { min-height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .cn-tile, .cn-row, .cn-add { transition: none; }
  .cn-tile:hover, .cn-add:hover { transform: none; }
}
