@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/brand/lilita-one.woff2") format("woff2"); }
/* ─── اللون الأساسي (من اللوغو)، والذهبي للمصاري — كلو من متغيرات، وإعدادات الموقع بتغيّرها ─── */
body {
  --bg: #0c0915; --brand: #7c3aed; --brand-2: #a78bfa; --on-brand: #ffffff;
  --gold: #f5c04a; --gold-2: #ffdf8a; --sky: #22b4fe;
  /* الباقي محسوب من الخلفية واللون الأساسي (الألوان بتتغيّر من إعدادات الموقع: /site/theme.css) */
  --surface: color-mix(in srgb, var(--brand) 9%, color-mix(in srgb, #fff 3%, var(--bg)));
  --surface-2: color-mix(in srgb, var(--brand) 12%, color-mix(in srgb, #fff 4%, var(--bg)));
  --surface-3: color-mix(in srgb, var(--brand) 18%, color-mix(in srgb, #fff 6%, var(--bg)));
  --border: color-mix(in srgb, var(--brand) 22%, color-mix(in srgb, #fff 8%, var(--bg)));
  --grid: color-mix(in srgb, var(--brand) 16%, color-mix(in srgb, #fff 5%, var(--bg)));
  --brand-soft: color-mix(in srgb, var(--brand) 30%, var(--bg));
  --text: #f3f0fb; --text-2: #c4bcdc; --text-3: #8d84aa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  background:
    radial-gradient(900px 520px at 90% -10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 60%),
    radial-gradient(700px 480px at 0% 105%, color-mix(in srgb, var(--sky) 12%, transparent), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
body.lb-locked { overflow: hidden; }

/* الدخول */
.lb-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.lb-login-card {
  width: 100%; max-width: 380px; display: grid; gap: 14px; text-align: center; padding: 22px 26px 30px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--brand-2) 8%, transparent); backdrop-filter: blur(10px);
}
.lb-login-logo { width: 160px; height: 160px; margin: -6px auto -10px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent)); }
.lb-login-card h1 { font-size: 22px; }
.lb-login-card .field { text-align: start; }
.lb-login-card .btn { height: 46px; font-size: 16px; }
.btn.primary { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--brand-2)), color-mix(in srgb, var(--brand) 85%, #000)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }

/* الشريط: (يمين) القائمة + الرصيد · (يسار) اللوغو والاسم — بعرض محتوى الصفحة */
.lb-top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 14%, transparent);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px);
}
.lb-top-in, .lb-foot-in { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.lb-top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-top-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-burger { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.lb-burger:hover { border-color: var(--brand-2); background: var(--surface-2); }
.lb-wallet {
  display: flex; align-items: baseline; gap: 6px; height: 42px; padding: 0 16px; border-radius: 12px; direction: ltr; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 28%, transparent), color-mix(in srgb, var(--brand) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--brand-2) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); white-space: nowrap;
}
.lb-wallet b { font-size: 17px; color: var(--gold-2); letter-spacing: .3px; }
.lb-wallet span { font-size: 11.5px; font-weight: 700; color: var(--brand-2); }
.lb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; direction: ltr; flex: none; }
.lb-brand img { width: 52px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--sky) 30%, transparent)); }
.lb-brand span { font-family: "Lilita One", "IBM Plex Sans Arabic", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .5px; white-space: nowrap; line-height: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 65%, #fff) 0%, color-mix(in srgb, var(--sky) 70%, var(--brand)) 55%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 6, 30, .9)) drop-shadow(0 0 10px color-mix(in srgb, var(--sky) 25%, transparent)); }

/* الفوتر (بسيط، الصفحات بعدين) */
.lb-foot { border-top: 1px solid color-mix(in srgb, var(--brand-2) 14%, transparent); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.lb-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.lb-foot .lb-brand span { font-size: 20px; }
.lb-foot .lb-brand img { width: 44px; height: 32px; }
.lb-foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.lb-foot-links a { color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.lb-foot-links a:hover { color: var(--brand-2); }
.lb-foot-meta { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; direction: ltr; }
.lb-18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #ff8a8a; border: 2px solid #ff8a8a; }

/* الدراور */
.lb-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 3, 12, .6); backdrop-filter: blur(2px); animation: fade-in .2s both; }
@keyframes fade-in { from { opacity: 0; } }
.lb-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 41; width: min(300px, 84vw); display: flex; flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 14px 18px; overflow-y: auto; visibility: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, var(--bg)), color-mix(in srgb, var(--brand) 5%, var(--bg)) 60%); border-left: 1px solid color-mix(in srgb, var(--brand-2) 25%, transparent);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s;
}
.lb-drawer.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.lb-dr-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 16%, transparent); }
.lb-dr-head img { width: 72px; height: 72px; flex: none; }
.lb-dr-user { display: grid; gap: 2px; min-width: 0; }
.lb-dr-user b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-dr-user span { font-size: 12.5px; direction: ltr; text-align: right; }
.lb-dr-bal { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, transparent), color-mix(in srgb, var(--brand) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent); }
.lb-dr-bal b { color: var(--gold-2); font-size: 17px; direction: ltr; }
.lb-dr-nav { display: grid; gap: 4px; }
.lb-dr-nav button { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: start; transition: background .15s; }
.lb-dr-nav button:hover { background: color-mix(in srgb, var(--brand-2) 10%, transparent); }
.lb-dr-nav button.on { background: color-mix(in srgb, var(--brand) 22%, transparent); color: #fff; box-shadow: inset -3px 0 0 var(--brand-2); }
.lb-dr-nav svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb-dr-nav .out { margin-top: 10px; border-top: 1px solid color-mix(in srgb, var(--brand-2) 14%, transparent); border-radius: 0 0 12px 12px; color: #ff8a8a; }
.lb-dr-nav .out svg { stroke: #ff8a8a; }
@media (max-width: 560px) {
  .lb-top-in { height: 58px; gap: 8px; }
  .lb-top-start { gap: 8px; }
  .lb-burger { width: 38px; height: 38px; border-radius: 11px; }
  .lb-wallet { height: 34px; padding: 0 10px; gap: 4px; border-radius: 10px; }
  .lb-wallet b { font-size: 13.5px; }
  .lb-wallet span { font-size: 10px; }
  .lb-brand { gap: 5px; }
  .lb-brand img { width: 36px; height: 27px; }
  .lb-brand span { font-size: 18px; }
  .lb-wheel-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; margin-inline-start: 4px; }
  .lb-wheel-n { min-width: 17px; height: 17px; font-size: 11px; line-height: 17px; top: -5px; inset-inline-end: -5px; }
  .lb-foot-in { flex-direction: column; text-align: center; }
  .lb-foot-links { justify-content: center; }
}
@media (max-width: 440px) { .lb-top .lb-brand span { display: none; } .lb-top .lb-brand img { width: 44px; height: 33px; } }

/* الألعاب */
.lb-main { max-width: 1320px; margin: 0 auto; padding: 24px 16px 60px; }
.lb-title { font-size: 20px; margin: 0 0 16px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; align-content: start; }
.lb-game {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; text-align: start;
  padding: 0; font: inherit; color: inherit; display: block; width: 100%;
}
.lb-game:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-2) 55%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 0 1px color-mix(in srgb, var(--brand-2) 35%, transparent); }
.lb-game.busy { opacity: .6; cursor: wait; pointer-events: none; }
.lb-art { aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; }
.lb-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-art .ph { font-size: 44px; color: var(--brand-2); }
.lb-info { display: flex; align-items: center; gap: 8px; padding: 9px 11px; }
.lb-info { min-height: 50px; }
.lb-info b { flex: 1; font-size: 13px; line-height: 1.35; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; unicode-bidi: plaintext; text-align: right; }
.lb-play {
  height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 12px; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--brand-2)), color-mix(in srgb, var(--brand) 85%, #000)); color: #fff;
}
@media (max-width: 560px) {
  .lb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-art { aspect-ratio: 4 / 3; }
  .lb-info { padding: 10px; }
  .lb-play { display: none; }
}

