@font-face { font-family: "Cairo"; src: url("fonts/cairo-arabic.woff2") format("woff2"); font-weight: 200 1000; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/cairo-latin.woff2") format("woff2"); font-weight: 200 1000; unicode-range: U+0000-00FF, U+2000-206F, U+20C0-20CF; font-display: swap; }
:root { --ink: #0f172a; --muted: #64748b; --line: #e5e7f0; --bg: #f7f7fb; --panel: #fff; --brand: #4338ca; --brand-2: #6d28d9;
  --brand-soft: #eef0ff; --gold: #c9952b; --ok: #059669; --bad: #e11d48; --warn: #d97706; --r: 18px;
  --sh: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06); --sh-lg: 0 18px 50px rgba(30,27,75,.14); }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Cairo", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.65; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sar { width: .82em; height: .92em; vertical-align: -.08em; } .amt { display: inline-flex; align-items: center; gap: .28em; white-space: nowrap; direction: rtl; }
.ic { width: 20px; height: 20px; stroke-width: 1.9; }

/* الترويسة */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.logo .m { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #1e1b4b; background: linear-gradient(135deg, #fde68a, var(--gold)); box-shadow: 0 6px 16px rgba(201,149,43,.35); }
.srch { flex: 1; max-width: 520px; position: relative; }
.srch input { width: 100%; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: #f8f9fc; padding: 0 44px 0 14px; font: inherit; outline: none; transition: .2s; }
.srch input:focus { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.srch .ic { position: absolute; right: 14px; top: 12px; color: var(--muted); }
.hdr nav { display: flex; gap: 6px; margin-inline-start: auto; align-items: center; }
.hbtn { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 700; transition: background .2s; }
.hbtn:hover { background: var(--brand-soft); color: var(--brand); }
.hbtn .badge { position: absolute; top: 4px; left: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff;
  font-size: 11.5px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.hbtn .badge.bump { transform: scale(1.45); }
.hbtn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(67,56,202,.3); }
.hbtn.primary:hover { color: #fff; filter: brightness(1.08); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px rgba(67,56,202,.28);
  transition: transform .15s, box-shadow .25s, filter .2s; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 14px 30px rgba(67,56,202,.36); }
.btn:active { transform: scale(.96); }
.btn.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.block { width: 100%; } .btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.gold { background: linear-gradient(135deg, #fde68a, var(--gold)); color: #1e1b4b; box-shadow: 0 10px 24px rgba(201,149,43,.3); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { pointer-events: none; color: transparent; position: relative; }
.btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* البطل */
.hero { position: relative; overflow: hidden; border-radius: 28px; margin: 24px 0; color: #fff; padding: 56px; min-height: 340px; display: grid; align-items: center;
  background: radial-gradient(700px 400px at 100% 0%, rgba(167,139,250,.55), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(59,130,246,.45), transparent 60%),
              linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95); box-shadow: var(--sh-lg); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); opacity: .5; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 12px; line-height: 1.2; font-weight: 900; max-width: 640px; position: relative; z-index: 1; }
.hero p { color: #c7d2fe; font-size: 17px; max-width: 560px; margin: 0 0 24px; position: relative; z-index: 1; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.bnpl-strip { display: flex; gap: 10px; align-items: center; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; color: #e0e7ff; font-size: 14px; }
.bnpl-strip img { height: 30px; border-radius: 8px; }

/* شارات الدفع */
.paylogos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.paylogos span { height: 34px; padding: 4px 9px; background: #fff; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; }
.paylogos img { height: 20px; width: auto; }

/* الأقسام والبطاقات */
.sec { margin: 36px 0; } .sec-h { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.sec-h h2 { margin: 0; font-size: 24px; font-weight: 900; } .sec-h a { color: var(--brand); font-weight: 700; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.chip { flex: none; padding: 10px 18px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; transition: .2s; }
.chip:hover, .chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pcard { position: relative; background: var(--panel); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); animation: rise .6s forwards; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
@keyframes rise { to { opacity: 1; transform: none; } }
.pcard .img { aspect-ratio: 1; background: linear-gradient(135deg, #f1f2fb, #e9e8fb); display: grid; place-items: center; overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .pcard:hover .img img { transform: scale(1.06); }
.pcard .img .ph { color: #a5b4fc; } .pcard .img .ph .ic { width: 56px; height: 56px; }
.pcard .tag { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: var(--bad); }
.pcard .tag.out { background: #475569; }
.pcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 19px; font-weight: 900; color: var(--ink); } .price s { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-inline-start: 6px; }
.split { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .split img { height: 16px; border-radius: 4px; }
.pcard .add { margin-top: auto; }

/* عام */
.card { background: var(--panel); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); padding: 22px; }
.flashes { margin: 16px 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; animation: rise .4s forwards; opacity: 0; }
.flash.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; } .flash.error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: #111827; color: #fff; padding: 12px 20px; border-radius: 14px;
  box-shadow: var(--sh-lg); opacity: 0; transition: .35s cubic-bezier(.2,1.2,.4,1); z-index: 99; display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
input, select, textarea { font: inherit; }
.fld { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.fld input, .fld select, .fld textarea { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; background: #fff; outline: none; font-weight: 500; transition: .2s; }
.fld textarea { height: 90px; padding: 10px 14px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.muted { color: var(--muted); } .b-ok { background: #d1fae5; color: #065f46; } .b-bad { background: #ffe4e6; color: #9f1239; } .b-n { background: #f1f5f9; color: #334155; }
.b-warn { background: #fef3c7; color: #92400e; } .b-info { background: #e0e7ff; color: #3730a3; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; } th { color: var(--muted); font-size: 13px; }

.ftr { margin-top: 60px; background: #0c0a25; color: #c7d2fe; padding: 40px 0 26px; }
.ftr .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; } .ftr h4 { color: #fff; margin: 0 0 10px; }
.ftr a { display: block; padding: 3px 0; color: #c7d2fe; } .ftr a:hover { color: #fff; }
.ftr .bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .hdr .wrap { height: auto; flex-wrap: wrap; padding: 10px 16px; } .srch { order: 3; max-width: none; flex-basis: 100%; }
  .hbtn .lbl { display: none; } .hero { padding: 32px 22px; } .ftr .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
