/* ============================================================
   Play Cards — storefront v3 skin
   طبقة تحسين فوق styles.css — لا تعدَّل الملفات الأصلية.
   العقد: لا تغيير ولا حذف لأي id / class / data-attribute،
   و app.js لا يُلمس. كل ما هنا CSS فقط + عناصر pc-* الجديدة
   التي يرسمها ui-extras.js / pwa.js.
   ============================================================ */

/* ---------- 1) الرئيسية: هيرو أصغر وأنضف ---------- */
.hero { padding: 18px 0 2px; }
.hero-title { font-size: clamp(22px, 5.2vw, 38px); line-height: 1.5; }
.hero-sub { font-size: 12px; margin-top: 5px; }
.search-wrap { margin: 14px auto 4px; }
.search-input { height: 48px; border-radius: 14px; font-size: 14px; }

.cats-rail { padding: 12px 2px; }
.cat-chip { padding: 7px 15px 7px 9px; font-size: 12.5px; }
.cat-chip img, .cat-chip .cat-ph { width: 24px; height: 24px; }

.section-title { font-size: 17px; }

/* ---------- 2) بطاقات المنتجات ---------- */
/* خط الأسماء: خط العناوين بوزن حقيقي بدل 800 المزيّف */
.pcard-name { font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 11.5px !important; }
.best-rail .pcard-name { font-size: 10.5px !important; }
.pcard-body { padding: 9px 12px 10px !important; }
.pcard { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }

/* شارة «اوتوماتيك»: نعناعية، بأسفل الصورة بدل فوق */
.pcard-media .auto-badge {
  top: auto !important;
  bottom: 8px !important;
  inset-inline-start: 8px !important;
  color: var(--mint);
  border-color: rgba(52, 227, 161, 0.5);
  background: rgba(7, 9, 26, 0.66);
  box-shadow: none;
}

/* ---------- 3) شريط تنقّل بخمسة تبويبات ---------- */
.bottom-nav {
  justify-content: space-around;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.nav-tab { flex: 1; max-width: 86px; }
.nav-tab svg { width: 22px; height: 22px; }

/* زر المحفظة: دائرة ذهبية بارزة في المنتصف */
.nav-tab[data-tab="wallet"] {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  max-width: 54px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(135deg, #ffc247, #ff9d1f);
  transform: translateY(-16px);
  box-shadow: 0 10px 26px rgba(255, 173, 40, 0.42), 0 0 0 5px rgba(7, 9, 26, 0.85);
}
.nav-tab[data-tab="wallet"] span { display: none; }
.nav-tab[data-tab="wallet"] svg { width: 23px; height: 23px; stroke: #1a1208; }
.nav-tab[data-tab="wallet"].active { background: linear-gradient(135deg, #ffc247, #ff9d1f); }
.nav-tab[data-tab="wallet"].active svg { stroke: #1a1208; filter: none; }

/* ---------- 4) طلباتي: شريط تقدّم أسفل كل بطاقة ---------- */
#myOrdersList .order-card { position: relative; overflow: hidden; padding-bottom: 20px; }

#myOrdersList .order-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 3px;
  background: rgba(139, 132, 255, 0.14);
}
#myOrdersList .order-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
}

#myOrdersList .order-card:has(.status-pill.completed)::after { width: 100%; background: var(--mint); }

#myOrdersList .order-card:has(.status-pill.waiting)::after,
#myOrdersList .order-card:has(.status-pill.manual_review)::after {
  width: 38%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), var(--gold));
  background-size: 200% 100%;
  animation: pcSlide 1.4s linear infinite;
}

#myOrdersList .order-card:has(.status-pill.sent_to_supplier)::after {
  width: 68%;
  background: linear-gradient(90deg, #22d3ee, #8b5cff, #22d3ee);
  background-size: 200% 100%;
  animation: pcSlide 1.2s linear infinite;
}

#myOrdersList .order-card:has(.status-pill.rejected)::after,
#myOrdersList .order-card:has(.status-pill.refunded)::after,
#myOrdersList .order-card:has(.status-pill.cancelled)::after { width: 100%; background: rgba(255, 93, 122, 0.4); }

/* توهج خفيف للطلب الجاري */
#myOrdersList .order-card:has(.status-pill.sent_to_supplier) {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.07);
}
#myOrdersList .order-card:has(.status-pill.waiting),
#myOrdersList .order-card:has(.status-pill.manual_review) { border-color: rgba(255, 194, 71, 0.3); }

