/* ============ NEXUS Marketplace — Dark Theme ============ */
:root {
  --bg: #0a0a10;
  --bg-soft: #0e0e16;
  --panel: #14141d;
  --panel-2: #181823;
  --panel-3: #1d1d29;
  --border: #23232f;
  --border-2: #2c2c3a;
  --text: #f2f2f7;
  --muted: #8f90a6;
  --muted-2: #6b6c80;
  --accent: #7c5cfc;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 92, 252, 0.14);
  --green: #34d399;
  --gold: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --radius-lg: 18px;
  --header-h: 68px;
  --topbar-h: 46px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* أسماء المنتجات الإنجليزية داخل الواجهة العربية */
[dir="rtl"] .ptitle, [dir="rtl"] .psub, [dir="rtl"] .art-title, [dir="rtl"] .pp-info h1,
[dir="rtl"] .offer-row .o-name .t, [dir="rtl"] .seller-name, [dir="rtl"] .ds-name,
[dir="rtl"] .brand-name, [dir="rtl"] .crumbs .here {
  direction: ltr; text-align: right; unicode-bidi: plaintext;
}
/* الأيقونات الاتجاهية تنعكس في الواجهة العربية فقط */
[dir="rtl"] .hero-tile .browse svg, [dir="rtl"] .pill-btn svg,
[dir="rtl"] .page-btn svg, [dir="rtl"] .detail-seller > svg { transform: scaleX(-1); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a4c; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ الشريط العلوي (أوقات العمل) ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 18px; text-align: center;
  background: linear-gradient(90deg, #4c1d95, #7c3aed, #a855f7, #7c3aed, #4c1d95);
  background-size: 300% 100%;
  animation: tb-flow 9s linear infinite;
  color: #ffffff; font-size: 15px; font-weight: 800;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 3px 22px rgba(124, 58, 237, .55);
}
@keyframes tb-flow { to { background-position: 300% 0; } }
/* لمعة تمر عبر الشريط لجذب الانتباه */
.topbar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  animation: tb-shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tb-shine { 0% { left: -50%; } 60%, 100% { left: 110%; } }
/* الرسائل الترويجية: نبضة ذهبية لافتة */
.topbar.tb-hot {
  background: linear-gradient(90deg, #7c2d12, #b45309, #f59e0b, #b45309, #7c2d12);
  background-size: 300% 100%;
  animation: tb-flow 9s linear infinite, tb-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 3px 26px rgba(245, 158, 11, .6);
}
@keyframes tb-pulse { 50% { filter: brightness(1.18); } }
.topbar #tb-msg {
  opacity: 1; transition: opacity .35s;
  line-height: 1.3; max-height: calc(var(--topbar-h) - 6px);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topbar #tb-msg.tb-fade { opacity: 0; }
@media (max-width: 900px) { .topbar { font-size: 12px; } }

/* ============ النوافذ المنبثقة ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4, 4, 10, .7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: toast-in .2s ease;
}
.modal-card {
  width: 100%; max-width: 420px;
  background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.modal-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.modal-body { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin-bottom: 18px; }
.modal-body p { margin-bottom: 8px; }
.modal-close {
  width: 100%; height: 42px; border-radius: 11px;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--muted); font-weight: 700; font-size: 13px;
  transition: all .15s;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

/* شعارات المتاجر الحقيقية */
.store-img {
  width: 46px; height: 46px; object-fit: contain;
  background: #fff; border-radius: 13px; padding: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.store-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.store-row-4 .store-tile { height: 130px; font-size: 15px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
  padding: 0 24px;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  box-shadow: 0 4px 18px rgba(124, 92, 252, 0.45);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 2px; white-space: nowrap; }
.brand-name .accent { color: var(--accent-2); }

.nav { display: flex; gap: 4px; flex-shrink: 0; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 13.5px;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -14px;
  height: 3px; border-radius: 3px; background: var(--accent);
}

.search {
  flex: 1; max-width: 420px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 0 12px; height: 42px;
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { flex-shrink: 0; color: var(--muted); }
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px;
}
.search input::placeholder { color: var(--muted-2); }
.search kbd {
  font-family: inherit; font-size: 11px; color: var(--muted);
  background: var(--panel-3); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.hact {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 13px;
  transition: border-color .15s, background .15s;
}
.hact:hover { border-color: var(--accent); background: var(--panel-2); }
.hact.active { border-color: var(--red); color: var(--red); background: rgba(248, 113, 113, .08); }
.hact.active svg { color: var(--red); fill: var(--red); }
.hact svg { color: var(--muted); }
.hact .badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6);
  border: 2px solid var(--border-2);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  cursor: pointer;
}

/* ============ LAYOUT ============ */
.layout {
  display: flex;
  padding-top: calc(var(--header-h) + var(--topbar-h));
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 218px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h) + var(--topbar-h));
  height: calc(100vh - var(--header-h) - var(--topbar-h));
  overflow-y: auto;
  padding: 20px 12px 20px 18px;
  border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar::-webkit-scrollbar { width: 6px; }

.side-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--muted-2); text-transform: uppercase;
  padding: 14px 10px 8px;
}
.side-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8.5px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .13s; width: 100%; text-align: start;
}
.side-item svg { flex-shrink: 0; opacity: .8; }
.side-item:hover { color: var(--text); background: var(--panel); }
.side-item.active { color: var(--text); background: var(--accent-soft); }
.side-item.active svg { color: var(--accent-2); opacity: 1; }

