/* ============================================================
   InfinityKeys— نظام التصميم (Dark Cinematic / Digital Indigo)
   ============================================================ */

:root {
  /* لوحة VERGE: حبري + أزرق كهربائي + زمردي + بنفسجي */
  --bg-deep: #050505;
  --bg-base: #070708;
  --bg-elevated: #0d0d10;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #2f6fff;
  --primary-strong: #6b99ff;
  --primary-glow: rgba(47, 111, 255, 0.35);
  --accent: #00d9a3;
  --accent-strong: #2ee8b8;
  --vio: #8b5cf6;
  --vio-glow: rgba(139, 92, 246, 0.35);
  --pink: #ff6ec7;
  --ink: #050505;
  --danger: #f87171;
  --warning: #fbbf24;

  --text: #ededf2;
  --text-muted: #9aa0b3;
  --text-faint: #6b7186;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --font-heading: 'Changa', 'Cairo', system-ui, sans-serif;
  --font-body: 'Cairo', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;

  --z-nav: 100; --z-drawer: 200; --z-modal: 300; --z-toast: 400;
}

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

/* خاصية hidden تفوز دائماً حتى على الكلاسات التي تفرض display */
[hidden] { display: none !important; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  /* clip بدل hidden حتى لا يتعطل position: sticky للهيدر */
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; font-weight: 700; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- توهج محيطي ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.13;
}
.blob-1 { width: 600px; height: 600px; background: #2f6fff; top: -180px; inset-inline-start: -140px; opacity: 0.16; animation: drift 26s var(--ease) infinite alternate; }
.blob-2 { width: 560px; height: 560px; background: #00d9a3; top: 32%; inset-inline-end: -200px; opacity: 0.1; animation: drift 32s var(--ease) infinite alternate-reverse; }
.blob-3 { width: 420px; height: 420px; background: #8b5cf6; bottom: -120px; inset-inline-start: 30%; opacity: 0.08; animation: drift 38s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- الحاوية ---------- */
.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }

/* ---------- الهيدر ---------- */
.navbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(10, 11, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 68px;
}
.logo {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem;
  white-space: nowrap;
}
.logo svg { color: var(--primary-strong); filter: drop-shadow(0 0 8px var(--primary-glow)); }
.logo .accent { color: var(--primary-strong); }

.nav-links { display: flex; gap: var(--space-2); margin-inline-start: var(--space-4); }
.nav-links a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-hover); }

.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--space-2); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 rgba(0,0,0,0), 0 4px 24px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 6px 32px var(--primary-glow); }

.btn-buy { background: var(--accent); color: #04170b; }
.btn-buy:hover { background: var(--accent-strong); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(248,113,113,.3); }
.btn-danger:hover { background: rgba(248,113,113,.1); }

.btn-icon {
  width: 44px; height: 44px; padding: 0; position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-icon:hover { background: var(--surface-hover); }
.btn-icon:active { transform: scale(0.94); }

/* مبدّل مجزّأ (لغة / عملة) */
.seg-toggle {
  display: inline-flex; align-items: center; height: 44px; padding: 3px;
  border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  font-family: inherit; gap: 2px;
}
.seg-toggle .seg-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 100%; padding: 0 9px; border-radius: 8px;
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.seg-toggle .seg-opt.active {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
.seg-toggle:hover .seg-opt:not(.active) { color: var(--text); }

.badge-count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  background: var(--accent); color: #04170b;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
/* بادج تنبيه أحمر (طلبات جديدة تحتاج انتباه) مع نبضة خفيفة */
.badge-count.badge-alert { background: var(--danger, #ef4444); color: #fff; animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5) } 50% { box-shadow: 0 0 0 5px rgba(239,68,68,0) } }

/* ---------- الهيرو (تقسيم نص/عرض 3D) ---------- */
.hero { padding-block: var(--space-7) var(--space-6); position: relative; }
.hero::before {
  /* شبكة خطوط خافتة تعطي عمقاً تقنياً */
  content: ''; position: absolute; inset: -40px 0 0;
  background-image:
    linear-gradient(rgba(107, 153, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 153, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6); align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--radius-full);
  background: rgba(47, 111, 255, 0.1); border: 1px solid rgba(47, 111, 255, 0.35);
  color: var(--primary-strong); font-weight: 700; font-size: 0.85rem;
  margin-bottom: var(--space-4);
}
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800;
  margin-bottom: var(--space-4); line-height: 1.25;
}
.hero h1 .glow { color: var(--primary-strong); text-shadow: 0 0 24px var(--primary-glow); }
.hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 480px; margin-bottom: var(--space-5); }
.hero-text .search-bar { margin-inline: 0; max-width: 540px; }
.hero-text .quick-tags { justify-content: flex-start; }

/* إحصائيات مصغرة داخل الهيرو */
.hero-stats {
  display: flex; gap: var(--space-5); margin-top: var(--space-6);
  flex-wrap: wrap;
}
.hero-stat { padding-inline-end: var(--space-5); border-inline-end: 1px solid var(--border); }
.hero-stat:last-child { border-inline-end: none; }
.hero-stat .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem;
  color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2;
  display: flex; align-items: baseline; gap: 2px;
}
.hero-stat .num .plus { color: var(--accent-strong); }
.hero-stat .lbl { color: var(--text-faint); font-size: 0.82rem; font-weight: 600; }

/* ---------- عرض الألعاب ثلاثي الأبعاد ---------- */
.hero-show {
  position: relative; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.glow-ring {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 255, 0.32), rgba(139, 92, 246, 0.12) 45%, transparent 65%);
  filter: blur(30px);
  animation: ring-pulse 5s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}
.show-stack {
  position: relative; width: min(300px, 70vw); aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
}
.show-card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
  transition: transform 500ms var(--ease), opacity 500ms var(--ease), filter 500ms var(--ease);
}
.show-card .sc-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.show-card .sc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-card .sc-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95); text-align: center; padding-inline: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); z-index: 1;
}
.show-card .sc-info {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.9) 20%, transparent);
}
.show-card .sc-name { font-weight: 700; font-size: 0.9rem; color: #fff; }
.show-card .sc-price {
  padding: 5px 13px; border-radius: var(--radius-full); white-space: nowrap;
  background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.45);
  color: var(--accent-strong); font-weight: 800; font-size: 0.88rem;
  font-variant-numeric: tabular-nums; backdrop-filter: blur(6px);
}
.show-card.main { z-index: 3; animation: float-y 6.5s ease-in-out infinite; }
.show-card.back1 {
  transform: translateX(16%) translateY(7%) rotate(9deg) scale(0.9);
  opacity: 0.6; z-index: 2; filter: brightness(0.65) saturate(0.9);
  animation: back1-float 8s ease-in-out infinite;
}
.show-card.back2 {
  transform: translateX(-16%) translateY(11%) rotate(-9deg) scale(0.82);
  opacity: 0.4; z-index: 1; filter: brightness(0.45) saturate(0.8);
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes back1-float {
  0%, 100% { transform: translateX(16%) translateY(7%) rotate(9deg) scale(0.9); }
  50% { transform: translateX(16%) translateY(3%) rotate(7deg) scale(0.9); }
}
.hero-show .cube-wrap { top: -2%; inset-inline-start: -4%; width: 90px; height: 90px; --cs: 45px; }
.hero-show .float-chip.f1 { top: 8%; inset-inline-end: -2%; }
.hero-show .float-chip.f2 { bottom: 12%; inset-inline-start: -8%; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-text .search-bar { margin-inline: auto; }
  .hero-text .quick-tags { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-show { display: none; }
}

/* ---------- شريط المنصات المتحرك ---------- */
.marquee {
  overflow: hidden; padding-block: var(--space-4);
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: var(--space-7); width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  color: var(--text-faint);
  transition: color var(--dur) var(--ease);
}
.marquee-item:hover { color: var(--primary-strong); }
.marquee-item svg { width: 18px; height: 18px; color: var(--primary); opacity: 0.7; }
@keyframes marquee-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ---------- بانر صفقة اليوم ---------- */
@property --deal-angle {
  syntax: '<angle>'; initial-value: 120deg; inherits: false;
}
.deal-banner {
  position: relative; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--deal-angle),
    rgba(47, 111, 255, 0.9), rgba(0, 217, 163, 0.55), rgba(139, 92, 246, 0.8),
    rgba(47, 111, 255, 0.9));
  animation: deal-border 5s linear infinite;
}
@keyframes deal-border { to { --deal-angle: 480deg; } }
.deal-inner {
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(120deg, #0b0b0e 30%, #101018);
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5); align-items: center;
  padding: var(--space-6);
  overflow: hidden; position: relative;
}
.deal-inner::after {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 255, 0.25), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.deal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--warning); font-weight: 800; font-size: 0.9rem;
  margin-bottom: var(--space-3);
}
.deal-eyebrow svg { width: 17px; height: 17px; }
.deal-content h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: var(--space-2); }
.deal-content .desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-4); max-width: 440px; }
.deal-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.deal-cta .price .now { font-size: 1.7rem; }
.deal-timer { display: flex; gap: var(--space-2); justify-content: center; }
.timer-block {
  min-width: 64px; padding: var(--space-3) var(--space-2);
  background: rgba(5, 6, 10, 0.6); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); text-align: center;
  backdrop-filter: blur(8px);
}
.timer-block .t-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem;
  color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.timer-block .t-lbl { color: var(--text-faint); font-size: 0.72rem; font-weight: 700; }
