/* ============================================================
   LIONTRINING — الواجهة (نسخة PHP) · خط Rubik
   ============================================================ */

:root {
  --bg: #08060e;
  --bg-raised: #0f0b19;
  --surface: #141021;
  --surface-2: #1b162d;
  --surface-3: #241d3b;
  --line: rgba(196, 165, 255, 0.12);
  --line-strong: rgba(196, 165, 255, 0.24);
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-soft: #c4a5ff;
  --gold: #e7b04a;
  --gold-soft: #ffe29a;
  --gold-deep: #a8701f;
  --blue: #2e9bff;
  --text: #f4f1fb;
  --muted: #a8a1bd;
  --faint: #6f6887;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --wa: #25d366;

  --grad-gold: linear-gradient(135deg, #ffe29a 0%, #e7b04a 45%, #a8701f 100%);
  --grad-purple: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 45%, #6d28d9 100%);
  --grad-brand: linear-gradient(120deg, #8b5cf6, #2e9bff 50%, #e7b04a);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 18px 50px -18px rgba(139, 92, 246, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* خلفية الموقع: توهجات ناعمة + شبكة خفيفة */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(46, 155, 255, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(231, 176, 74, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 165, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 165, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- عناصر مساعدة ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 920px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #0b0912; font-weight: 700; }
.skip-link:focus { top: 12px; }
.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad { background: linear-gradient(100deg, #fff 10%, var(--purple-soft) 55%, var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple-soft);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow svg { color: var(--gold); }

/* ---------- الأزرار ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500; font-size: 15px; line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background-color .2s;
}
.btn:hover { border-color: var(--purple); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-fg: #fff;
  --btn-line: rgba(255, 226, 154, 0.35);
  background: var(--grad-purple);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(231,176,74,.15), 0 14px 40px -8px rgba(139,92,246,.75); }
.btn-primary:hover::after { transform: translateX(-120%); }

.btn-gold { --btn-fg: #1a1203; --btn-line: transparent; background: var(--grad-gold); font-weight: 700; box-shadow: 0 10px 30px -10px rgba(231,176,74,.6); }
.btn-gold:hover { box-shadow: 0 0 0 4px rgba(231,176,74,.18), 0 14px 40px -10px rgba(231,176,74,.8); border-color: transparent; }
.btn-ghost { --btn-bg: rgba(255,255,255,.02); }
.btn-ghost:hover { --btn-bg: rgba(139,92,246,.08); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-wa { --btn-fg: #04140a; --btn-line: transparent; background: linear-gradient(135deg, #4ae68a, #25d366 50%, #128c4b); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(37,211,102,.55); }
.btn-wa:hover { box-shadow: 0 0 0 4px rgba(37,211,102,.18), 0 14px 40px -10px rgba(37,211,102,.7); border-color: transparent; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent; color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- الحقول ---------- */
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 11, 25, 0.8);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4a5ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 18px; padding-inline-end: 16px; padding-inline-start: 42px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139,92,246,.2); background: var(--bg-raised); }

/* ---------- شريط الإعلان ---------- */
.announce {
  position: relative;
  background: linear-gradient(90deg, rgba(109,40,217,.9), rgba(139,92,246,.9) 50%, rgba(109,40,217,.9));
  color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  padding: 9px 0;
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 8px; }
.announce svg { color: var(--gold-soft); }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: 12px;
  transition: padding .3s var(--ease);
}
.header-bar {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
  padding-inline: 14px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 10, 24, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.8);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled .header-bar { background: rgba(10, 7, 18, 0.85); border-color: var(--line-strong); box-shadow: 0 18px 50px -20px rgba(0,0,0,.9); }
.logo img { height: 36px; width: auto; }
.main-nav { display: none; gap: 4px; margin-inline-start: 12px; }
.main-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 10px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.main-nav a[aria-current="page"] { color: var(--text); background: rgba(139,92,246,.14); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad-gold); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.header-actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; display: none; }
.header-actions .wa-icon { color: var(--wa); }
.menu-btn { margin-inline-start: -4px; }

