/* Apex Store — الرئيسية وصفحة السكربتات */

/* الهيرو */
.hero { padding: 48px clamp(16px,6vw,72px) 8px; }
.hero-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,64px); align-items: center; }
.hero-text > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .05s; } .hero-text > :nth-child(3) { animation-delay: .1s; } .hero-text > :nth-child(4) { animation-delay: .15s; } .hero-text > :nth-child(5) { animation-delay: .2s; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; margin-bottom: 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #d2dae6; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; direction: ltr; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--s); box-shadow: 0 0 10px var(--s); }
.hero h1 { font-size: clamp(40px, 5vw, 70px); font-weight: 900; line-height: 1.15; text-wrap: balance; }
.hero .sub { color: #bcc6d4; font-size: clamp(18px,2vw,21px); line-height: 1.7; margin: 12px 0 20px; max-width: 580px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; max-width: 520px; }
.hs { padding: 14px 16px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--hair); }
.hs b { display: block; font-size: 30px; font-weight: 900; line-height: 1; }
.hs span { font-size: 15px; color: var(--muted); font-weight: 700; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; animation: rise .8s .1s both; }
.hero-art .glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.28), transparent 62%); }
.hero-art .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(125,211,252,.22); animation: spin 70s linear infinite; }
.hero-art .ring::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--s); box-shadow: 0 0 12px 2px var(--s); }
.hero-art img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; box-shadow: 0 30px 80px -30px rgba(56,189,248,.6); }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 15px; background: #0c111b; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); white-space: nowrap; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--ink); background: linear-gradient(135deg, var(--a,#38bdf8), var(--b,#a5f3fc)); }
.float-chip small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--a, var(--s)); direction: ltr; text-align: start; }
.float-chip b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.fc1 { top: 10%; inset-inline-end: -2%; }
.fc2 { top: 50%; inset-inline-start: -6%; --a: #34d399; --b: #a7f3d0; }
.fc3 { bottom: 8%; inset-inline-end: 4%; --a: #fbbf24; --b: #fde68a; }

/* التصنيفات */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cat { min-width: 96px; padding: 0 14px; white-space: nowrap; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; background: var(--card); border: 1px solid rgba(255,255,255,.06); font-weight: 700; font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.cat .ic { font-size: 24px; color: #cdd6e3; display: grid; transition: color .2s; }
.cat .ic svg { stroke-width: 1.7; }
.cat:hover { color: var(--fg); }
.cat:hover .ic { color: var(--s); }

/* شبكة السكربتات */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--hair); transition: transform .25s, border-color .25s, box-shadow .25s; animation: rise .4s ease both; }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; direction: ltr;
  background: radial-gradient(70% 120% at 85% 120%, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%), radial-gradient(60% 90% at 0% 0%, rgba(10,108,255,.35), transparent 60%), linear-gradient(135deg, #0a1730, #04070e); }
.cover::before { content: ''; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cv-ic { position: absolute; right: 6%; top: 50%; translate: 0 -50%; font-size: 118px; color: var(--c); opacity: .9; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 70%, transparent)); transition: transform .4s; }
.cv-ic svg { stroke-width: 1.4; }
.cv-txt { position: absolute; left: 7%; top: 50%; translate: 0 -50%; max-width: 58%; }
.cv-txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .34em; color: var(--s2); }
.cv-txt b { display: block; font-size: clamp(20px, 2.1vw, 26px); font-weight: 900; line-height: 1.05; letter-spacing: .03em; color: #fff; text-transform: uppercase; word-break: break-word; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.cv-txt i { display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 10px; background: var(--grad); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 2px 11px; border-radius: 8px; font-size: 13px; font-weight: 900; direction: rtl; }
.badge.free { background: rgba(52,211,153,.16); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }
.badge.new { background: rgba(56,189,248,.16); color: var(--s2); border: 1px solid rgba(56,189,248,.35); }
.badge.hot { background: rgba(251,191,36,.15); color: #fcd34d; border: 1px solid rgba(251,191,36,.35); }
.card-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-b h3 { font-size: 19px; font-weight: 900; line-height: 1.3; cursor: pointer; }
.card-b h3:hover { color: var(--s2); }
.card-b p { color: var(--muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-f { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-size: 22px; font-weight: 900; color: var(--s); direction: ltr; margin-inline-end: auto; }
.price.free { color: var(--ok); }
.price small { font-size: 14px; color: var(--dim); font-weight: 700; }

/* صفحة السكربتات */
.page-h { padding: 54px clamp(16px,6vw,72px) 10px; }
.page-h .in { display: flex; flex-direction: column; gap: 6px; }
.page-h h1 { font-size: clamp(32px,4vw,48px); font-weight: 900; line-height: 1.2; }
.page-h p { color: var(--muted); font-size: 18px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 24px 0 22px; }
.filters .search { flex: 1; min-width: 220px; }
.filters select.inp { width: 190px; }
.count { color: var(--dim); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.empty { text-align: center; padding: 60px 10px; color: var(--dim); font-weight: 700; border: 1px dashed var(--line); border-radius: 18px; }
.empty svg { font-size: 34px; margin-bottom: 8px; color: var(--muted); }

/* تفاصيل السكربت */
.pd { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.pd .cover { border-radius: 14px; cursor: default; }
.pd-info h3 { font-size: 24px; font-weight: 900; line-height: 1.25; margin-bottom: 8px; }
.pd-info > p { color: #c2cbd8; font-size: 16.5px; line-height: 1.7; margin: 10px 0; }
.pd-feat { list-style: none; display: grid; gap: 7px; margin: 14px 0 0; }
.pd-feat li { display: flex; gap: 9px; align-items: flex-start; font-size: 15.5px; color: var(--muted); font-weight: 700; }
.pd-feat svg { color: var(--s); margin-top: 5px; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pd-meta div { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.pd-meta small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 800; }
.pd-meta b { font-size: 16px; font-weight: 800; }
.pd-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pd-note { margin-top: 12px; font-size: 14px; color: var(--dim); font-weight: 700; display: flex; gap: 7px; align-items: center; }
.pd-note svg { color: var(--s); }

/* ليش Apex */
.why { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.why .panel { padding: 22px; transition: border-color .25s, transform .25s; }
.why .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: var(--ink); background: var(--grad); margin-bottom: 12px; }
.why h3 { font-size: 20px; font-weight: 900; line-height: 1.25; margin-bottom: 4px; }
.why p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* مدخل لوحة الرخص */
.lic-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 30px; }
.lic-teaser h2 { font-size: clamp(28px,3.4vw,40px); font-weight: 900; line-height: 1.2; margin: 6px 0 10px; }
.lic-teaser > div > p { color: var(--muted); font-size: 17.5px; line-height: 1.7; margin-bottom: 18px; }
.lt-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.lt-list li { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 700; color: #d2dae6; }
.lt-list svg { color: var(--ink); background: var(--s); border-radius: 7px; padding: 3px; font-size: 22px; }
.lt-mock { display: grid; gap: 10px; }
.lt-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; background: rgba(0,0,0,.32); border: 1px solid var(--line); }
.lt-row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); flex-shrink: 0; }
.lt-row b { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
.lt-row small { color: var(--dim); font-size: 13px; font-weight: 700; }
.lt-row .pill-st { margin-inline-start: auto; }

/* الدعوة الأخيرة */
.final { position: relative; overflow: hidden; text-align: center; border-radius: 30px; padding: clamp(50px,8vw,90px) 24px; border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(60% 90% at 50% 120%, rgba(103,232,249,.45), transparent 70%), radial-gradient(50% 80% at 8% 0%, rgba(10,108,255,.5), transparent 70%), linear-gradient(160deg, #0b3a8a, #061a40 60%, #030914); }
.final img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 12px; }
.final h2 { font-size: clamp(30px,4.4vw,56px); font-weight: 900; line-height: 1.2; text-wrap: balance; }
.final p { color: rgba(255,255,255,.85); font-size: clamp(17px,2vw,21px); margin: 10px auto 28px; max-width: 620px; }
.final .cta { justify-content: center; }
.final .btn-dark { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.18); }

@media (max-width: 1080px) { .why { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 960px) {
  .hero-in, .lic-teaser, .pd { grid-template-columns: 1fr; }
  .hero-text { text-align: center; } .cta { justify-content: center; } .hero .sub, .hero-stats { margin-inline: auto; }
  .hero-art { max-width: 380px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .grid, .why { grid-template-columns: minmax(0,1fr); }
  .float-chip { scale: .82; }
  .filters select.inp { width: 100%; }
  .lic-teaser { padding: 20px; }
}
