/* ============================================================
   InfinityKeys v3 — هوية "من عالم آخر"
   سماوي ↔ بنفسجي من شعار المتجر، خلفية فضاء، كبسولات متوهجة
   ============================================================ */
:root {
  --ik-bg: #07061a;
  --ik-bg2: #0c0a24;
  --ik-card: #14122c;
  --ik-card2: #1a1736;
  --ik-line: rgba(167, 139, 250, 0.22);
  --ik-line-strong: rgba(167, 139, 250, 0.5);
  --ik-cyan: #22d3ee;
  --ik-blue: #3b82f6;
  --ik-vio: #8b5cf6;
  --ik-lav: #c4b5fd;
  --ik-pink: #f472b6;
  --ik-grad: linear-gradient(100deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --ik-text: #f4f2ff;
  --ik-muted: #a7a3c7;
  --ik-faint: #6f6b93;
  --ik-r: 24px;
  --ik-wrap: 1240px;

  /* إعادة توجيه متغيرات الثيم القديم للهوية الجديدة */
  --primary: #8b5cf6;
  --primary-strong: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --vio: #8b5cf6;
  --text: #f4f2ff;
  --text-muted: #a7a3c7;
  --text-faint: #6f6b93;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.35);
  --bg-elevated: #14122c;
  --font-heading: 'Changa', 'Cairo', system-ui, sans-serif;
}

html:has(body.v3) { overflow-x: clip; }
body.v3 {
  background: var(--ik-bg);
  color: var(--ik-text);
  overflow-x: clip;
}
body.v3 main { overflow-x: clip; }
body.v3 main { position: relative; z-index: 1; }

/* ---------- خلفية الفضاء ---------- */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #1a1250 0%, var(--ik-bg) 55%) fixed; }
.space-stars { position: absolute; inset: -50%; background-repeat: repeat; }
.space-stars.s1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 200px, #c4b5fd 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 260px, #67e8f9 50%, transparent 51%);
  background-size: 380px 300px; opacity: .55;
  animation: drift 160s linear infinite;
}
.space-stars.s2 {
  background-image:
    radial-gradient(1px 1px at 60px 120px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 160px, rgba(196,181,253,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 420px 300px, rgba(255,255,255,.5) 50%, transparent 51%);
  background-size: 520px 420px; opacity: .45;
  animation: drift 240s linear infinite reverse;
}
@keyframes drift { to { transform: translate3d(-380px, -300px, 0); } }
.space-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35; }
.space-glow.g1 { width: 560px; height: 560px; background: #7c3aed; top: 20%; inset-inline-end: -180px; }
.space-glow.g2 { width: 460px; height: 460px; background: #0891b2; top: 60%; inset-inline-start: -160px; opacity: .22; }
.shooting-star {
  position: absolute; top: 18%; left: 78%; width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(-28deg); opacity: 0;
  animation: shoot 9s ease-in 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  3% { opacity: 1; }
  10% { opacity: 0; transform: rotate(-28deg) translateX(-420px); }
  100% { opacity: 0; }
}
.space #bgCanvas { position: absolute; inset: 0; opacity: .35; }

/* ---------- الهيدر الكبسولة ---------- */
body.v3 .navbar.v3-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: transparent !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 14px 16px 0;
}
.nav-capsule {
  max-width: var(--ik-wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(20, 18, 44, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ik-line);
  box-shadow: 0 0 0 1px rgba(34,211,238,.05) inset, 0 10px 40px rgba(4, 2, 20, .5), 0 0 30px rgba(139,92,246,.15);
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled .nav-capsule { background: rgba(14, 12, 34, 0.85); box-shadow: 0 10px 40px rgba(4,2,20,.7), 0 0 34px rgba(139,92,246,.25); }
.nav-burger { flex-shrink: 0; }
.v3-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; direction: ltr; }
.v3-logo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(139,92,246,.55)); }
.v3-logo b { background: var(--ik-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3-links { display: flex; gap: 4px; margin-inline-start: 8px; }
.v3-links a {
  color: var(--ik-muted); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s;
}
.v3-links a:hover { color: #fff; }
.v3-links a.active { color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.v3-nav .nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.v3-nav .btn-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  display: inline-grid; place-items: center; color: #fff; position: relative;
}
.v3-nav .btn-icon:hover { border-color: var(--ik-line-strong); background: rgba(139,92,246,.14); }
.v3-nav .badge-count { background: var(--ik-cyan); color: #04121a; }
@media (max-width: 980px) { .v3-links { display: none; } }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .nav-capsule { gap: 8px; padding: 8px 10px; }
  .v3-nav .btn-icon { width: 40px; height: 40px; }
  .v3-logo { font-size: 1.05rem; }
  .v3-logo img { width: 32px; height: 32px; }
}
@media (max-width: 400px) { .v3-nav .v3-logo span { display: none; } }

/* ---------- أزرار ---------- */
.v3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.08rem;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .25s, filter .2s;
}
.v3-btn:hover { transform: translateY(-2px); }
.v3-btn:active { transform: translateY(0) scale(.98); }
.v3-btn.primary { background: var(--ik-grad); color: #fff; box-shadow: 0 8px 30px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255,255,255,.3); }
.v3-btn.primary:hover { box-shadow: 0 12px 40px rgba(99, 102, 241, .6), 0 0 0 4px rgba(139,92,246,.18); }
.v3-btn.cyan { background: linear-gradient(100deg, #22d3ee, #3b82f6); color: #031018; box-shadow: 0 8px 30px rgba(34,211,238,.35); }
.v3-btn.ghost { background: rgba(255,255,255,.04); color: #fff; box-shadow: inset 0 0 0 1px var(--ik-line-strong); }
.v3-btn.ghost:hover { background: rgba(139,92,246,.14); }
.v3-btn.light { background: #fff; color: #120f2e; }
.v3-btn.sm { padding: 10px 20px; font-size: .95rem; }
.v3-btn.block { width: 100%; }
.v3-btn .arr { font-size: .9em; }
/* أزرار الثيم القديم داخل المودالات والسلة */
body.v3 .btn-primary, body.v3 .btn-buy { background: var(--ik-grad); color: #fff; border-radius: 999px; }
body.v3 .btn-primary:hover, body.v3 .btn-buy:hover { filter: brightness(1.1); background: var(--ik-grad); }

/* ---------- الهيرو ---------- */
.v3-hero { position: relative; text-align: center; padding: 34px 16px 0; max-width: var(--ik-wrap); margin-inline: auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px;
  background: rgba(20, 18, 44, .7); border: 1px solid var(--ik-line);
  font-weight: 800; font-size: 1rem; color: #fff; position: relative;
}
.hero-pill::before, .hero-pill::after {
  content: ''; position: absolute; top: 50%; width: 70px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ik-line-strong));
}
.hero-pill::before { inset-inline-end: calc(100% + 14px); }
.hero-pill::after { inset-inline-start: calc(100% + 14px); transform: scaleX(-1); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ik-pink); box-shadow: 0 0 0 4px rgba(244,114,182,.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(244,114,182,0); } }
.hero-title { margin: 18px 0 6px; line-height: 1; font-family: var(--font-heading); }
.hero-title .grad {
  display: block; font-size: clamp(3.6rem, 11vw, 8.4rem); font-weight: 800;
  background: var(--ik-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 40px rgba(99,102,241,.45));
  padding-bottom: .08em;
}
.hero-title .sub { display: block; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; margin-top: 4px; }
.hero-lead { color: var(--ik-muted); font-size: 1.05rem; margin: 12px 0 0; }
.hero-lead b { color: #fff; letter-spacing: 1px; }

.hero-stage { position: relative; height: clamp(320px, 46vw, 560px); margin-top: 10px; }
.orbit { position: absolute; inset: 6% 2% auto; width: 96%; height: 75%; overflow: visible; }
.orbit-dot { fill: var(--ik-cyan); filter: drop-shadow(0 0 8px var(--ik-cyan)); }
.orbit-dot.v { fill: var(--ik-vio); filter: drop-shadow(0 0 8px var(--ik-vio)); }
.mascot {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 100%; width: auto; max-width: 92%; object-fit: contain; z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(99, 102, 241, .45));
}
.orbit-chip {
  position: absolute; z-index: 3; width: clamp(56px, 7vw, 92px); aspect-ratio: 1; border-radius: 24%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  animation: bob 5s ease-in-out infinite;
}
.orbit-chip svg { width: 46%; height: 46%; }
.orbit-chip.c1 { top: 8%; inset-inline-end: 22%; background: linear-gradient(145deg, #8b5cf6, #5b21b6); box-shadow: 0 10px 40px rgba(139,92,246,.6); transform: rotate(-8deg); }
.orbit-chip.c2 { top: 6%; inset-inline-start: 22%; background: linear-gradient(145deg, #22d3ee, #0e7490); box-shadow: 0 10px 40px rgba(34,211,238,.55); animation-delay: -1.5s; }
.orbit-chip.c3 { top: 52%; inset-inline-end: 6%; background: linear-gradient(145deg, #f472b6, #9d174d); box-shadow: 0 10px 40px rgba(244,114,182,.5); animation-delay: -3s; }
.orbit-chip.c4 { top: 50%; inset-inline-start: 7%; background: linear-gradient(145deg, #3b82f6, #1e3a8a); box-shadow: 0 10px 40px rgba(59,130,246,.55); animation-delay: -2.2s; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero-wave {
  position: absolute; inset: auto -50vw 0; height: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(139,92,246,.3), transparent 70%);
}

.trust-bar {
  position: relative; z-index: 4; margin: -40px auto 0; max-width: 1140px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px; border-radius: 999px;
  background: linear-gradient(100deg, rgba(34, 18, 80, .9), rgba(20, 18, 44, .9));
  border: 1px solid var(--ik-line-strong);
  box-shadow: 0 20px 60px rgba(4,2,20,.6), 0 0 40px rgba(139,92,246,.25);
  backdrop-filter: blur(16px);
}
.tb-cta { display: flex; gap: 10px; }
.tb-proof { display: flex; align-items: center; gap: 16px; padding-inline: 14px; color: var(--ik-muted); font-size: .92rem; }
.tb-sep { width: 1px; height: 30px; background: var(--ik-line); }
.tb-rate { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.tb-rate svg { width: 18px; height: 18px; color: var(--ik-cyan); }
@media (max-width: 760px) {
  .trust-bar { border-radius: 26px; margin-top: -20px; flex-direction: column; align-items: stretch; }
  .tb-cta { flex-direction: column; }
  .tb-cta .v3-btn { width: 100%; }
  .tb-proof { justify-content: center; flex-wrap: wrap; padding: 4px 0; gap: 10px; }
  .tb-sep { display: none; }
  .orbit-chip.c3, .orbit-chip.c4 { top: 60%; }
}
.v3-search { max-width: 720px; margin-top: 28px; padding-inline: 0; }
body.v3 .search-glass {
  background: rgba(20, 18, 44, .7); border: 1px solid var(--ik-line); border-radius: 999px;
}
body.v3 .search-glass:focus-within { border-color: var(--ik-vio); box-shadow: 0 0 0 4px rgba(139,92,246,.2); }

/* ---------- الشرائط المائلة ---------- */
.ribbons { position: relative; height: 180px; margin: 70px 0 20px; overflow: hidden; }
.ribbon-row { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: 14px 0; }
.ribbon-row.r-vio { background: linear-gradient(90deg, #a78bfa, #8b5cf6); color: #160b36; transform: translateY(-50%) rotate(-3deg); }
.ribbon-row.r-cyan { background: linear-gradient(90deg, #22d3ee, #3b82f6); color: #021019; transform: translateY(-50%) rotate(2.5deg); box-shadow: 0 10px 40px rgba(34,211,238,.25); }
.ribbon-track { display: flex; gap: 26px; width: max-content; animation: marq 40s linear infinite; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.ribbon-track.rev { animation-direction: reverse; animation-duration: 46s; }
.ribbon-track i { font-style: normal; opacity: .7; }
@keyframes marq { to { transform: translateX(50%); } }
@media (max-width: 640px) { .ribbons { height: 140px; margin-top: 40px; } .ribbon-track { font-size: 1rem; } }

/* ---------- عناوين الأقسام ---------- */
.v3-sec { max-width: var(--ik-wrap); margin: 0 auto; padding: 70px 16px 10px; position: relative; }
.v3-head { text-align: center; margin-bottom: 40px; }
.v3-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: start; flex-wrap: wrap; }
.v3-head .eyebrow { display: inline-block; color: var(--ik-cyan); font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.v3-head h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0; color: #fff; }
.v3-head p { color: var(--ik-muted); margin: 12px 0 0; }

/* ---------- البكجات (كروت التذكرة) ---------- */
.packs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .packs-grid { grid-template-columns: 1fr; } }
.pack-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 28px; padding: 20px; overflow: visible;
  background: linear-gradient(150deg, #241a52, #15122e 60%);
  border: 1px solid var(--ik-line-strong);
}
.pack-card.cyan { background: linear-gradient(150deg, #0e2a44, #121530 60%); border-color: rgba(34,211,238,.4); }
.pack-card .notch { position: absolute; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--ik-bg); border: 1px solid inherit; transform: translateX(-50%); }
.pack-card .notch.top { top: -11px; } .pack-card .notch.bottom { bottom: -11px; }
.pack-card::after { content: ''; position: absolute; left: 50%; top: 18px; bottom: 18px; border-left: 2px dashed rgba(255,255,255,.12); }
.pack-art { position: relative; border-radius: 20px; overflow: hidden; min-height: 240px; margin-inline-end: 18px; display: grid; place-items: end start; }
.pack-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack-art .art-title { position: relative; padding: 14px; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: #fff; }
.pack-save { position: absolute; top: 12px; inset-inline-end: 12px; background: #ef4444; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .9rem; box-shadow: 0 6px 20px rgba(239,68,68,.45); }
.pack-body { padding: 8px 18px 8px 4px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.pack-body h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; line-height: 1.25; margin: 0; color: #fff; }
.pack-rate { color: var(--ik-muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.pack-rate b { color: #fff; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.pack-price { display: flex; align-items: baseline; gap: 10px; }
.pack-price .now { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: #fff; }
.pack-price .was { color: var(--ik-faint); text-decoration: line-through; }
@media (max-width: 560px) {
  .pack-card { grid-template-columns: 1fr; }
  .pack-card::after, .pack-card .notch { display: none; }
  .pack-art { margin: 0 0 14px; min-height: 190px; }
  .pack-body { padding: 0 4px 6px; }
}

/* ---------- الأقسام (كروت الأيقونات) ---------- */
body.v3 .v3-cats { grid-template-columns: repeat(4, 1fr); gap: 18px; }
body.v3 .v3-cat {
  min-height: 230px; padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  background: radial-gradient(90% 70% at 50% 25%, rgba(139,92,246,.18), transparent 70%), var(--ik-card);
  border: 1px solid var(--ik-line); border-radius: var(--ik-r);
}
body.v3 .v3-cat.big { grid-column: span 2; grid-row: span 1; }
body.v3 .v3-cat.tone-1 { background: radial-gradient(90% 70% at 50% 25%, rgba(34,211,238,.16), transparent 70%), var(--ik-card); }
body.v3 .v3-cat.tone-2 { background: radial-gradient(90% 70% at 50% 25%, rgba(244,114,182,.14), transparent 70%), var(--ik-card); }
body.v3 .v3-cat:hover { border-color: var(--ik-line-strong); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(139,92,246,.2); }
.v3-cat-ic {
  width: 92px; height: 92px; border-radius: 28px; margin-bottom: auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #a78bfa, #6d28d9);
  box-shadow: 0 14px 40px rgba(139,92,246,.5), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.25);
  transform: rotate(-6deg); transition: transform .35s var(--ease);
}
.tone-1 .v3-cat-ic { background: linear-gradient(145deg, #67e8f9, #0e7490); box-shadow: 0 14px 40px rgba(34,211,238,.45), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.25); }
.tone-2 .v3-cat-ic { background: linear-gradient(145deg, #f9a8d4, #be185d); box-shadow: 0 14px 40px rgba(244,114,182,.4), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.25); }
.v3-cat:hover .v3-cat-ic { transform: rotate(0) scale(1.06); }
.v3-cat-ic svg { width: 46%; height: 46%; }
.v3-cat-kicker { color: var(--ik-lav); font-size: .78rem; font-weight: 700; margin-top: 18px; letter-spacing: .5px; }
.v3-cat-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff; line-height: 1.2; }
.v3-cat.big .v3-cat-name { font-size: 2rem; background: var(--ik-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3-cat-count { color: var(--ik-faint); font-size: .82rem; }
.v3-cat-arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ik-lav); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); opacity: 0; transition: opacity .25s; }
.v3-cat:hover .v3-cat-arrow { opacity: 1; }
@media (max-width: 900px) { body.v3 .v3-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { body.v3 .v3-cat { min-height: 190px; padding: 20px 12px; } .v3-cat-ic { width: 72px; height: 72px; border-radius: 22px; } .v3-cat-name { font-size: 1.2rem; } body.v3 .v3-cat.big .v3-cat-name { font-size: 1.5rem; } }

/* ---------- كروت المنتجات ---------- */
body.v3 .card {
  background: var(--ik-card); border: 1px solid var(--ik-line); border-radius: var(--ik-r);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
body.v3 .card:hover { border-color: var(--ik-line-strong); box-shadow: 0 20px 50px rgba(139,92,246,.22); }
body.v3 .card-art { border-radius: 18px; margin: 10px 10px 0; }
body.v3 .card-name { color: #fff; font-family: var(--font-heading); font-weight: 700; }
body.v3 .card .price .now, body.v3 .trend-card .t-price { color: var(--ik-cyan); font-family: var(--font-heading); font-weight: 800; }
body.v3 .card .price .was { color: var(--ik-faint); }
body.v3 .btn-add { background: var(--ik-grad); color: #fff; border-radius: 12px; border: 0; }
body.v3 .btn-add:hover { background: var(--ik-grad); filter: brightness(1.15); box-shadow: 0 6px 24px rgba(99,102,241,.5); }
body.v3 .ribbon { background: #ef4444; }
body.v3 .ribbon.new { background: var(--ik-cyan); color: #031018; }
body.v3 .trend-card { background: var(--ik-card); border: 1px solid var(--ik-line); border-radius: var(--ik-r); }
body.v3 .trend-card:hover { border-color: var(--ik-line-strong); }
body.v3 .trend-card .t-demand { color: var(--ik-lav); }
body.v3 .cat-chip { border-radius: 999px; background: rgba(255,255,255,.03); border-color: var(--ik-line); }
body.v3 .cat-chip.active { background: var(--ik-grad); color: #fff; border-color: transparent; }
body.v3 .car-btn { border-radius: 50%; border-color: var(--ik-line); background: var(--ik-card); }
body.v3 select { background-color: var(--ik-card); border-color: var(--ik-line); border-radius: 14px; }

/* صفقة اليوم */
body.v3 .deal-banner { border-radius: 30px; border: 1px solid var(--ik-line-strong); background: linear-gradient(130deg, #241a52, #0e2238); }

/* ---------- الأسئلة الشائعة: شبكة مرقّمة ---------- */
body.v3 .v3-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1060px; margin-inline: auto; align-items: start; }
@media (max-width: 800px) { body.v3 .v3-faq { grid-template-columns: 1fr; } }
body.v3 .v3-faq .faq-item { background: var(--ik-card); border: 1px solid var(--ik-line); border-radius: 20px; }
body.v3 .v3-faq .faq-item.open { border-color: var(--ik-line-strong); }
body.v3 .v3-faq .faq-btn { display: flex; align-items: center; gap: 14px; font-weight: 800; color: #fff; font-size: 1.02rem; }
.faq-num { flex-shrink: 0; padding: 4px 9px; border-radius: 8px; font-size: .78rem; font-weight: 800; color: var(--ik-cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); font-family: var(--font-heading); }
body.v3 .v3-faq .faq-icon { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); flex-shrink: 0; }
body.v3 .faq-item.open .faq-icon { color: var(--ik-cyan); }

/* ---------- آراء العملاء ---------- */
body.v3 .reviews-grid > * { background: var(--ik-card); border: 1px solid var(--ik-line); border-radius: 22px; }

/* ---------- المجتمع ---------- */
.community { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; padding-bottom: 70px; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }
.com-card { position: relative; overflow: hidden; border-radius: 30px; padding: 40px; min-height: 380px; display: flex; flex-direction: column; }
.com-card h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 14px 0 12px; color: #fff; }
.com-card p { color: rgba(255,255,255,.75); margin: 0 0 24px; max-width: 420px; line-height: 1.8; }
.com-card .v3-btn { align-self: flex-start; }
.com-card.discord { background: radial-gradient(70% 90% at 15% 80%, rgba(88,101,242,.55), transparent 70%), linear-gradient(140deg, #2b2470, #171447); border: 1px solid rgba(129,140,248,.35); }
.com-text { position: relative; z-index: 2; max-width: 56%; }
.com-badge { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 800; font-size: .88rem; }
.com-mascot { position: absolute; bottom: -10px; inset-inline-end: -20px; height: 92%; width: auto; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.com-card.partner { background: radial-gradient(80% 60% at 80% 0%, rgba(34,211,238,.25), transparent 70%), #0f1a2e; border: 1px solid rgba(34,211,238,.3); justify-content: flex-end; }
.com-icon { position: absolute; top: 30px; inset-inline-end: 30px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #22d3ee, #0e7490); color: #fff; box-shadow: 0 10px 30px rgba(34,211,238,.45); }
.com-icon svg { width: 30px; height: 30px; }
@media (max-width: 640px) {
  .com-card { padding: 28px 22px; min-height: 0; }
  .com-text { max-width: 100%; }
  .com-mascot { position: relative; inset: auto; height: auto; width: 80%; margin: 20px auto -30px; display: block; }
}

/* ---------- الفوتر ---------- */
body.v3 .v3-footer { position: relative; z-index: 1; background: linear-gradient(180deg, transparent, rgba(20,16,50,.7)); border-top: 1px solid var(--ik-line); }
body.v3 .footer-wordmark { display: none; }
.foot-discord { display: inline-block; margin-top: 14px; color: var(--ik-lav); font-weight: 700; text-decoration: none; }
.foot-discord:hover { color: #fff; }

/* ---------- القائمة الجانبية ---------- */
.side-overlay { position: fixed; inset: 0; background: rgba(3,2,12,.6); backdrop-filter: blur(4px); z-index: 250; opacity: 0; pointer-events: none; transition: opacity .3s; }
.side-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu {
  position: fixed; top: 12px; bottom: 12px; inset-inline-start: 12px; z-index: 260;
  width: min(400px, calc(100vw - 24px)); padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #17133a, #0d0b22); border: 1px solid var(--ik-line); border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateX(calc(100% + 24px)); transition: transform .4s var(--ease);
}
[dir="ltr"] .side-menu { transform: translateX(calc(-100% - 24px)); }
.side-menu.open { transform: none; }
.sm-head { display: flex; align-items: center; justify-content: space-between; }
.sm-head .btn-icon { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #fff; display: grid; place-items: center; }
.sm-login { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 18px; border: 0; cursor: pointer; background: var(--ik-grad); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; }
.sm-login svg { width: 20px; height: 20px; }
.sm-packs { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(120deg, rgba(34,211,238,.25), rgba(139,92,246,.25)); border: 1px solid rgba(34,211,238,.35); }
.sm-packs b { display: block; font-size: 1.1rem; }
.sm-packs small { color: var(--ik-muted); }
.sm-packs-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #0b0920; color: var(--ik-cyan); flex-shrink: 0; }
.sm-packs-ic svg { width: 22px; height: 22px; }
.sm-packs .chev { margin-inline-start: auto; font-size: 1.6rem; color: var(--ik-lav); }
.sm-label { color: var(--ik-faint); font-size: .85rem; margin: 6px 0 0; }
.sm-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-cat { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; cursor: pointer; text-align: start; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); color: #fff; font-family: inherit; }
.sm-cat:hover { border-color: var(--ik-line-strong); }
.sm-cat small { display: block; color: var(--ik-faint); font-size: .68rem; }
.sm-cat b { font-size: .92rem; line-height: 1.3; }
.sm-cat-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #a78bfa, #6d28d9); color: #fff; }
.sm-cat:nth-child(3n+2) .sm-cat-ic { background: linear-gradient(145deg, #67e8f9, #0e7490); }
.sm-cat-ic svg { width: 20px; height: 20px; }
.sm-toggles { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ik-muted); font-size: .88rem; padding: 6px 2px; }
.sm-tg-row { display: flex; gap: 8px; }
.sm-tg-row .seg-toggle { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 700; cursor: pointer; }
.sm-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-foot a { padding: 14px; border-radius: 16px; text-align: center; font-weight: 800; text-decoration: none; color: #fff; }
.sm-discord { background: #5865f2; }
.sm-seller { background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.35); }

/* ---------- عناصر مشتركة ---------- */
body.v3 .back-top { background: var(--ik-card); border: 1px solid var(--ik-line); border-radius: 50%; }
body.v3 .scroll-progress { background: var(--ik-grad); }
body.v3 .drawer, body.v3 .modal { background: #110f28; border-color: var(--ik-line); }
body.v3 .cursor-glow { background: radial-gradient(circle, rgba(139,92,246,.12), transparent 60%); }

@media (prefers-reduced-motion: reduce) {
  .space-stars, .shooting-star, .orbit-chip, .ribbon-track, .live-dot { animation: none !important; }
}
