:root {
  --glass-bg: rgba(255, 255, 255, 0.13);
  --glass-bg-strong: rgba(30, 30, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-hi: rgba(255, 255, 255, 0.55);
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --accent: #ffffff;
  --sale: #ff4d6d;
  --ok: #34d399;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: #000; }
body {
  font-family: "SF Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

/* خلفية ملونة تتغير مع المنتج (تظهر على الشاشات العريضة) */
.ambient {
  position: fixed; inset: -20%;
  background: radial-gradient(circle at 30% 30%, var(--c1, #333), transparent 55%),
              radial-gradient(circle at 70% 70%, var(--c2, #111), transparent 55%);
  filter: blur(80px) saturate(140%);
  opacity: 0.55;
  transition: background 0.8s ease;
}

#app {
  position: relative;
  height: 100dvh;
  width: min(100vw, calc(100dvh * 9 / 16));
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
@media (min-width: 600px) {
  #app { height: calc(100dvh - 32px); width: min(100vw, calc((100dvh - 32px) * 9 / 16)); margin-top: 16px; border-radius: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
}

/* ============ الزجاج ============ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.28);
  position: relative;
}
/* لمعة علوية مثل زجاج iOS */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.04) 32%, transparent 60%, rgba(255,255,255,.1) 100%);
  mix-blend-mode: soft-light;
}

.pill { border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; flex: none; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn:active { transform: scale(0.88); }
.icon-btn:focus-visible, .btn:focus-visible, .feed:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ============ الشريط العلوي ============ */
.topbar {
  position: absolute; z-index: 20; top: 0; inset-inline: 0;
  padding: calc(14px + var(--safe-t)) 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sale); box-shadow: 0 0 10px var(--sale); }
.counter { font-variant-numeric: tabular-nums; font-size: 13px; padding: 8px 14px; direction: ltr; }
.badge {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sale); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(255,77,109,.6);
}
.badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ============ التصنيفات ============ */
.cats {
  position: absolute; z-index: 20; top: calc(70px + var(--safe-t)); inset-inline: 0;
  display: flex; gap: 8px; padding: 4px 14px 14px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: background .25s, color .25s, transform .25s var(--ease);
}
.chip:active { transform: scale(.93); }
.chip i { font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.2); text-align: center; }
.chip[aria-pressed="true"] { background: #fff; color: #0b0b10; border-color: #fff; }
.chip[aria-pressed="true"]::before { display: none; }
.chip[aria-pressed="true"] i { background: rgba(0,0,0,.1); }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ============ الريلز ============ */
.feed {
  position: absolute; inset: 0;
  overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none; outline-offset: -4px;
}
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #0a0a0f; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { /* تدرج لقراءة النص */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 42%, transparent 82%, rgba(0,0,0,.3) 100%);
}
.pause-ind {
  position: absolute; top: 50%; left: 50%; z-index: 3; width: 78px; height: 78px; margin: -39px; border-radius: 50%;
  display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .25s var(--ease); pointer-events: none;
}
.reel.paused .pause-ind { opacity: 1; transform: none; }

/* أزرار جانبية */
.bottom { position: absolute; z-index: 5; inset-inline: 12px; bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.bottom > * { pointer-events: auto; }
.rail { align-self: flex-end; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.rail .icon-btn.on { background: rgba(255, 77, 109, 0.5); }
.rail .icon-btn.on svg { fill: #fff; }
.rail small { font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); margin-top: -8px; font-variant-numeric: tabular-nums; }

/* كارت المنتج */
.card {
  border-radius: var(--r-lg); padding: 16px;
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .55s var(--ease) .12s, transform .65s var(--ease) .12s;
}
.reel.active .card { opacity: 1; transform: none; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card h3 { font-size: 19px; font-weight: 800; line-height: 1.35; }
.card .cat { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.card p { font-size: 13.5px; line-height: 1.65; color: var(--text-2); margin: 6px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.off { flex: none; background: var(--sale); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(255,77,109,.5); white-space: nowrap; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.price b span { font-size: 13px; font-weight: 700; margin-inline-start: 3px; }
.price s { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.btn {
  border-radius: 999px; padding: 13px 20px; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .25s var(--ease), background .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: #fff; color: #0b0b10; box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-primary.added { background: var(--ok); color: #04130c; }
.btn-ghost { background: rgba(255,255,255,.12); border: 1px solid var(--glass-border); }
.btn-block { width: 100%; padding: 15px 20px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* تلميح السحب */
.hint { position: absolute; z-index: 6; top: 54%; inset-inline: 0; text-align: center; pointer-events: none; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); animation: hint 1.6s ease-in-out infinite; transition: opacity .4s; }
.hint.gone { opacity: 0; }
@keyframes hint { 50% { transform: translateY(-12px); } }

/* ============ التوست ============ */
.toast {
  position: absolute; z-index: 60; top: calc(70px + var(--safe-t)); left: 50%;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ الشيت ============ */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .35s; }
.scrim.open { opacity: 1; }
.sheet {
  position: absolute; z-index: 50; inset-inline: 8px; bottom: 8px;
  max-height: calc(100% - 70px - var(--safe-t)); display: flex; flex-direction: column;
  border-radius: 34px; background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
  transform: translateY(110%); transition: transform .5s var(--ease);
  padding-bottom: var(--safe-b);
}
.sheet.open { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 8px; flex: none; }
.sheet-head h2 { flex: 1; font-size: 19px; font-weight: 800; }
.sheet-body { overflow-y: auto; padding: 6px 16px 10px; flex: 1; min-height: 0; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot { padding: 10px 16px 16px; flex: none; }
.sheet-foot:empty { display: none; }

.steps { display: flex; align-items: center; gap: 8px; padding: 2px 18px 10px; font-size: 12.5px; font-weight: 700; color: var(--text-3); flex: none; }
.steps i { flex: 1; height: 2px; border-radius: 1px; background: rgba(255,255,255,.18); }
.steps span.on { color: #fff; }
.steps span.done { color: var(--ok); }

/* عناصر العربة */
.item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.thumb { width: 52px; height: 70px; border-radius: 12px; flex: none; object-fit: cover; background: #222; }
.item-info { flex: 1; min-width: 0; }
.item-info h4 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-info .p { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; direction: ltr; }
.qty button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.qty button:active { background: rgba(255,255,255,.2); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 34px 10px 22px; color: var(--text-2); }
.empty .big { font-size: 46px; margin-bottom: 8px; }
.empty b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }

.promo { display: flex; gap: 8px; margin: 12px 0 4px; }
.promo input { flex: 1; min-width: 0; }
.promo .btn { padding: 0 18px; font-size: 14px; }

.totals { margin-top: 12px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 2px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.totals .grand { color: #fff; font-size: 18px; font-weight: 900; border-top: 1px solid rgba(255,255,255,.16); margin-top: 6px; padding-top: 10px; }
.totals .disc { color: var(--ok); }
.note { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }

/* النماذج */
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
input, select {
  width: 100%; height: 48px; border-radius: 14px; padding: 0 14px; font-size: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); outline: none;
  transition: border-color .2s, background .2s;
}
select { appearance: none; -webkit-appearance: none; }
select option { color: #000; }
input::placeholder { color: var(--text-3); }
input:focus, select:focus { border-color: #fff; background: rgba(255,255,255,.16); }
.field.bad input, .field.bad select { border-color: var(--sale); }
.err { display: none; color: #ff8fa3; font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.field.bad .err { display: block; }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; min-width: 0; }
.ltr { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }

.pay-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 13px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14); margin-bottom: 8px; transition: .2s; }
.pay-opt .ic { font-size: 22px; width: 30px; text-align: center; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { color: var(--text-2); font-size: 12.5px; }
.pay-opt .radio { margin-inline-start: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); flex: none; }
.pay-opt[aria-checked="true"] { border-color: #fff; background: rgba(255,255,255,.16); }
.pay-opt[aria-checked="true"] .radio { border-color: #fff; background: radial-gradient(#fff 45%, transparent 50%); }
.card-form { padding: 6px 0 2px; }

.box { padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; font-size: 14px; line-height: 1.75; }
.box h5 { font-size: 12.5px; color: var(--text-3); font-weight: 700; margin-bottom: 2px; }
.box .line { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }

.success { text-align: center; padding: 18px 6px 6px; }
.check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--ok); box-shadow: 0 0 0 10px rgba(52,211,153,.2), 0 12px 30px rgba(52,211,153,.4); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(0); } }
.success h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.success p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.order-no { display: inline-block; margin: 12px 0; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 800; letter-spacing: 1px; direction: ltr; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ اختيار العملة ============ */
.topbar { gap: 6px; }
.cur { width: 74px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; direction: ltr; text-overflow: clip; background: var(--glass-bg); border: 1px solid var(--glass-border); cursor: pointer; margin-right: auto; }
.cur:focus { background: var(--glass-bg); }

/* ============ صورة المنتج في الكارت ============ */
.card-top { align-items: center; }
.thumb-btn { flex: none; width: 62px; height: 62px; border-radius: 18px; overflow: hidden; padding: 0; border: 1.5px solid rgba(255,255,255,.6); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:active { transform: scale(.92); }
.thumb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card-title { flex: 1; min-width: 0; cursor: pointer; }
.card h3 { font-size: 17.5px; }
.cat { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }

/* ============ صفحة تفاصيل المنتج ============ */
.pd-hero { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 44vh; width: 100%; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.18); background: #111; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero .off { position: absolute; top: 12px; inset-inline-start: 12px; }
.pd-name { font-size: 21px; font-weight: 800; line-height: 1.4; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.pd-price b { font-size: 24px; font-weight: 900; }
.pd-price s { color: var(--text-3); font-size: 15px; }
.pd-desc { font-size: 14.5px; line-height: 1.8; color: var(--text-2); margin-bottom: 12px; }
.pd-list { list-style: none; }
.pd-list li { padding-inline-start: 22px; position: relative; }
.pd-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 900; }
.pd-foot { display: flex; gap: 10px; align-items: center; }
.pd-foot .qty { padding: 6px; }
.pd-foot .qty button { width: 36px; height: 36px; }
.pd-foot .btn { flex: 1; padding: 15px 14px; font-size: 15.5px; }

/* ============ الحساب ============ */
#accBtn.on::after { content: ""; position: absolute; bottom: 2px; inset-inline-end: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid rgba(0,0,0,.35); }
.brand { padding: 10px 13px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); margin-bottom: 14px; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--text-2); transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: #fff; color: #0b0b10; }
.form-err { color: #ff8fa3; font-size: 13.5px; font-weight: 700; min-height: 20px; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0b0b10; display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: none; }

/* ============ شريط علوي مختصر: التصنيفات + العملة + الحساب + العربة في صف واحد ============ */
.topbar { gap: 6px; padding-inline: 10px; }
.topbar .cats {
  position: relative; top: auto; inset-inline: auto; flex: 0 1 auto; min-width: 0;
  padding: 4px; gap: 2px; border-radius: 999px; -webkit-mask-image: none; mask-image: none;
}
.topbar .chip { padding: 7px 12px; font-size: 13px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text); }
.topbar .chip[aria-pressed="true"] { background: #fff; color: #0b0b10; }
.topbar .icon-btn { width: 40px; height: 40px; }
.cur { width: 62px; height: 40px; padding: 0 10px; }

/* ============ جوجل / أبل ============ */
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; font-weight: 700; margin: 4px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.social { width: 100%; padding: 13px 16px; font-size: 15px; margin-bottom: 8px; }
.social.google { background: #fff; color: #1f1f1f; }
.social.apple { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); }

/* ============ القائمة (٣ شرط) ============ */
#langBtn { margin-inline-start: auto; }
.filter-pill { padding: 0 14px; height: 40px; font-size: 13px; white-space: pre; }
.menu-sec { font-size: 12.5px; font-weight: 800; color: var(--text-3); margin: 12px 6px 6px; }
.menu-sec:first-child { margin-top: 0; }
.menu-group { border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: start; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: background .2s; }
.menu-row + .menu-row { border-top: 1px solid rgba(255,255,255,.1); }
.menu-row > span { flex: 1; min-width: 0; }
.menu-row:active { background: rgba(255,255,255,.12); }
.menu-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.menu-row[aria-current] { color: #fff; background: rgba(255,255,255,.14); }
.menu-row[aria-current] svg { color: var(--ok); }
.menu-row select { width: auto; height: 38px; font-size: 14px; font-weight: 700; padding: 0 10px; border-radius: 10px; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.22); position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
[aria-checked="true"] > .switch { background: var(--ok); }
[aria-checked="true"] > .switch::after { transform: translateX(-18px); }

/* ============ أوتو سكرول ============ */
.rail .icon-btn.on-auto { background: #fff; color: #0b0b10; }
.rail { gap: 10px; }

/* ============ اللغة ============ */
.lang-btn { font-size: 13px; font-weight: 800; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); }
.seg button { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: #fff; color: #0b0b10; }
[dir="ltr"] [aria-checked="true"] > .switch::after { transform: translateX(18px); }
[dir="ltr"] .chev, [dir="ltr"] #sheetBack svg { transform: scaleX(-1); }
[dir="ltr"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }

/* ============ البراند ============ */
.avatar.xs, .avatar-img.xs { width: 22px; height: 22px; font-size: 12px; }
.avatar.sm, .avatar-img.sm { width: 30px; height: 30px; font-size: 14px; }
.avatar.lg, .avatar-img.lg { width: 68px; height: 68px; font-size: 28px; }
.avatar-img { border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(255,255,255,.6); }
.brand-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fff; padding: 2px 0; margin-bottom: 3px; max-width: 100%; }
.brand-link > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-link:active { opacity: .7; }
.brand-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.card h3[data-open] { cursor: pointer; }
.br-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.br-head h3 { font-size: 20px; font-weight: 900; }
.br-head p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin-top: 2px; }
.br-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.br-stats div { flex: 1; text-align: center; padding: 10px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: var(--text-2); }
.br-stats b { display: block; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.br-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.br-grid button { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #111; padding: 0; }
.br-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-grid button:active { opacity: .7; }
.merchant-link { margin-top: 12px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* ============ اللايك: أحمر دموي قوي ============ */
.rail .icon-btn.like.on {
  background: radial-gradient(circle at 35% 28%, #ff2b3d 0%, #c40016 45%, #7d000c 100%);
  border-color: #ff5a68;
  box-shadow: 0 0 0 3px rgba(196, 0, 22, .35), 0 8px 26px rgba(196, 0, 22, .75), inset 0 1px 0 rgba(255,255,255,.45);
}
.rail .icon-btn.like.on::before { display: none; }
.rail .icon-btn.like.on svg { fill: #fff; stroke: #fff; }
.rail .icon-btn.like.pop { animation: likePop .45s var(--ease); }
@keyframes likePop { 0% { transform: scale(.7); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.rail small { font-size: 12px; font-weight: 800; margin-top: -6px; text-shadow: 0 1px 4px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }

/* ============ المشاركة ============ */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; padding: 10px 0 6px; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none; }
.share-app span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .2s var(--ease); }
.share-app:active span { transform: scale(.9); }
.share-app:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.pd-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-title .icon-btn svg { width: 18px; height: 18px; }

/* ============ مشاركة إنستاجرام / فيسبوك ============ */
.share-cap { white-space: pre-line; margin: 6px 0 0; color: var(--text-2); font-size: 13px; word-break: break-word; }
.social-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.social-row + .social-row { border-top: 1px solid rgba(255,255,255,.1); }
.social-row > b { flex: 1; font-size: 15px; min-width: 0; }
.social-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; flex: none; }
.social-ic svg { width: 22px; height: 22px; }
.social-kinds { display: flex; gap: 6px; }
.social-kinds button { padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 800; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); transition: transform .2s var(--ease), background .2s; }
.social-kinds button:active { transform: scale(.93); background: rgba(255,255,255,.28); }
.social-kinds button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button.share-app { cursor: pointer; }
.pd-foot .btn-ghost { flex: 1; padding: 15px 14px; font-size: 15.5px; }

/* ============ لوجو البراند بشكل أيقونة إنستاجرام (دائرة بحلقة ملوّنة) ============ */
.avatar, .avatar-img { flex: none !important; aspect-ratio: 1; border-radius: 50%; }
.avatar-img { padding: 2px; border: 0; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.avatar-img.lg { padding: 3px; }
.avatar-img.xs { padding: 1.5px; }
span.avatar { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7) border-box; }
span.avatar.lg { border-width: 3px; }
span.avatar.xs { border-width: 1.5px; }
.acc-head .avatar { border: 0; background: #fff; }

/* ============ تايمر الخصم ============ */
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700;
  background: rgba(196, 0, 22, .32); border: 1px solid rgba(255, 90, 104, .55); color: #fff; }
.timer b { font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.card p { margin-bottom: 9px; }

/* ============ صفحة المشاركة: نسخة مضغوطة ============ */
.share-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin: -4px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-title + .menu-sec { margin-top: 8px; }
.social-row { padding: 7px 10px; gap: 9px; }
.social-row > b { font-size: 14.5px; }
.social-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.social-ic svg { width: 19px; height: 19px; }
.social-kinds { gap: 5px; }
.social-kinds button { padding: 6px 11px; font-size: 13px; }
.share-guide { font-size: 13px; font-weight: 700; line-height: 1.6; margin: 6px 2px 0; }
.share-guide:empty { display: none; }
.share-grid { grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 6px 2px; padding: 2px 0 0; }
.share-app { font-size: 10.5px; gap: 4px; white-space: nowrap; }
.share-app span { width: 44px; height: 44px; font-size: 19px; box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3); }
.share-foot .btn { padding: 12px 12px; font-size: 14.5px; }

/* ============ فريم اللوجو: حلقة بيضاء رفيعة ونضيفة بدل الحلقة الملوّنة ============ */
.avatar-img, .avatar-img.lg, .avatar-img.xs { padding: 0; background: #111; border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.avatar-img.lg { border-width: 2px; }
.avatar-img.xs { border-width: 1px; }
span.avatar, span.avatar.lg, span.avatar.xs { border: 0; background: #fff; }

/* ============ لوجو Reel Mart ============ */
.logo { display: inline-flex; align-items: center; gap: 4px; direction: ltr; font-family: "Outfit", -apple-system, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.6px; line-height: 1; color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); padding: 6px 4px; border-radius: 10px; }
.logo svg { height: 12px; display: block; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35)); }
.logo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.filter-pill:not([hidden]) + .logo { display: none; }