.search-panel { margin-top: 10px; }
.search-panel[hidden] { display: none; }
.search-form {
  position: relative; display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(14,10,24,.9);
  backdrop-filter: blur(16px);
  animation: drop .3s var(--ease);
}
.search-form .search-icon { position: absolute; inset-inline-start: 24px; color: var(--muted); pointer-events: none; }
.search-form .input { padding-inline-start: 48px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* قائمة الجوال */
.drawer-root { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.drawer-root[data-open="true"] { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; border: 0; background: rgba(4,2,10,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer-root[data-open="true"] .drawer-scrim { opacity: 1; }
.drawer {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(86vw, 360px);
  padding: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border-inline-end: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 18px;
}
[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer-root[data-open="true"] .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { height: 32px; width: auto; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drawer li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; font-size: 17px; font-weight: 500; border: 1px solid transparent; }
.drawer li a:hover, .drawer li a[aria-current="page"] { background: rgba(139,92,246,.12); border-color: var(--line); }
.drawer li a svg { color: var(--faint); }
.drawer .btn { margin-top: auto; }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.section-head .eyebrow { margin-bottom: 14px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 500; white-space: nowrap;
  padding: 8px 4px;
}
.link-more svg { transition: transform .25s var(--ease); }
.link-more:hover { color: var(--gold-soft); }
.link-more:hover svg { transform: translateX(-4px); }

/* ---------- الواجهة الرئيسية ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-title {
  font-size: clamp(40px, 6.6vw, 78px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-title .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 8px 0 0; padding: 0; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.hero-facts li svg { color: var(--gold); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.orbit {
  position: relative;
  width: min(100%, 500px); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
}
.orbit::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139,92,246,.45), rgba(139,92,246,.08) 55%, transparent 70%);
  filter: blur(10px);
}
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(231,176,74,.35);
  animation: spin 40s linear infinite;
}
.orbit-ring::before, .orbit-ring::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 18px 4px rgba(231,176,74,.6);
  top: -6px; left: calc(50% - 6px);
}
.orbit-ring::after { top: auto; bottom: -6px; background: var(--purple); box-shadow: 0 0 18px 4px rgba(139,92,246,.7); }
.orbit-ring.r2 { inset: 11%; border-style: dashed; border-color: rgba(196,165,255,.25); animation-duration: 60s; animation-direction: reverse; }
.orbit-ring.r2::before { background: var(--blue); box-shadow: 0 0 16px 4px rgba(46,155,255,.6); left: auto; right: 12%; top: 12%; }
.orbit-ring.r2::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit img.lion { position: relative; width: 78%; height: auto; border-radius: 50%; filter: drop-shadow(0 30px 60px rgba(139,92,246,.4)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero-ticket {
  position: absolute; inset-inline-start: 0; bottom: 4%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(20,16,33,.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-glow);
  max-width: 300px;
  animation: float 8s ease-in-out infinite reverse;
}
.hero-ticket img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.hero-ticket .name { display: block; font-weight: 600; font-size: 14px; line-height: 1.4; }
.hero-ticket .dur { color: var(--muted); font-size: 12px; }
.hero-badge {
  position: absolute; inset-inline-end: 2%; top: 10%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(20,16,33,.82); border: 1px solid rgba(37,211,102,.35);
  backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500;
  animation: float 9s ease-in-out infinite;
}
.hero-badge svg { color: var(--wa); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { min-height: 520px; }
}

/* شريط متحرك بالأقسام */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  padding-block: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.marquee-item svg { color: var(--purple-soft); }
.marquee-item .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-start: 30px; opacity: .6; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- البنرات ---------- */
.banners { display: grid; gap: 18px; }
@media (min-width: 760px) { .banners.two { grid-template-columns: 1fr 1fr; } }
.banner {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  min-height: 220px;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
a.banner:hover { transform: translateY(-3px); border-color: rgba(231,176,74,.5); box-shadow: var(--shadow-glow); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
a.banner:hover img { transform: scale(1.04); }
.banner.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(8,6,14,.92) 0%, rgba(8,6,14,.55) 50%, rgba(8,6,14,0) 85%); }
.banner-copy { position: relative; display: grid; gap: 10px; justify-items: start; padding: clamp(24px, 4vw, 40px); max-width: 560px; }
.banner-copy h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.banner-copy p { color: #ddd6ee; }
.banner-copy .btn { margin-top: 8px; }

/* ---------- الأقسام (التصنيفات) ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-card {
  --acc: var(--purple); --acc-soft: rgba(139,92,246,.16);
  position: relative; display: grid; gap: 14px; align-content: start;
  height: 100%;
  padding: 20px 18px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, background-color .3s;
}
.cat-card::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  inset-inline-end: -60px; top: -60px;
  background: radial-gradient(circle, var(--acc-soft), transparent 70%);
  opacity: .6; transition: opacity .3s, transform .5s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.cat-card:hover::after { opacity: 1; transform: scale(1.3); }
.cat-card.gold { --acc: var(--gold); --acc-soft: rgba(231,176,74,.18); }
.cat-card.blue { --acc: var(--blue); --acc-soft: rgba(46,155,255,.18); }
.cat-icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  color: var(--acc);
  background: var(--acc-soft);
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
}
.cat-name { position: relative; z-index: 1; font-weight: 600; font-size: 16px; line-height: 1.4; }
.cat-count { position: relative; z-index: 1; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.cat-count svg { color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.cat-card:hover .cat-count svg { color: var(--acc); transform: translateX(-4px); }

/* ---------- بطاقة المنتج ---------- */
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  --notch: 12px;
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(196,165,255,.38); box-shadow: 0 30px 60px -30px rgba(139,92,246,.6); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 21px 21px 0 0; background: var(--bg-raised); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,33,.7), transparent 45%); }
.card-chip {
  position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(8,6,14,.72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; color: var(--gold-soft);
}
.card-off {
  position: absolute; z-index: 1; top: 12px; inset-inline-end: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grad-gold); color: #1a1203;
  font-size: 12px; font-weight: 700;
}
.card-perf { position: relative; height: 0; border-top: 2px dashed rgba(196,165,255,.18); margin-inline: 16px; }
.card-perf::before, .card-perf::after {
  content: ""; position: absolute; top: calc(var(--notch) * -1 - 1px);
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.card-perf::before { inset-inline-start: calc(-16px - var(--notch) - 1px); clip-path: inset(0 0 0 50%); }
.card-perf::after { inset-inline-end: calc(-16px - var(--notch) - 1px); clip-path: inset(0 50% 0 0); }
[dir="rtl"] .card-perf::before { clip-path: inset(0 50% 0 0); }
[dir="rtl"] .card-perf::after { clip-path: inset(0 0 0 50%); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.45; }
.card-title a:hover { color: var(--purple-soft); }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-foot .wa-btn { position: relative; z-index: 2; }
.card.sold-out .card-media img { filter: grayscale(.85) brightness(.7); }

/* السعر */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-now { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 700; color: var(--text); }
.price-now .num { font-size: 22px; letter-spacing: -0.01em; }
.price-cur { font-size: 13px; font-weight: 500; color: var(--gold); }
.price-was { color: var(--faint); font-size: 14px; }
.price-off { display: inline-flex; gap: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(231,176,74,.14); color: var(--gold-soft); font-size: 12px; font-weight: 600; }
.price.l .price-now .num { font-size: 40px; }
.price.l .price-cur { font-size: 18px; }
.price.l .price-was { font-size: 18px; }

/* التوفر */
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--success); }
.avail .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .25; animation: pulse 2s ease-out infinite; }
.avail.low_stock { color: var(--warning); }
.avail.out_of_stock { color: var(--danger); }
.avail.out_of_stock .dot::after { display: none; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }

/* زر واتساب */
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(37,211,102,.4);
  background: rgba(37,211,102,.1); color: #7ff0ac;
  font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.wa-btn:hover { background: var(--wa); color: #04140a; border-color: var(--wa); }
.wa-btn.ask { border-color: var(--line-strong); background: rgba(255,255,255,.03); color: var(--muted); }
.wa-btn.ask:hover { background: var(--surface-3); color: var(--text); }
.wa-btn .short { display: none; }
.wa-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 520px) {
  .wa-btn .full { display: none; }
  .wa-btn .short { display: inline; }
  .card-body { padding: 14px 12px 14px; }
  .card-title { font-size: 14px; }
  .price-now .num { font-size: 18px; }
  .product-grid { gap: 12px; }
}

/* ---------- خطوات الطلب ---------- */
.steps { position: relative; display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { content: ""; position: absolute; top: 56px; inset-inline: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--gold) 50%, var(--line-strong) 85%, transparent); opacity: .7; }
}
.step {
  position: relative; display: grid; gap: 12px; justify-items: start;
  padding: 28px 24px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
}
.step-icon {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg);
}
.step-num { position: absolute; inset-inline-end: 20px; top: 14px; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(196,165,255,.18); }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 22px; padding: 14px 18px;
  border-radius: var(--r-m);
  border: 1px dashed rgba(231,176,74,.45);
  background: rgba(231,176,74,.06);
  color: #f6dfae; font-size: 14px;
}
.note svg { flex: none; margin-top: 4px; color: var(--gold); }