/* التبويبات + سجل الرهانات */
.lb-tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.lb-tabs button { border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 700; font-size: 16px; padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.lb-tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand); }
.lb-hist-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lb-hist-bar select { width: auto; min-width: 150px; }
.lb-rounds { display: grid; gap: 8px; }
.lb-round {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main play" "nums play"; gap: 6px 12px; align-items: center;
  width: 100%; text-align: start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .1s;
}
.lb-round:hover { border-color: var(--brand); }
.lb-round.won { background: linear-gradient(90deg, rgba(76, 199, 135, .08), var(--surface) 60%); }
.lb-r-main { grid-area: main; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lb-r-nums { grid-area: nums; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.lb-r-nums > span { display: grid; }
.lb-r-nums i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.lb-r-play { grid-area: play; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--brand-2)), color-mix(in srgb, var(--brand) 85%, #000)); color: #fff; }
.lb-more { display: flex; justify-content: center; padding: 16px; }
@media (max-width: 560px) { .lb-r-nums > .bal { flex-basis: 100%; } }
.lb-id { display: grid; gap: 2px; padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 13px; color: var(--text-2); }
.lb-id b { color: var(--brand-2); font-size: 14px; letter-spacing: .5px; }
.lb-hot { position: absolute; top: 10px; left: 10px; z-index: 1; overflow: hidden; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .4px; color: #fff; direction: ltr;
  background: linear-gradient(135deg, #f97316, #e11d48); box-shadow: 0 2px 10px rgba(225, 29, 72, .45); }
.lb-hot::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-120%) skewX(-20deg);
  animation: hot-shine 2.4s ease-in-out infinite; }
@keyframes hot-shine { 0% { transform: translateX(-120%) skewX(-20deg); } 55%, 100% { transform: translateX(330%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .lb-hot::after { display: none; } }

/* ─── القائمة الجانبية: 4 ألعاب HOT + LIVE ──────────────────── */
.lb-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.lb-side {
  position: sticky; top: 16px; border-radius: 20px; padding: 14px; overflow: hidden; color: var(--text); min-width: 0;
  background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, var(--bg)), color-mix(in srgb, var(--brand) 3%, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--brand-2) 32%, transparent); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 color-mix(in srgb, var(--brand-2) 10%, transparent);
}
.lb-side .faint { color: rgba(226, 220, 245, .55); }
.lb-side-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.lb-side-head b { font-size: 15px; letter-spacing: .4px; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--brand-2) 60%, #fff) 60%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-side-head .faint { margin-inline-start: auto; font-size: 12px; }
.lb-flame { font-size: 18px; filter: drop-shadow(0 0 6px rgba(255, 120, 40, .8)); animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.15) rotate(4deg); } }

