/* ============================================================
   KL · المتجر  ·  واجهة الأعضاء  ·  ثيم Kilv القمري البنفسجي
   جماليّة HERO كاملة، زجاج، توهّج، تدرّجات حيّة، Responsive 100%
   ============================================================ */
:root {
  --bg: #07060f;
  --ac: #8c86ec;
  --ac-soft: #a8a3f0;
  --ac-deep: #5b4fd6;
  --ac-glow: rgba(108, 100, 226, .6);
  --text: #ece9fb;
  --text-2: #b8b1d6;
  --muted: #8f88af;
  --muted-2: #a99fd0;
  --panel: linear-gradient(180deg, rgba(24, 20, 48, .62), rgba(13, 11, 27, .5));
  --glass: linear-gradient(180deg, rgba(28, 22, 58, .58), rgba(14, 11, 30, .5));
  --field: rgba(12, 10, 26, .72);
  --border: rgba(140, 134, 228, .16);
  --border-2: rgba(155, 133, 232, .3);
  --border-3: rgba(155, 133, 232, .5);
  --ok: #46e0a0;
  --warn: #faa61a;
  --danger: #ff6b8b;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-sm: 14px;
  --radius-xs: 11px;
  --pill: 999px;
  --shadow: 0 18px 44px -26px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -28px rgba(108, 100, 226, .55);
  --lift: 0 26px 56px -24px rgba(110, 76, 224, .62);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-head: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); color: var(--text);
  background: radial-gradient(1200px 860px at 50% -10%, #181a3c 0%, #0d0c20 42%, #06050d 80%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.7;
  position: relative; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
i[data-lucide] { width: 1em; height: 1em; stroke-width: 2; vertical-align: -.14em; }
::selection { background: rgba(120, 114, 232, .45); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0816; }
::-webkit-scrollbar-thumb { background: linear-gradient(#523ac9, #8c86ec); border-radius: 20px; border: 3px solid #0a0816; }

/* ---------- خلفية ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(54px); }
.orb-a { top: -14%; inset-inline-start: -8%; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(108, 102, 224, .3), transparent 62%); animation: drift 21s ease-in-out infinite; }
.orb-b { bottom: 2%; inset-inline-end: -12%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(128, 122, 242, .2), transparent 60%); animation: drift 27s ease-in-out infinite reverse; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; background: linear-gradient(to top, rgba(92, 88, 182, .16), rgba(92, 88, 182, .045) 42%, transparent); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon-glow { position: absolute; top: 9%; inset-inline-end: 5%; width: clamp(150px, 19vw, 290px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(150, 150, 236, .2), transparent 66%); filter: blur(22px); animation: glowPulse 10s ease-in-out infinite; }
.moon { position: absolute; top: 12.5%; inset-inline-end: 8.5%; width: clamp(86px, 10vw, 150px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 37% 33%, #f6f5fc 0%, #dcdef1 42%, #abafdc 72%, #7f83c6 100%); box-shadow: 0 0 70px 16px rgba(150, 148, 232, .3), inset -16px -10px 34px rgba(34, 32, 68, .55), inset 10px 8px 22px rgba(255, 255, 255, .16); opacity: .92; }
.moon .crater { position: absolute; border-radius: 50%; background: rgba(116, 116, 168, .26); }
.moon .c1 { top: 27%; left: 30%; width: 13%; height: 13%; }
.moon .c2 { top: 53%; left: 57%; width: 19%; height: 19%; }
.moon .c3 { top: 64%; left: 33%; width: 8%; height: 8%; }
.grain { position: absolute; inset: 0; opacity: .045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; }
.vignette { position: absolute; inset: 0; background: radial-gradient(125% 95% at 50% 6%, transparent 44%, rgba(3, 2, 8, .82) 100%); }
.topscrim { position: absolute; top: 0; left: 0; right: 0; height: 110px; background: linear-gradient(to bottom, rgba(5, 4, 12, .6), transparent); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -3%) scale(1.08); } }
@keyframes glowPulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.06); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseDot { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orb, .moon-glow, .pcardx, .pcardx .px-av, .pcardx .px-avwrap::before, .pcardx .px-banner::after { animation: none !important; }
  * { scroll-behavior: auto; }
}

#app { position: relative; z-index: 2; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- إقلاع ---------- */
.boot { flex: 1; min-height: 60vh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot-logo { width: 84px; height: 84px; display: grid; place-items: center; }
.boot-logo img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(108, 100, 226, .6)); animation: floatY 6s ease-in-out infinite; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(140, 134, 228, .2); border-top-color: var(--ac); animation: spin .8s linear infinite; }

/* ---------- الهيدر ---------- */
.hdr { position: sticky; top: 0; z-index: 50; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(8, 7, 16, .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: rgba(140, 134, 228, .16); }
.nav { max-width: 1200px; margin-inline: auto; padding: 13px clamp(14px, 4vw, 40px); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .mk { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.brand .mk::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, var(--ac), transparent 70%); filter: blur(7px); opacity: .7; }
.brand .mk img { position: relative; width: 40px; height: 40px; object-fit: contain; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand .bt b { font-family: var(--f-mono); font-weight: 700; font-size: 18px; letter-spacing: .16em; background: linear-gradient(180deg, #fdfcff, #c1bcf2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .bt span { font-size: 9px; letter-spacing: .3em; color: #8a83ad; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; color: #c8c1e6; font-weight: 500; font-size: 14.5px; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(120, 114, 232, .14); }
.nav-sp { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--border-2); background: rgba(20, 17, 40, .5); color: #e7e2fb; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s, background .22s; }
.btn:hover { transform: translateY(-2px); border-color: var(--border-3); background: rgba(31, 26, 58, .6); }
.btn.primary { border-color: rgba(255, 255, 255, .16); background: linear-gradient(180deg, var(--ac, #8f88ee), var(--ac-deep)); color: #fff; box-shadow: 0 12px 30px -10px var(--ac-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { box-shadow: 0 20px 44px -12px var(--ac-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: rgba(20, 17, 40, .4); }
.btn.danger { color: #ffb3c2; border-color: rgba(255, 107, 139, .34); background: rgba(255, 107, 139, .1); }
.btn.danger:hover { background: rgba(255, 107, 139, .18); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn.btn-admin { color: #cdd3ff; border-color: rgba(120, 130, 255, .34); background: rgba(120, 130, 255, .12); }
.btn.btn-admin:hover { color: #fff; border-color: rgba(120, 130, 255, .6); background: rgba(120, 130, 255, .2); box-shadow: 0 10px 26px -12px rgba(120, 130, 255, .6); }
.btn.btn-admin svg { width: 1em; height: 1em; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-ic { width: 44px; height: 44px; padding: 0; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; position: relative; }
.cart-badge { position: absolute; top: -5px; inset-inline-start: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: linear-gradient(140deg, var(--ac), var(--ac-deep)); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 12px -4px var(--ac-glow); }

/* شريحة البروفايل في الهيدر */
.uchip { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: var(--pill); border: 1px solid var(--border-2); background: rgba(20, 17, 40, .55); transition: .2s; max-width: 230px; }
.uchip:hover { border-color: var(--border-3); background: rgba(31, 26, 58, .6); }
.uchip-avwrap { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; }
.uchip-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); transition: transform .25s var(--ease); }
.uchip-avwrap::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; transition: border-color .25s, box-shadow .25s; }
.uchip-avwrap:hover .uchip-av { transform: scale(1.08); }
.uchip-avwrap:hover::before { border-color: var(--ac); box-shadow: 0 0 14px -2px var(--ac-glow); }
.uchip-avwrap::after { content: "بروفايلي"; position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px); background: rgba(18, 18, 22, .97); color: #e7e2fb; font-family: var(--f-body); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border-2); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.uchip-avwrap:hover::after, .uchip-avwrap:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.uchip-main { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; background: none; color: inherit; cursor: pointer; min-width: 0; }
.uchip .un { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.uchip .chev { color: var(--muted-2); flex: none; }

/* القائمة المنسدلة */
.dd-wrap { position: relative; }
.dd { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: min(320px, 86vw); border-radius: 20px; border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(23, 23, 27, .99), rgba(12, 12, 15, .99)); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); overflow: hidden; z-index: 80; animation: pop .16s var(--ease); }
.dd-head { position: relative; }
.dd-banner { height: 80px; background: linear-gradient(120deg, var(--ac-deep), var(--ac)); overflow: hidden; }
.dd-banner img { width: 100%; height: 100%; object-fit: cover; }
.dd-av { position: absolute; bottom: -22px; inset-inline-start: 16px; width: 58px; height: 58px; border-radius: 50%; border: 4px solid #17171b; object-fit: cover; background: #16161a; box-shadow: 0 0 0 2px var(--ac); }
.dd-id { padding: 30px 16px 0; }
.dd-id .dn { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-id .dh { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.dd-bal { margin: 12px 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); display: flex; align-items: center; justify-content: space-between; }
.dd-bal .dl { font-size: 12.5px; color: var(--muted-2); }
.dd-bal .dv { font-family: var(--f-mono); font-weight: 700; font-size: 17px; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dd-menu { padding: 8px; border-top: 1px solid var(--border); }
.dd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14px; text-align: start; transition: .15s; }
.dd-item i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: var(--dic, var(--ac-soft)); background: color-mix(in srgb, var(--dic, #7872e8) 16%, transparent); border: 1px solid color-mix(in srgb, var(--dic, #7872e8) 18%, transparent); transition: .15s; }
.dd-item:hover { background: color-mix(in srgb, var(--dic, #7872e8) 12%, transparent); color: #fff; }
.dd-item:hover i { background: color-mix(in srgb, var(--dic, #7872e8) 26%, transparent); border-color: color-mix(in srgb, var(--dic, #7872e8) 42%, transparent); }
.dd-item.danger { color: var(--muted); }

/* ---------- المحتوى ---------- */
.view { flex: 1; position: relative; z-index: 2; }
.wrap { max-width: 1160px; margin-inline: auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 44px) 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-2); }
.eyebrow::before, .eyebrow.center::after { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--ac)); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { background: linear-gradient(90deg, transparent, var(--ac)); }
.h-grad { font-family: var(--f-head); font-weight: 800; line-height: 1.2; background: linear-gradient(180deg, #fff 0%, #eaecfb 42%, #bdc0e7 66%, #9089ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-title { margin: 18px 0 6px; }
.page-title h1 { font-size: clamp(26px, 4.4vw, 44px); }
.page-title p { color: var(--text-2); margin-top: 8px; font-size: clamp(14px, 2vw, 16px); max-width: 60ch; }

/* ---------- هيرو المتجر ---------- */
.hero { text-align: center; padding: clamp(36px, 7vw, 90px) clamp(16px, 5vw, 44px) clamp(20px, 4vw, 40px); max-width: 940px; margin-inline: auto; }
.hero .badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(20, 17, 40, .5); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #c7bdf0; margin-bottom: 26px; }
.hero .badge .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulseDot 2s infinite; }
.hero h1 { font-size: clamp(32px, 6.4vw, 66px); max-width: 16ch; margin-inline: auto; filter: drop-shadow(0 3px 24px rgba(120, 114, 230, .26)); }
.hero p { margin: 20px auto 0; max-width: 56ch; font-size: clamp(15px, 2.1vw, 19px); color: #b8b1d6; line-height: 1.85; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 32px; }

/* ---------- شبكة المنتجات ---------- */
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 20px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform .32s var(--ease), border-color .32s, box-shadow .32s; cursor: pointer; animation: rise .5s var(--ease) both; }
.pcard:hover { transform: translateY(-7px); border-color: var(--pac, var(--border-3)); box-shadow: var(--shadow), var(--lift); }
.pcard .pc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg, rgba(120, 114, 232, .2), rgba(13, 11, 27, .5)); }
.pcard .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pc-media img { transform: scale(1.06); }
.pc-media .pc-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ac-soft); font-size: 46px; opacity: .5; }
.pc-media .pc-glow { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 120%, var(--pac, rgba(120, 114, 232, .4)), transparent 60%); opacity: .5; mix-blend-mode: screen; }
.pc-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--pac, var(--ac)), var(--ac-deep)); box-shadow: 0 8px 20px -8px var(--ac-glow); backdrop-filter: blur(4px); }
.pc-type { position: absolute; top: 12px; inset-inline-end: 12px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #e7e2fb; background: rgba(8, 7, 18, .6); border: 1px solid var(--border-2); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 5px; }
.pcard .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pc-name { font-family: var(--f-head); font-weight: 700; font-size: 19px; color: #f4f1ff; }
.pc-tag { color: var(--muted-2); font-size: 13.5px; margin-top: 5px; line-height: 1.6; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pc-price { font-family: var(--f-mono); }
.pc-price .from { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.pc-price .val { font-size: 20px; font-weight: 700; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-price .val small { font-size: 12px; color: var(--muted-2); -webkit-text-fill-color: var(--muted-2); }
.pc-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: #fff; background: linear-gradient(180deg, var(--pac, #8f88ee), var(--ac-deep)); box-shadow: 0 10px 24px -10px var(--ac-glow); }

/* ---------- تفاصيل المنتج ---------- */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 44px); align-items: start; }
.pd-gallery { position: sticky; top: 90px; }
.pd-main { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: linear-gradient(140deg, rgba(120, 114, 232, .2), rgba(13, 11, 27, .5)); box-shadow: var(--shadow-lg); position: relative; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .pd-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ac-soft); font-size: 64px; opacity: .5; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 76px; height: 50px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; opacity: .65; transition: .2s; }
.pd-thumb.active, .pd-thumb:hover { opacity: 1; border-color: var(--ac); transform: translateY(-2px); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-cap { margin-top: 10px; color: var(--muted-2); font-size: 13px; min-height: 18px; }
.pd-info .pd-type { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #c7bdf0; background: rgba(120, 114, 232, .12); border: 1px solid var(--border-2); }
.pd-info h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 4vw, 40px); margin: 14px 0 6px; color: #f6f3ff; }
.pd-info .pd-tagline { color: var(--text-2); font-size: 16px; }
.pd-desc { margin-top: 18px; color: var(--text-2); font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.pd-sec { margin-top: 24px; }
.pd-sec h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-family: var(--f-mono); margin-bottom: 12px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pkg { position: relative; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: rgba(14, 12, 30, .55); cursor: pointer; transition: .2s; text-align: center; }
.pkg:hover { border-color: var(--border-3); transform: translateY(-2px); }
.pkg.active { border-color: var(--ac); background: rgba(120, 114, 232, .14); box-shadow: 0 0 0 3px rgba(120, 114, 232, .2), 0 16px 34px -18px var(--ac-glow); }
.pkg .pk-label { font-weight: 800; font-size: 15px; color: #f1eefb; }
.pkg .pk-dur { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pkg .pk-price { font-family: var(--f-mono); font-weight: 700; font-size: 18px; margin-top: 10px; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg .pk-check { position: absolute; top: 9px; inset-inline-end: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--ac); color: #fff; display: none; place-items: center; font-size: 12px; }
.pkg.active .pk-check { display: grid; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pd-actions .btn { flex: 1; min-width: 150px; padding: 14px 20px; font-size: 15px; }
.pd-total { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(120, 114, 232, .08); display: flex; align-items: center; justify-content: space-between; }
.pd-total .tl { color: var(--muted-2); font-size: 13.5px; }
.pd-total .tv { font-family: var(--f-mono); font-weight: 700; font-size: 22px; color: #fff; }

/* حقل اسم الروم */
.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: #e7e2fb; margin-bottom: 8px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.inp { width: 100%; padding: 13px 15px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--field); color: var(--text); font-size: 15px; font-family: inherit; transition: .18s; }
.inp::placeholder { color: #827aa6; }
.inp:focus { outline: none; border-color: var(--ac); background: rgba(20, 16, 44, .85); box-shadow: 0 0 0 4px rgba(120, 114, 232, .18); }

/* ---------- الرتبة المخصصة: منتقي اللون + المعاينة الحيّة ---------- */
.role-config { margin-top: 4px; }
.role-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.role-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); padding: 0; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.role-sw:hover { transform: scale(1.1); }
.role-sw.active { transform: scale(1.14); box-shadow: 0 0 0 3px var(--bg, #0b0a16), 0 0 0 5px #fff; }
.role-sw-custom { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .5); padding: 2px; cursor: pointer; background: transparent; }
.role-sw-custom::-webkit-color-swatch-wrapper { padding: 0; }
.role-sw-custom::-webkit-color-swatch { border: none; border-radius: 50%; }
.role-sw-custom::-moz-color-swatch { border: none; border-radius: 50%; }

.rolepv-wrap { margin-top: 18px; }
.rolepv-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted-2); margin-bottom: 10px; }
.rolepv-label i { color: var(--ac); }
.rolepv { --rc: #8c6cff; --rc2: #8c6cff; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(26, 23, 44, .96), rgba(13, 11, 26, .98)); box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .8), 0 0 50px -30px var(--rc); transition: box-shadow .3s var(--ease); }
.rolepv-banner { height: 100px; background-image: linear-gradient(135deg, color-mix(in srgb, var(--rc) 62%, #1b1830), color-mix(in srgb, var(--rc2) 34%, #141020)); background-size: cover; background-position: center; transition: background-image .25s; }
.rolepv-banner::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100px; background: linear-gradient(180deg, transparent 40%, rgba(13, 11, 26, .55)); pointer-events: none; }
.rolepv-glow { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 240px; height: 120px; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 55%, transparent), transparent); filter: blur(8px); pointer-events: none; opacity: .8; transition: background .2s; }
.rolepv-body { position: relative; padding: 0 20px 20px; }
.rolepv-avwrap { width: 88px; height: 88px; border-radius: 50%; margin-top: -46px; padding: 4px; background: linear-gradient(180deg, rgba(26, 23, 44, 1), rgba(13, 11, 26, 1)); position: relative; }
.rolepv-av { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 60%, transparent); }
.rolepv-id { margin-top: 12px; }
.rolepv-name { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 800; font-size: 23px; line-height: 1.2; word-break: break-word; }
.rolepv-name-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex: none; }
.rolepv-name-txt { color: var(--rc); text-shadow: 0 1px 10px color-mix(in srgb, var(--rc) 35%, transparent); transition: color .15s; }
.rolepv.st-gradient .rolepv-name-txt, .rolepv.st-holographic .rolepv-name-txt { color: transparent; -webkit-text-fill-color: transparent; background-clip: text; -webkit-background-clip: text; text-shadow: none; }
.rolepv.st-gradient .rolepv-name-txt { background-image: linear-gradient(90deg, var(--rc), var(--rc2)); }
.rolepv.st-holographic .rolepv-name-txt { background-image: linear-gradient(90deg, #a9c9ff, #ffbbec, #ffc3a0, #a9c9ff); background-size: 220% auto; animation: holoShift 3.2s linear infinite; }
@keyframes holoShift { to { background-position: 220% center; } }
.rolepv-handle { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rolepv-card { margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: rgba(0, 0, 0, .26); border: 1px solid rgba(255, 255, 255, .05); }
.rolepv-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.rolepv-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.rolepv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 15%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); transition: background .15s, border-color .15s; }
.rolepv-chip-icon { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex: none; }
.rolepv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 75%, transparent); transition: background .15s, box-shadow .15s; }
.rolepv.st-gradient .rolepv-dot { background: linear-gradient(135deg, var(--rc), var(--rc2)); }
.rolepv.st-holographic .rolepv-dot { background: linear-gradient(135deg, #a9c9ff, #ffbbec, #ffc3a0); }
.rolepv-chip-name { font-weight: 700; font-size: 13.5px; color: #f2f0ff; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* تبويبات الستايل + صفوف الألوان + الأيقونة */
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px; border-radius: 13px; border: 1px solid var(--border-2); background: rgba(20, 16, 44, .4); cursor: pointer; transition: .16s var(--ease); }
.role-tab:hover { border-color: var(--ac); transform: translateY(-1px); }
.role-tab.active { border-color: var(--ac); background: rgba(120, 114, 232, .16); box-shadow: 0 0 0 3px rgba(120, 114, 232, .14); }
.role-tab .rt-l { font-weight: 800; font-size: 13.5px; color: #f0eeff; }
.role-tab .rt-l2 { font-size: 11px; color: var(--muted-2); }
.role-color-area { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.role-colorrow-l { font-size: 12.5px; font-weight: 700; color: #d9d4f5; margin-bottom: 9px; }
.holo-note { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-radius: 13px; border: 1px solid color-mix(in srgb, #a9c9ff 30%, transparent); background: linear-gradient(90deg, rgba(169, 201, 255, .14), rgba(255, 187, 236, .14), rgba(255, 195, 160, .14)); background-size: 200% auto; animation: holoShift 4s linear infinite; color: #eee9ff; font-size: 13px; font-weight: 600; }
.holo-note i { color: #cdbcff; }
.role-iconrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role-iconrow .hint { flex-basis: 100%; }
.role-namefixed { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--border-2); background: rgba(20, 16, 44, .4); color: #e7e2fb; font-weight: 700; }
.role-namefixed i { color: var(--muted-2); }

/* شريحة الرتبة في مشترياتي/رولاتي */
.prole-chip { --rc: #8c6cff; --rc2: #8c6cff; display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; padding: 3px 11px; border-radius: 999px; width: fit-content; max-width: 100%; background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent); font-size: 12.5px; font-weight: 700; color: #f2f0ff; }
.prole-icon { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex: none; }
.prole-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prole-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px color-mix(in srgb, var(--rc) 70%, transparent); flex: none; }
.prole-chip.st-gradient .prole-dot { background: linear-gradient(135deg, var(--rc), var(--rc2)); }
.prole-chip.st-holographic .prole-dot { background: linear-gradient(135deg, #a9c9ff, #ffbbec, #ffc3a0); }

/* رأس بطاقة الرتبة في «رولاتي» */
.myrole-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.myrole-head > i { color: var(--ac); }
.myrole-name { font-family: var(--f-head); font-weight: 800; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- شجرة فريق الإدارة (هيكل من القمة للقاعدة) ---------- */
.atree-wrap { max-width: 780px; }
.atree { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 10px 0 36px; }
/* الجذع: خط رأسي متوهّج يربط الطبقات */
.atree::before { content: ''; position: absolute; top: 6px; bottom: 36px; left: 50%; width: 3px; transform: translateX(-50%); background: linear-gradient(180deg, #ffd479, #8c6cff 32%, #5aa9ff 72%, transparent); border-radius: 3px; opacity: .5; box-shadow: 0 0 18px rgba(140, 108, 255, .5); }

.atier { --rc: #8c86ec; position: relative; width: 100%; max-width: 640px; border: 1px solid color-mix(in srgb, var(--rc) 40%, var(--border-2)); border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 12%, rgba(18, 15, 36, .92)), rgba(11, 9, 24, .94)); box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .8), 0 0 40px -26px var(--rc); padding: 18px 20px 20px; animation: tierIn .5s var(--ease) both; }
/* عقدة الوصل على الجذع */
.atier::before { content: ''; position: absolute; top: -23px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 4px rgba(11, 9, 24, .95), 0 0 16px var(--rc); }
.atier:first-child::before { display: none; }

.atier-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--rc) 22%, transparent); }
.atier-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 12px var(--rc); flex: none; }
.atier-crown { display: inline-flex; color: #ffd479; filter: drop-shadow(0 0 8px rgba(255, 212, 121, .7)); }
.atier-crown svg { width: 22px; height: 22px; }
.atier-name { flex: 1; min-width: 0; font-family: var(--f-head); font-weight: 800; font-size: 18px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atier-count { font-family: var(--f-mono); font-weight: 700; font-size: 12px; color: color-mix(in srgb, var(--rc) 72%, #fff); background: color-mix(in srgb, var(--rc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 32%, transparent); border-radius: 999px; padding: 2px 10px; flex: none; }

.atier-members { display: flex; flex-wrap: wrap; gap: 16px 14px; justify-content: center; }
.amem { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 94px; padding: 6px 4px; border: 0; background: transparent; cursor: pointer; border-radius: 14px; transition: transform .16s var(--ease); font-family: inherit; }
.amem:hover { transform: translateY(-4px); }
.amem-avwrap { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(180deg, var(--rc), color-mix(in srgb, var(--rc) 38%, #0b0918)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 20px -8px var(--rc); transition: box-shadow .16s; }
.amem:hover .amem-avwrap { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 22px -2px var(--rc); }
.amem-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #0b0918; }
.amem-name { font-size: 12.5px; font-weight: 600; color: #d9d4f5; max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }

/* الطبقة العليا (أعلى الإدارة)، أفخم بلمسة ذهبية */
.atier.top { border-color: rgba(255, 212, 121, .5); background: linear-gradient(180deg, rgba(255, 212, 121, .12), rgba(11, 9, 24, .94)); box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .85), 0 0 52px -20px rgba(255, 184, 77, .5); }
.atier.top .atier-name { background: linear-gradient(90deg, #ffe6a8, #ffb84d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atier.top .amem-avwrap { width: 82px; height: 82px; background: linear-gradient(180deg, #ffd479, #b8862e); box-shadow: 0 0 26px -4px rgba(255, 184, 77, .7); }
.atier.top .amem { width: 112px; }
.atier.top .amem-name { max-width: 112px; color: #ffe9c2; }

@keyframes tierIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- بطاقات عامة ---------- */
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.panel + .panel { margin-top: 18px; }

/* ---------- السلة ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(14, 12, 30, .5); }
.cart-item .ci-thumb { width: 66px; height: 50px; border-radius: 10px; overflow: hidden; flex: none; background: linear-gradient(140deg, rgba(120, 114, 232, .2), rgba(13, 11, 27, .5)); display: grid; place-items: center; color: var(--ac-soft); }
.cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-meta { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .ci-pkg { color: var(--muted-2); font-size: 13px; }
.cart-item .ci-price { font-family: var(--f-mono); font-weight: 700; color: #d7d0f0; }
.summary { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.summary .sl { color: var(--muted-2); }
.summary .sv { font-family: var(--f-mono); font-weight: 700; font-size: 26px; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- حالات فارغة ---------- */
.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; }
.empty .ei { width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 26px; display: grid; place-items: center; font-size: 38px; color: var(--ac-soft); background: linear-gradient(140deg, rgba(120, 114, 232, .24), rgba(120, 114, 232, .05)); border: 1px solid var(--border-2); }
.empty h3 { font-family: var(--f-head); font-size: 24px; color: #f1eefb; }
.empty p { color: var(--text-2); margin: 10px auto 22px; max-width: 44ch; }

/* ---------- حسابي (إحصائيات) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.scard { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(8px); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; transition: .25s; }
.scard:hover { transform: translateY(-3px); border-color: var(--border-2); }
.scard .si { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: var(--ac-soft); background: linear-gradient(140deg, rgba(120, 114, 232, .28), rgba(120, 114, 232, .06)); border: 1px solid var(--border-2); }
.scard .sv { font-family: var(--f-mono); font-size: 24px; font-weight: 700; line-height: 1.1; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scard .sk { color: var(--muted-2); font-size: 13px; margin-top: 3px; }
.lvl-card { margin-top: 18px; }
.lvl-bar { height: 14px; border-radius: 999px; background: rgba(140, 134, 228, .16); overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.lvl-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ac-deep), var(--ac)); box-shadow: 0 0 16px -2px var(--ac-glow); transition: width .8s var(--ease); }
.lvl-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 13px; color: var(--muted-2); font-family: var(--f-mono); }

/* ---------- مشترياتي ---------- */
.plist { display: flex; flex-direction: column; gap: 12px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(14, 12, 30, .5); flex-wrap: wrap; }
.prow .pi { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--ac-soft); background: linear-gradient(140deg, rgba(120, 114, 232, .24), rgba(120, 114, 232, .06)); border: 1px solid var(--border-2); }
.prow .pm { flex: 1; min-width: 140px; }
.prow .pn { font-weight: 800; }
.prow .ps { color: var(--muted); font-size: 12.5px; font-family: var(--f-mono); margin-top: 2px; }
.prow .pp { font-family: var(--f-mono); font-weight: 700; color: #d7d0f0; }
.st-badge { font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.st-active { background: rgba(70, 224, 160, .14); color: #7ef0c0; border: 1px solid rgba(70, 224, 160, .3); }
.st-expired { background: rgba(255, 107, 139, .12); color: #ffb3c2; border: 1px solid rgba(255, 107, 139, .3); }
.st-delivered { background: rgba(120, 114, 232, .14); color: #c7bdf0; border: 1px solid var(--border-2); }
.prow .countdown { font-family: var(--f-mono); font-size: 12.5px; color: var(--warn); }

/* ---------- البنك / التحويل ---------- */
.bank-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.bcard { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(14, 12, 30, .5); }
.bcard .bl { color: var(--muted-2); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.bcard .bv { font-family: var(--f-mono); font-weight: 700; font-size: 26px; margin-top: 8px; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard.accent { background: linear-gradient(150deg, rgba(46, 36, 92, .6), rgba(16, 12, 34, .6)); border-color: var(--border-2); }
.xfer-steps { display: flex; gap: 8px; margin: 6px 0 20px; }
.xstep { flex: 1; height: 5px; border-radius: 999px; background: rgba(140, 134, 228, .18); overflow: hidden; }
.xstep.done { background: linear-gradient(90deg, var(--ac-deep), var(--ac)); }
.xprev { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: rgba(120, 114, 232, .08); }
.xprev img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ac); object-fit: cover; }
.xprev .xn { font-weight: 800; font-size: 16px; }
.xprev .xtag { font-size: 12.5px; margin-top: 3px; }
.xprev .xtag.ok { color: var(--ok); } .xprev .xtag.bad { color: var(--danger); }
.daily-note { margin-top: 12px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 7px; }
.daily-note.warn { color: #ffd28a; }

/* ---------- رأس التحويل + شريحة الرصيد ---------- */
.xfer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.xfer-htitle { display: flex; align-items: center; gap: 10px; }
.bank-avail { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: linear-gradient(150deg, rgba(70, 224, 160, .12), rgba(120, 114, 232, .1)); }
.bank-avail i { color: var(--ok); }
.bank-avail .lbl { color: var(--muted-2); font-size: 12.5px; }
.bank-avail .val { font-family: var(--f-mono); font-weight: 800; font-size: 15px; color: #eafff5; }

/* ---------- تنبيه التحقق من المبلغ ---------- */
.xfer-err { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #ffb1b1; padding: 9px 13px; border-radius: var(--radius-sm); border: 1px solid rgba(231, 76, 60, .3); background: rgba(231, 76, 60, .1); }
.xfer-err i { flex: none; color: #ff8585; }

/* ---------- بطاقة البروفايل (مودال) ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(4, 3, 10, .72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: pop .2s var(--ease); }
.pcardx { width: min(460px, 100%); max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(23, 23, 27, .99), rgba(12, 12, 14, .99)); box-shadow: 0 34px 90px -26px rgba(0, 0, 0, .8), 0 0 56px -28px var(--pa, var(--ac-glow)); position: relative; animation: cardIn .42s var(--ease) both, cardGlow 5.5s ease-in-out 1.4s infinite; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cardGlow { 0%, 100% { box-shadow: 0 34px 90px -26px rgba(0, 0, 0, .8), 0 0 50px -30px var(--pa, var(--ac-glow)); } 50% { box-shadow: 0 34px 90px -26px rgba(0, 0, 0, .8), 0 0 80px -20px var(--pa, var(--ac-glow)); } }
.pcardx .px-stat { transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.pcardx .px-stat:hover { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .055); transform: translateY(-2px); }
.pcardx .px-role { transition: transform .15s var(--ease); }
.pcardx .px-role:hover { transform: translateY(-1px); }
.dd-av { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.dd-av:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--ac), 0 0 16px -2px var(--ac-glow); }
.px-head { position: relative; }
.pcardx .px-banner { position: relative; height: 130px; background: linear-gradient(120deg, var(--pa, var(--ac-deep)), var(--pa2, var(--ac))); overflow: hidden; }
.pcardx .px-banner img { width: 100%; height: 100%; object-fit: cover; }
.pcardx .px-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .07) 48%, transparent 64%); transform: translateX(-130%); animation: pxSheen 7s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes pxSheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.pcardx .px-close { position: absolute; top: 12px; inset-inline-start: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(8, 7, 18, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); z-index: 2; }
.pcardx .px-avwrap { position: absolute; bottom: -42px; inset-inline-start: 22px; width: 92px; height: 92px; }
.pcardx .px-avwrap::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, var(--pa, #8c86ec) 72deg, transparent 168deg, transparent 360deg); opacity: .5; filter: blur(4px); animation: avSpin 8s linear infinite; }
.pcardx .px-av { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; border: 6px solid #161618; object-fit: cover; background: #16161a; box-shadow: 0 0 0 2px var(--pa, var(--ac)); animation: avGlow 4.6s ease-in-out infinite; }
@keyframes avSpin { to { transform: rotate(360deg); } }
@keyframes avGlow { 0%, 100% { box-shadow: 0 0 0 2px var(--pa, var(--ac)), 0 0 16px -6px var(--pa, var(--ac)); } 50% { box-shadow: 0 0 0 2px var(--pa, var(--ac)), 0 0 30px -2px var(--pa, var(--ac)); } }
.pcardx .px-body { padding: 54px 22px 24px; }
.pcardx .px-name { font-family: var(--f-head); font-weight: 800; font-size: 24px; color: #fff; line-height: 1.2; }
.pcardx .px-handle { font-family: var(--f-mono); color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.pcardx .px-accent { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--muted-2); font-family: var(--f-mono); }
.pcardx .px-accent .sw { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .2); }
.px-sec { margin-top: 16px; }
.px-seclabel { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.px-roles { display: flex; flex-wrap: wrap; gap: 7px; }
.px-role { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #e7e2fb; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.px-role .rdot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.px-since { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted-2); }
.px-since i { color: var(--ac-soft); }
.pcardx .px-divider { height: 1px; background: var(--border); margin: 16px 0; }
.px-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.px-stat { padding: 13px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.px-stat .pl { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.px-stat .pv { font-family: var(--f-mono); font-weight: 700; font-size: 19px; margin-top: 5px; background: linear-gradient(180deg, #fff, #bdb6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- إنجازات البطولات ---------- */
.px-tours { display: flex; flex-direction: column; gap: 9px; }
.px-tour { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); overflow: hidden; transition: transform .16s var(--ease); }
.px-tour::before { content: ''; position: absolute; inset: 0; opacity: .16; background: var(--tt, #8c86ec); pointer-events: none; }
.px-tour::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tt, #8c86ec); }
.px-tour:hover { transform: translateY(-1px); }
.px-tour-medal { position: relative; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); flex: none; }
.px-tour-txt { position: relative; flex: 1; min-width: 0; }
.px-tour-name { font-weight: 800; font-size: 13.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-tour-res { font-size: 12px; color: #d9d3f3; margin-top: 2px; }
.px-tour-res b { color: var(--tt, #cdb6ff); font-weight: 800; }
.px-tour-crown { position: relative; font-size: 17px; filter: drop-shadow(0 0 6px rgba(255, 200, 80, .8)); }
.px-tour--gold { --tt: #ffd479; border-color: rgba(255, 212, 121, .45); box-shadow: 0 0 22px -8px rgba(255, 200, 80, .55) inset; }
.px-tour--gold::before { background: linear-gradient(100deg, #ffd479, #ff9e3d); opacity: .2; }
.px-tour--silver { --tt: #d7dbe6; border-color: rgba(215, 219, 230, .38); }
.px-tour--bronze { --tt: #e0a06a; border-color: rgba(224, 160, 106, .38); }
.px-tour--mid { --tt: #a99cf5; }
.px-tour--active { --tt: #5aa9ff; }
.px-tour--part { --tt: #7f88a3; }
.px-tour--reg { --tt: #46e0a0; }

/* ---------- نموذج التقديم على البطولة ---------- */
.tjf-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: #d7d2f0; display: flex; align-items: center; gap: 6px; }
.tjf-input { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1.5px solid rgba(140, 134, 236, .3); color: #fff; font-size: 15.5px; font-weight: 600; font-family: inherit; box-sizing: border-box; transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease); }
.tjf-input::placeholder { color: #8a83ad; font-weight: 500; }
.tjf-input:focus { outline: none; border-color: #8c86ec; background: rgba(140, 134, 236, .09); box-shadow: 0 0 0 4px rgba(140, 134, 236, .17); }
.tjf-input:-webkit-autofill,
.tjf-input:-webkit-autofill:hover,
.tjf-input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #191732 inset; caret-color: #fff; border-color: rgba(140, 134, 236, .3); }

.tr-card--hidden { opacity: .72; }
.tr-past-btn { display: inline-flex; align-items: center; gap: 9px; }
.tr-empty-live { text-align: center; padding: 22px 0 4px; grid-column: 1 / -1; }

/* ---------- تسجيل الدخول ---------- */
.login-wrap { min-height: 64vh; display: grid; place-items: center; padding: 30px 18px; }
.login-card { width: min(440px, 94vw); text-align: center; padding: clamp(34px, 5vw, 50px) clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(28, 22, 58, .82), rgba(14, 11, 30, .8)); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); animation: pop .4s var(--ease); }
.login-card .llogo { width: 80px; height: 80px; margin: 0 auto 18px; }
.login-card .llogo img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(108, 100, 226, .55)); }
.login-card h2 { font-family: var(--f-head); font-size: 26px; margin-bottom: 8px; color: #fff; }
.login-card p { color: var(--text-2); margin-bottom: 26px; }

/* ---------- التذييل ---------- */
.ftr { position: relative; z-index: 2; border-top: 1px solid var(--border); background: rgba(7, 6, 15, .55); margin-top: 40px; }
.ftr-in { max-width: 1160px; margin-inline: auto; padding: 26px clamp(16px, 5vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.ftr-in a { color: var(--muted-2); }
.ftr-in a:hover { color: #fff; }

/* ---------- توستات ---------- */
.toasts { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: rgba(18, 15, 38, .96); border: 1px solid var(--border-2); border-inline-start: 4px solid var(--ac); border-radius: var(--radius-sm); padding: 13px 18px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: min(380px, 92vw); backdrop-filter: blur(12px); animation: pop .3s var(--ease); }
.toast.ok { border-inline-start-color: var(--ok); } .toast.ok i { color: var(--ok); }
.toast.err { border-inline-start-color: var(--danger); } .toast.err i { color: var(--danger); }
.toast.info i { color: var(--ac-soft); }

/* ---------- سكيلتون ---------- */
.sk { position: relative; overflow: hidden; background: rgba(140, 134, 228, .08); border-radius: 12px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(170, 163, 240, .12), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { aspect-ratio: 16 / 13; border-radius: var(--radius-lg); }

/* a11y */
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; border-radius: 6px; }

/* قائمة الجوال */
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; padding-inline: 12px; }
  .uchip .un { display: none; }
  .hero { padding-top: 28px; }
  .cat-head { flex-direction: column; align-items: stretch; }
  .pd-actions .btn { min-width: 100%; }
  .grid-products { grid-template-columns: 1fr; }
  .px-stats { grid-template-columns: 1fr; }
  .toasts { inset-inline: 12px; }
  .toast { width: 100%; }
}
.btn-hide-sm { }
@media (max-width: 420px) { .btn-hide-sm span { display: none; } .btn-hide-sm { padding: 11px; } }

/* ============================================================
   مودال تأكيد أنيق + حالات المشتريات
   ============================================================ */
.cmodal { width: min(420px, 100%); border-radius: var(--radius-lg, 24px); border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(24, 22, 42, .99), rgba(13, 12, 22, .99)); box-shadow: 0 36px 92px -26px rgba(0, 0, 0, .85), 0 0 70px -34px var(--ac-glow); padding: 30px 26px 24px; text-align: center; position: relative; overflow: hidden; animation: cmIn .4s cubic-bezier(.2, .9, .25, 1.05) both; }
.cmodal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ac), transparent); }
.cmodal.danger { border-color: rgba(255, 90, 110, .3); box-shadow: 0 36px 92px -26px rgba(0, 0, 0, .85), 0 0 70px -34px rgba(255, 80, 100, .5); }
.cmodal.danger::before { background: linear-gradient(90deg, transparent, #ff5d77, transparent); }
@keyframes cmIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.cm-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(145deg, var(--ac), var(--ac-deep)); box-shadow: 0 16px 36px -12px var(--ac-glow), inset 0 1px 0 rgba(255, 255, 255, .3); animation: cmFloat 3.4s ease-in-out infinite; }
.cmodal.danger .cm-ic { background: linear-gradient(145deg, #ff5d77, #c2304a); box-shadow: 0 16px 36px -12px rgba(255, 70, 100, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
@keyframes cmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cm-ic svg { width: 1em; height: 1em; }
.cm-title { font-family: var(--f-head); font-weight: 800; font-size: 21px; color: #fff; }
.cm-body { color: var(--muted-2); font-size: 14px; line-height: 1.75; margin-top: 8px; }
.cm-lines { margin: 18px 0 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: rgba(0, 0, 0, .22); }
.cm-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.cm-line + .cm-line { border-top: 1px solid var(--border); }
.cm-line .k { color: var(--muted-2); font-size: 13px; }
.cm-line .v { font-weight: 800; color: #fff; font-family: var(--f-mono); }
.cm-line:last-child .v { color: var(--ac-soft); font-size: 16px; }
.cm-actions { display: flex; gap: 10px; margin-top: 20px; }
.cm-actions .btn { flex: 1; }
.cm-actions .btn svg { width: 1em; height: 1em; }

/* هيدر صفحة «حسابي»، بانر + صورة بروفايل */
.acc-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(23, 23, 27, .6), rgba(12, 12, 14, .7)); box-shadow: var(--shadow); margin-bottom: 26px; --pa: var(--ac); animation: pop .4s var(--ease) both; }
.acc-banner { height: 168px; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--pa), color-mix(in srgb, var(--pa) 50%, #16142a)); }
.acc-banner img { width: 100%; height: 100%; object-fit: cover; }
.acc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 9, 18, .9)); }
.acc-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .12) 48%, transparent 66%); transform: translateX(-120%); animation: accSheen 7s ease-in-out infinite; z-index: 1; }
@keyframes accSheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.acc-bar { display: flex; align-items: flex-end; gap: 18px; padding: 0 26px 22px; margin-top: -54px; position: relative; z-index: 2; flex-wrap: wrap; }
.acc-avwrap { position: relative; width: 112px; height: 112px; border-radius: 50%; flex: none; }
.acc-avwrap::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, var(--pa), color-mix(in srgb, var(--pa) 45%, #fff), var(--pa)); animation: accSpin 9s linear infinite; }
@keyframes accSpin { to { transform: rotate(360deg); } }
.acc-av { position: relative; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 5px solid #131317; background: #131317; }
.acc-id { flex: 1; min-width: 0; padding-bottom: 8px; }
.acc-eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ac-soft); margin-bottom: 5px; }
.acc-name { font-family: var(--f-head); font-weight: 800; font-size: clamp(22px, 3vw, 28px); color: #fff; line-height: 1.1; }
.acc-handle { color: var(--muted-2); font-family: var(--f-mono); font-size: 14px; margin-top: 4px; }
.acc-pcbtn { align-self: center; }
.acc-pcbtn svg { width: 1em; height: 1em; }
@media (prefers-reduced-motion: reduce) { .acc-avwrap::before, .acc-banner::before { animation: none; } }

/* رابط المطوّر في الفوتر + شارة المطوّر في البطاقة */
.dev-link { color: var(--ac-soft); font-weight: 800; cursor: pointer; border-bottom: 1px dashed color-mix(in srgb, var(--ac) 55%, transparent); transition: .15s; }
.dev-link:hover { color: #fff; border-bottom-color: var(--ac); text-shadow: 0 0 18px var(--ac-glow); }
.px-devtag { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.px-devtag svg { width: 14px; height: 14px; }

/* حالات إضافية للمشتريات */
.st-removed { background: rgba(255, 150, 90, .12); color: #ffc08a; border: 1px solid rgba(255, 150, 90, .32); }
.prow-removed { opacity: .92; border-color: rgba(255, 150, 90, .22); background: linear-gradient(180deg, rgba(40, 26, 18, .35), rgba(14, 12, 30, .5)); }
.prow .pi-removed { color: #ffc08a; background: linear-gradient(140deg, rgba(255, 150, 90, .2), rgba(255, 150, 90, .04)); border-color: rgba(255, 150, 90, .3); }
.p-note { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 12.5px; color: #ffc08a; }
.p-note svg { width: 15px; height: 15px; flex: none; }
.prow .btn.danger.sm svg { width: 1em; height: 1em; }

/* ==================== البطولات ==================== */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.tr-card { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(140, 134, 236, .22); min-height: 210px; cursor: pointer; isolation: isolate; animation: cardin .5s var(--ease) both; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tr-card:hover { transform: translateY(-6px); border-color: rgba(155, 140, 255, .55); box-shadow: 0 30px 60px -24px rgba(108, 100, 226, .65); }
.tr-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform .6s var(--ease); }
.tr-card:hover .tr-bg { transform: scale(1.06); }
.tr-bg video, .tr-bg img, .tr-hero-bg video, .tr-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 7, 20, .18) 0%, rgba(9, 7, 20, .62) 55%, rgba(7, 5, 16, .95) 100%); }
.tr-body { position: relative; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; min-height: 210px; padding: 16px; }
.tr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: absolute; top: 12px; inset-inline: 12px; }
.tr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; color: var(--tc, #b7aef7); border: 1px solid color-mix(in srgb, var(--tc, #b7aef7) 45%, transparent); background: color-mix(in srgb, var(--tc, #b7aef7) 13%, rgba(10, 8, 22, .7)); backdrop-filter: blur(6px); }
.tr-chip svg { width: 13px; height: 13px; }
.tr-fee { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #ffd479; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 212, 121, .4); background: rgba(20, 16, 8, .55); backdrop-filter: blur(6px); }
.tr-fee.free { color: #46e0a0; border-color: rgba(70, 224, 160, .4); }
.tr-fee svg { width: 13px; height: 13px; }
.tr-name { font-family: var(--f-head); font-weight: 800; font-size: 21px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.tr-game { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #cdc7ea; }
.tr-game svg { width: 14px; height: 14px; }
.tr-champ { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: #ffd479; }
.tr-champ svg { width: 16px; height: 16px; }
.tr-slots { display: flex; align-items: center; gap: 10px; }
.tr-slots-bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tr-slots-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8c86ec, #ffd479); box-shadow: 0 0 12px rgba(140, 134, 236, .8); transition: width .5s var(--ease); }
.tr-slots-txt { font-size: 12px; color: #b8b1d6; white-space: nowrap; }

/* صفحة البطولة */
.tr-hero { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid rgba(140, 134, 236, .3); isolation: isolate; box-shadow: 0 34px 80px -30px rgba(108, 100, 226, .6); }
.tr-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tr-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 7, 20, .3), rgba(8, 6, 18, .68) 50%, rgba(7, 5, 15, .96)); }
.tr-hero-body { padding: clamp(26px, 5vw, 46px); padding-top: clamp(60px, 9vw, 110px); }
.tr-hero-name { font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 5vw, 44px); margin: 12px 0 6px; background: linear-gradient(180deg, #fff, #d9d3f5 60%, #b3a8ef); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .5)); }
.tr-hero-desc { max-width: 62ch; color: #c9c2e8; line-height: 1.8; }
.tr-joined { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--tc, #46e0a0); padding: 11px 18px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--tc, #46e0a0) 45%, transparent); background: color-mix(in srgb, var(--tc, #46e0a0) 10%, transparent); }
.tr-joined svg { width: 17px; height: 17px; }
.tr-winner-tag { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: #ffd479; padding: 12px 20px; border-radius: 14px; border: 1px solid rgba(255, 212, 121, .5); background: rgba(255, 212, 121, .1); box-shadow: 0 0 26px -6px rgba(255, 212, 121, .45); }
.tr-winner-tag svg { width: 19px; height: 19px; }
.tr-sec { display: flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 800; font-size: 19px; color: #f1eefb; margin: 30px 0 14px; }
.tr-sec svg { width: 19px; height: 19px; color: #8c86ec; }
.tr-people { display: flex; flex-wrap: wrap; gap: 9px; }
.tr-person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 8px; border-radius: 999px; border: 1px solid rgba(140, 134, 236, .26); background: rgba(22, 18, 44, .6); }
.tr-person img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(140, 134, 236, .5); }
.tr-person-n { font-size: 13px; font-weight: 600; color: #e2ddf7; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-person-col { display: inline-flex; flex-direction: column; line-height: 1.25; }
.tr-person-sub { font-size: 10.5px; font-weight: 500; color: #9089b5; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-await { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(140, 134, 236, .4); color: #b8b1d6; }
.tr-await svg { width: 18px; height: 18px; color: #8c86ec; }

/* الشبكة الإقصائية */
.br-scroll { overflow-x: auto; max-width: 100%; min-width: 0; padding: 6px 2px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.br-tree { display: flex; flex-direction: row; align-items: flex-start; width: max-content; direction: rtl; }
.br-col { display: flex; flex-direction: column; }
.br-round { align-self: center; font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: #cabfff; padding: 5px 15px; border-radius: 999px; border: 1px solid rgba(140, 134, 236, .35); background: rgba(140, 134, 236, .1); margin-bottom: 12px; white-space: nowrap; }
.br-lane { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.br-match { width: 218px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(140, 134, 236, .26); background: linear-gradient(180deg, rgba(26, 21, 52, .92), rgba(15, 12, 32, .92)); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7); display: flex; flex-direction: column; }
.br-side { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; }
.br-side img { width: 24px; height: 24px; border-radius: 50%; flex: none; border: 1px solid rgba(140, 134, 236, .5); }
.br-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; border: 1px dashed rgba(140, 134, 236, .4); }
.br-pn { flex: 1; font-size: 13px; font-weight: 700; color: #e6e1fa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-side.tbd .br-pn { color: #6f6a92; }
.br-side.win { background: linear-gradient(90deg, rgba(255, 212, 121, .16), rgba(140, 134, 236, .08)); }
.br-side.win .br-pn { color: #ffd479; }
.br-side.win img { border-color: #ffd479; box-shadow: 0 0 10px rgba(255, 212, 121, .5); }
.br-side.lose { opacity: .45; filter: saturate(.6); }
.br-w { color: #ffd479; display: inline-flex; }
.br-w svg { width: 14px; height: 14px; }
.br-vs { height: 1px; background: linear-gradient(90deg, transparent, rgba(140, 134, 236, .35), transparent); }
.br-conn { flex: none; }
.br-conn svg { display: block; filter: drop-shadow(0 0 6px rgba(140, 134, 236, .45)); }

/* عرش البطل */
.br-throne { width: 190px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border-radius: 20px; border: 1px solid rgba(255, 212, 121, .35); background: radial-gradient(120% 90% at 50% 0%, rgba(255, 212, 121, .12), rgba(20, 16, 40, .9) 60%); }
.br-throne.has { border-color: rgba(255, 212, 121, .7); box-shadow: 0 0 44px -8px rgba(255, 212, 121, .55); animation: thronePulse 3s ease-in-out infinite; }
@keyframes thronePulse { 0%, 100% { box-shadow: 0 0 34px -8px rgba(255, 212, 121, .45); } 50% { box-shadow: 0 0 54px -6px rgba(255, 212, 121, .75); } }
.br-crown { color: #ffd479; filter: drop-shadow(0 0 10px rgba(255, 212, 121, .8)); }
.br-crown svg { width: 30px; height: 30px; }
.br-throne-av { width: 68px; height: 68px; border-radius: 50%; border: 3px solid #ffd479; box-shadow: 0 0 22px rgba(255, 212, 121, .6); }
.br-throne-q { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #6f6a92; border: 2px dashed rgba(140, 134, 236, .45); }
.br-throne-n { font-weight: 800; font-size: 14px; color: #ffe9bd; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .tr-grid { grid-template-columns: 1fr; }
  .br-match { width: 190px; }
}

/* تحصين الهيدر للجوالات الضيقة، ما يفيض أفقياً أبداً */
@media (max-width: 520px) {
  .hdr .nav { gap: 8px; padding-inline: 10px; }
  .hdr .brand .bt span { display: none; }             /* نخفي "KL Store" الثانوي */
  .hdr .btn { padding: 8px 10px; font-size: 12.5px; }
  .hdr .btn-admin span { display: none; }             /* أيقونة الإدارة تكفي */
}

/* ==== نقاط البطولات TP + التوقعات ==== */
.tp-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(90, 209, 201, .45); background: linear-gradient(180deg, rgba(90, 209, 201, .14), rgba(90, 209, 201, .05)); color: #8ff0e8; font-weight: 800; font-size: 14.5px; box-shadow: 0 8px 26px -14px rgba(90, 209, 201, .6); }
.tp-pill svg { width: 17px; height: 17px; }
.tp-pill b { font-size: 17px; color: #c2fff9; }
.tp-pill-l { color: rgba(143, 240, 232, .75); font-weight: 600; font-size: 12.5px; margin-inline-start: 2px; }

.tr-predict-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(190, 140, 255, .4); background: linear-gradient(90deg, rgba(140, 108, 255, .12), rgba(140, 108, 255, .03)); color: #d9c9ff; font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.tr-predict-hint svg { width: 18px; height: 18px; color: #c99cff; flex: none; animation: predictPulse 2.6s ease-in-out infinite; }
.tr-predict-hint b { color: #ffd479; }
@keyframes predictPulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }

/* صف قابل للتوقع */
.br-side.pick { cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }
.br-side.pick:hover { background: rgba(140, 108, 255, .14); box-shadow: inset 3px 0 0 rgba(190, 140, 255, .8); }
.br-side.pick:focus-visible { outline: 2px solid #8c86ec; outline-offset: -2px; }
/* توقعي الحالي */
.br-side.mypick { background: linear-gradient(90deg, rgba(140, 108, 255, .2), rgba(140, 108, 255, .05)); box-shadow: inset 3px 0 0 #b48cff; }
.br-side.mypick .br-pn { color: #dcc9ff; }
.br-mine { display: inline-flex; color: #c99cff; }
.br-mine svg { width: 14px; height: 14px; filter: drop-shadow(0 0 6px rgba(190, 140, 255, .8)); }
/* عدّاد المتوقعين */
.br-votes { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(140, 134, 236, .14); border: 1px solid rgba(140, 134, 236, .3); color: #b7aef7; font-size: 10.5px; font-weight: 800; flex: none; }
.br-votes svg { width: 10px; height: 10px; }
/* نتيجة توقعي بعد الحسم */
.br-hit { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(70, 224, 160, .16); border: 1px solid rgba(70, 224, 160, .45); color: #7ef0bf; font-size: 11px; font-weight: 900; flex: none; box-shadow: 0 0 12px -4px rgba(70, 224, 160, .8); }
.br-hit svg { width: 11px; height: 11px; }
.br-miss { display: inline-flex; color: rgba(255, 131, 131, .6); flex: none; }
.br-miss svg { width: 13px; height: 13px; }

/* ==== منتجات الريال السعودي (تذكرة دعم) ==== */
.sar-hint { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 14px; border-radius: 13px; border: 1px solid rgba(70, 209, 201, .28); background: rgba(70, 209, 201, .08); color: #9de9e2; font-size: 13px; font-weight: 600; line-height: 1.6; }
.sar-hint svg { width: 17px; height: 17px; flex: none; }
a.sar-buy { text-decoration: none; }