.pro-box {
  margin-top: 22px; padding: 16px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
}
.pro-box .pro-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pro-box .pro-logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.pro-box .pro-title { font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.pro-box p { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.btn-upgrade {
  width: 100%; padding: 9px; border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff; font-weight: 700; font-size: 13px;
  transition: filter .15s;
}
.btn-upgrade:hover { filter: brightness(1.12); }

/* ============ MAIN ============ */
.main {
  flex: 1; min-width: 0;
  padding: 22px 24px 60px;
}

/* Hero tiles */
.hero-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 34px;
}
.hero-tile {
  position: relative; overflow: hidden;
  height: 128px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform .18s, border-color .18s;
}
.hero-tile:hover { transform: translateY(-3px); border-color: var(--border-2); }
.hero-tile h3 { font-size: 20px; font-weight: 800; position: relative; z-index: 2; }
.hero-tile .browse {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  position: relative; z-index: 2; transition: color .15s, gap .15s;
}
.hero-tile:hover .browse { color: var(--accent-2); gap: 10px; }
.hero-art {
  position: absolute; inset-inline-end: -18px; top: 50%; transform: translateY(-50%);
  font-size: 86px; opacity: .85; z-index: 1;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.5));
}
.hero-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
}
.hero-games { background: linear-gradient(115deg, #16161f 45%, #2a2436); }
.hero-games::before { background: radial-gradient(circle at 85% 40%, rgba(148, 113, 255, .28), transparent 60%); }
.hero-subs { background: linear-gradient(115deg, #131a2e 45%, #1b2b57); }
.hero-subs::before { background: radial-gradient(circle at 85% 40%, rgba(59, 130, 246, .35), transparent 60%); }
.hero-soft { background: linear-gradient(115deg, #1a1426 45%, #35205c); }
.hero-soft::before { background: radial-gradient(circle at 85% 40%, rgba(168, 85, 247, .35), transparent 60%); }
.hero-stores { background: linear-gradient(115deg, #101828 45%, #1e3a5f); }
.hero-stores::before { background: radial-gradient(circle at 85% 40%, rgba(96, 165, 250, .3), transparent 60%); }
/* بطاقة إعلان IPTV بالصورة */
.hero-iptv {
  background: url("assets/iptv.png") center / cover no-repeat;
  border-color: rgba(124, 92, 252, .5);
}
.hero-iptv::before {
  background: linear-gradient(to inline-end, rgba(6, 4, 18, .88) 30%, rgba(6, 4, 18, .25) 100%);
}
.hero-iptv h3, .hero-iptv .browse { text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }

/* Section headers */
.section { margin-bottom: 38px; }
.section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-head h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head .spacer { flex: 1; }
.pill-btn {
  padding: 7px 15px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 12.5px;
  transition: all .15s;
  display: flex; align-items: center; gap: 5px;
}
.pill-btn:hover { color: var(--text); border-color: var(--accent); }

/* Product cards */
.card-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px;
}
.pcard {
  cursor: pointer;
  transition: transform .16s;
  animation: card-in .35s ease;
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pcard:hover { transform: translateY(-4px); }
.pcover {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: var(--panel);
}
.pcover .art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.pcover .art .art-emoji {
  font-size: 52px;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6));
  transition: transform .25s;
}
.pcard:hover .art-emoji { transform: scale(1.12); }
.pcover .art-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 12px 10px;
  background: linear-gradient(transparent, rgba(4,4,8,.82));
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 700; font-size: 15px; line-height: 1.12;
  letter-spacing: .6px; text-transform: uppercase;
  color: rgba(255,255,255,.94);
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
/* Real artwork layers */
.art-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s;
}
/* صورة IPTV مربعة — تظهر كاملة داخل الإطار بدون قصّ */
.art-img[src$="iptv.png"] { object-fit: contain; background: #05030f; }
/* البانرات الأفقية: تُعرض كاملة فوق نسخة ضبابية منها (بلا قصّ) */
.art-img.horiz { object-fit: contain; }
.art-blur {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(16px) brightness(.5) saturate(1.3);
  transform: scale(1.25);
  opacity: 0; transition: opacity .3s;
}
.has-img .art-blur { opacity: 1; }
.has-img .art-img { opacity: 1; }
.has-img .art-title, .has-img .art-emoji { display: none; }
/* عند تحميل الغلاف الحقيقي: نخفي شعار العلامة الأوسط تماماً */
.has-img .brand-img { display: none !important; }
.brand-img {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -62%);
  width: 88px; height: 88px; object-fit: contain;
  padding: 16px; background: #fff; border-radius: 22px;
  opacity: 0; transition: opacity .3s;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}
.has-logo .brand-img { opacity: 1; }
.has-logo .art-emoji { display: none; }
.detail-cover .brand-img, .pp-cover .brand-img { width: 130px; height: 130px; padding: 22px; border-radius: 28px; }
.pcard:hover .art-img { transform: scale(1.04); transition: transform .3s, opacity .3s; }

.plat-badge {
  position: absolute; top: 9px; inset-inline-end: 9px; z-index: 3;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
  border: 1.5px solid rgba(255,255,255,.18);
}
.feat-badge {
  position: absolute; top: 9px; inset-inline-start: 9px; z-index: 3;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 3px 10px rgba(124,92,252,.5);
}
.discount-badge {
  position: absolute; bottom: 9px; left: 9px; z-index: 3;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(52, 211, 153, .16); color: var(--green);
  font-size: 11.5px; font-weight: 800;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(52, 211, 153, .25);
}
.pinfo { display: flex; align-items: flex-start; gap: 8px; }
.pinfo .pmeta { flex: 1; min-width: 0; }
.pinfo .ptitle {
  font-weight: 700; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pinfo .psub {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.heart-btn {
  flex-shrink: 0; color: var(--muted-2); padding: 2px;
  transition: color .15s, transform .15s;
}
.heart-btn:hover { color: var(--red); transform: scale(1.15); }
.heart-btn.active { color: var(--red); }
.heart-btn.active svg { fill: var(--red); }

.pprice { display: flex; align-items: baseline; gap: 7px; margin-top: 5px; }
.pprice .now { font-weight: 800; font-size: 14.5px; }
.pprice .was { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; }
.pseller {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted-2); margin-top: 4px;
  white-space: nowrap; overflow: hidden;
}
.pseller .sname { color: var(--muted); font-weight: 600; }
.pseller .srate { color: var(--gold); font-weight: 700; }

.dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-2); cursor: pointer; transition: all .2s;
}
.dots span.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* Featured stores */
.store-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.store-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.store-row-3 .store-tile { height: 130px; font-size: 15px; }
.store-tile {
  height: 122px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
  border: 1px solid var(--border);
  cursor: pointer; transition: transform .16s, filter .16s;
  font-weight: 700; font-size: 13.5px;
}
.store-tile:hover { transform: translateY(-3px); filter: brightness(1.15); }
.store-logo {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
}
.st-steam { background: linear-gradient(160deg, #1b2230, #12161f); }
.st-steam .store-logo { background: #fff; color: #101420; }
.st-psn { background: linear-gradient(160deg, #1d2637, #131a28); }
.st-psn .store-logo { background: #0070d1; color: #fff; }
.st-ms { background: linear-gradient(160deg, #23262b, #16181c); }
.st-ms .store-logo { background: #fff; }
.st-nin { background: linear-gradient(160deg, #d35400, #a03e00); border-color: #e67e22; }
.st-nin .store-logo { background: rgba(255,255,255,.16); color: #fff; }
.st-xbox { background: linear-gradient(160deg, #107c10, #0b530b); border-color: #1e9e1e; }
.st-xbox .store-logo { background: rgba(255,255,255,.14); color: #fff; }
.st-bnet { background: linear-gradient(160deg, #1a2c47, #10203a); }
.st-bnet .store-logo { background: #148eff; color: #fff; }

/* Sellers */
.seller-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.seller-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
  cursor: pointer;
}
.seller-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.seller-top { display: flex; align-items: center; gap: 12px; }
.seller-av {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff;
}
.seller-name { font-weight: 700; font-size: 14px; }
.seller-badges { display: flex; gap: 5px; margin-top: 3px; }
.tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-2);
}
.tag.green { background: rgba(52, 211, 153, .12); color: var(--green); }
.seller-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.seller-stats b { color: var(--text); font-weight: 700; }
.seller-stats .rate { color: var(--gold); font-weight: 700; }

/* ============ MARKETPLACE GRID ============ */
.market-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  padding: 8px 16px; border-radius: 100px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 12.5px;
  transition: all .14s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.market-count { font-size: 12.5px; color: var(--muted); margin-inline-start: auto; }
.market-count b { color: var(--accent-2); }
.select {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 8px 12px;
  font-size: 12.5px; font-weight: 600; outline: none; cursor: pointer;
}
.select:focus { border-color: var(--accent); }

.market-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px 15px;
}

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 28px;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-weight: 700; font-size: 13px;
  display: grid; place-items: center; transition: all .13s;
}
.page-btn:hover { color: var(--text); border-color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-ellipsis { color: var(--muted-2); padding: 0 4px; }

/* ============ DETAIL PANEL ============ */
.detail {
  width: 372px; flex-shrink: 0;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding: 20px 22px 30px;
  background: var(--bg-soft);
}
.detail::-webkit-scrollbar { width: 6px; }
.detail-close {
  display: flex; justify-content: flex-end; margin-bottom: 6px;
}
.detail-close button {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  color: var(--muted); transition: all .15s;
}
.detail-close button:hover { color: var(--text); background: var(--panel); }

.detail-cover {
  position: relative;
  aspect-ratio: 3 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  margin-bottom: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.detail-cover .art { position: absolute; inset: 0; display: grid; place-items: center; }
.detail-cover .art .art-emoji { font-size: 110px; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.detail-cover .art-title {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 20px 18px 44px;
  background: linear-gradient(rgba(4,4,8,.75), transparent);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 700; font-size: 26px; line-height: 1.05;
  letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}

.detail h1 {
  font-size: 22px; font-weight: 800; text-align: center; line-height: 1.25;
  margin-bottom: 10px;
}
.detail .pub-chip {
  display: block; width: fit-content; margin: 0 auto 12px;
  padding: 4px 13px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 12px; font-weight: 700;
}
.detail .desc {
  font-size: 12.5px; color: var(--muted); text-align: center;
  margin-bottom: 18px; padding: 0 6px;
}

.spec-list { display: flex; flex-direction: column; gap: 1px; margin-bottom: 16px; }
.spec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 2px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.spec .k { color: var(--muted); font-weight: 500; }
.spec .v { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.spec .v.gold { color: var(--gold); }
.spec .v .rev { color: var(--muted); font-weight: 500; font-size: 12px; }
.spec .v.green { color: var(--green); }
.spec .v .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.perk-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.perk .perk-ic {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: grid; place-items: center; color: var(--accent-2);
}

.detail-seller {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 16px;
}
.detail-seller .seller-av { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.detail-seller .ds-name { font-weight: 700; font-size: 12.5px; }
.detail-seller .ds-meta { font-size: 11px; color: var(--muted); }
.detail-seller .ds-meta .srate { color: var(--gold); font-weight: 700; }

.detail-price-row {
  display: flex; align-items: baseline; gap: 10px; justify-content: center;
  margin-bottom: 14px;
}
.detail-price-row .now { font-size: 26px; font-weight: 800; }
.detail-price-row .was { font-size: 14px; color: var(--muted-2); text-decoration: line-through; }
.detail-price-row .off {
  font-size: 12px; font-weight: 800; color: var(--green);
  background: rgba(52,211,153,.12); padding: 3px 9px; border-radius: 7px;
}

.detail-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.btn-wish {
  width: 52px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--border-2);
  display: grid; place-items: center; color: var(--muted);
  transition: all .15s;
}
.btn-wish:hover, .btn-wish.active { color: var(--red); border-color: var(--red); }
.btn-wish.active svg { fill: var(--red); }
.btn-cart {
  flex: 1; height: 48px; border-radius: 13px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 8px 26px rgba(124, 92, 252, .35);
  transition: filter .15s, transform .1s;
}
.btn-cart:hover { filter: brightness(1.12); }
.btn-cart:active { transform: scale(.98); }
.btn-cart:disabled, .btn-buy:disabled { opacity: .45; cursor: default; filter: none; }
.btn-reserve {
  width: 100%; height: 46px; border-radius: 13px;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text); font-weight: 700; font-size: 13.5px;
  transition: all .15s; margin-bottom: 16px;
}
.btn-reserve:hover { border-color: var(--accent); color: var(--accent-2); }

.points-note {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--muted);
}
.points-note .n-ic {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
}
.points-note b { color: var(--accent-2); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px 26px;
  display: flex; gap: 40px; flex-wrap: wrap;
  color: var(--muted); font-size: 12.5px;
}
.footer .fcol h4 { color: var(--text); font-size: 13px; margin-bottom: 10px; }
.footer .fcol a { display: block; padding: 3px 0; }
.footer .fcol a:hover { color: var(--text); }

/* ============ PRODUCT PAGE ============ */
.pp-main {
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--header-h) + var(--topbar-h) + 22px) 24px 60px;
}
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-2); margin-bottom: 20px;
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--text); font-weight: 600; }

.pp-grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px; margin-bottom: 44px;
}
.pp-cover {
  position: relative;
  aspect-ratio: 600 / 830;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  background: var(--panel);
}
.pp-cover .art { position: absolute; inset: 0; display: grid; place-items: center; }
.pp-cover .art .art-emoji { font-size: 120px; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.pp-cover .art-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(4,4,8,.85));
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 700; font-size: 26px; line-height: 1.08;
  letter-spacing: 1.4px; text-transform: uppercase; text-align: center;
  color: rgba(255,255,255,.96); text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.pp-cover .brand-img { width: 120px; height: 120px; border-radius: 24px; }
.pp-cover.has-img .art-title, .pp-cover.has-img .art-emoji { display: none; }
.pp-cover.has-logo .art-emoji { display: none; }

.pp-info h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.info-chip {
  padding: 5px 13px; border-radius: 9px; font-size: 12px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.info-chip.purple { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.info-chip.green { background: rgba(52,211,153,.1); color: var(--green); border-color: transparent; }

.rating-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 13.5px; color: var(--muted);
}
.rating-row .stars { color: var(--gold); font-weight: 800; display: flex; gap: 2px; align-items: center; }
.rating-row b { color: var(--text); }

.pp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.pp-specs { display: flex; flex-direction: column; }

.buy-box {
  background: var(--panel); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px);
}
.buy-box .price-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-box .price-line .now { font-size: 30px; font-weight: 800; }
.buy-box .price-line .was { font-size: 15px; color: var(--muted-2); text-decoration: line-through; }
.buy-box .price-line .off {
  font-size: 12px; font-weight: 800; color: var(--green);
  background: rgba(52,211,153,.12); padding: 3px 9px; border-radius: 7px;
}
.buy-box .stock-line { font-size: 12.5px; color: var(--green); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.buy-box .stock-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.buy-box .stock-line.out { color: var(--red); }
.buy-box .stock-line.out .dot { background: var(--red); }
.btn-buy {
  width: 100%; height: 48px; border-radius: 13px; margin-bottom: 10px;
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent-2); font-weight: 800; font-size: 14.5px;
  transition: all .15s;
}
.btn-buy:hover { background: var(--accent-soft); }

/* شارات المنصات المتعددة على البطاقات — واضحة في الزاوية */
.plat-badges {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3;
  display: flex; flex-direction: column; gap: 5px;
}
.plat-badges .plat-badge {
  width: 27px; height: 27px; font-size: 12px;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .7);
}

/* محدد المنصة (إلزامي قبل الطلب) */
.plat-select {
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-radius: 13px; padding: 13px 14px; margin-bottom: 12px;
  transition: border-color .2s;
}
.plat-select.attention { border-color: var(--red); animation: ps-shake .35s; }
@keyframes ps-shake { 25% { transform: translateX(5px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }
.plat-select .ps-label {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.plat-select.attention .ps-label { color: var(--red); }
.ps-opts { display: flex; flex-direction: column; gap: 7px; }
.ps-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--panel);
  color: var(--text); font-weight: 700; font-size: 13.5px;
  transition: all .14s; width: 100%;
}
.ps-opt:hover { border-color: var(--accent); }
.ps-opt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.ps-opt .ps-check { margin-inline-start: auto; opacity: 0; color: var(--accent-2); }
.ps-opt.active .ps-check { opacity: 1; }

.btn-contact.locked { opacity: .45; filter: grayscale(.5); cursor: not-allowed; }

/* أزرار التواصل — تيليجرام وواتساب */
.btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; border-radius: 13px; margin-bottom: 10px;
  color: #fff; font-weight: 800; font-size: 15px;
  transition: filter .15s, transform .1s;
}
.btn-contact:hover { filter: brightness(1.12); }
.btn-contact:active { transform: scale(.98); }
.btn-tg { background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 8px 24px rgba(42, 171, 238, .3); }
.btn-wa { background: linear-gradient(135deg, #25d366, #1da851); box-shadow: 0 8px 24px rgba(37, 211, 102, .3); }
.btn-fb { background: linear-gradient(135deg, #1877f2, #0b5fce); box-shadow: 0 8px 24px rgba(24, 119, 242, .3); }
.btn-ig { background: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcaf45); box-shadow: 0 8px 24px rgba(225, 48, 108, .3); }
/* بطاقة هدية فيسبوك داخل نافذة التواصل */
.fb-gift {
  background: rgba(24, 119, 242, .08);
  border: 1px solid rgba(24, 119, 242, .35);
  border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px;
}
.fb-gift b { font-size: 13px; color: #4da3ff; display: block; margin-bottom: 5px; }
.fb-gift p { font-size: 11.5px; color: var(--muted); line-height: 1.75; }
.btn-wishlist-full {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 46px; border-radius: 13px; margin-bottom: 12px;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text); font-weight: 700; font-size: 13.5px;
  transition: all .15s;
}
.btn-wishlist-full:hover, .btn-wishlist-full.active { border-color: var(--red); color: var(--red); }
.btn-wishlist-full.active svg { fill: var(--red); }
.contact-note { font-size: 12px; color: var(--muted); line-height: 1.7; }

.section-block { margin-bottom: 36px; }
.section-block > h3 {
  font-size: 17px; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-block > h3::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--accent);
}
.section-block .body-text { color: var(--muted); font-size: 13.5px; line-height: 1.75; max-width: 900px; }
.section-block .body-text p { margin-bottom: 10px; }
.section-block .body-text b { color: var(--text); }

/* offers table */
.offer-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 16px; margin-bottom: 8px;
  transition: border-color .14s;
}
.offer-row:hover { border-color: var(--accent); }
.offer-row .o-plat { flex-shrink: 0; }
.offer-row .o-name { flex: 1; min-width: 0; }
.offer-row .o-name .t { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-row .o-name .s { font-size: 11.5px; color: var(--muted); }
.offer-row .o-seller { width: 200px; font-size: 12px; color: var(--muted); }
.offer-row .o-seller .n { color: var(--text); font-weight: 700; }
.offer-row .o-seller .r { color: var(--gold); font-weight: 700; }
.offer-row .o-price { font-weight: 800; font-size: 16px; width: 90px; text-align: right; }
.offer-row .o-buy {
  padding: 8px 18px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff; font-weight: 700; font-size: 12.5px;
}
.offer-row .o-buy:hover { filter: brightness(1.12); }

/* requirements */
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.req-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
}
.req-card h4 { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 1px; }
.req-card .rq { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 12.5px; }
.req-card .rq:last-child { border-bottom: none; }
.req-card .rq .k { color: var(--muted-2); flex-shrink: 0; }
.req-card .rq .v { color: var(--text); font-weight: 600; text-align: right; }

/* redeem steps */
.steps { list-style: none; counter-reset: st; max-width: 700px; }
.steps li {
  counter-increment: st; position: relative;
  padding: 10px 0; padding-inline-start: 46px; color: var(--muted); font-size: 13.5px;
}
.steps li::before {
  content: counter(st);
  position: absolute; inset-inline-start: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}

/* reviews */
.rv-summary {
  display: flex; gap: 26px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 22px; margin-bottom: 14px; max-width: 560px;
}
.rv-big { text-align: center; flex-shrink: 0; }
.rv-big .rv-avg { font-size: 28px; font-weight: 800; color: var(--gold); }
.rv-big .rv-total { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rv-bars { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.rv-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.rv-bar-row > span { width: 58px; flex-shrink: 0; }
.rv-bar-row b { color: var(--text); width: 40px; text-align: end; flex-shrink: 0; }
.rv-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.rv-form {
  background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 16px; margin-bottom: 16px; max-width: 560px;
}
.rv-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.star-pick { display: flex; gap: 3px; font-size: 21px; color: var(--border-2); direction: ltr; }
.star-pick span { cursor: pointer; transition: color .12s, transform .12s; }
.star-pick span:hover { transform: scale(1.15); }
.star-pick span.active { color: var(--gold); }
.rv-form textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border-2);
  border-radius: 11px; color: var(--text); font-family: inherit; font-size: 13px;
  padding: 10px 12px; resize: vertical; outline: none;
}
.rv-form textarea:focus { border-color: var(--accent); }
.rv-login-note {
  display: block; max-width: 560px;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 700; font-size: 13px; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px; text-align: center;
  transition: filter .15s;
}
.rv-login-note:hover { filter: brightness(1.2); }
.review-card.mine { border-color: var(--accent); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
.review-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.review-card .rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-card .rv-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
}
.review-card .rv-name { font-weight: 700; font-size: 13px; }
.review-card .rv-meta { font-size: 11px; color: var(--muted-2); }
.review-card .rv-stars { margin-inline-start: auto; color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.review-card .rv-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.review-card .rv-badge { display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 700; color: var(--green); background: rgba(52,211,153,.1); padding: 3px 9px; border-radius: 6px; }

@media (max-width: 1000px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-cover { max-width: 360px; }
  .pp-cols { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .req-grid, .review-grid { grid-template-columns: 1fr; }
  .offer-row .o-seller { display: none; }
}

/* ============ لوحة العروض أسفل الصفحة ============ */
.promo-board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.promo-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 18px;
  transition: border-color .15s, transform .15s;
}
.promo-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.promo-card.gold { border-color: rgba(245, 158, 11, .45); background: linear-gradient(150deg, rgba(245,158,11,.10), var(--panel)); }
.promo-card.gold:hover { border-color: var(--gold); }
.promo-card.fb { border-color: rgba(24, 119, 242, .5); background: linear-gradient(150deg, rgba(24,119,242,.12), var(--panel)); }
.promo-card.fb:hover { border-color: #1877f2; }
.promo-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 22px;
  border: 1px solid var(--border-2);
}
.promo-txt h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 7px; }
.promo-txt p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.promo-txt p b { color: var(--text); }
.promo-card.gold .promo-txt p b { color: var(--gold); }
/* ملاحظة الشرط الأساسي داخل بطاقات العروض */
.promo-note {
  display: block; margin-top: 9px; padding: 8px 11px;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: 9px;
  font-size: 11.5px; color: var(--gold); font-weight: 700; line-height: 1.7;
}

/* ===== تنبيه الحماية الأحمر (قسم الاشتراكات/البرامج + صفحة المنتج) ===== */
.sec-note {
  background: rgba(239, 68, 68, .1);
  border: 1.5px solid rgba(239, 68, 68, .45);
  border-radius: 14px;
  padding: 16px 18px;
  line-height: 1.9;
}
.sec-note b { color: #f87171; font-size: 14.5px; display: block; margin-bottom: 6px; }
.sec-note p { color: var(--text); font-size: 13px; margin: 0; }
.sec-note p b { display: inline; font-size: inherit; color: #f87171; margin: 0; }
.sec-note.compact { padding: 12px 14px; margin-bottom: 12px; }
.sec-note.compact b { font-size: 12.5px; }
.sec-note.compact p { font-size: 11.5px; line-height: 1.75; }

/* شارة عدد أنواع الاشتراك على البطاقة */
.tier-badge {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  background: linear-gradient(135deg, var(--accent), #5b3df0);
  color: #fff; font-weight: 800; font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(124, 92, 252, .45);
  z-index: 3;
}

/* ملاحظة مفتاح/حساب تحت المحدد */
.buy-note {
  margin: 9px 2px 0; font-size: 11.5px; line-height: 1.75;
  color: var(--muted);
}
.buy-note b { color: var(--gold); }

/* ملاحظة "تقييم واحد لكل منتج" أسفل نموذج التقييم */
.rv-one-note {
  margin: 9px 2px 0; font-size: 11.5px; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px;
}
.rv-one-note::before { content: "✎"; color: var(--accent-2); font-size: 13px; }

/* رسالة "لم تصدر بعد" في قسم التقييمات */
.rv-unreleased {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .32);
  color: var(--gold); font-weight: 700; font-size: 13.5px; line-height: 1.8;
}
.rv-unreleased svg { flex: none; }

/* تلميح مزوّدي البريد المقبولين تحت حقل البريد */
.email-hint {
  margin: -6px 2px 12px; font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; direction: ltr; justify-content: flex-start;
}
.email-hint::before { content: "✉"; color: var(--accent-2); font-size: 13px; }

/* زر التسجيل عبر Google + الفاصل "أو" */
.google-wrap { display: flex; justify-content: center; margin: 4px 0 4px; min-height: 44px; }
.google-wrap > div { max-width: 100%; }
.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 4px; color: var(--muted-2); font-size: 12px; font-weight: 700;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.promo-btns { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.promo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 9px 15px; border-radius: 10px;
  transition: filter .15s, transform .12s;
}
.promo-btn svg { width: 16px; height: 16px; }
.promo-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.promo-btn.fb { background: linear-gradient(135deg, #1877f2, #0b5fce); }
.promo-btn.ig { background: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcaf45); }

/* ============ صفحة الحساب ============ */
.auth-main {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + var(--topbar-h) + 40px) 20px 60px;
  display: flex; justify-content: center; align-items: flex-start;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
.auth-tabs {
  display: flex; gap: 6px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: 9px;
  color: var(--muted); font-weight: 700; font-size: 13.5px;
  transition: all .15s;
}
.auth-tab.active { background: var(--accent); color: #fff; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--muted); margin-bottom: 7px;
}
.field label .opt { color: var(--muted-2); font-weight: 500; font-size: 11px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--bg-soft); border: 1px solid var(--border-2);
  border-radius: 11px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.field input.invalid { border-color: var(--red); }
.field .ferr { display: none; font-size: 11.5px; color: var(--red); margin-top: 5px; font-weight: 600; }
.field .ferr.show { display: block; }
.contact-req-box {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 14px;
  font-size: 12px; color: var(--gold); font-weight: 600; line-height: 1.6;
}
.contact-req-box.error { background: rgba(248, 113, 113, .08); border-color: var(--red); color: var(--red); }
.btn-auth {
  width: 100%; height: 48px; border-radius: 13px; margin-top: 6px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff; font-weight: 800; font-size: 14.5px;
  transition: filter .15s;
}
.btn-auth:hover { filter: brightness(1.12); }
.auth-switch {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--accent-2); font-weight: 600; cursor: pointer;
}
.auth-switch:hover { text-decoration: underline; }
/* الملف الشخصي */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-av {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff;
}
.profile-rows { display: flex; flex-direction: column; margin-bottom: 18px; }
.btn-logout {
  width: 100%; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--red);
  color: var(--red); font-weight: 700; font-size: 13.5px;
  transition: all .15s;
}
.btn-logout:hover { background: rgba(248, 113, 113, .1); }
.auth-note { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 16px; line-height: 1.7; }
/* صندوق رمز الدعوة */
.ref-box {
  background: var(--accent-soft);
  border: 1.5px dashed var(--accent);
  border-radius: 16px; padding: 18px;
  text-align: center; margin-bottom: 16px;
}
.ref-box .ref-title { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.ref-box .ref-code {
  font-size: 26px; font-weight: 800; letter-spacing: 4px;
  color: var(--accent-2); direction: ltr;
  background: var(--bg-soft); border-radius: 12px;
  padding: 10px; margin-bottom: 12px;
  font-family: "Inter", monospace;
}
.ref-box .ref-explain {
  font-size: 11.5px; color: var(--muted);
  line-height: 1.8; margin-top: 12px; text-align: start;
}

/* ============ TOAST ============ */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel-3); border: 1px solid var(--border-2);
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  animation: toast-in .25s ease;
}
.toast svg { color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transition: opacity .3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1700px) {
  .hact span.lbl { display: none; }
  .hact .badge { top: -6px; right: -6px; }
  .header { gap: 18px; }
}
@media (max-width: 1500px) {
  .card-row, .market-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .card-row .pcard:nth-child(n+6):not(.mkt) { display: none; }
  .store-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  .detail {
    position: fixed; right: 0; top: var(--header-h); z-index: 200;
    height: calc(100vh - var(--header-h));
    background: var(--bg-soft);
    transform: translateX(105%); transition: transform .28s ease;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
  }
  .detail.open { transform: none; }
  .card-row, .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-row .pcard:nth-child(n+5):not(.mkt) { display: none; }
  .store-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hero-row, .seller-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .card-row, .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search kbd { display: none; }
}
@media (max-width: 560px) {
  .card-row, .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { grid-template-columns: 1fr; }
  .store-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ================================================================
   ============ محرك الواجهة ثلاثية الأبعاد (fx3d) ============
   ================================================================ */

/* ---------- الخلفية: شفق + نجوم + كرات متوهجة ---------- */
.fx-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-aurora {
  position: absolute; width: 90vw; height: 60vh; border-radius: 50%;
  filter: blur(90px); opacity: .5; mix-blend-mode: screen;
}
.fx-aurora.a1 {
  top: -22vh; inset-inline-start: -12vw;
  background: radial-gradient(ellipse, rgba(124,92,252,.5), transparent 65%);
  animation: fx-drift1 26s ease-in-out infinite alternate;
}
.fx-aurora.a2 {
  bottom: -25vh; inset-inline-end: -15vw;
  background: radial-gradient(ellipse, rgba(14,165,233,.36), transparent 65%);
  animation: fx-drift2 32s ease-in-out infinite alternate;
}
@keyframes fx-drift1 { to { transform: translate(9vw, 7vh) scale(1.15) rotate(12deg); } }
@keyframes fx-drift2 { to { transform: translate(-8vw, -6vh) scale(1.1) rotate(-10deg); } }
.fx-stars {
  position: absolute; inset: -50% 0 0 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 34% 64%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.8px 1.8px at 56% 12%, rgba(200,190,255,.8), transparent),
    radial-gradient(1.1px 1.1px at 72% 45%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(170,215,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 20% 86%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.7px 1.7px at 44% 38%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.3px 1.3px at 66% 90%, rgba(200,190,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 94% 28%, rgba(255,255,255,.6), transparent);
  background-size: 620px 620px;
  animation: fx-starfall 140s linear infinite;
  opacity: .8;
}
.fx-stars.s2 {
  background-size: 940px 940px;
  animation-duration: 220s;
  opacity: .5;
}
@keyframes fx-starfall { to { transform: translateY(50%); } }
.fx-orb {
  position: absolute; border-radius: 50%;
  filter: blur(2px); opacity: .55;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), rgba(124,92,252,.55) 42%, rgba(124,92,252,0) 72%);
  box-shadow: 0 0 34px 6px rgba(124,92,252,.35);
}
.fx-orb.o1 { width: 14px; height: 14px; top: 24%; inset-inline-start: 7%; animation: fx-float 11s ease-in-out infinite alternate; }
.fx-orb.o2 { width: 9px; height: 9px; top: 62%; inset-inline-start: 88%; animation: fx-float 14s ease-in-out -4s infinite alternate; }
.fx-orb.o3 { width: 20px; height: 20px; top: 82%; inset-inline-start: 22%; animation: fx-float 17s ease-in-out -9s infinite alternate; opacity: .35; }
@keyframes fx-float {
  from { transform: translate(0, 0); }
  to { transform: translate(3vw, -6vh); }
}

/* ---------- ميلان ثلاثي الأبعاد للبطاقات + لمعة ضوئية ---------- */
body.fx3d .pcard, body.fx3d .hero-tile, body.fx3d .promo-card, body.fx3d .store-card {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)) scale(var(--sc, 1));
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), border-color .18s, box-shadow .25s;
  transform-style: preserve-3d;
}
body.fx3d .pcard:hover { --ty: -7px; --sc: 1.015; }
body.fx3d .hero-tile:hover { --ty: -4px; }
body.fx3d .pcard:hover .pcover {
  border-color: rgba(124, 92, 252, .55);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .65), 0 0 0 1px rgba(124, 92, 252, .25), 0 10px 34px -8px rgba(124, 92, 252, .3);
}
/* اللمعة تتبع مؤشر الماوس */
body.fx3d .pcard .pcover::after, body.fx3d .hero-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .25s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 44%);
}
body.fx3d .pcard.fx-tilt .pcover::after, body.fx3d .hero-tile.fx-tilt::after { opacity: 1; }
/* عمق داخلي: الغلاف يطفو أمام البطاقة */
body.fx3d .pcard .pcover { transform: translateZ(18px); }
body.fx3d .pcard .pinfo { transform: translateZ(8px); }
body.fx3d .hero-tile h3, body.fx3d .hero-tile .browse { transform: translateZ(22px); }
body.fx3d .hero-tile .hero-art { transform: translateY(-50%) translateZ(34px); }
body.fx3d .hero-row { perspective: 1100px; }
body.fx3d .hero-row .hero-tile { translate: var(--hx, 0) var(--hy, 0); }

/* ---------- الظهور المسرحي عند التمرير ---------- */
body.fx3d .fx-obs { opacity: 0; }
body.fx3d .fx-obs.fx-in {
  animation: fx-pop .55s cubic-bezier(.18, .8, .25, 1) both;
  animation-delay: var(--fxd, 0ms);
}
@keyframes fx-pop {
  from { opacity: 0; transform: perspective(900px) translateY(26px) rotateX(7deg) scale(.965); }
  to { opacity: 1; transform: none; }
}

/* ---------- ستارة الانتقال بين الصفحات ---------- */
.fx-wipe {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 38px;
  background:
    radial-gradient(900px circle at 50% 42%, rgba(124, 92, 252, .16), transparent 60%),
    linear-gradient(160deg, #08060f, #0c0918 55%, #08060f);
  transition: opacity .38s ease, visibility .38s;
}
.fx-wipe.fx-enter { opacity: 0; visibility: hidden; pointer-events: none; }
.fx-wipe.fx-exit { opacity: 1; visibility: visible; }
/* مكعب الشعار الدوّار */
.fx-cube { width: 68px; height: 68px; position: relative; transform-style: preserve-3d; animation: fx-spin 1.4s cubic-bezier(.6, .1, .3, .9) infinite; }
.fx-cube b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 38px; font-weight: 800; color: #fff; font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #7c5cfc, #5b3df0);
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 0 44px rgba(124, 92, 252, .5);
}
.fx-cube .f1 { transform: rotateY(0deg) translateZ(34px); }
.fx-cube .f2 { transform: rotateY(90deg) translateZ(34px); }
.fx-cube .f3 { transform: rotateY(180deg) translateZ(34px); }
.fx-cube .f4 { transform: rotateY(270deg) translateZ(34px); }
@keyframes fx-spin { from { transform: rotateX(-12deg) rotateY(0); } to { transform: rotateX(-12deg) rotateY(360deg); } }
.fx-wipe-chase { display: flex; gap: 30px; align-items: flex-end; direction: ltr; animation: fx-chase-run 2.6s linear infinite; }
@keyframes fx-chase-run { from { transform: translateX(-16vw); } to { transform: translateX(16vw); } }

/* ---------- شخصيات الألعاب (CSS خالص) ---------- */
/* الشبح */
.fxc-ghost {
  position: relative; display: inline-block; width: 28px; height: 30px;
  background: var(--gc, #7c5cfc);
  border-radius: 14px 14px 3px 3px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 86% 100%, 72% 82%, 58% 100%, 44% 82%, 30% 100%, 16% 82%, 0 100%);
  animation: fx-bob .4s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}
.fxc-ghost::before {
  content: ""; position: absolute; top: 7px; inset-inline-start: 4px;
  width: 8px; height: 9px; background: #fff; border-radius: 50%;
  box-shadow: 12px 0 #fff;
}
.fxc-ghost i {
  position: absolute; top: 10px; inset-inline-start: 8px;
  width: 4px; height: 4px; background: #1b1b2c; border-radius: 50%;
  box-shadow: 12px 0 #1b1b2c;
}
@keyframes fx-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
/* باك-مان */
.fxc-pac { position: relative; display: inline-block; width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.fxc-pac i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffe08a, #fbbf24 60%, #f59e0b);
  clip-path: inset(0 0 50% 0); transform-origin: 50% 50%;
  animation: fx-chomp-t .24s ease-in-out infinite alternate;
}
.fxc-pac i + i { clip-path: inset(50% 0 0 0); animation-name: fx-chomp-b; }
.fxc-pac b { position: absolute; top: 6px; inset-inline-start: 14px; width: 4px; height: 4px; border-radius: 50%; background: #1b1b2c; z-index: 2; }
@keyframes fx-chomp-t { from { transform: rotate(0); } to { transform: rotate(38deg); } }
@keyframes fx-chomp-b { from { transform: rotate(0); } to { transform: rotate(-38deg); } }

/* المطاردة أسفل الشاشة */
.fx-walker {
  position: fixed; bottom: 10px; left: 0; z-index: 9990;
  display: flex; gap: 26px; align-items: flex-end;
  direction: ltr; pointer-events: none;
  animation: fx-walk var(--wd, 10s) linear forwards;
}
@keyframes fx-walk {
  from { transform: translateX(-180px); }
  to { transform: translateX(calc(100vw + 40px)); }
}

/* ---------- لمسات فخامة عامة ---------- */
body.fx3d { scroll-behavior: smooth; }
body.fx3d ::selection { background: rgba(124, 92, 252, .45); color: #fff; }
body.fx3d::-webkit-scrollbar { width: 11px; }
body.fx3d::-webkit-scrollbar-track { background: #0a0812; }
body.fx3d::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d2f7a, #26204a);
  border-radius: 8px; border: 2.5px solid #0a0812;
}
body.fx3d::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #5b3df0, #3d2f7a); }
/* أزرار التواصل: عمق وتوهج */
body.fx3d .btn-contact {
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .22s, filter .18s;
}
body.fx3d .btn-contact:not(.locked):hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.12);
}
body.fx3d .brand-logo {
  box-shadow: 0 0 22px rgba(124, 92, 252, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: fx-logo-pulse 3.2s ease-in-out infinite;
}
@keyframes fx-logo-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(124, 92, 252, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 0 34px rgba(124, 92, 252, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
}

/* ---------- تقليل الحركة والجوال ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-bg, .fx-walker, .fx-wipe { display: none !important; }
  body.fx3d .fx-obs { opacity: 1; }
}
@media (max-width: 720px) {
  .fx-aurora { filter: blur(60px); }
  .fx-orb { display: none; }
}


/* ================================================================
   ============ الثيم الاحترافي V2 — إعادة تصميم كاملة ============
   (نفس الترتيب والمحتوى حرفياً — شكل جديد فقط)
   ================================================================ */

:root {
  --bg: #06070d;
  --bg-soft: #0a0c14;
  --panel: #0e1019;
  --panel-2: #131624;
  --panel-3: #181c2e;
  --border: rgba(148, 150, 190, .11);
  --border-2: rgba(148, 150, 190, .22);
  --text: #eef0fa;
  --muted: #9698b4;
  --muted-2: #6e7089;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --cyan: #22d3ee;
  --accent-soft: rgba(139, 92, 246, .15);
  --grad: linear-gradient(135deg, #8b5cf6, #6d28d9 55%, #4f46e5);
  --grad-hot: linear-gradient(135deg, #8b5cf6, #22d3ee);
  --radius: 16px;
  --radius-lg: 22px;
}

/* ---------- إيقاف وميض البطاقات القديم نهائياً ---------- */
body.fx3d .pcard { animation: none; }
body.fx3d .fx-obs { opacity: 0; }
body.fx3d .fx-obs.fx-in {
  animation: fx-pop .5s cubic-bezier(.2, .75, .25, 1) both;
}

/* ---------- الهيدر: زجاج فاخر ---------- */
body.fx3d .header {
  background: rgba(7, 8, 15, .72);
  backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(139, 92, 246, .16);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .6);
}
body.fx3d .brand-logo {
  background: var(--grad-hot);
  border-radius: 13px;
}
body.fx3d .nav a {
  border-radius: 10px;
  padding: 8px 13px;
  transition: color .16s, background .16s;
}
body.fx3d .nav a:hover { background: rgba(139, 92, 246, .12); }
body.fx3d .nav a.active {
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3);
}
body.fx3d .search {
  background: rgba(14, 16, 27, .8);
  border: 1px solid var(--border);
  transition: border-color .18s, box-shadow .18s;
}
body.fx3d .search:focus-within {
  border-color: rgba(139, 92, 246, .55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .16), 0 0 24px -6px rgba(139, 92, 246, .4);
}
body.fx3d .hact {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(19, 22, 36, .5);
  transition: border-color .16s, background .16s, transform .16s;
}
body.fx3d .hact:hover {
  border-color: rgba(139, 92, 246, .4);
  background: rgba(139, 92, 246, .1);
  transform: translateY(-1px);
}

/* ---------- الشريط الجانبي ---------- */
body.fx3d .sidebar { border-color: var(--border); }
body.fx3d .side-item {
  border-radius: 12px;
  transition: background .15s, color .15s, transform .15s;
}
body.fx3d .side-item:hover { transform: translateX(-2px); }
[dir="ltr"] body.fx3d .side-item:hover { transform: translateX(2px); }
body.fx3d .side-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(139, 92, 246, .05));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}

/* ---------- بلاطات الواجهة ---------- */
body.fx3d .hero-tile {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 150, 190, .14);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
}
body.fx3d .hero-tile:hover { border-color: rgba(139, 92, 246, .5); }

/* ---------- بطاقات المنتجات ---------- */
body.fx3d .pcover {
  border-radius: var(--radius);
  border: 1px solid rgba(148, 150, 190, .13);
  background: var(--panel-2);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55);
}
body.fx3d .ptitle { font-weight: 700; letter-spacing: .1px; }
body.fx3d .heart-btn { transition: transform .16s, color .16s; }
body.fx3d .heart-btn:hover { transform: scale(1.22); color: #fb7185; }
body.fx3d .heart-btn.active { color: #fb7185; filter: drop-shadow(0 0 8px rgba(251, 113, 133, .6)); }

/* ---------- الأزرار والرقائق ---------- */
body.fx3d .chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(19, 22, 36, .55);
  transition: all .16s;
}
body.fx3d .chip:hover { border-color: rgba(139, 92, 246, .45); color: #fff; }
body.fx3d .chip.active {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(139, 92, 246, .55);
}
body.fx3d .page-btn { border-radius: 11px; transition: all .15s; }
body.fx3d .page-btn.active {
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .6);
}
body.fx3d .pill-btn {
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .08);
  transition: all .16s;
}
body.fx3d .pill-btn:hover { background: rgba(139, 92, 246, .2); transform: translateY(-1px); }

/* ---------- عناوين الأقسام ---------- */
body.fx3d .section-head h2, body.fx3d .section-block > h3 {
  position: relative;
  padding-inline-start: 14px;
}
body.fx3d .section-head h2::before, body.fx3d .section-block > h3::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%; transform: translateY(-50%);
  width: 4.5px; height: 78%;
  border-radius: 4px;
  background: var(--grad-hot);
  box-shadow: 0 0 14px rgba(139, 92, 246, .55);
}

/* ---------- الصناديق الكبيرة ---------- */
body.fx3d .buy-box, body.fx3d .req-card, body.fx3d .review-card,
body.fx3d .promo-card, body.fx3d .rv-form, body.fx3d .rv-summary,
body.fx3d .offer-row, body.fx3d .auth-card, body.fx3d .spec-list {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19, 22, 36, .75), rgba(14, 16, 25, .85));
  backdrop-filter: blur(8px);
}
body.fx3d .review-card, body.fx3d .offer-row { border-radius: var(--radius); }
body.fx3d .review-card:hover, body.fx3d .offer-row:hover { border-color: rgba(139, 92, 246, .35); }
body.fx3d .promo-card.gold { border-color: rgba(251, 191, 36, .35); }
body.fx3d .promo-card.fb { border-color: rgba(24, 119, 242, .45); }

/* ---------- محددات المنصة/النوع/المدة ---------- */
body.fx3d .ps-opt {
  border-radius: 13px;
  border: 1px solid var(--border);
  transition: all .16s;
}
body.fx3d .ps-opt:hover { border-color: rgba(139, 92, 246, .4); transform: translateY(-1px); }
body.fx3d .ps-opt.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 20px -8px rgba(139, 92, 246, .6);
}

/* ---------- الفوتر ---------- */
body.fx3d .footer {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 50% -10%, rgba(139, 92, 246, .08), transparent 60%),
    var(--bg-soft);
}