/* 4 ألعاب: شبكة 2×2 */
.lb-hotgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lb-hotgame { position: relative; display: block; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; font: inherit; color: inherit;
  background: color-mix(in srgb, var(--brand) 11%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand-2) 26%, transparent); transition: transform .15s, border-color .2s, box-shadow .2s; }
.lb-hotgame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(220, 205, 255, .26) 50%, transparent 65%); background-size: 250% 100%;
  animation: hg-sheen 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes hg-sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.lb-hotgame:hover { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2), 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.lb-hotgame.busy { opacity: .6; cursor: wait; pointer-events: none; }
.lb-hg-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(145deg, #2a1f4a, #150f28); }
.lb-hg-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-hg-art .ph { font-size: 34px; color: var(--brand-2); }
.lb-hg-hot { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .3px;
  color: #fff; direction: ltr; background: linear-gradient(135deg, #f97316, #e11d48); box-shadow: 0 2px 8px rgba(225, 29, 72, .5); }
.lb-hg-name { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: 11.5px; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }

/* LIVE: آخر الأرباح الحقيقية */
.lb-live-head { margin-top: 16px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--brand-2) 16%, transparent); }
.lb-live-head b { background: none; color: #ff5a5a; -webkit-text-fill-color: currentColor; letter-spacing: 1.5px; font-size: 13px; }
.lb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); animation: live-dot 1.6s infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
.lb-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-live-empty { font-size: 12px; padding: 10px 4px; text-align: center; }
.lb-live-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 7%, transparent); border: 1px solid color-mix(in srgb, var(--brand-2) 10%, transparent); animation: live-in .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.lb-live-row.new { animation: live-in .55s cubic-bezier(.2, .9, .3, 1.2) both, live-flash 1.8s ease-out .2s both; }
.lb-live-row.big { border-color: color-mix(in srgb, var(--gold) 35%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 10%, transparent), color-mix(in srgb, var(--brand) 6%, transparent)); }
@keyframes live-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes live-flash { 0% { box-shadow: 0 0 0 1px var(--brand-2), 0 0 18px color-mix(in srgb, var(--brand) 65%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.lb-lr-who, .lb-lr-win { display: grid; gap: 1px; min-width: 0; }
.lb-lr-who b { font-size: 12.5px; text-align: right; }
.lb-lr-who .faint, .lb-lr-win .faint { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-lr-win { text-align: left; flex: none; }
.lb-lr-win b { font-size: 13.5px; font-variant-numeric: tabular-nums; color: #7ee2a8; }
.lb-live-row.big .lb-lr-win b { background: linear-gradient(180deg, #fff3c9, #e8bd67 60%, #b07a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-lr-win i { font-style: normal; font-size: 10px; color: #e8bd67; -webkit-text-fill-color: #e8bd67; }
.lb-lr-who b em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #7ee2a8; margin-inline-start: 6px; }

@media (max-width: 900px) {
  .lb-layout.has-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lb-layout.has-side > .lb-side { order: -1; }
  .lb-side { position: relative; top: 0; padding: 12px; }
  .lb-hotgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .lb-hg-name { font-size: 10px; padding: 14px 4px 4px; }
  .lb-hg-hot { top: 4px; left: 4px; padding: 1px 5px; font-size: 8.5px; }
  .lb-live .lb-live-row:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-flame, .lb-hotgame::after, .lb-live-dot, .lb-live-row, .lb-live-row.new { animation: none; }
}
#app:not(.hidden) { display: flex; flex-direction: column; min-height: 100vh; }
#app > .lb-main { flex: 1; width: 100%; }

/* ─── الشريط المتحرك: الألعاب + آخر الأرباح الحقيقية ───────────────── */
.lb-ticker {
  position: relative; display: flex; align-items: stretch; height: 46px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 22%, var(--bg)), color-mix(in srgb, var(--brand) 9%, var(--bg)) 40%, color-mix(in srgb, var(--brand) 9%, var(--bg)) 60%, color-mix(in srgb, var(--brand) 22%, var(--bg)));
  border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--brand-2) 12%, transparent), 0 8px 24px rgba(0, 0, 0, .25);
}
.lb-ticker::after { /* لمعة خفيفة بتمرق على الشريط */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, color-mix(in srgb, var(--brand-2) 14%, transparent) 50%, transparent 60%); background-size: 300% 100%;
  animation: tk-sheen 7s ease-in-out infinite;
}
@keyframes tk-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.lb-tk-label {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 18px;
  background: linear-gradient(135deg, #e11d48, #b0123a); color: #fff; font-size: 13px; letter-spacing: .5px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); box-shadow: 4px 0 18px rgba(225, 29, 72, .35);
}
.lb-tk-label .lb-live-dot { background: #fff; animation-name: live-dot-w; }
@keyframes live-dot-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.lb-tk-view {
  position: relative; flex: 1; min-width: 0; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.lb-tk-track { position: absolute; top: 0; left: 0; display: flex; align-items: center; width: max-content; height: 100%; will-change: transform; }
.lb-tk-cell { display: flex; align-items: center; flex: none; direction: rtl; }
.lb-tk-view.static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.lb-tk-view.static .lb-tk-track { position: static; }
.lb-tk-sep { flex: none; padding: 0 14px; color: color-mix(in srgb, var(--brand-2) 55%, transparent); font-size: 11px; }
.lb-tk-item {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text); white-space: nowrap; border: 1px solid transparent; background: none; transition: background .15s, border-color .15s, transform .15s;
}
.lb-tk-item:hover, .lb-tk-item:focus-visible { background: color-mix(in srgb, var(--brand-2) 14%, transparent); border-color: color-mix(in srgb, var(--brand-2) 35%, transparent); transform: translateY(-1px); outline: none; }
.lb-tk-item .faint { color: var(--text-3); font-size: 12px; }
.lb-tk-thumb { width: 30px; height: 22px; border-radius: 6px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-2); font-size: 12px; }
.lb-tk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-tk-item.game b { font-weight: 700; unicode-bidi: plaintext; }
.lb-tk-hot { font-size: 12px; }
.lb-tk-go { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--brand-2)), color-mix(in srgb, var(--brand) 85%, #000)); }
.lb-tk-cup { font-size: 15px; }
.lb-tk-who { font-weight: 700; color: var(--brand-2); }
.lb-tk-amt { color: #7ee2a8; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-tk-amt i { font-style: normal; font-size: 10.5px; color: #e8bd67; }
.lb-tk-x { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: var(--gold-2); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.lb-tk-item.big .lb-tk-amt { background: linear-gradient(180deg, #fff3c9, #e8bd67 60%, #b07a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-tk-item.big { border-color: color-mix(in srgb, var(--gold) 30%, transparent); background: color-mix(in srgb, var(--gold) 7%, transparent); animation: tk-glow 2.4s ease-in-out infinite; }
@keyframes tk-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 35%, transparent); } }
@media (max-width: 560px) {
  .lb-ticker { height: 40px; }
  .lb-tk-label { padding: 0 10px 0 14px; font-size: 12px; }
  .lb-tk-item { font-size: 12px; height: 28px; }
  .lb-tk-item .faint, .lb-tk-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-ticker::after, .lb-tk-item.big { animation: none; }
}

/* ─── البحث بالألعاب ───────────────────────────────────────────── */
.lb-games-col { min-width: 0; }
.lb-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.lb-search-box {
  position: relative; flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; cursor: text;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lb-search-box:focus-within { border-color: var(--brand-2); background: var(--surface-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent), 0 10px 30px color-mix(in srgb, var(--brand) 18%, transparent); }
.lb-search-box svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand-2); stroke-width: 2.2; stroke-linecap: round; transition: transform .25s; }
.lb-search-box:focus-within svg { transform: scale(1.12) rotate(-8deg); }
.lb-search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; padding: 0; box-shadow: none; }
.lb-search-box input::placeholder { color: var(--text-3); }
.lb-search-box input::-webkit-search-cancel-button { display: none; }
.lb-kbd { flex: none; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font: 600 12px/1 ui-monospace, monospace;
  color: var(--text-3); border: 1px solid var(--border); background: var(--surface-2); }
.lb-search-box:focus-within .lb-kbd { display: none; }
.lb-search-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  font-size: 12px; color: var(--text); background: var(--surface-3); animation: fade-in .15s both; }
.lb-search-x:hover { background: color-mix(in srgb, var(--brand) 40%, var(--surface-3)); }
.lb-chips { display: flex; gap: 8px; }
.lb-chips button {
  height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.lb-chips button .num { font-size: 11.5px; opacity: .7; margin-inline-start: 2px; }
.lb-chips button:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.lb-chips button.on { color: #fff; border-color: transparent;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--brand-2)), color-mix(in srgb, var(--brand) 85%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.lb-noresult { display: grid; justify-items: center; gap: 8px; padding: 50px 16px; text-align: center; border-radius: 18px;
  border: 1px dashed var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); animation: rise .35s both; }
.lb-nr-ic { font-size: 40px; animation: nr-look 2.2s ease-in-out infinite; }
@keyframes nr-look { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-8px) rotate(-10deg); } 75% { transform: translateX(8px) rotate(10deg); } }
.lb-noresult .faint { unicode-bidi: plaintext; }
.lb-noresult .btn { margin-top: 6px; }
@media (max-width: 560px) { .lb-search-box { height: 44px; } .lb-chips { width: 100%; } .lb-chips button { flex: 1; } .lb-kbd { display: none; } }