/* ---------- الأسئلة ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: border-color .3s, background-color .3s;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(139,92,246,.06); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .tog { position: relative; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.faq .tog::before, .faq .tog::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--gold); transition: transform .3s var(--ease); }
.faq .tog::after { transform: rotate(90deg); }
.faq details[open] .tog::after { transform: rotate(0); }
.faq .ans { padding: 0 20px 20px; color: var(--muted); }
.faq .ans p + p { margin-top: 8px; }

/* ---------- شريط الدعوة ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; gap: 20px; align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(231,176,74,.3);
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(231,176,74,.18), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(139,92,246,.3), transparent 60%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; }
.cta-band p { color: var(--muted); margin-top: 8px; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-head { padding-block: clamp(36px, 6vw, 64px) 28px; display: grid; gap: 12px; justify-items: start; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.015em; }
.page-head p { color: var(--muted); max-width: 64ch; font-size: 17px; }

.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { color: var(--faint); }
.crumbs span[aria-current] { color: var(--text); }

/* ---------- الفلاتر ---------- */
.filters { display: grid; gap: 16px; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--purple); }
.chip[aria-current="true"] { color: #fff; background: var(--grad-purple); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(139,92,246,.8); }
.tools {
  display: grid; gap: 10px;
  padding: 12px; border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.tools .search { position: relative; }
.tools .search svg { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.tools .search .input { padding-inline-start: 46px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; white-space: nowrap; padding-inline: 6px; }
.check input { width: 20px; height: 20px; accent-color: var(--purple); }
@media (min-width: 760px) { .tools { grid-template-columns: 1fr auto 220px auto; align-items: center; } }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- صفحة المنتج ---------- */
.p-layout { display: grid; gap: 32px; padding-block: 24px 40px; }
@media (min-width: 980px) { .p-layout { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; } .p-media-col { position: sticky; top: calc(var(--header-h) + 24px); } }
.p-media { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--surface); aspect-ratio: 4 / 3; box-shadow: var(--shadow-glow); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.p-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.p-thumb { flex: none; width: 88px; aspect-ratio: 4/3; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: .6; transition: opacity .2s, border-color .2s; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb:hover { opacity: 1; }
.p-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.p-highlights { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .p-highlights { grid-template-columns: 1fr 1fr; } }
.p-highlights li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 15px; }
.p-highlights svg { flex: none; margin-top: 3px; color: var(--success); }
.p-info { display: grid; gap: 18px; align-content: start; }
.p-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(139,92,246,.12); border: 1px solid var(--line); font-size: 13px; color: var(--purple-soft); }
.p-title { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.p-short { color: var(--muted); font-size: 17px; }
.p-dur { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.p-dur strong { color: var(--gold-soft); font-weight: 600; }
.p-dur svg { color: var(--gold); }
.p-delivery { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-m); background: rgba(46,155,255,.06); border: 1px solid rgba(46,155,255,.25); }
.p-delivery .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(46,155,255,.12); color: var(--blue); }
.p-delivery h2 { font-size: 16px; font-weight: 600; }
.p-delivery p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.buy-box { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-l); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-row .lbl { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-raised); overflow: hidden; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text); transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--surface-3); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-size: 18px; }
.qty-total { margin-inline-start: auto; color: var(--muted); }
.qty-total strong { color: var(--gold-soft); font-size: 18px; }
.buy-box .wa-btn.large { min-height: 60px; font-size: 18px; font-weight: 600; border-radius: 16px; background: linear-gradient(135deg, #4ae68a, #25d366 50%, #128c4b); color: #04140a; border: 0; box-shadow: 0 14px 34px -12px rgba(37,211,102,.6); }
.buy-box .wa-btn.large:hover { box-shadow: 0 0 0 4px rgba(37,211,102,.2), 0 18px 40px -12px rgba(37,211,102,.8); }
.buy-box .wa-btn.large.ask { background: var(--surface-3); color: var(--text); box-shadow: none; border: 1px solid var(--line-strong); }
.promise, .howto { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.promise { color: var(--gold-soft); }
.promise svg { color: var(--gold); flex: none; margin-top: 3px; }
.howto { color: var(--muted); }
.howto svg { flex: none; margin-top: 3px; }

.p-details { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.p-details h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.p-details h2:not(:first-child) { margin-top: 22px; }
.prose { color: #dcd6ea; }
.prose h2 { font-size: 22px; font-weight: 600; color: var(--text); margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-inline-start: 22px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 78ch; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); border: 1px solid var(--line); background: rgba(255,255,255,.015); }

/* شريط الشراء الثابت على الجوال */
.sticky-buy {
  position: fixed; z-index: 40; inset-inline: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 18px;
  background: rgba(14,10,24,.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .info { flex: 1; min-width: 0; }
.sticky-buy .info strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .wa-btn { min-height: 46px; background: var(--wa); color: #04140a; border: 0; font-weight: 600; }
@media (min-width: 980px) { .sticky-buy { display: none; } }

/* ---------- التواصل ---------- */
.contact-grid { display: grid; gap: 18px; padding-bottom: 72px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.c-card { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 28px; border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.c-card .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(139,92,246,.14); color: var(--purple-soft); }
.c-card h2 { font-size: 20px; font-weight: 600; }
.c-card.wa { border-color: rgba(37,211,102,.35); background: radial-gradient(400px 200px at 100% 0%, rgba(37,211,102,.14), transparent 70%), var(--surface); }
.c-card.wa .ic { background: rgba(37,211,102,.14); color: var(--wa); }
.c-card .big { font-size: 24px; font-weight: 700; }
.c-card a.lnk { color: var(--gold); font-weight: 500; }

/* ---------- حالة فارغة ---------- */
.empty {
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 64px 24px;
  border-radius: var(--r-l);
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,.015);
}
.empty .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); color: var(--purple-soft); }
.empty h2, .empty h3 { font-size: 22px; font-weight: 600; }
.empty p { color: var(--muted); max-width: 52ch; }

/* ---------- التذييل ---------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,11,25,.4), rgba(8,6,14,1)); }
.site-footer::before { content: ""; position: absolute; top: -1px; inset-inline: 10%; height: 1px; background: var(--grad-brand); opacity: .6; }
.f-grid { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.f-brand { display: grid; gap: 16px; justify-items: start; }
.f-brand img { height: 42px; width: auto; }
.f-brand p { color: var(--muted); font-size: 15px; max-width: 42ch; }
.f-col h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.f-col a:hover { color: var(--gold-soft); }
.f-support li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.f-support svg { flex: none; color: var(--purple-soft); }
.f-bottom { border-top: 1px solid var(--line); padding-block: 20px; font-size: 14px; color: var(--faint); }
.f-bottom .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.f-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.f-bottom a:hover { color: var(--text); }

/* زر واتساب العائم */
.fab-wa {
  position: fixed; z-index: 45; inset-inline-end: 18px; bottom: 18px;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #04140a;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
body.has-sticky-buy .fab-wa { display: none; }
@media (min-width: 980px) { body.has-sticky-buy .fab-wa { display: grid; } }

.to-top {
  position: fixed; z-index: 44; inset-inline-end: 26px; bottom: 90px;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(20,16,33,.85); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body.has-sticky-buy .to-top { bottom: 96px; }

/* تنبيه منبثق */
.toast {
  position: fixed; z-index: 300; left: 50%; top: 20px;
  translate: -50% -140%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  background: rgba(20,16,33,.95); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
  font-weight: 500; font-size: 15px;
  opacity: 0; visibility: hidden;
  transition: translate .4s var(--ease), opacity .3s, visibility .3s;
}
.toast.show { translate: -50% 0; opacity: 1; visibility: visible; }
.toast svg { color: var(--success); }

/* ظهور تدريجي عند التمرير */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.nf { padding-block: 96px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.nf .big { font-size: clamp(110px, 18vw, 180px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--gold); background: linear-gradient(180deg, rgba(231,176,74,.18), transparent); -webkit-background-clip: text; background-clip: text; }
.nf h1 { font-size: 32px; font-weight: 700; }
.nf .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