.deal-art-side { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.deal-art {
  width: 100%; max-width: 300px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.deal-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deal-art .art-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92); text-align: center; padding-inline: 16px; z-index: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
@media (max-width: 800px) {
  .deal-inner { grid-template-columns: 1fr; text-align: center; }
  .deal-content .desc { margin-inline: auto; }
  .deal-cta { justify-content: center; }
}

.search-bar {
  display: flex; align-items: center; gap: var(--space-2);
  max-width: 620px; margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--space-2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-bar svg { color: var(--text-faint); margin-inline-start: var(--space-3); flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1.05rem; min-height: 44px;
}
.search-bar input::placeholder { color: var(--text-faint); }

.quick-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }
.quick-tags span { color: var(--text-faint); font-size: 0.85rem; align-self: center; }
.tag {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.tag:hover { color: var(--text); border-color: var(--primary); background: rgba(47,111,255,0.12); }

/* ---------- التصنيفات ---------- */
.section { padding-block: var(--space-6); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.section-head h2 { font-size: 1.5rem; display: flex; align-items: center; gap: var(--space-2); }
.section-head h2 svg { color: var(--primary-strong); }

/* زر الرجوع في وضع صفحة التصنيف */
.cat-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: var(--space-4); padding: 9px 16px;
  border-radius: var(--radius-full); cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
  font-family: inherit; font-size: .9rem;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.cat-back:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.cat-back svg { width: 16px; height: 16px; }

.cat-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted); font-weight: 700; font-size: 0.92rem;
  transition: all var(--dur) var(--ease);
}
.cat-chip svg { width: 17px; height: 17px; }
.cat-chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.cat-chip.active {
  background: rgba(47, 111, 255, 0.16); border-color: var(--primary);
  color: var(--primary-strong);
}

/* ---------- شبكة المنتجات ---------- */
.grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(47, 111, 255, 0.08);
}

.card-art {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-art .art-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  padding-inline: var(--space-4); text-align: center; z-index: 1;
}
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 10, 0.55));
}