/* ─── حركة الكروت: بتطلع ورا بعض، وبتلمع لما تمرق عليها ──────────── */
.lb-game { animation: rise .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.lb-game.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: calc(var(--i, 0) * 25ms); }
.lb-game.out { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.lb-art { position: relative; overflow: hidden; }
.lb-art img { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.lb-game:hover .lb-art img { transform: scale(1.06); }
.lb-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); width: 60%; }
.lb-game:hover .lb-art::after { animation: card-shine .8s ease-out; }
@keyframes card-shine { to { transform: translateX(260%) skewX(-18deg); } }
.lb-game:hover .lb-play { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 30%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .lb-game, .lb-game.pop, .lb-noresult, .lb-nr-ic { animation: none; }
  .lb-game:hover .lb-art img { transform: none; }
  .lb-game:hover .lb-art::after { animation: none; }
}

/* راس صفحة السجل (التنقّل بين الألعاب والسجل صار من القائمة) */
.lb-page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; animation: rise .35s both; }
.lb-page-head h2 { font-size: 20px; margin: 0; }
.lb-back { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.lb-back:hover { border-color: var(--brand-2); background: var(--surface-2); }
.lb-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#view-games { animation: rise .35s both; }
@media (prefers-reduced-motion: reduce) { .lb-page-head, #view-games { animation: none; } }

/* ─── المراهنات الرياضية (قريباً): بنر + المباريات القادمة ───────────── */
.lb-sport { margin-top: 28px; display: grid; gap: 12px; }
.lb-sp-banner {
  position: relative; display: block; width: 100%; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; font: inherit; color: #fff;
  border: 1px solid color-mix(in srgb, #3b82f6 40%, transparent); background: #050b1c; aspect-ratio: 2103 / 748;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(37, 99, 235, .12); transition: transform .25s, box-shadow .25s;
}
.lb-sp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lb-sp-banner:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(59, 130, 246, .7), 0 0 50px rgba(37, 99, 235, .3); }
.lb-sp-banner:hover img { transform: scale(1.02); }
.lb-sp-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg); width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); animation: sp-shine 6s ease-in-out infinite; }
@keyframes sp-shine { 0%, 60% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }
.lb-sp-soon { position: absolute; top: 14px; left: 14px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 16px rgba(37, 99, 235, .55); animation: sp-pulse 2s ease-in-out infinite; }
@keyframes sp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .6); } 50% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); } }
@keyframes sp-ball { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-14px) rotate(180deg); } 60% { transform: translateY(-4px) rotate(250deg); } }
.lb-sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.lb-sp-head b { font-size: 16px; }
.lb-sp-head .faint { font-size: 11.5px; }
.lb-sp-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 2px 0 4px; }
.lb-sp-list > .lb-sp-empty { grid-column: 1 / -1; }
.lb-sp-empty { padding: 18px; text-align: center; border-radius: 16px; border: 1px dashed var(--border); }
.lb-sp-match {
  position: relative; min-width: 0; display: grid; gap: 9px; padding: 11px 10px; border-radius: 16px; cursor: pointer; text-align: start; font: inherit; color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, #60a5fa 7%, var(--surface)), var(--surface)); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s; animation: rise .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.lb-sp-match:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .55); }
.lb-sp-league { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); min-width: 0; }
.lb-sp-league img { width: 16px; height: 16px; object-fit: contain; }
.lb-sp-league span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sp-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.lb-sp-team { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.lb-sp-team b { font-size: 12px; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; unicode-bidi: plaintext; }
.lb-sp-badge { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #fff 8%, var(--surface-2)); }
.lb-sp-badge::before { content: attr(data-ini); font-size: 13px; font-weight: 800; color: var(--text-2); direction: ltr; }
.lb-sp-badge img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.lb-sp-badge:has(img)::before { content: none; }
.lb-sp-vs { font-family: "Lilita One", "IBM Plex Sans Arabic", sans-serif; font-size: 13px; color: #60a5fa; letter-spacing: 1px; text-shadow: 0 0 12px rgba(59, 130, 246, .45); }
.lb-sp-when { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; font-size: 11.5px; white-space: nowrap; color: var(--text-2);
  background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lb-sp-when span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lb-sp-when b { flex: none; font-variant-numeric: tabular-nums; color: var(--text); }
.lb-sp-when.soon { background: rgba(59, 130, 246, .12); color: #bfdbfe; }
.lb-sp-bet { justify-self: stretch; text-align: center; height: 30px; display: grid; place-items: center; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  color: #bfdbfe; border: 1px dashed rgba(59, 130, 246, .45); }
.lb-sp-match:hover .lb-sp-bet { background: rgba(59, 130, 246, .12); }
.lb-soon { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 4px 4px; }
.lb-soon-ic { font-size: 54px; animation: sp-ball 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.lb-soon b { font-size: 19px; }
.lb-soon p { margin: 0; }
.lb-soon .btn { min-width: 140px; margin-top: 6px; }
@media (max-width: 560px) {
  .lb-sp-banner { border-radius: 14px; }
  .lb-sp-soon { top: 8px; left: 8px; padding: 2px 10px; font-size: 11px; }
  .lb-sp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lb-sp-match { padding: 10px 7px; gap: 8px; }
  .lb-sp-teams { gap: 3px; }
  .lb-sp-team b { font-size: 11px; }
  .lb-sp-badge { width: 34px; height: 34px; }
  .lb-sp-vs { font-size: 11px; }
  .lb-sp-when { font-size: 10.5px; padding: 5px 6px; }
}
@media (min-width: 901px) and (max-width: 1200px) { .lb-sp-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 900px) { .lb-sp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .lb-sp-banner::after, .lb-sp-soon, .lb-sp-match, .lb-soon-ic { animation: none; }
  .lb-sp-banner:hover img { transform: none; }
}

/* ─── رأس الصفحة: البنرات + الشريط + البحث (بعرض جسم الموقع) ───────── */
.lb-head { display: grid; gap: 14px; margin-bottom: 22px; }
.lb-head .lb-search { margin-bottom: 0; }
.lb-head .lb-search-box { flex: 1 1 100%; }
.lb-ticker { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent); }
.lb-tk-label { clip-path: none; border-radius: 0 13px 13px 0; padding: 0 16px; }
.lb-tk-label::after { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px;
  background: linear-gradient(135deg, #e11d48, #b0123a); clip-path: polygon(0 50%, 100% 0, 100% 100%); }

/* الكاروسيل */
.lb-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 2; background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--brand-2) 26%, transparent); box-shadow: 0 22px 60px rgba(0, 0, 0, .45); isolation: isolate; }
.lb-hero-view { position: absolute; inset: 0; touch-action: pan-y; user-select: none; }
.lb-hero-slide { position: absolute; inset: 0; padding: 0; border: 0; margin: 0; background: none; cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s .8s; }
.lb-hero-slide.on { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
.lb-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; -webkit-user-drag: none; }
.lb-hero-slide.on img { transform: scale(1); }
.lb-hero-slide:focus-visible { outline: 3px solid var(--brand-2); outline-offset: -3px; }
.lb-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.lb-hero-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(10, 8, 25, .62); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .2s, transform .2s, background .2s; }
.lb-hero-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-hero-nav:hover { opacity: 1; background: color-mix(in srgb, var(--brand) 70%, rgba(10, 8, 25, .7)); transform: scale(1.06); }
.lb-hero-nav.prev { right: 16px; }
.lb-hero-nav.next { left: 16px; }
.lb-hero-dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 8, 25, .55); backdrop-filter: blur(6px); }
.lb-hero-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, .35); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .2s; }
.lb-hero-dots button.on { width: 38px; background: rgba(255, 255, 255, .28); }
.lb-hero-dots button i { position: absolute; inset: 0; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: inherit; }
.lb-hero-dots button.on i { animation: hero-prog var(--hero-ms, 6000ms) linear forwards; }
.lb-hero.paused .lb-hero-dots button.on i { animation-play-state: paused; }
@keyframes hero-prog { to { transform: scaleX(1); } }
.lb-hero.single .lb-hero-nav, .lb-hero.single .lb-hero-dots { display: none; }
@media (max-width: 560px) {
  .lb-head { gap: 10px; margin-bottom: 16px; }
  .lb-hero { border-radius: 14px; }
  .lb-hero-nav { width: 32px; height: 32px; margin-top: -16px; }
  .lb-hero-nav svg { width: 16px; height: 16px; }
  .lb-hero-nav.prev { right: 8px; }
  .lb-hero-nav.next { left: 8px; }
  .lb-hero-dots { bottom: 8px; gap: 6px; padding: 4px 8px; }
  .lb-hero-dots button { width: 7px; height: 7px; }
  .lb-hero-dots button.on { width: 24px; }
  .lb-ticker { border-radius: 11px; }
}
@media (hover: none) { .lb-hero-nav { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .lb-hero-slide, .lb-hero-slide.on, .lb-hero-slide img { transition: none; }
  .lb-hero-slide img { transform: none; }
  .lb-hero-dots button.on i { animation: none; transform: scaleX(1); }
}

/* زر عجلة الحظ بالشريط */
.lb-wheel-btn { position: relative; border: 0; background: linear-gradient(180deg, #ffd76a, #f59e1b); width: 40px; height: 40px; border-radius: 12px; font-size: 21px;
  cursor: pointer; display: grid; place-content: center; margin-inline-start: 8px; box-shadow: 0 4px 14px rgba(245, 158, 27, .35); }
.lb-ly-btn { background: linear-gradient(180deg, #d9b8ff, #8e5cf6); }
.lb-wheel-n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3d5a; color: #fff;
  font: 700 12px/20px system-ui, sans-serif; text-align: center; }

/* ─── الصفحات: ملفي، عجلة الحظ، نقاط الولاء ─── */
.lb-page { animation: rise .35s both; }
.lb-page-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.lb-side { position: sticky; top: 80px; }
.lw.lw-inline { width: 100%; max-height: none; overflow: visible; font-family: inherit; }
.lw-inline .lw-body { padding: 22px 24px 26px; }
@media (min-width: 900px) {
  .lw-inline .lw-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; align-items: start; }
  .lw-inline .lw-wheel-wrap { width: min(380px, 100%); }
  .lw-inline .lw-side h4:first-child { margin-top: 0; }
  .lw-inline .ly-level { padding: 18px; }
  .lw-inline .ly-level b { font-size: 26px; }
  .lw-inline .ly-ic { font-size: 48px; }
}
@media (max-width: 1100px) { .lb-page-grid { grid-template-columns: 280px minmax(0, 1fr); } }
@media (max-width: 760px) { .lb-page-grid { grid-template-columns: 1fr; gap: 14px; } .lb-side { position: static; } .lw-inline .lw-body { padding: 16px; } }

/* الكرت الجانبي */
.lb-sc { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.lb-sc-who { display: flex; align-items: center; gap: 12px; }
.lb-sc-who div { display: grid; gap: 2px; min-width: 0; }
.lb-sc-who b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sc-who small { font-size: 11.5px; }
.lb-sc-bal { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.lb-sc-bal small { color: var(--text-3); }
.lb-sc-bal b { font-size: 22px; color: var(--gold-2); }
.lb-sc-bal b span { font-size: 12px; color: var(--text-3); }
.lb-sc-rows { display: grid; gap: 10px; }
.lb-sc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.lb-sc-row .ic { font-size: 26px; line-height: 1; }
.lb-sc-row div { display: grid; gap: 1px; min-width: 0; }
.lb-sc-row small { font-size: 11px; color: var(--text-3); }
.lb-sc-row b { font-size: 15px; color: var(--c); white-space: nowrap; }
.lb-sc-row b em { font-style: normal; font-size: 12px; color: var(--text-2); }
.lb-sc-row .end { text-align: start; border-inline-start: 1px solid color-mix(in srgb, var(--c) 30%, transparent); padding-inline-start: 10px; }
.lb-sc-nav { display: grid; gap: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.lb-sc-nav a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: 14px; }
.lb-sc-nav a:hover { background: var(--surface-2); color: var(--text); }
.lb-sc-nav a.on { background: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--text); font-weight: 700; }

.lb-pf-btn { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 70%, #fff), var(--brand)); text-decoration: none; }
.lb-avatar { display: grid; place-content: center; width: 100%; height: 100%; font: 800 14px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: #fff; letter-spacing: .5px; }
.lb-avatar.big { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 70%, #fff), var(--brand)); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 45%, transparent); }
.lb-pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lb-pf-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--surface) 85%, transparent)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .15s, border-color .15s; }
.lb-pf-tile:hover { transform: translateY(-2px); border-color: var(--c); text-decoration: none; }
.lb-pf-tile:hover * { text-decoration: none; }
.lb-pf-tile .ic { grid-row: 1 / 4; font-size: 36px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.lb-pf-tile small { color: var(--text-3); font-size: 12px; }
.lb-pf-tile b { font-size: 18px; color: var(--c); }
.lb-pf-tile .faint { font-size: 12.5px; }
.lb-pf-tile em { position: absolute; inset-inline-start: 14px; top: 14px; font-style: normal; font-size: 12px; color: var(--text-3); }
.lb-pf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lb-pf-actions .btn { flex: 1; height: 44px; max-width: 280px; }
@media (max-width: 560px) { .lb-pf-btn { margin-inline-start: 4px; } }
.lb-pf-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.lb-pf-sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lb-pf-sec-h a { text-decoration: none; }
.lb-pf-rounds { display: grid; }
.lb-pf-rounds > div { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--border); }
.lb-pf-rounds > div:first-child { border-top: 0; }
.lb-pf-rounds .g { display: grid; gap: 1px; min-width: 0; }
.lb-pf-rounds .g b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pf-rounds .n { display: grid; gap: 1px; text-align: start; min-width: 90px; }
.lb-pf-rounds .n small { color: var(--text-3); font-size: 11px; }
.lb-pf-rounds .pos { color: #5ee08a; }
.lb-pf-rounds .won { background: linear-gradient(90deg, transparent, color-mix(in srgb, #5ee08a 8%, transparent)); }
@media (max-width: 760px) {
  .lb-sc { padding: 14px; gap: 10px; }
  .lb-sc-nav { display: none; }
  .lb-sc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-sc-row { grid-template-columns: auto 1fr; }
  .lb-sc-row .end { display: none; }
}

/* ─── اختيار نمط اللعب: حقيقي أو For Fun ─── */
.lb-pick { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 12px;
  background: linear-gradient(180deg, rgba(8, 5, 18, .55), rgba(8, 5, 18, .88)); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .18s; }
.lb-game.open .lb-pick, .lb-hotgame.open .lb-pick { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .lb-game:hover .lb-pick, .lb-hotgame:hover .lb-pick, .lb-game:focus-visible .lb-pick, .lb-hotgame:focus-visible .lb-pick { opacity: 1; pointer-events: auto; } }
.lb-game.no-fun .lb-pick, .lb-hotgame.no-fun .lb-pick { display: none; }
.lb-pick-real, .lb-pick-fun { border: 0; border-radius: 12px; height: 40px; padding: 0 10px; font: 700 13px/1 inherit; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: transform .12s, filter .12s; }
.lb-pick-real:hover, .lb-pick-fun:hover { transform: translateY(-1px); filter: brightness(1.08); }
.lb-pick-real { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2b1600; box-shadow: 0 6px 16px rgba(245, 192, 74, .35); }
.lb-pick-fun { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.lb-pick-fun small { font-size: 10px; letter-spacing: .8px; padding: 2px 6px; border-radius: 6px; background: var(--sky); color: #04111f; font-weight: 800; }
.lb-hotgame .lb-pick { padding: 8px; gap: 6px; }
.lb-hotgame .lb-pick-real, .lb-hotgame .lb-pick-fun { height: 34px; font-size: 11.5px; }
.lb-hotgame .lb-pick-fun small { display: none; }
@media (max-width: 560px) { .lb-pick-real, .lb-pick-fun { height: 36px; font-size: 12px; } }
.lb-mode-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 2, 12, .72); display: grid; place-items: center; padding: 16px; }
.lb-mode { width: min(340px, 100%); background: linear-gradient(180deg, #241640, #120b24); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: grid; gap: 10px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.lb-mode-art { width: 120px; aspect-ratio: 16 / 10; margin: 0 auto 4px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 36px; color: var(--brand-2); background: var(--surface-2); }
.lb-mode-art img { width: 100%; height: 100%; object-fit: cover; }
.lb-mode b { font-size: 17px; }
.lb-mode .lb-pick-real, .lb-mode .lb-pick-fun { height: 46px; font-size: 15px; }
.lb-mode-x { border: 0; background: none; color: var(--text-3); cursor: pointer; font: inherit; padding: 6px; }

/* ─── صفحات الفوتر: عن المنصة، الشروط، اللعب المسؤول، تواصل معنا ─── */
.lb-doc { max-width: 860px; margin: 0 auto; padding: 26px 30px 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); line-height: 1.95; font-size: 15.5px; color: var(--text-2); }
.lb-doc h3 { margin: 22px 0 8px; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.lb-doc h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--brand-2), var(--brand)); }
.lb-doc h3:first-child { margin-top: 0; }
.lb-doc p { margin: 0 0 12px; }
.lb-doc ul { margin: 0 0 14px; padding: 0 22px 0 0; display: grid; gap: 6px; }
.lb-doc li::marker { color: var(--brand-2); }
.lb-doc b { color: var(--text); }
.lb-doc-t { font-size: 21px; margin: 0 0 14px; color: var(--text); }
.lb-ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.lb-ct { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .15s, border-color .15s, box-shadow .15s; }
.lb-ct:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 25%, transparent); }
.lb-ct .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); }
.lb-ct .ic svg { width: 24px; height: 24px; }
.lb-ct span:last-child { display: grid; gap: 1px; min-width: 0; line-height: 1.4; }
.lb-ct small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.lb-ct-whatsapp { --c: #25d366; } .lb-ct-telegram { --c: #2aabee; } .lb-ct-facebook { --c: #1877f2; } .lb-ct-instagram { --c: #d62976; } .lb-ct-email { --c: #8b8fa3; }
@media (max-width: 560px) { .lb-doc { padding: 18px 16px; font-size: 14.5px; border-radius: 14px; } }
/* من شاشة الدخول */
.lb-login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12.5px; margin-top: -4px; }
.lb-login-links a { color: var(--text-3); text-decoration: none; }
.lb-login-links a:hover { color: var(--brand-2); }
.lb-info-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 10, .72); backdrop-filter: blur(3px); }
.lb-info-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; }
.lb-info-box > div { max-width: none; }
.lb-info-box [data-info-body] { padding: 26px 28px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; line-height: 1.95; color: var(--text-2); }
.lb-info-box [data-info-body] h3 { margin: 18px 0 6px; color: var(--text); font-size: 17px; }
.lb-info-box [data-info-body] ul { padding: 0 22px 0 0; }
.lb-info-box .lb-ct-grid { margin-top: 14px; }
.lb-info-x { position: sticky; top: 10px; float: left; margin: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