@keyframes pcSlide { to { background-position-x: -200%; } }

/* ---------- 5) مسار التتبع داخل تفاصيل الطلب (يرسمه ui-extras.js) ---------- */
.pc-track {
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin: 10px 0 14px;
}

.pc-note { display: flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 11.5px; font-weight: 800; margin-bottom: 14px; }
.pc-note i {
  flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  animation: pcBlink 1.1s ease infinite;
}
@keyframes pcBlink { 50% { opacity: 0.3; } }

.pc-steps { display: flex; align-items: flex-start; }
.pc-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pc-step i {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 800;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
}
.pc-step i em { font-style: normal; filter: grayscale(1); opacity: 0.55; font-size: 10px; }
.pc-step b { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pc-step small { font-family: var(--font-num); font-size: 8.5px; color: var(--muted); direction: ltr; }

.pc-step.done i { border-color: var(--mint); color: var(--mint); background: rgba(52, 227, 161, 0.14); }
.pc-step.done b { color: var(--text); }

.pc-step.now i { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); animation: pcPulse 1.6s ease infinite; }
.pc-step.now i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pc-step.now b { color: var(--cyan); }
@keyframes pcPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  70% { box-shadow: 0 0 0 11px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.pc-conn { flex: 1; max-width: 70px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line-strong); }
.pc-conn.done {
  background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 10px);
  background-size: 10px 2px;
  animation: pcDash 0.55s linear infinite;
}
@keyframes pcDash { to { background-position-x: -10px; } }

/* ---------- 6) سبلاش PWA + بطاقة التثبيت (يرسمهما pwa.js) ---------- */
.pc-splash {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg);
  transition: opacity 0.45s ease;
}
.pc-splash.out { opacity: 0; pointer-events: none; }
.pc-splash-mark {
  width: 92px; height: 92px; border-radius: 28px;
  display: grid; place-items: center;
  background: var(--grad-hot);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 34px;
  box-shadow: 0 0 60px rgba(139, 92, 255, 0.55), 0 24px 50px rgba(0, 0, 0, 0.35);
}
.pc-splash-name {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
}
.pc-splash-sub { color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; margin-top: 5px; }
.pc-splash-bar { position: relative; width: 130px; height: 3px; border-radius: 99px; background: rgba(139, 132, 255, 0.15); overflow: hidden; margin-top: 8px; }
.pc-splash-bar i { position: absolute; top: 0; bottom: 0; width: 42%; border-radius: 99px; background: var(--grad-brand); animation: pcLoad 1.15s ease-in-out infinite; }
@keyframes pcLoad { from { inset-inline-start: -45%; } to { inset-inline-start: 100%; } }