.ribbon {
  position: absolute; top: var(--space-3); inset-inline-start: var(--space-3); z-index: 2;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 800;
  background: var(--accent); color: #04170b;
}
.ribbon.out { background: var(--danger); color: #2b0505; }
.ribbon.new { background: var(--accent-strong, #00d9a3); color: #03241b; }
.ribbon.custom { background: linear-gradient(135deg, #8b5cf6, #2f6fff); color: #fff; }
/* علامة الفئة في السلة */
.variant-tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  background: rgba(139,92,246,.18); color: #b9a2ff;
  border: 1px solid rgba(139,92,246,.35);
  padding: 1px 8px; border-radius: 999px; margin-inline-start: 6px;
}
/* أزرار اختيار الفئة في صفحة المنتج */
.variant-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.variant-btn {
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid rgba(255,255,255,.14); font-weight: 600;
  transition: border-color .2s, background .2s;
}
.variant-btn:hover { border-color: rgba(139,92,246,.5); }
.variant-btn.active { border-color: #8b5cf6; background: rgba(139,92,246,.16); color: #cdbcff; }
.variant-btn .v-price { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.variant-btn.sold-out { opacity: .45; cursor: not-allowed; }
.variant-btn.sold-out:hover { border-color: rgba(255,255,255,.14); }
.variant-btn .v-out { display: block; font-size: .7rem; color: var(--danger, #ef4444); margin-top: 2px; font-weight: 700; }
/* معرض الصور المصغّرة في صفحة المنتج */
.pp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pp-thumbs img {
  width: 74px; height: 52px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .75; transition: opacity .2s, border-color .2s;
}
.pp-thumbs img:hover { opacity: 1; }
.pp-thumbs img.active { border-color: #8b5cf6; opacity: 1; }

.platform-badge {
  position: absolute; top: var(--space-3); inset-inline-end: var(--space-3); z-index: 2;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  background: rgba(5, 6, 10, 0.65); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--text);
}

.card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-type { color: var(--text-faint); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-type svg { width: 14px; height: 14px; }
.card-name { font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); }

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--space-2); }
.price { display: flex; align-items: baseline; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.price .now { font-size: 1.25rem; font-weight: 800; color: var(--accent-strong); font-family: var(--font-heading); }
.price .was { font-size: 0.85rem; color: var(--text-faint); text-decoration: line-through; }

.btn-add {
  min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  background: rgba(47, 111, 255, 0.14); border: 1px solid rgba(47, 111, 255, 0.35);
  color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.btn-add:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-add:active { transform: scale(0.94); }
.btn-add[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- تدرجات أغلفة المنتجات ---------- */
.g-0 { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.g-1 { background: linear-gradient(135deg, #0f766e, #16a34a); }
.g-2 { background: linear-gradient(135deg, #b45309, #dc2626); }
.g-3 { background: linear-gradient(135deg, #1d4ed8, #0891b2); }
.g-4 { background: linear-gradient(135deg, #86198f, #db2777); }
.g-5 { background: linear-gradient(135deg, #374151, #111827); }
.g-6 { background: linear-gradient(135deg, #92400e, #ca8a04); }
.g-7 { background: linear-gradient(135deg, #065f46, #0d9488); }

/* ---------- الميزات / الثقة ---------- */
.trust-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); text-align: center;
}
.trust-item svg { color: var(--primary-strong); margin-bottom: var(--space-3); width: 32px; height: 32px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.trust-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- الفوتر ---------- */
footer {
  border-top: 1px solid var(--border); margin-top: var(--space-7);
  padding-block: var(--space-6);
  color: var(--text-faint); font-size: 0.9rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- سلة المشتريات (Drawer) ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(2, 2, 3, 0.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(420px, 100vw);
  background: var(--bg-elevated); border-inline-start: 1px solid var(--border);
  transition: transform 300ms var(--ease);
  display: flex; flex-direction: column;
}
/* مخفية: تنزلق خارج الشاشة نحو الحافة القريبة منها (يمين في العربي، يمين في الإنجليزي) */
[dir="rtl"] .drawer { transform: translateX(-105%); }  /* في RTL محور X معكوس، فالسالب يبعدها لليمين */
[dir="ltr"] .drawer { transform: translateX(105%); }   /* في LTR الموجب يبعدها لليمين خارج الشاشة */
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.2rem; display: flex; align-items: center; gap: var(--space-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.drawer-foot { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }

.cart-item {
  display: flex; gap: var(--space-3); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-3);
}
.cart-thumb {
  width: 72px; height: 48px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; color: rgba(255,255,255,0.9);
  overflow: hidden; position: relative;
}
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-info .name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-info .meta { color: var(--text-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.qty-controls { display: flex; align-items: center; gap: var(--space-1); }
.qty-controls button {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-hover); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.qty-controls .qty { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3); font-weight: 700;
}
.total-row .amount { font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; color: var(--text-faint); margin-bottom: var(--space-3); }

/* ---------- المودال ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(2, 2, 3, 0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(560px, 100%); max-height: 88dvh; overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transform: scale(0.95) translateY(12px); transition: transform var(--dur) var(--ease);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-elevated); z-index: 1;
}
.modal-head h3 { font-size: 1.15rem; }
.modal-body { padding: var(--space-5); }

/* ---------- نموذج المنتج: مودال أعرض بتبويبات بدل تمرير عمودي طويل ---------- */
#productFormModal .modal { width: min(720px, 96vw); max-height: 92dvh; }
.pf-modal-body { display: flex; flex-direction: column; min-height: 0; }
.pf-tabs {
  display: flex; gap: 4px; padding: 0 var(--space-5); margin: 0 calc(var(--space-5) * -1) var(--space-4);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.pf-tab {
  padding: 10px 16px; border-radius: 10px 10px 0 0; font-weight: 600; font-size: 0.9rem;
  color: var(--text-muted); background: transparent; border: none; cursor: pointer;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.pf-tab:hover { color: var(--text); }
.pf-tab.active { color: var(--primary-strong); background: var(--bg-elevated-2, rgba(255,255,255,0.05)); }
.pf-pane { display: none; }
.pf-pane.active { display: block; }

/* صفوف الفئات: اسم + سعر + سعر قبل الخصم + حذف، في سطر واحد */
.variant-row-edit {
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr auto;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.variant-row-edit input { min-height: 40px; }
.variant-row-edit .v-remove {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,0.12); color: var(--danger, #ef4444); border: 1px solid rgba(239,68,68,0.25);
  cursor: pointer;
}
.variant-row-edit .v-remove:hover { background: rgba(239,68,68,0.2); }
@media (max-width: 560px) {
  .variant-row-edit { grid-template-columns: 1fr 1fr; grid-template-areas: "label label" "price old" "remove remove"; }
  .variant-row-edit input:nth-child(1) { grid-area: label; }
  .variant-row-edit input:nth-child(2) { grid-area: price; }
  .variant-row-edit input:nth-child(3) { grid-area: old; }
  .variant-row-edit .v-remove { grid-area: remove; width: 100%; }
}
.variant-row-edit-wrap {
  padding: 12px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.variant-row-edit-wrap .variant-row-edit { margin-bottom: 8px; }
.variant-row-edit-wrap .v-codes { width: 100%; min-height: 60px; }
.v-stock-note { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- النماذج ---------- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: var(--space-2); }
.field label .req { color: var(--danger); }
.field .hint { color: var(--text-faint); font-size: 0.8rem; margin-top: var(--space-1); }
.field .error-msg { color: var(--danger); font-size: 0.82rem; margin-top: var(--space-1); display: none; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }

input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: var(--space-2) var(--space-3);
  background: var(--bg-base); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* ---------- التوست ---------- */
.toast-wrap {
  position: fixed; bottom: var(--space-5); inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2);
  pointer-events: none;
}
[dir="ltr"] .toast-wrap { transform: translateX(-50%); }
.toast {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 280ms var(--ease);
}
.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.success svg { color: var(--accent-strong); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast.error svg { color: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- صفحة نجاح الطلب ---------- */
.code-box {
  background: var(--bg-base); border: 1px dashed rgba(34, 197, 94, 0.5);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.code-box .code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 700; letter-spacing: 1px; color: var(--accent-strong);
  direction: ltr; unicode-bidi: embed;
  word-break: break-all;
}
.code-box .label { font-size: 0.8rem; color: var(--text-muted); }

.success-icon {
  width: 72px; height: 72px; margin: 0 auto var(--space-4);
  border-radius: 50%; background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
}

/* ============================================================
   لوحة التحكم
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }

.sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-inline-end: 1px solid var(--border);
  padding: var(--space-5) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-1);
  position: sticky; top: 0; height: 100dvh;
}
.sidebar .logo { padding: 0 var(--space-3) var(--space-5); font-size: 1.2rem; }
.side-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 700; font-size: 0.95rem;
  border: none; background: none; width: 100%; text-align: start;
  transition: all var(--dur) var(--ease);
}
.side-link:hover { color: var(--text); background: var(--surface-hover); }
.side-link.active { color: var(--primary-strong); background: rgba(47, 111, 255, 0.13); }
.side-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar .back-link { margin-top: auto; }

.admin-main { padding: var(--space-6); min-width: 0; }
.admin-main > section { max-width: 1400px; margin-inline: auto; } /* يمنع تمدد المحتوى على الشاشات العريضة */
.admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.admin-head h1 { font-size: 1.6rem; }
.admin-head p { color: var(--text-muted); font-size: 0.95rem; }

.stats-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: var(--space-6); }
.stat-tile {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-4);
}
.stat-tile .icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-tile .icon.indigo { background: rgba(47,111,255,0.14); color: var(--primary-strong); }
.stat-tile .icon.green { background: rgba(34,197,94,0.12); color: var(--accent-strong); }
.stat-tile .icon.amber { background: rgba(251,191,36,0.12); color: var(--warning); }
.stat-tile .icon.rose { background: rgba(248,113,113,0.12); color: var(--danger); }
.stat-tile .num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-tile .lbl { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }

.panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden; margin-bottom: var(--space-5);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1.1rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: var(--space-3) var(--space-4); text-align: start; white-space: nowrap; }
th {
  color: var(--text-faint); font-weight: 700; font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
td { border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: none; }

.stock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.stock-pill.ok { background: rgba(34,197,94,0.12); color: var(--accent-strong); }
.stock-pill.low { background: rgba(251,191,36,0.12); color: var(--warning); }
.stock-pill.out { background: rgba(248,113,113,0.12); color: var(--danger); }

.row-actions { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.row-actions .btn-icon { width: 38px; height: 38px; }

.mobile-admin-note { display: none; }

/* ---------- استجابة الشاشات ---------- */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; height: auto; flex-direction: row; align-items: center;
    padding: var(--space-2) var(--space-3); z-index: var(--z-nav);
    border-inline-end: none; border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .sidebar .logo { padding: 0 var(--space-2); font-size: 1rem; }
  .side-link { width: auto; white-space: nowrap; padding: var(--space-2) var(--space-3); }
  .side-link span { display: none; }
  .sidebar .back-link { margin-top: 0; margin-inline-start: auto; }
  .admin-main { padding: var(--space-4); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-block: var(--space-7) var(--space-6); }
  .form-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .card-art .art-title { font-size: 1rem; }
}

/* ============================================================
   المؤثرات التفاعلية 3D
   ============================================================ */

/* كانفس الجزيئات */
#fxCanvas {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* إمالة البطاقات */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.tilt-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; opacity: 0;
  transition: opacity 300ms var(--ease);
}
.card[data-tilt]:hover { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }

/* الظهور عند التمرير */
.reveal {
  opacity: 0; transform: translateY(28px) scale(0.98);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* العنوان المتدرج المتحرك */
.hero h1 .glow {
  background: linear-gradient(90deg, #818cf8, #c084fc, #4ade80, #818cf8);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-shift 6s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(107, 153, 255, 0.45));
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ---------- المكعب ثلاثي الأبعاد ---------- */
.hero-3d {
  position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: -1;
}
.cube-wrap {
  position: absolute; top: 8%; inset-inline-start: 6%;
  width: 120px; height: 120px;
  perspective: 800px;
  opacity: 0.85;
}
.cube-wrap.c2 {
  top: auto; bottom: 4%; inset-inline-start: auto; inset-inline-end: 5%;
  width: 80px; height: 80px;
}
.cube {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: cube-spin 18s linear infinite;
}
.cube-wrap.c2 .cube { animation-duration: 24s; animation-direction: reverse; }
.cube .face {
  position: absolute; inset: 0;
  border: 1px solid rgba(47, 111, 255, 0.45);
  background: linear-gradient(135deg, rgba(47, 111, 255, 0.06), rgba(0, 217, 163, 0.05));
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 24px rgba(47, 111, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(107, 153, 255, 0.8);
}
.cube .face svg { width: 40%; height: 40%; }
.cube-wrap.c2 .face { border-color: rgba(74, 222, 128, 0.4); background: rgba(34, 197, 94, 0.05); color: rgba(74, 222, 128, 0.7); box-shadow: inset 0 0 24px rgba(34,197,94,0.12); }
/* أوجه المكعب — تُضبط بمتغير الحجم */
.cube-wrap { --cs: 60px; }
.cube-wrap.c2 { --cs: 40px; }
.face:nth-child(1) { transform: rotateY(0deg) translateZ(var(--cs)); }
.face:nth-child(2) { transform: rotateY(90deg) translateZ(var(--cs)); }
.face:nth-child(3) { transform: rotateY(180deg) translateZ(var(--cs)); }
.face:nth-child(4) { transform: rotateY(-90deg) translateZ(var(--cs)); }
.face:nth-child(5) { transform: rotateX(90deg) translateZ(var(--cs)); }
.face:nth-child(6) { transform: rotateX(-90deg) translateZ(var(--cs)); }
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}

/* رقائق عائمة حول الهيرو */
.float-chip {
  position: absolute; pointer-events: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: rgba(16, 18, 28, 0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 0.82rem; color: var(--text-muted);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: chip-float 7s ease-in-out infinite;
}
.float-chip svg { width: 15px; height: 15px; color: var(--primary-strong); }
.float-chip.f1 { top: 18%; inset-inline-end: 8%; animation-delay: 0s; }
.float-chip.f2 { top: 55%; inset-inline-start: 4%; animation-delay: -2.4s; }
.float-chip.f3 { top: 72%; inset-inline-end: 14%; animation-delay: -4.8s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (max-width: 900px) { .float-chip, .cube-wrap { display: none; } }

/* ---------- شريط الإحصائيات ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5);
  margin-top: var(--space-7);
}
.stats-strip .stat { text-align: center; }
.stats-strip .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.8rem;
  color: var(--primary-strong); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stats-strip .num .plus { color: var(--accent-strong); }
.stats-strip .lbl { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- نموذج الدفع ---------- */
.pay-steps {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.pay-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-faint);
}
.pay-step .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pay-step.active { color: var(--text); }
.pay-step.active .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.pay-step.done .dot { background: var(--accent); border-color: var(--accent); color: #04170b; }
.pay-sep { width: 32px; height: 1px; background: var(--border-strong); }

.card-visual {
  border-radius: var(--radius); padding: var(--space-5);
  background: linear-gradient(135deg, #16337a, #2f6fff 55%, #8b5cf6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(47, 111, 255, 0.35);
  margin-bottom: var(--space-5);
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  direction: ltr; text-align: left;
  transform-style: preserve-3d;
}
.card-visual .chip-row { display: flex; justify-content: space-between; align-items: center; }
.card-visual .chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  opacity: 0.9;
}
.card-visual .brand { font-family: var(--font-heading); font-weight: 800; color: rgba(255,255,255,0.85); letter-spacing: 1px; }
.card-visual .num-display {
  font-family: 'Courier New', monospace; font-size: 1.15rem; letter-spacing: 2.5px;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); font-weight: 700;
}
.card-visual .meta-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.card-visual .meta-row .val { font-size: 0.9rem; font-weight: 700; color: #fff; }

.pay-badges { display: flex; gap: var(--space-2); align-items: center; justify-content: center; margin-top: var(--space-3); color: var(--text-faint); font-size: 0.78rem; }
.pay-badges svg { width: 15px; height: 15px; color: var(--accent-strong); }

/* ---------- رفع الصور ---------- */
.img-drop {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: var(--space-4); text-align: center; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.img-drop:hover, .img-drop.dragover { border-color: var(--primary); background: rgba(47, 111, 255, 0.06); }
.img-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-drop .placeholder { color: var(--text-faint); font-size: 0.88rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.img-drop .placeholder svg { width: 28px; height: 28px; color: var(--primary-strong); }
.img-preview-wrap { position: relative; display: none; }
.img-preview-wrap.show { display: block; }
.img-preview-wrap img {
  width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}
.img-preview-wrap .remove-img {
  position: absolute; top: 8px; inset-inline-end: 8px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(5, 6, 10, 0.75); border: 1px solid var(--border-strong);
  color: var(--danger); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}

/* ---------- لمسات احترافية v2 ---------- */
/* لمعة تمسح غلاف البطاقة عند التمرير */
.card-art .shine {
  position: absolute; top: 0; bottom: 0; width: 55%;
  inset-inline-start: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg); z-index: 2; pointer-events: none;
  transition: inset-inline-start 650ms var(--ease);
}
.card:hover .card-art .shine { inset-inline-start: 125%; }

/* شريط تمييز جانبي لعناوين الأقسام */
.section-head h2 { position: relative; padding-inline-start: 16px; }
.section-head h2::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 72%; border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px var(--primary-glow);
}
.section-head .sub { color: var(--text-faint); font-size: 0.88rem; font-weight: 600; }

/* زر أساسي بتدرج كهربائي→زمردي */
.btn-primary { background: linear-gradient(95deg, var(--primary), var(--accent)); color: var(--ink); }
.btn-primary:hover { background: linear-gradient(95deg, #4d84ff, #1fe4b0); filter: brightness(1.05); }

/* حبيبات فيلم خفيفة فوق الصفحة */
.grain {
  position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============================================================
   لمسات جمالية v3
   ============================================================ */

/* سكرول بار مخصص */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: #262a3d; border-radius: 8px;
  border: 2.5px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* شريط إعلان علوي */
.announce {
  background: linear-gradient(90deg, #4338ca, #7c3aed 50%, #4338ca);
  background-size: 200% 100%;
  animation: announce-slide 8s linear infinite;
  color: #fff; text-align: center;
  padding: 8px var(--space-4);
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announce svg { width: 15px; height: 15px; color: #fde047; }
@keyframes announce-slide { to { background-position: -200% 0; } }

/* مؤشر تقدم التمرير */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--primary), #a78bfa, var(--accent));
  transform: scaleX(0); transform-origin: 100% 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  pointer-events: none;
}
[dir="ltr"] .scroll-progress { transform-origin: 0 50%; }

/* الهيدر عند التمرير */
.navbar { transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.navbar.scrolled {
  background: rgba(8, 9, 15, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; inset-inline: 12px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ضوء يتبع الماوس */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 2;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 255, 0.07), transparent 60%);
  pointer-events: none; mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  will-change: transform;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* الكلمة المتبدلة في العنوان */
.rot-word { display: inline-block; transition: opacity 350ms var(--ease), transform 350ms var(--ease); }
.rot-word.out { opacity: 0; transform: translateY(14px); }

/* التقييم وعدد المبيعات على البطاقة */
.card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rate {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--warning); font-size: 0.8rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rate svg { width: 13px; height: 13px; }
.rate .sold-count { color: var(--text-faint); font-weight: 600; }

/* شارة البائع الشريك */
.seller-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 0.78rem; font-weight: 600;
  width: fit-content;
}
.seller-tag svg { width: 13px; height: 13px; color: var(--primary-strong); }
.seller-tag strong { color: var(--text-muted); }

/* زر المفضلة */
.btn-fav {
  min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.btn-fav:hover { border-color: rgba(248, 113, 113, 0.5); color: var(--danger); }
.btn-fav.faved { color: #fb7185; border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.08); }
.btn-fav.faved svg { animation: heart-pop 350ms var(--ease); }
@keyframes heart-pop {
  0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); }
}
.card-footer .actions { display: flex; gap: 8px; }

/* زر العودة للأعلى */
.back-top {
  position: fixed; bottom: var(--space-5); inset-inline-start: var(--space-5);
  z-index: 150;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px var(--primary-glow);
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ---------- الفوتر الاحترافي ---------- */
footer { padding-block: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--space-6); padding-block: var(--space-7) var(--space-6);
}
.footer-col h4 {
  font-size: 0.95rem; color: var(--text); margin-bottom: var(--space-4);
  position: relative; padding-inline-start: 12px;
}
.footer-col h4::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 70%; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.footer-col p { font-size: 0.88rem; line-height: 1.8; color: var(--text-muted); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul a {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.footer-col ul a:hover { color: var(--primary-strong); padding-inline-start: 4px; }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }

.newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.newsletter input {
  flex: 1; min-width: 0; min-height: 44px;
  background: var(--bg-base); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding-inline: var(--space-3);
  color: var(--text); font-size: 0.88rem;
}
.newsletter button {
  min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #8b5cf6); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.newsletter button:hover { box-shadow: 0 4px 18px var(--primary-glow); }
.newsletter button:active { transform: scale(0.94); }

.pay-methods { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.pay-chip {
  padding: 5px 13px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.5px; direction: ltr;
}
.footer-trust-row {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  padding-block: var(--space-3); border-top: 1px solid var(--border);
}
.foot-trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
}
.foot-trust-badge svg { width: 14px; height: 14px; color: var(--primary-strong); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3);
  color: var(--text-faint); font-size: 0.85rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VERGE Redesign — v4
   ============================================================ */
.container-w { max-width: 1400px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) { .container-w { padding-inline: var(--space-6); } }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* أزرار على شكل حبوب */
.btn { border-radius: var(--radius-full); }
.btn-grad {
  background: linear-gradient(95deg, var(--primary), var(--accent));
  color: var(--ink); font-family: var(--font-heading);
  box-shadow: 0 0 40px -10px rgba(47, 111, 255, 0.7);
}
.btn-grad:hover { filter: brightness(1.12); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); font-family: var(--font-heading); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-launch {
  background: #fff; color: var(--ink); font-family: var(--font-heading);
  font-size: 0.88rem; min-height: 42px; padding-inline: var(--space-4);
  box-shadow: 0 0 25px -5px rgba(0, 217, 163, 0.5);
  transition: background var(--dur) var(--ease);
}
.btn-launch:hover { background: var(--accent); }
.btn-sm { min-height: 40px; padding-inline: var(--space-4); font-size: 0.85rem; }

/* الزجاجية الأساسية */
.glass-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius);
}

/* ---------- الشريط المتحرك العلوي ---------- */
.ticker {
  position: relative; z-index: 90; height: 34px;
  display: flex; align-items: center; overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ticker-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee-scroll 26s linear infinite;
  font-size: 0.72rem; letter-spacing: 2px; font-weight: 600;
  color: rgba(0, 217, 163, 0.85);
}
.ticker-item { display: inline-flex; align-items: center; gap: 7px; margin-inline: 28px; }
.ticker-item svg { width: 13px; height: 13px; }

/* ---------- الهيدر الجديد ---------- */
.navbar { background: transparent; border-bottom: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { min-height: 76px; position: relative; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  object-fit: cover; display: block;
  box-shadow: 0 0 14px var(--primary-glow);
}
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }

/* ===== مشهد البطل — بنر كامل بالشعار والمزايا والمنتجات ===== */
.hero-scene {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 1180px; margin: var(--space-3) auto var(--space-5);
  border-radius: 24px;
  aspect-ratio: 1500 / 498;            /* يحجز المساحة مسبقاً — يمنع قفز التخطيط (CLS) */
  animation: sceneIn 1s cubic-bezier(.16,1,.3,1) both;
}
/* هالة توهّج ملوّنة خلف البنر تندمج مع خلفية الصفحة */
.hero-scene::before {
  content: ""; position: absolute; z-index: -1; inset: -12%;
  background:
    radial-gradient(50% 60% at 32% 45%, color-mix(in oklab, var(--primary) 35%, transparent), transparent 65%),
    radial-gradient(45% 55% at 68% 55%, color-mix(in oklab, var(--accent) 32%, transparent), transparent 68%);
  filter: blur(60px); opacity: .5;
  animation: sceneGlow 8s ease-in-out infinite alternate;
}
.hero-scene img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px;
}
/* سلايدر البنرات — الشرائح متراكبة، تتلاشى بينها */
.hero-slider .hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  transition: opacity .8s ease;
}
.hero-slider .hero-slide.active { opacity: 1; z-index: 1; }
/* نقاط التنقّل */
.hero-dots {
  position: absolute; z-index: 3; inset-inline: 0; bottom: 14px;
  display: flex; gap: 8px; justify-content: center;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; padding: 0; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); transition: all .3s ease;
}
.hero-dot.active { background: #fff; width: 26px; }
.hero-dot:hover { background: rgba(255,255,255,.7); }
/* بريق يعبر البنر مرة واحدة عند الدخول ثم يتكرر بهدوء */
.hero-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 24px;
  overflow: hidden;
}
.hero-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  inset-inline-start: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  animation: heroShine 6s ease-in-out 1.1s infinite;
}
@keyframes sceneIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes sceneGlow {
  from { opacity: .4;  transform: scale(.97); }
  to   { opacity: .62; transform: scale(1.05); }
}
@keyframes heroShine {
  0%   { inset-inline-start: -60%; }
  18%  { inset-inline-start: 140%; }
  100% { inset-inline-start: 140%; }
}
/* أزرار CTA متمركزة تحت البنر */
.hero-cta-center { justify-content: center; margin-top: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  .hero-scene, .hero-scene::before, .hero-shine::after { animation: none; }
  .hero-shine::after { display: none; }
}
@media (max-width: 640px) {
  .hero-scene { border-radius: 16px; margin-block: var(--space-2) var(--space-4); }
  .hero-scene img, .hero-shine, .hero-shine::after { border-radius: 16px; }
}

.nav-pill {
  position: absolute; inset-inline-start: 50%; transform: translateX(50%);
  display: flex; align-items: center; gap: 2px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full); padding: 6px;
}
[dir="ltr"] .nav-pill { transform: translateX(-50%); }
.nav-pill a {
  padding: 9px 18px; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-pill a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.online-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.online-chip .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
@media (max-width: 1100px) { .nav-pill { display: none; } }
@media (max-width: 700px) { .online-chip { display: none; } }

/* ---------- الهيرو v2 ---------- */
.hero2 { position: relative; padding-block: var(--space-7) var(--space-8); }
.hero2-grid {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: var(--space-6); align-items: start;
}
.hero2-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.5px;
  margin-block: var(--space-5) var(--space-4);
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.4);
}
.grad-text {
  background: linear-gradient(95deg, var(--primary-strong), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(47, 111, 255, 0.35));
}
.hero2-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 500px; line-height: 1.8; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero2-cta .btn { min-height: 52px; padding-inline: var(--space-6); font-size: 1rem; }
.hero2-trust {
  display: flex; gap: var(--space-6); margin-top: var(--space-6);
  font-size: 0.82rem; color: var(--text-faint);
}
.hero2-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero2-trust .ic svg { width: 16px; height: 16px; }
.hero2-trust .ic.emer { color: var(--accent); }
.hero2-trust .ic.elec { color: var(--primary-strong); }

/* البطاقات العائمة */
.hero2-stack { position: relative; min-height: 500px; }
@media (max-width: 1000px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-stack { display: none; }
}
.fs-card {
  position: absolute; border-radius: 18px; padding: var(--space-4);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.fs-card .fs-art {
  height: 108px; border-radius: 12px; margin-bottom: 12px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.fs-card .fs-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-card .fs-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,5,0.55), transparent 60%); }
.fs-card .fs-title {
  position: relative; z-index: 1; font-family: var(--font-heading);
  font-weight: 700; font-size: 0.92rem; padding: 10px 12px; color: #fff;
}
.fs-card .fs-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-faint); }
.fs-card .fs-meta .ok { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.fs-card .fs-meta .ok svg { width: 13px; height: 13px; }
.fs-card .fs-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.fs-card .fs-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.fs-card .fs-rate { font-size: 0.72rem; color: var(--text-faint); }
.fs-a { top: 8px; inset-inline-start: 24px; width: 260px; animation: fl-a 7s ease-in-out infinite; z-index: 3; }
.fs-b { top: 175px; inset-inline-end: 0; width: 240px; animation: fl-b 8.5s ease-in-out infinite; z-index: 2; }
.fs-c { bottom: 8px; inset-inline-start: 8px; width: 225px; animation: fl-c 6s ease-in-out infinite; z-index: 1; }
@keyframes fl-a { 0%,100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -16px; rotate: -2deg; } }
@keyframes fl-b { 0%,100% { translate: 0 0; rotate: 3deg; } 50% { translate: 0 -22px; rotate: 5deg; } }
@keyframes fl-c { 0%,100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -10px; rotate: 0deg; } }
.fs-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: rgba(13, 13, 16, 0.75); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  animation: fl-c 7s ease-in-out infinite;
}
.fs-chip svg { width: 13px; height: 13px; color: var(--accent); }
.fs-chip.p1 { top: 46%; inset-inline-end: 38%; }
.fs-chip.p2 { bottom: -6px; inset-inline-end: 18%; animation-delay: -3s; }

/* ---------- البحث الزجاجي ---------- */
.search-wrap { position: relative; z-index: 30; max-width: 680px; margin: var(--space-5) auto 0; }
.search-glass {
  display: flex; align-items: center; gap: var(--space-3);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 8px 8px 8px; padding-inline-start: var(--space-4);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-glass:focus-within { border-color: rgba(47, 111, 255, 0.55); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-glass svg { color: var(--text-faint); flex-shrink: 0; }
.search-glass input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.98rem; min-height: 46px;
}
.search-glass input::placeholder { color: rgba(255, 255, 255, 0.32); }
.search-results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px);
  background: rgba(13, 13, 16, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 6px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}
.sr-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; text-align: start; background: none; border: none;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  color: var(--text); font-size: 0.9rem;
  transition: background var(--dur) var(--ease);
}
.sr-item:hover { background: rgba(255, 255, 255, 0.06); }
.sr-item .sr-price { color: var(--accent-strong); font-weight: 700; font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sr-empty { padding: 14px; color: var(--text-faint); font-size: 0.88rem; }

/* ---------- شريط المنصات ---------- */
.brands-marquee {
  overflow: hidden; padding-block: var(--space-5);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands-track {
  display: flex; align-items: center; gap: var(--space-8); width: max-content;
  animation: marquee-scroll 40s linear infinite;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 3px; color: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}
.brands-track span { transition: color var(--dur) var(--ease); }
.brands-track span:hover { color: rgba(255, 255, 255, 0.5); }

/* ---------- رؤوس الأقسام ---------- */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6);
}
.sec-head.center { justify-content: center; text-align: center; }
.kicker {
  font-size: 0.72rem; letter-spacing: 3px; font-weight: 700;
  margin-bottom: var(--space-2);
}
.kicker.elec { color: rgba(107, 153, 255, 0.85); }
.kicker.emer { color: rgba(0, 217, 163, 0.85); }
.sec-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.5px; }
.sec-title.sm { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* أسهم الكاروسيل */
.car-nav { display: flex; gap: var(--space-2); }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.car-btn:hover { background: rgba(255, 255, 255, 0.08); }
.car-btn svg { width: 16px; height: 16px; }

/* ---------- كاروسيل الرائج ---------- */
.trend-row {
  display: flex; gap: var(--space-4); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: var(--space-3);
}
.trend-card {
  scroll-snap-align: start; flex-shrink: 0; width: 280px;
  border-radius: 18px; padding: var(--space-4); cursor: pointer;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.trend-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.trend-card .t-art {
  height: 140px; border-radius: 12px; margin-bottom: var(--space-3);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.trend-card .t-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trend-card .t-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,5,0.6), transparent 55%); }
.trend-card .t-name { position: relative; z-index: 1; font-family: var(--font-heading); font-weight: 700; padding: 10px 12px; color: #fff; font-size: 0.95rem; }
.trend-card .t-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-card .t-row { display: flex; justify-content: space-between; align-items: center; }
.trend-card .t-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.trend-card .t-demand { font-size: 0.75rem; color: var(--accent); font-weight: 700; }

/* ---------- البنتو ---------- */
.bento {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
}
/* بطاقات موحّدة بنسبة البانر (16:9) — صور التصنيفات تظهر كاملة بلا قص */
.bento-tile.photo-only { aspect-ratio: 16 / 9; grid-column: auto !important; grid-row: auto !important; }
@media (max-width: 800px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.bento-tile {
  position: relative; border-radius: 24px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-elevated);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
  text-align: start; padding: 0;
}
.bento-tile:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
.bento-tile.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 800px) { .bento-tile.big { grid-column: span 2; grid-row: span 1; } }
/* صورة التصنيف: تصميم كامل بحد ذاته — تُعرض فل بلا قص ولا نص متزاحم فوقها */
.bento-photo { position: absolute; inset: 0; z-index: 0; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.bento-tile.photo-only { padding: 0; background: #0a0a0f; }
.bento-tile.photo-only .bento-photo img { object-fit: cover; }
.bento-tile.photo-only:hover .bento-photo img { transform: scale(1.04); }
/* شريط أسفل البطاقة: اسم التصنيف + عدد المنتجات — واضح دايمًا فوق أي صورة */
.bento-tile.photo-only::after {
  content: ''; position: absolute; inset: auto 0 0 0; z-index: 1; height: 64px;
  background: linear-gradient(0deg, rgba(5,5,10,0.92) 15%, transparent 100%);
  pointer-events: none;
}
.bento-badge {
  position: absolute; z-index: 3; bottom: 14px; inset-inline-start: 16px; inset-inline-end: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.bento-badge .bento-cat-name { color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.bento-badge .bento-count-pill {
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
}
/* خلفية كل بطاقة: صورة المدينة + طبقة لون التصنيف + تعتيم لوضوح النص */
.bento-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8,8,22,.35) 0%, rgba(8,8,22,.82) 78%),  /* تعتيم لوضوح النص */
    var(--tone-tint),                                                     /* لون التصنيف */
    url("../assets/categories-bg.jpg");                                   /* صورة المدينة */
  background-size: cover, cover, cover;
  background-position: center, center, center;
}
.bento-bg.elec { --tone-tint: linear-gradient(135deg, rgba(47,111,255,.55), rgba(47,111,255,.15)); }
.bento-bg.emer { --tone-tint: linear-gradient(135deg, rgba(0,217,163,.5), rgba(0,217,163,.12)); }
.bento-bg.vio  { --tone-tint: linear-gradient(135deg, rgba(139,92,246,.55), rgba(139,92,246,.15)); }
/* لكل بطاقة إزاحة مختلفة للصورة كي لا تتكرر بنفس المنظر */
.bento-tile:nth-child(1) .bento-bg { background-position: 20% 30%; }
.bento-tile:nth-child(2) .bento-bg { background-position: 80% 20%; }
.bento-tile:nth-child(3) .bento-bg { background-position: 50% 70%; }
.bento-tile:nth-child(4) .bento-bg { background-position: 10% 80%; }
.bento-tile:nth-child(5) .bento-bg { background-position: 90% 60%; }
.bento-tile:nth-child(6) .bento-bg { background-position: 40% 10%; }
/* أيقونة التصنيف الزخرفية الكبيرة — أعلى الجهة المقابلة للنص كعلامة مائية */
.bento-art {
  position: absolute; top: 16%; inset-inline-end: 8%;
  width: 30%; max-width: 96px; aspect-ratio: 1; pointer-events: none;
  display: flex; opacity: .85;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.4));
  transition: transform 400ms var(--ease);
}
.bento-art svg { width: 100%; height: 100%; }
.bento-tile.big .bento-art { width: 24%; max-width: 170px; top: 16%; inset-inline-end: 10%; }
.bento-art.elec { color: #6ea8ff; }
.bento-art.emer { color: #34e6bf; }
.bento-art.vio  { color: #b78cff; }
.bento-tile:hover .bento-art { transform: translateY(-4px) scale(1.06); }
.bento-body {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--space-5);
}
.bento-count { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 6px; }
.bento-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: #fff; }
.bento-tile.big .bento-name { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.bento-link {
  margin-top: var(--space-3); font-size: 0.85rem; color: var(--primary-strong);
  opacity: 0; transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.bento-tile:hover .bento-link { opacity: 1; transform: translateY(0); }

/* ---------- بيعت مؤخراً ---------- */
.feed-panel { padding: var(--space-5) var(--space-5); }
@media (min-width: 768px) { .feed-panel { padding: var(--space-6); } }
.feed-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-faint); }
.live-chip .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.feed-cols {
  display: none; grid-template-columns: 5fr 3fr 2fr 2fr;
  font-size: 0.7rem; letter-spacing: 1.5px; color: var(--text-faint);
  padding: 0 12px 12px; border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .feed-cols { display: grid; } }
.ta-end { text-align: end; }
.feed-row {
  display: grid; grid-template-columns: 5fr 3fr 2fr 2fr;
  align-items: center; padding: 15px 12px; font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feed-row:last-child { border-bottom: none; }
@media (max-width: 767px) { .feed-row { grid-template-columns: 1fr auto; row-gap: 4px; } .feed-row .f-buyer { display: none; } }
.feed-row .f-item { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.82); }
.feed-row .f-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.feed-row .f-buyer { color: var(--text-faint); }
.feed-row .f-price { font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-row .f-time { text-align: end; color: var(--text-faint); font-size: 0.78rem; }
.fade-row { animation: fadeRow 0.5s var(--ease); }
@keyframes fadeRow { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- الأرقام ---------- */
.stats2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); }
@media (min-width: 900px) { .stats2-grid { grid-template-columns: repeat(4, 1fr); } }
.stat2 { border-inline-start: 1px solid rgba(255, 255, 255, 0.12); padding-inline-start: var(--space-5); }
.stat2-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat2-num .plus { color: var(--accent); }
.stat2 p { color: var(--text-faint); font-size: 0.88rem; margin-top: var(--space-2); }

/* ---------- آراء العملاء ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } .review.lift { transform: translateY(-16px); } }
.review { padding: var(--space-5) var(--space-5); border-radius: 24px; }
.review .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: var(--space-3); font-size: 0.9rem; }
.review p { color: rgba(255, 255, 255, 0.72); line-height: 1.9; font-size: 0.95rem; }
.review-who { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--ink);
}
.av-1 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.av-2 { background: linear-gradient(135deg, var(--vio), var(--primary)); }
.av-3 { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.review-who strong { display: block; font-size: 0.9rem; }
.review-who small { color: var(--text-faint); font-size: 0.75rem; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--space-4); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border-radius: 18px; overflow: hidden; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: none; border: none; color: var(--text);
  padding: var(--space-4) var(--space-5); text-align: start;
  font-size: 1rem; font-weight: 700; font-family: var(--font-body);
}
.faq-icon {
  font-size: 1.4rem; color: var(--text-faint); line-height: 1;
  transition: transform 300ms var(--ease); flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease); }
.faq-panel p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted); font-size: 0.92rem; line-height: 1.9;
}

/* ---------- الفوتر v2 ---------- */
.footer2 {
  position: relative; margin-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8); overflow: hidden;
}
.footer-wordmark {
  position: absolute; bottom: -0.15em; inset-inline: 0;
  text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.6rem, 11.5vw, 11rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  letter-spacing: 1px; white-space: nowrap; max-width: 100%; overflow: hidden;
}
.footer2-inner { position: relative; }
.footer2-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  padding-bottom: var(--space-7);
}
@media (min-width: 700px) { .footer2-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer2-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; } }
.f2-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.9; max-width: 300px; margin-block: var(--space-4); }
.f2-col h4 {
  font-size: 0.92rem; margin-bottom: var(--space-4);
  position: relative; padding-inline-start: 12px;
}
.f2-col h4::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 70%; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.f2-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.f2-col ul a {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.f2-col ul a:hover { color: var(--primary-strong); padding-inline-start: 4px; }
.f2-note { color: var(--text-faint); font-size: 0.82rem; margin-bottom: var(--space-3); }

/* ============================================================
   v5 — خلفية NEXUS متعددة الطبقات
   ============================================================ */
.bg-stage {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.bg-layer { position: absolute; inset: 0; will-change: transform; }

/* الطبقة 0: القاعدة الإشعاعية */
.bg-base {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(47, 111, 255, 0.17), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(0, 217, 163, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(255, 110, 199, 0.1), transparent 60%),
    linear-gradient(180deg, #05050a 0%, #07070f 50%, #05050a 100%);
}

/* الطبقة 1: الشفق القطبي الدوّار */
.aurora {
  inset: -12%;
  background:
    conic-gradient(from 120deg at 20% 30%, transparent 0deg, rgba(47, 111, 255, 0.22) 60deg, transparent 120deg),
    conic-gradient(from 260deg at 80% 70%, transparent 0deg, rgba(0, 217, 163, 0.18) 70deg, transparent 140deg),
    conic-gradient(from 40deg at 60% 20%, transparent 0deg, rgba(255, 110, 199, 0.15) 80deg, transparent 160deg);
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: auroraSpin 80s linear infinite;
}
@keyframes auroraSpin { to { rotate: 360deg; } }

/* الطبقة 2: الكتل الضوئية */
.n-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; mix-blend-mode: screen;
  will-change: transform;
}
.nb1 { width: 560px; height: 560px; background: radial-gradient(circle, var(--vio), transparent 60%); top: -10%; inset-inline-start: -8%; animation: nFloat1 28s ease-in-out infinite; }
.nb2 { width: 640px; height: 640px; background: radial-gradient(circle, var(--primary), transparent 60%); top: 10%; inset-inline-end: -10%; animation: nFloat2 34s ease-in-out infinite; }
.nb3 { width: 520px; height: 520px; background: radial-gradient(circle, var(--pink), transparent 60%); bottom: -15%; inset-inline-start: 30%; opacity: 0.35; animation: nFloat3 30s ease-in-out infinite; }
.nb4 { width: 420px; height: 420px; background: radial-gradient(circle, var(--accent), transparent 60%); top: 40%; inset-inline-start: 50%; opacity: 0.28; animation: nFloat4 36s ease-in-out infinite; }
@keyframes nFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.1); } }
@keyframes nFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-90px,70px) scale(1.15); } }
@keyframes nFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-80px) scale(0.95); } }
@keyframes nFloat4 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,40px) scale(1.08); } }

/* الطبقة 3: أرضية منظورية 3D */
.floor-grid {
  position: absolute; left: 50%; bottom: -10%;
  width: 200%; height: 70%;
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  background-image:
    linear-gradient(rgba(47, 111, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 255, 0.25) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  animation: floorMove 30s linear infinite;
  opacity: 0.32;
}
@keyframes floorMove { from { background-position: 0 0; } to { background-position: 0 800px; } }

/* الطبقة 4: شبكة مسطحة زاحفة */
.grid-layer {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  animation: gridDrift 60s linear infinite;
  opacity: 0.5;
}
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 640px 640px; } }

/* الطبقة 5: أشعة ضوء مائلة */
.rays {
  background:
    linear-gradient(115deg, transparent 40%, rgba(47, 111, 255, 0.08) 50%, transparent 60%),
    linear-gradient(65deg, transparent 40%, rgba(0, 217, 163, 0.06) 50%, transparent 60%);
  mix-blend-mode: screen;
  animation: rayShift 18s ease-in-out infinite alternate;
}
@keyframes rayShift {
  from { transform: translateX(-6%) skewX(-2deg); }
  to { transform: translateX(6%) skewX(2deg); }
}

/* الطبقة 6: خطوط الطاقة */
.energy {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  filter: blur(0.4px); opacity: 0;
  animation: energyMove 14s linear infinite;
}
.e1 { width: 60%; top: 30%; --r: -6deg; }
.e2 { width: 50%; top: 68%; --r: 4deg; animation-duration: 18s; animation-delay: -6s; }
.e3 { width: 40%; top: 50%; --r: 2deg; animation-duration: 22s; animation-delay: -12s; }
@keyframes energyMove {
  0% { transform: translateX(-40%) rotate(var(--r)); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateX(140%) rotate(var(--r)); opacity: 0; }
}

/* الطبقة 7: حلقات هولوغرامية */
.holo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0, 217, 163, 0.3);
  box-shadow: 0 0 40px rgba(0, 217, 163, 0.15), inset 0 0 40px rgba(0, 217, 163, 0.08);
  animation: ringPulse 8s ease-in-out infinite;
}
.hr1 { width: 340px; height: 340px; top: 8%; inset-inline-end: 18%; }
.hr2 {
  width: 220px; height: 220px; bottom: 14%; inset-inline-start: 16%;
  border-color: rgba(255, 110, 199, 0.3);
  box-shadow: 0 0 40px rgba(255, 110, 199, 0.15), inset 0 0 40px rgba(255, 110, 199, 0.08);
  animation-duration: 10s; animation-direction: reverse;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* الطبقة 8: أشكال زجاجية عائمة */
.shape {
  position: absolute; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.s1 { width: 170px; height: 170px; top: 12%; inset-inline-start: 5%; animation: shapeA 22s ease-in-out infinite; }
.s2 { width: 110px; height: 110px; top: 24%; inset-inline-end: 7%; border-radius: 50%; animation: shapeB 26s ease-in-out infinite; }
.s3 { width: 150px; height: 150px; bottom: 16%; inset-inline-start: 9%; animation: shapeA 28s ease-in-out infinite reverse; }
.s4 { width: 85px; height: 85px; bottom: 24%; inset-inline-end: 13%; border-radius: 18px; animation: shapeB 20s ease-in-out infinite; }
@keyframes shapeA { 0%,100% { transform: translate(0,0) rotate(12deg); } 50% { transform: translate(30px,-20px) rotate(22deg); } }
@keyframes shapeB { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-25px,25px) rotate(40deg); } }

/* الطبقة 9: التظليل المحيطي */
.vignette {
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.7) 100%);
}

/* كانفس النجوم */
#bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* حبيبات متحركة (تحديث) */
.grain { animation: noiseShift 0.6s steps(4) infinite; }
@keyframes noiseShift {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,1.5%); }
  50% { transform: translate(1.5%,-1%); } 75% { transform: translate(-1%,-1.5%); }
  100% { transform: translate(0,0); }
}

/* ضوء المؤشر (تحديث الألوان) */
.cursor-glow {
  background: radial-gradient(circle, rgba(47, 111, 255, 0.16), rgba(0, 217, 163, 0.07) 35%, transparent 65%);
}

/* على الجوال: نكتفي بالطبقات الخفيفة حفاظاً على الأداء */
@media (max-width: 760px) {
  .aurora, .rays, .shape, .holo-ring, .energy, .floor-grid { display: none; }
  .n-blob { filter: blur(70px); }
}

/* ============================================================
   عرض الاتفاقية القانونية
   ============================================================ */
.modal.wide { width: min(720px, 100%); }

/* بطاقة ملخص الاتفاقية داخل النماذج */
.terms-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
  background: rgba(47, 111, 255, 0.07);
  border: 1px solid rgba(47, 111, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.terms-summary .ts-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.terms-summary .ts-info strong { font-size: 0.95rem; }
.terms-summary .ts-info span { color: var(--text-muted); font-size: 0.8rem; }
.terms-summary .btn { min-height: 42px; padding-inline: var(--space-4); font-size: 0.85rem; white-space: nowrap; }

/* مستند الاتفاقية المنسّق */
.terms-doc { display: flex; flex-direction: column; gap: var(--space-3); }
.terms-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-1); }
.terms-chip {
  padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
}
.terms-chip.mono { font-family: monospace; direction: ltr; unicode-bidi: embed; color: var(--accent-strong); }
.terms-preamble {
  background: var(--surface); border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: var(--space-4);
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.9;
}
.clause {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-4);
  transition: border-color var(--dur) var(--ease);
}
.clause:hover { border-color: rgba(47, 111, 255, 0.4); }
.clause .c-num {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: rgba(47, 111, 255, 0.14); color: var(--primary-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.clause h4 { font-size: 0.98rem; margin-bottom: 5px; font-family: var(--font-body); font-weight: 700; }
.clause p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; }

/* ============================================================
   الرسم البياني المصغّر لمبيعات البائع
   ============================================================ */
.mini-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 140px; padding-top: 12px;
}
.mc-bar-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 8px; height: 100%; justify-content: flex-end;
  min-width: 0;
}
.mc-bar {
  width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent-strong), var(--primary));
  min-height: 3px;
  transition: transform 220ms var(--ease);
  position: relative;
}
.mc-bar:hover { transform: scaleY(1.04); filter: brightness(1.15); }
.mc-bar[data-val="0"] { background: var(--border-strong); opacity: 0.5; }
.mc-lbl { font-size: 0.62rem; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-empty { color: var(--text-muted); text-align: center; padding: 24px; width: 100%; }

/* ============================================================
   صفحة المنتج المستقلة
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-faint); padding-block: var(--space-4);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--primary-strong); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.product-page-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7);
  padding-bottom: var(--space-8);
}
@media (max-width: 900px) { .product-page-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* المعرض */
.pp-gallery {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
}
.pp-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* صور بنسبة أبعاد بعيدة عن نسبة المعرض (شعارات عريضة/طويلة) تُقص بشدة مع cover؛
   fit-contain (يُضاف عبر JS بعد قياس أبعاد الصورة الفعلية) يعرضها كاملة بخلفية ناعمة. */
.pp-gallery img.fit-contain { object-fit: contain; padding: 6%; background: #fff; box-sizing: border-box; }
.pp-gallery .art-title {
  font-family: var(--font-heading); font-weight: 800; z-index: 1;
  font-size: clamp(1.4rem, 3vw, 2.2rem); color: rgba(255, 255, 255, 0.92);
  text-align: center; padding-inline: 24px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.pp-gallery .ribbon { top: var(--space-4); inset-inline-start: var(--space-4); font-size: 0.85rem; padding: 6px 16px; }
.pp-gallery .platform-badge { top: var(--space-4); inset-inline-end: var(--space-4); font-size: 0.85rem; padding: 6px 16px; }
.pp-actions-float { position: absolute; bottom: var(--space-4); inset-inline-end: var(--space-4); z-index: 2; display: flex; gap: 8px; }
.pp-actions-float .btn-icon { background: rgba(5, 6, 10, 0.65); backdrop-filter: blur(10px); }

/* عمود التفاصيل */
.pp-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.pp-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: var(--space-3); }
.pp-rate { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.pp-rate .stars { color: var(--warning); letter-spacing: 2px; }
.pp-rate .sold { color: var(--text-faint); font-size: 0.85rem; }
.pp-stars-row { display: inline-flex; gap: 2px; color: var(--warning); vertical-align: middle; }
.rate .stars, .rate svg { color: var(--warning); }
#reviewStarPicker span { transition: transform 120ms var(--ease); }
#reviewStarPicker span:hover { transform: scale(1.12); }
#reviewComment {
  background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: var(--space-3); color: var(--text); font-family: inherit; font-size: 0.92rem;
  resize: vertical;
}
#reviewComment:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.pp-tab-btn span { color: var(--text-faint); font-size: 0.85rem; }

.pp-price-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.pp-price-box .price .now { font-size: 2rem; }
.pp-price-box .stock-line { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-3); }

.pp-qty { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.pp-qty .qty-controls { background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px; }
.pp-qty .qty-controls button { width: 38px; height: 38px; }
.pp-qty .qty-controls .qty { min-width: 32px; font-size: 1rem; }

.pp-cta { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); }
.pp-cta .btn { flex: 1; min-height: 52px; font-size: 1rem; }

.pp-trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.pp-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.pp-trust-item svg { width: 20px; height: 20px; color: var(--primary-strong); }
.pp-trust-item span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

/* تبويبات الوصف/التقييمات */
.pp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--space-5); }
.pp-tab-btn {
  padding: 12px 20px; background: none; border: none; color: var(--text-faint);
  font-weight: 700; font-size: 0.95rem; position: relative; cursor: pointer;
}
.pp-tab-btn::after {
  content: ''; position: absolute; bottom: -1px; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.pp-tab-btn.active { color: var(--text); }
.pp-tab-btn.active::after { transform: scaleX(1); }
.pp-tab-panel { display: none; }
.pp-tab-panel.active { display: block; }
.pp-desc-text { color: var(--text-muted); line-height: 2; font-size: 0.98rem; }

/* شريط شراء ثابت أسفل الشاشة (للجوال بشكل أساسي) */
.sticky-buy-bar {
  position: sticky; bottom: 0; z-index: 60;
  background: rgba(10, 11, 18, 0.92); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  padding: var(--space-3) var(--space-4);
  display: none; align-items: center; justify-content: space-between; gap: var(--space-3);
}
@media (max-width: 760px) {
  .sticky-buy-bar { display: flex; }
  .pp-cta { display: none; }
}
.sticky-buy-bar .sb-info { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy-bar .sb-name { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sticky-buy-bar .sb-price { font-weight: 800; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.sticky-buy-bar .btn { min-height: 46px; flex-shrink: 0; }

/* منتجات ذات صلة */
.pp-related { padding-block: var(--space-6); }

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* زر يبدو كرابط — يُستخدم في خطوات التحقق (إعادة إرسال / رجوع) */
.linklike{background:none;border:none;color:var(--accent,#a78bfa);cursor:pointer;font:inherit;padding:0;text-decoration:underline}
.linklike:hover{opacity:.8}
.linklike:disabled{opacity:.5;cursor:default;text-decoration:none}

/* الصفحات القانونية */
.legal-doc h2 { font-size: 1.4rem; color: var(--primary-strong); }
.legal-doc h3 { font-size: 1.05rem; margin: 20px 0 6px; color: var(--text); }
.legal-doc p { color: var(--text-muted); line-height: 2; margin-bottom: 4px; }
.legal-doc a { color: var(--accent-strong); }

/* ============================================================
   أدوات مساعدة — استبدال inline styles الشائعة
   ============================================================ */
.bg-layer--calm       { opacity: .3; }
.bg-layer--soft       { opacity: .35; }
.bg-layer--quiet      { opacity: .4; }
.bg-layer--still      { opacity: .5; }
.nb-soft              { opacity: .35; }
.nb-softer            { opacity: .3; }
.nb-faint             { opacity: .28; }
.nb-fainter           { opacity: .2; }
.grid-soft            { opacity: .28; }
.grid-softer          { opacity: .3; }

/* صفحة pay-return */
.pay-return-wrap      { max-width: 460px; padding-block: 80px; text-align: center; }
.pay-return-panel     { padding: 36px 28px; }
.pay-icon             { font-size: 44px; margin-bottom: 12px; }
.pay-title            { font-size: 1.4rem; margin-bottom: 8px; }
.pay-msg              { color: var(--text-muted); }
.pay-actions          { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pay-action-btn       { width: 100%; }
.pay-action-secondary { margin-top: 0; }
@media (max-width: 480px) {
  .pay-return-wrap { padding-block: 48px 24px; }
  .pay-return-panel { padding: 24px 18px; }
  .pay-icon { font-size: 36px; }
}

/* محاذاة LTR لحقول الإدخال */
.field input[dir="ltr"] { text-align: left; }
.field input.text-center { text-align: center; }

/* رأس لوحة معلومات */
.admin-head h1 + p    { color: var(--text-muted); }
.kbd-hint             { font-family: monospace; font-size: .75rem; color: var(--text-faint); }