/* ================================================================
   ============ مجسمات الألعاب ثلاثية الأبعاد المتحركة ============
   ================================================================ */
.fx-props { position: absolute; inset: 0; pointer-events: none; }
.fx-prop {
  position: absolute;
  opacity: .5; /* ديكور محيطي خلف المحتوى — لا يزاحم القراءة أبداً */
  animation: fxp-float var(--fd, 9s) ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
}
@keyframes fxp-float {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-26px) rotate(2.5deg); }
}
.fx-prop.p1 { top: 21%; inset-inline-start: 2.6%; --fd: 8s; }
.fx-prop.p2 { top: 47%; inset-inline-end: 2.2%; --fd: 11s; animation-delay: -3s; }
.fx-prop.p3 { top: 74%; inset-inline-start: 3.4%; --fd: 10s; animation-delay: -5s; }
.fx-prop.p4 { top: 12%; inset-inline-end: 3.2%; --fd: 12s; animation-delay: -7s; }
.fx-prop.p5 { top: 58%; inset-inline-start: 1.8%; --fd: 9s; animation-delay: -2s; }

/* العملة الذهبية الدوارة (مثل عملات ماريو) */
.fxp-coin {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #fbbf24 48%, #b45309 96%);
  border: 4px solid #fde68a;
  display: grid; place-items: center;
  animation: fxp-spin 3.6s linear infinite;
  box-shadow: inset 0 0 14px rgba(120, 53, 15, .5), 0 0 30px rgba(251, 191, 36, .35);
}
.fxp-coin b {
  font-family: "Inter", sans-serif;
  font-size: 27px; font-weight: 800; color: #92400e;
  text-shadow: 0 1px 0 #fde68a;
}
.fxp-coin.small { width: 40px; height: 40px; border-width: 3px; animation-duration: 2.9s; }
.fxp-coin.small b { font-size: 19px; }
@keyframes fxp-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ---------- صواريخ فضائية تعبر الصفحة (CSS خالص) ---------- */
.fx-rockets { position: absolute; inset: 0; pointer-events: none; }
.fx-rocketp {
  position: absolute;
  opacity: .8;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .55));
}
/* مسارات الطيران: قطرية عبر الشاشة كاملة */
.fx-rocketp.r1 { top: 88%; left: -7%; animation: fx-fly1 17s linear infinite; }
.fx-rocketp.r2 { top: 100%; left: 102%; animation: fx-fly2 26s linear -8s infinite; }
.fx-rocketp.r3 { top: 104%; left: 34%; animation: fx-fly3 21s linear -14s infinite; opacity: .55; }
@keyframes fx-fly1 {
  from { transform: translate(0, 0) rotate(40deg); }
  to { transform: translate(118vw, -105vh) rotate(40deg); }
}
@keyframes fx-fly2 {
  from { transform: translate(0, 0) rotate(-40deg); }
  to { transform: translate(-120vw, -110vh) rotate(-40deg); }
}
@keyframes fx-fly3 {
  from { transform: translate(0, 0) rotate(8deg) scale(.72); }
  to { transform: translate(24vw, -125vh) rotate(8deg) scale(.72); }
}
/* جسم الصاروخ — يشير للأعلى افتراضياً */
.fxr { position: relative; width: 30px; height: 76px; }
.fxr .rb { /* الجسم الفضي */
  position: absolute; top: 0; left: 5px; right: 5px; bottom: 16px;
  background: linear-gradient(90deg, #f8fafc, #cbd5e1 52%, #8ea0b5);
  border-radius: 50% 50% 44% 44% / 72% 72% 14% 14%;
}
.fxr .rb::after { /* الرأس الأحمر */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 19px;
  background: linear-gradient(90deg, #fb7185, #dc2626);
  border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
}
.fxr .rb::before { /* النافذة الزرقاء */
  content: ""; position: absolute; top: 23px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bae6fd, #0284c7);
  box-shadow: 0 0 0 2.5px #64748b, inset 0 -2px 3px rgba(2, 60, 105, .55);
  z-index: 2;
}
.fxr .rf { /* الزعانف */
  position: absolute; bottom: 11px; left: -5px; right: -5px; height: 24px;
}
.fxr .rf::before, .fxr .rf::after {
  content: ""; position: absolute; bottom: 0; width: 13px; height: 24px;
  background: linear-gradient(180deg, #ef4444, #991b1b);
}
.fxr .rf::before { left: 0; border-radius: 90% 8% 0 16% / 100% 8% 0 26%; }
.fxr .rf::after { right: 0; border-radius: 8% 90% 16% 0 / 8% 100% 26% 0; }
.fxr .rn { /* الفوهة */
  position: absolute; bottom: 9px; left: 10px; right: 10px; height: 8px;
  background: linear-gradient(180deg, #475569, #1e293b);
  border-radius: 2px 2px 5px 5px;
}
.fxr .fl { /* لهب الدفع المرتجف */
  position: absolute; top: 100%; margin-top: -8px; left: 50%;
  width: 15px; height: 30px;
  background: radial-gradient(circle at 50% 16%, #fffbe6, #fde047 30%, #fb923c 58%, rgba(249, 115, 22, 0) 80%);
  border-radius: 50% 50% 64% 64% / 30% 30% 84% 84%;
  filter: blur(.5px);
  transform-origin: 50% 0;
  animation: fxr-flame .13s ease-in-out infinite alternate;
}
@keyframes fxr-flame {
  from { transform: translateX(-50%) scaleY(1); opacity: .95; }
  to { transform: translateX(-50%) scaleY(1.5) scaleX(.78); opacity: .75; }
}
@media (max-width: 900px) { .fx-rockets { display: none; } }

/* الجوهرة البنفسجية */
.fxp-gem {
  width: 46px; height: 54px;
  clip-path: polygon(50% 0, 100% 30%, 50% 100%, 0 30%);
  background: linear-gradient(160deg, #c4b5fd 8%, #8b5cf6 42%, #4c1d95 92%);
  animation: fxp-spin 4.6s linear infinite;
  box-shadow: 0 0 34px rgba(139, 92, 246, .55);
  position: relative;
}
.fxp-gem::after {
  content: "";
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 72% 30%, 50% 42%, 28% 30%);
  background: rgba(255, 255, 255, .5);
}

/* المجسمات تظهر فقط حين توجد هوامش جانبية حقيقية حول المحتوى */
@media (max-width: 1449px) { .fx-props { display: none; } }