.pc-install {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  inset-inline: 14px;
  z-index: 96;
  max-width: 430px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  border-radius: 20px;
  padding: 15px 15px 13px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: pcUp 0.3s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes pcUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.pc-install-row { display: flex; align-items: center; gap: 11px; }
.pc-install-mark {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-hot);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.pc-install-title { font-size: 13px; font-weight: 800; display: block; }
.pc-install-sub { color: var(--muted); font-size: 10.5px; line-height: 1.7; display: block; margin-top: 3px; }
.pc-install-actions { display: flex; gap: 8px; margin-top: 12px; }
.pc-install-go {
  flex: 1;
  border: 0; border-radius: 12px; padding: 11px 0;
  background: linear-gradient(120deg, #ffc247, #ff9d1f);
  color: #1a1208;
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 173, 40, 0.3);
}
.pc-install-later {
  flex-shrink: 0;
  border: 1px solid var(--line-strong); background: none;
  border-radius: 12px; padding: 0 18px;
  color: var(--muted); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* ============================================================
   7) الثيم الفاتح — إعادة بناء كاملة
   ============================================================ */
[data-theme="light"] {
  --bg: #f2f3fb;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-2: #f4f5fc;
  --line: rgba(93, 84, 220, 0.13);
  --line-strong: rgba(93, 84, 220, 0.32);
  --text: #23254d;
  --muted: #6a6f9a;
  --violet: #6d4af0;
  --cyan: #0898c4;
  --magenta: #c02cdd;
  --gold: #a36400;
  --gold-deep: #8a5200;
  --mint: #0a9d66;
  --danger: #d9314d;
  --grad-brand: linear-gradient(120deg, #6d4af0, #0898c4);
  --grad-hot: linear-gradient(120deg, #c02cdd, #6d4af0 55%, #0898c4);
}

/* الخلفية والأورورا: باستيل هادئ */
[data-theme="light"] .aurora { opacity: 0.5; filter: blur(60px) saturate(1.05); }
[data-theme="light"] .aurora i:nth-child(1) { background: radial-gradient(circle, #b9a5ff, transparent 65%); }
[data-theme="light"] .aurora i:nth-child(2) { background: radial-gradient(circle, #9fe6f5, transparent 65%); }
[data-theme="light"] .aurora i:nth-child(3) { background: radial-gradient(circle, #f3c2ff, transparent 68%); opacity: 0.3; }

[data-theme="light"] .topbar { background: rgba(242, 243, 251, 0.8); border-bottom-color: var(--line); }
[data-theme="light"] .bottom-nav { background: rgba(242, 243, 251, 0.88); border-top-color: var(--line); }
[data-theme="light"] .nav-tab[data-tab="wallet"] { box-shadow: 0 10px 24px rgba(224, 137, 0, 0.35), 0 0 0 5px rgba(242, 243, 251, 0.9); }
[data-theme="light"] .brand-mark { box-shadow: 0 6px 16px rgba(109, 77, 240, 0.35); }
[data-theme="light"] .hero-title em { filter: none; }

/* الذهبي يبقى ساطعاً حيث هو خلفية، وداكناً حيث هو نص */
[data-theme="light"] .wallet-pill {
  border-color: rgba(163, 100, 0, 0.35);
  background: linear-gradient(120deg, rgba(255, 194, 71, 0.22), rgba(255, 157, 31, 0.08));
  color: #a36400;
  box-shadow: none;
}
[data-theme="light"] .wallet-plus { background: linear-gradient(135deg, #ffc247, #ff9d1f); }
[data-theme="light"] .buy-btn { background: linear-gradient(120deg, #ffc247, #ff9d1f); color: #1a1208; box-shadow: 0 10px 24px rgba(224, 137, 0, 0.3); }
[data-theme="light"] .banners-dots i.active { background: #e8a916; }
[data-theme="light"] .price-plate { text-shadow: none; }
[data-theme="light"] .sheet-total .t-value { text-shadow: none; }
[data-theme="light"] .wallet-hero-value { text-shadow: none; }
[data-theme="light"] .ocard-price { text-shadow: none; }
[data-theme="light"] .rt-value { text-shadow: none; }

/* بحث وبطاقات: أبيض بظلال ناعمة */
[data-theme="light"] .search-input { background: #fff; border-color: rgba(93, 84, 220, 0.22); box-shadow: 0 8px 22px rgba(64, 60, 140, 0.07); }
[data-theme="light"] .search-input:focus { box-shadow: 0 0 0 3px rgba(8, 152, 196, 0.15), 0 8px 22px rgba(64, 60, 140, 0.07); }

[data-theme="light"] .cat-chip { background: #fff; box-shadow: 0 4px 12px rgba(64, 60, 140, 0.05); }
[data-theme="light"] .cat-chip.active { background: var(--grad-brand); box-shadow: 0 8px 20px rgba(109, 77, 240, 0.3); color: #fff; }

[data-theme="light"] .pcard { background: #fff; border-color: var(--line); box-shadow: 0 10px 24px rgba(64, 60, 140, 0.08); }
[data-theme="light"] .pcard:hover { box-shadow: 0 16px 34px rgba(64, 60, 140, 0.14); }
[data-theme="light"] .pcard-media {
  background:
    radial-gradient(150px 100px at 50% 118%, rgba(139, 92, 255, 0.16), transparent 75%),
    linear-gradient(160deg, #f7f8fd, #edeffa);
}
[data-theme="light"] .pcard-media .auto-badge { background: rgba(255, 255, 255, 0.85); color: #067a4b; border-color: rgba(6, 150, 90, 0.4); }
[data-theme="light"] .instant-badge { color: #067a4b; border-color: rgba(6, 150, 90, 0.35); background: rgba(10, 157, 102, 0.08); box-shadow: none; }

[data-theme="light"] .card-skel,
[data-theme="light"] .cat-skel { background: linear-gradient(100deg, #ecedf7 40%, #f8f9fe 50%, #ecedf7 60%); background-size: 200% 100%; }

/* الأوراق والقوائم */
[data-theme="light"] .sheet { background: #fff; }
[data-theme="light"] .sheet-close { background: #f2f3fa; }
[data-theme="light"] .sheet-x { border-color: var(--line); background: #f2f3fa; color: var(--muted); }
[data-theme="light"] .drawer { background: #fff; }
[data-theme="light"] .drawer-nav button:hover { background: rgba(109, 77, 240, 0.08); }
[data-theme="light"] .order-card { box-shadow: 0 8px 20px rgba(64, 60, 140, 0.06); }
[data-theme="light"] #myOrdersList .order-card::before { background: rgba(93, 84, 220, 0.12); }
[data-theme="light"] .toast { box-shadow: 0 10px 26px rgba(10, 157, 102, 0.2); }

/* مسار التتبع بالفاتح */
[data-theme="light"] .pc-track { border-color: rgba(8, 152, 196, 0.3); background: rgba(8, 152, 196, 0.05); }
[data-theme="light"] .pc-step.done i { background: rgba(10, 157, 102, 0.1); }
[data-theme="light"] .pc-step.now i { background: rgba(8, 152, 196, 0.08); animation-name: pcPulseL; }
@keyframes pcPulseL {
  0% { box-shadow: 0 0 0 0 rgba(8, 152, 196, 0.35); }
  70% { box-shadow: 0 0 0 11px rgba(8, 152, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 152, 196, 0); }
}

/* عناصر كانت مبنية على أبيض-شفاف فوق داكن */
[data-theme="light"] .tf-chip { background: #fff; border-color: var(--line); color: var(--muted); }
[data-theme="light"] .tf-chip.active { background: rgba(109, 77, 240, 0.1); color: #6d4af0; border-color: rgba(109, 77, 240, 0.4); }
[data-theme="light"] .tf-custom { background: #fff; border-color: var(--line); }
[data-theme="light"] .wl-type { background: #fff; border-color: var(--line); color: var(--muted); }
[data-theme="light"] .wl-type.active { background: rgba(109, 77, 240, 0.1); color: #6d4af0; border-color: rgba(109, 77, 240, 0.4); }
[data-theme="light"] .wl-total { border-color: #b97b00; color: #b97b00; }
[data-theme="light"] .tx-unpaid { background: rgba(185, 123, 0, 0.12); color: #b97b00; }
[data-theme="light"] .tx-method { color: #6d4af0; background: rgba(109, 77, 240, 0.1); }
[data-theme="light"] .dr-desc { background: #f6f7fd; border-color: var(--line); }
[data-theme="light"] .dr-attach { color: #6d4af0; border-color: rgba(109, 77, 240, 0.45); background: rgba(109, 77, 240, 0.05); }
[data-theme="light"] .pm-details { border-top-color: rgba(35, 37, 77, 0.1); }
[data-theme="light"] .pm-after { background: rgba(8, 152, 196, 0.08); color: #0898c4; }
[data-theme="light"] .wl-amounts .tx-amount { color: var(--text); }
[data-theme="light"] .chat-msg.agent { background: #f4f5fc; }
[data-theme="light"] .pc-install { box-shadow: 0 24px 60px rgba(40, 40, 90, 0.25); }
[data-theme="light"] .pc-splash-mark { box-shadow: 0 18px 44px rgba(109, 77, 240, 0.35); }
[data-theme="light"] .odt-value.gold { color: #a36400; }

/* حقول التاريخ */
[data-theme="light"] input[type="date"] {
  color-scheme: light;
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

/* ---- بطاقات الأقسام بالرئيسية (نفس قانون بطاقة المنتج، بلا سعر) ---- */
.pcard-cat .pcard-body { justify-content: center; }
.pcard-cat .pcard-name {
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}
.pcard-cat .pcard-media img { transition: transform 0.25s ease; }
.pcard-cat:hover .pcard-media img { transform: scale(1.04); }

/* ---- المنتج الظاهر غير المتوفر: مطفي + شارة "غير متوفر" ---- */
.pcard-off { opacity: 0.55; filter: grayscale(0.85); cursor: not-allowed; }
.pcard-off:hover { transform: none; }
.pcard-off .price-plate, .pcard-off .instant-badge, .pcard-off .auto-badge { visibility: hidden; }
.off-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--danger, #ff5c7a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ---- شارة عدد الأكواد المتوفرة (تخصيص من اللوحة لكل منتج) ---- */
.stock-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--success, #22c55e);
  white-space: nowrap;
}
.pcard-off .stock-badge { visibility: hidden; }

/* ---- تبديل الشراء بالكمية/بالسعر ---- */
.mode-toggle { display:flex; gap:6px; margin-bottom:10px; background:var(--panel-soft,#1d2138); border-radius:999px; padding:4px; width:max-content; }
.mode-pill { border:0; background:transparent; color:var(--muted,#9aa1c9); font:inherit; font-weight:800; font-size:12.5px; padding:6px 14px; border-radius:999px; cursor:pointer; }
.mode-pill.active { background:var(--primary,#7d5fff); color:#fff; }

/* ---- صفحة الإعدادات ---- */
.settings-cards { display:flex; flex-direction:column; gap:10px; }
.settings-card { display:flex; align-items:center; gap:12px; width:100%; text-align:start; background:var(--panel,#171a2e); border:1px solid var(--line,#272b4a); border-radius:14px; padding:14px; color:inherit; font:inherit; cursor:pointer; }
.settings-card:hover { border-color:var(--primary,#7d5fff); }
.sc-icon { font-size:20px; }
.sc-body { flex:1; display:flex; flex-direction:column; gap:2px; }
.sc-body small { color:var(--muted,#9aa1c9); }
.sc-arrow { color:var(--muted,#9aa1c9); font-size:20px; }
.settings-toggle { display:flex; align-items:center; gap:10px; background:var(--panel,#171a2e); border:1px solid var(--line,#272b4a); border-radius:14px; padding:14px; cursor:pointer; }
/* سويتش عالثيم بدل checkbox المتصفح */
.settings-toggle input {
  appearance: none; -webkit-appearance: none;
  width: 46px; height: 26px; margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  border: 1px solid var(--line);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background-color .18s ease;
}
.settings-toggle input::before {
  content: ""; position: absolute; top: 2px; inset-inline-start: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .18s ease;
}
.settings-toggle input:checked { background: var(--primary); border-color: var(--primary); }
.settings-toggle input:checked::before { transform: translateX(20px); }
[dir="rtl"] .settings-toggle input:checked::before { transform: translateX(-20px); }
.settings-toggle input:focus-visible { outline: 0; box-shadow: var(--focus-ring, 0 0 0 3px var(--primary-soft)); }

/* حقول الأرقام بورقة الشراء: بلا أسهم المتصفح */
.field-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field-input[type="number"]::-webkit-inner-spin-button,
.field-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* لمسة تفاعل للحبوب */
.mode-pill { transition: background-color .15s ease, color .15s ease; }
.mode-pill:not(.active):hover { color: var(--text); }

/* ---- سويتش بثيم الموقع (مش checkbox المتصفح) ---- */
.pc-switch { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; }
.pc-switch input { position:absolute; opacity:0; width:0; height:0; }
.pc-switch i { position:absolute; inset:0; border-radius:999px; background:var(--line-strong,#3b4070); transition:background .15s ease; }
.pc-switch i::after { content:""; position:absolute; top:3px; inset-inline-start:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .15s ease; box-shadow:0 2px 6px rgba(0,0,0,.3); }
.pc-switch input:checked + i { background:var(--primary,#7d5fff); }
.pc-switch input:checked + i::after { transform:translateX(-20px); }
html[dir="ltr"] .pc-switch input:checked + i::after { transform:translateX(20px); }
.settings-toggle input[type="checkbox"] { accent-color:initial; }

/* ---- نافذة تأكيد الشراء (ثيم الموقع) ---- */
.confirm-overlay { position:fixed; inset:0; z-index:120; display:grid; place-items:center; background:rgba(0,0,0,.55); backdrop-filter:blur(2px); }
.confirm-card { width:min(92vw,360px); background:var(--panel,#171a2e); border:1px solid var(--line,#272b4a); border-radius:18px; padding:20px; box-shadow:var(--shadow,0 18px 45px rgba(0,0,0,.35)); }
.confirm-title { font-weight:800; font-size:16px; margin-bottom:10px; }
.confirm-line { margin:4px 0; }
.confirm-line.muted { color:var(--muted,#9aa1c9); font-size:13px; }
.confirm-msg { margin:12px 0 14px; color:var(--muted,#9aa1c9); font-size:13.5px; }
.confirm-actions { display:flex; gap:10px; }
.confirm-actions .buy-btn { flex:1; margin:0; }
.confirm-cancel { flex:0 0 auto; border:1px solid var(--line-strong,#3b4070); background:transparent; color:var(--text,#f2f4ff); border-radius:12px; padding:0 16px; font:inherit; font-weight:700; cursor:pointer; }

/* ---- نتيجة الشراء بالسعر: بارزة بلون السعر ---- */
.price-result { min-height: 22px; margin: 2px 0 8px; font-size: 16.5px; font-weight: 800; color: var(--warning); letter-spacing: .2px; }

/* ---- اقتراحات الآيدي المحفوظ ---- */
.field.has-suggest { position: relative; }
.sug-box { position: absolute; inset-inline: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.sug-item { display: block; width: 100%; text-align: start; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 13.5px; padding: 10px 13px; cursor: pointer; direction: ltr; }
.sug-item:hover { background: var(--panel-soft); }
.sug-item + .sug-item { border-top: 1px solid var(--line); }

/* ---- وضع الصيانة (النسخة الاحترافية) ---- */
#pcMaintOverlay { position: fixed; inset: 0; z-index: 9999; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.maint-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--primary-soft) 0%, transparent 65%); filter: blur(30px); animation: maintPulse 4s ease-in-out infinite; }
@keyframes maintPulse { 0%,100% { transform: scale(1); opacity:.7 } 50% { transform: scale(1.15); opacity:1 } }
.maint-stage { position: relative; text-align: center; max-width: 520px; }
.maint-gear { width: 74px; height: 74px; margin: 0 auto 14px; color: var(--primary); animation: maintSpin 9s linear infinite; }
.maint-gear svg { width: 100%; height: 100%; }
@keyframes maintSpin { to { transform: rotate(360deg) } }
.maint-brand { font-size: 13px; font-weight: 800; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.maint-title { font-size: clamp(20px, 4.5vw, 30px); font-weight: 900; margin: 0 0 10px; }
.maint-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.maint-count { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; }
.mc-cell { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; min-width: 86px; padding: 14px 10px 10px; box-shadow: var(--shadow); }
.mc-cell b { display: block; font-size: 34px; font-weight: 900; color: var(--warning); font-variant-numeric: tabular-nums; line-height: 1; }
.mc-cell span { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.mc-sep { font-size: 28px; font-weight: 900; color: var(--line-strong); padding-bottom: 14px; }
.maint-soon { font-size: 17px; font-weight: 800; color: var(--warning); margin-bottom: 24px; }
.maint-bar { height: 6px; background: var(--panel-soft); border-radius: 999px; overflow: hidden; max-width: 340px; margin: 0 auto; }
.maint-bar i { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); border-radius: 999px; transition: width 1s linear; }
@media (max-width: 480px) { .mc-cell { min-width: 72px; } .mc-cell b { font-size: 27px; } }

/* ---- الرسالة المنبثقة ---- */
.popup-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup-card { position: relative; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px; max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.popup-close { position: absolute; top: 10px; inset-inline-end: 12px; background: transparent; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.popup-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.popup-body { color: var(--text); font-size: 14px; line-height: 1.8; margin-bottom: 16px; white-space: normal; }
.popup-ok { width: 100%; }

/* ---- اقتراح تفعيل الإشعارات ---- */
.push-suggest { position: fixed; bottom: 18px; inset-inline: 14px; z-index: 8500; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 480px; margin-inline: auto; animation: pushIn .3s ease; }
@keyframes pushIn { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }
.push-suggest span { flex: 1; font-size: 13.5px; font-weight: 700; }
.push-suggest .buy-btn { width: auto; padding: 9px 14px; font-size: 12.5px; }
.push-suggest-x { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
