/* ===== الألوان والمتغيرات — تصميم 2: ألوان منعشة (فيروزي + بنفسجي + مرجاني) =====
   الوضع الفاتح هو الافتراضي، والداكن اختياري من زر القمر */
:root {
  --bg: #f5fbfb;
  --bg-2: #e9f6f4;
  --bg-2a: rgba(233, 246, 244, .86);
  --surface: #ffffff;
  --surface-2: #f0f7f7;
  --line: rgba(15, 31, 46, .08);
  --text: #0f1f2e;
  --muted: #5b6b7c;
  --primary: #0fb5a6;
  --primary-2: #6c63ff;
  --primary-rgb: 15, 181, 166;
  --primary-2-rgb: 108, 99, 255;
  --on-primary: #ffffff;
  --accent: #ff7a59;
  --ok: #12b886;
  --err: #f0506e;
  --warn: #f59f00;
  --radius: 20px;
  --shadow: 0 14px 38px rgba(15, 31, 46, .08);
  --ov: 245, 251, 251;
  --tint: 15, 31, 46;
  --ph-grad: linear-gradient(135deg, #dff5f2, #ecebff);
  --lead: #3a4a5c;
  --about: #3a4a5c;
  --ok-text: #0b7a57;
  --err-text: #c02848;
  --info-text: #4b44d6;
  --h1-grad: linear-gradient(90deg, #0f1f2e 0%, #0fb5a6 55%, #6c63ff 100%);
  --site-bg-opacity: .05;
  --gold: linear-gradient(135deg, #0fb5a6, #6c63ff 55%, #ff7a59);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a1420;
  --bg-2: #0e1b2a;
  --bg-2a: rgba(14, 27, 42, .86);
  --surface: #122235;
  --surface-2: #172b42;
  --line: rgba(255, 255, 255, .08);
  --text: #eaf3f8;
  --muted: #94a7ba;
  --primary: #2dd4bf;
  --primary-2: #8b83ff;
  --primary-rgb: 45, 212, 191;
  --primary-2-rgb: 139, 131, 255;
  --on-primary: #ffffff;
  --accent: #ff8f73;
  --ok: #34d399;
  --err: #fb7185;
  --warn: #fbbf24;
  --shadow: 0 16px 44px rgba(0, 0, 0, .35);
  --ov: 10, 20, 32;
  --tint: 255, 255, 255;
  --ph-grad: linear-gradient(135deg, #12303a, #1e1f46);
  --lead: #c9d7e3;
  --about: #c9d7e3;
  --ok-text: #6ee7b7;
  --err-text: #fda4af;
  --info-text: #c4c1ff;
  --h1-grad: linear-gradient(90deg, #ffffff 0%, #5eead4 55%, #a5a0ff 100%);
  --site-bg-opacity: .07;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 1.05em; letter-spacing: .5px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small-text { font-size: .88rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; }
.page-pad { padding-top: 28px; padding-bottom: 48px; }

/* ===== الشريط العلوي ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--ov), .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-home .topbar { position: fixed; inset: 0 0 auto 0; background: rgba(var(--ov), .35); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .93rem;
}
.nav a:hover { background: rgba(var(--tint), .08); text-decoration: none; }
.nav .nav-cta { background: var(--primary); color: var(--on-primary); }
.nav .nav-cta:hover { background: var(--primary-2); }

/* ===== الواجهة الرئيسية ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--hero-bg, var(--ph-grad)) center / cover no-repeat;
  padding: 90px 0 50px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(var(--ov), .35), rgba(var(--ov), .88) 70%),
    linear-gradient(180deg, rgba(var(--ov), .25), var(--bg));
}
.hero-in { position: relative; display: flex; justify-content: center; }
.hero-card { text-align: center; max-width: 680px; }
.avatar-ring {
  width: 156px; height: 156px; margin: 0 auto 18px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 180deg, var(--primary), var(--primary-2), var(--accent), var(--primary));
  box-shadow: 0 0 60px rgba(var(--primary-rgb), .35);
}
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); background: var(--surface); }
.eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(var(--primary-rgb), .14); color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .3); margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; margin-bottom: .25em; }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.22rem); color: var(--lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 20px; min-height: 46px;
  font: 700 1rem var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 14px 28px; font-size: 1.08rem; min-height: 54px; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); box-shadow: 0 10px 28px rgba(var(--primary-2-rgb), .28); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(var(--primary-2-rgb), .42); }
.btn-ghost { background: rgba(var(--tint), .07); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(var(--tint), .13); }
.btn-wa { background: #25d366; color: #06290f; }
.btn-success { background: var(--ok); color: #03281b; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--err); border: 1px solid rgba(255, 92, 108, .4); }

/* ===== أيقونات التواصل ===== */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soc {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--tint), .08); border: 1px solid var(--line); color: var(--text);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.soc .ico { width: 24px; height: 24px; }
.soc:hover { transform: translateY(-3px); text-decoration: none; color: #fff; }
.soc-whatsapp:hover { background: #25d366; }
.soc-telegram:hover { background: #229ed9; }
.soc-facebook:hover { background: #1877f2; }
.soc-tiktok:hover { background: #111; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.soc-youtube:hover { background: #ff0033; }
.soc-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social.small .soc { width: 40px; height: 40px; }
.social.small .ico { width: 19px; height: 19px; }

/* ===== الأقسام ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2a); }
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); text-align: center; margin-bottom: 32px; font-weight: 800; }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--primary); margin: 10px auto 0; }
.section-title.small { font-size: 1.3rem; text-align: start; margin: 24px 0 16px; }
.section-title.small::after { margin: 8px 0 0; }

.grid { display: grid; gap: 18px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-title { font-size: 1.35rem; font-weight: 800; }
.course { position: relative; padding-top: 30px; }
.course-num {
  position: absolute; top: -16px; inset-inline-start: 22px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary);
}
.course h3 { font-size: 1.15rem; }
.course p { color: var(--muted); margin: 0; }
.price-tag { text-align: center; margin-top: 26px; font-size: 1.15rem; }
.price-tag b { color: var(--primary); font-size: 1.35rem; }

.feature { text-align: center; padding: 10px; }
.feature-ico {
  width: 54px; height: 54px; border-radius: 16px; display: inline-grid; place-items: center;
  background: rgba(91, 140, 255, .14); color: var(--accent); margin-bottom: 10px;
}
.feature-ico .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.about { max-width: 760px; margin: 34px auto 0; text-align: center; color: var(--about); font-size: 1.05rem; }

.cta { background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), .12), transparent 70%); }
.cta .btn { margin: 6px; }

/* ===== الفيديو ===== */
.video-card { padding: 12px; }
.video-card h3 { font-size: 1.05rem; margin: 12px 4px 4px; }
.video-card p { margin: 0 4px 6px; font-size: .92rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
@supports not (aspect-ratio: 16 / 9) { .video-frame { padding-top: 56.25%; } }

/* ===== الدفع ===== */
.pay-grid { max-width: 820px; margin: 0 auto 16px; }
.pay-card h3 { font-size: 1.08rem; }
.copy-row { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.copy-row code {
  background: var(--bg); border: 1px dashed rgba(var(--primary-rgb), .45); color: var(--primary);
  padding: 6px 12px; border-radius: 10px; overflow-wrap: anywhere;
}
.btn-copy {
  width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.btn-copy.copied { background: var(--ok); color: #03281b; }
.pay-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-line > span:first-child { font-weight: 700; }

/* ===== النماذج ===== */
.form { display: grid; gap: 14px; }
.form label, .label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; }
input, select, textarea {
  width: 100%; font: 500 1rem var(--font); color: var(--text);
  background: var(--bg); border: 1px solid rgba(var(--tint), .14); border-radius: 12px;
  padding: 11px 14px; min-height: 48px; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2); }
input.invalid, select.invalid { border-color: var(--err); }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--primary); }
input[type=file] { padding: 9px; }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.row-actions { display: flex; gap: 10px; align-items: center; }
.row-actions > .btn:last-child:first-child, .row-actions .btn-primary { flex: 1; }
.row-actions.wrap { flex-wrap: wrap; }
.row-actions.wrap .btn { flex: 1 1 auto; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid rgba(var(--tint), .14); border-radius: 14px; padding: 12px 14px;
}
.choice input { margin-top: 6px; }
.choice span { display: grid; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb), .07); }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  background: var(--bg); color: var(--muted); font-weight: 600; font-size: .9rem;
}
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.steps li.active { color: var(--text); background: rgba(var(--primary-rgb), .1); }
.steps li.active span { background: var(--primary); color: var(--on-primary); }
.js .step[data-step="2"] { display: none; }
.js .step.show { display: grid; }
.js .step.hide { display: none; }

.file-drop {
  display: grid; place-items: center; text-align: center; min-height: 110px; cursor: pointer;
  border: 2px dashed rgba(var(--tint), .2); border-radius: 14px; padding: 16px; color: var(--muted);
}
.file-drop:hover { border-color: var(--primary); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-form { margin: 18px 0 12px; }

/* ===== التنبيهات والشارات ===== */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.alert-ok { background: rgba(34, 195, 142, .13); border: 1px solid rgba(34, 195, 142, .4); color: var(--ok-text); }
.alert-err { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .4); color: var(--err-text); }
.alert-info { background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .35); color: var(--info-text); font-weight: 500; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge-pending { background: rgba(var(--primary-rgb), .15); color: var(--warn); }
.badge-approved { background: rgba(34, 195, 142, .15); color: var(--ok); }
.badge-rejected { background: rgba(255, 92, 108, .15); color: var(--err); }
.badge-info { background: rgba(91, 140, 255, .15); color: var(--accent); }

/* ===== الحساب والتتبع ===== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.grid-account { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .grid-account { grid-template-columns: 340px 1fr; } }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; }
.info dt { color: var(--muted); font-size: .9rem; }
.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.track-form { grid-template-columns: 1fr auto; align-items: end; }
.track-result { margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 16px 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px; padding-inline-start: 34px; display: grid; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--muted);
}
.timeline li::after { content: ''; position: absolute; inset-inline-start: 13px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.fail::before { background: var(--err); border-color: var(--err); }
.timeline small { color: var(--muted); }

/* ===== زر واتساب العائم ===== */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  animation: pulse 2.4s infinite;
}
.wa-float .ico { width: 30px; height: 30px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ===== التذييل ===== */
.footer { border-top: 1px solid var(--line); padding: 26px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-in { display: grid; gap: 12px; justify-items: center; }
.footer p { margin: 0; }

/* ===== الحركة ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== لوحة التحكم ===== */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tabs a.active, .tabs a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); display: grid; }
.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat.active { border-color: var(--primary); background: var(--surface-2); }
.stat b { font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat-pending b { color: var(--warn); }
.stat-approved b { color: var(--ok); }
.stat-rejected b { color: var(--err); }
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.orders { display: grid; gap: 10px; }
.order { padding: 0; box-shadow: none; }
.order summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.order summary::-webkit-details-marker { display: none; }
.order[open] summary { border-bottom: 1px solid var(--line); }
.order-name { display: grid; min-width: 0; }
.order-name small { color: var(--muted); text-align: start; }
.order-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order-body { padding: 16px 18px; display: grid; gap: 14px; }
.info-grid { grid-template-columns: auto 1fr; }
@media (min-width: 720px) { .info-grid { grid-template-columns: auto 1fr auto 1fr; } }
.order-actions-top { display: flex; gap: 8px; }
.sub-actions { border-top: 1px dashed var(--line); padding-top: 12px; justify-content: space-between; }
.inline-form { display: flex; gap: 8px; flex: 1 1 280px; }
.inline-form input { min-height: 36px; padding: 6px 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.pager a { min-width: 38px; padding: 6px 10px; text-align: center; border-radius: 10px; background: var(--surface); color: var(--text); }
.pager a.active { background: var(--primary); color: var(--on-primary); }
.grid-admin { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .grid-admin { grid-template-columns: 400px 1fr; } .grid-admin > .card { position: sticky; top: 130px; } }
.video-list { display: grid; gap: 12px; }
.video-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px; box-shadow: none; }
@media (min-width: 640px) { .video-row { grid-template-columns: 220px 1fr; } }
.video-row h3 { font-size: 1.02rem; margin: 0 0 6px; }
.video-row p { margin: 0 0 8px; }
.settings { gap: 18px; }
.settings .card { display: grid; gap: 14px; box-shadow: none; }
.img-field { display: grid; gap: 8px; align-content: start; }
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); }

@media (max-width: 520px) {
  .nav a span { display: none; }
  .nav a { padding: 9px; }
  .card { padding: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .track-form { grid-template-columns: 1fr; }
  .steps li { font-size: .8rem; }
}

/* ===== تحميل التطبيق والمشاركة ===== */
.btn-install { background: rgba(91, 140, 255, .16); color: var(--info-text); border: 1px solid rgba(91, 140, 255, .45); }
.btn-install:hover { background: rgba(91, 140, 255, .28); }
[hidden] { display: none !important; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100; transform: translate(-50%, 30px);
  background: var(--ok); color: #03281b; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); display: grid; place-items: end center; padding: 16px; }
.modal-box { width: 100%; max-width: 420px; }
.modal-box ol { padding-inline-start: 20px; margin: 0 0 16px; }
.modal-box li { margin-bottom: 6px; }
@media (min-width: 640px) { .modal { place-items: center; } }

/* ===== روابط الإعلانات (لوحة التحكم) ===== */
.links-card { margin-bottom: 16px; box-shadow: none; }
.links-card summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; list-style: none; }
.links-card summary::-webkit-details-marker { display: none; }
.links-card[open] summary { margin-bottom: 12px; }
.links-list { display: grid; gap: 8px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-label { font-weight: 600; color: var(--muted); font-size: .92rem; }
.link-row .copy-row { flex: 1 1 260px; justify-content: flex-end; min-width: 0; }
.link-row code { font-size: .85rem; }

/* ===== شعار MZ PRO (أبيض بإطار أحمر مثل الصورة) ===== */
.logo-text {
  font-family: 'Alfa Slab One', Georgia, 'Times New Roman', serif;
  color: #fff; letter-spacing: 1px; line-height: 1; white-space: nowrap;
  -webkit-text-stroke: 1.5px #e0101a; paint-order: stroke fill;
  text-shadow: 0 0 0 #e0101a, 2px 2px 0 #e0101a, -1px -1px 0 #e0101a, 1px -1px 0 #e0101a, -1px 1px 0 #e0101a, 0 4px 14px rgba(224, 16, 26, .35);
}
.brand .logo-text { font-size: 1.35rem; overflow: visible; }
.logo-hero {
  font-size: clamp(2.6rem, 11vw, 4.6rem); margin: 0 0 18px; -webkit-text-stroke: 3px #e0101a;
  text-shadow: 3px 3px 0 #e0101a, -2px -2px 0 #e0101a, 2px -2px 0 #e0101a, -2px 2px 0 #e0101a, 0 8px 30px rgba(224, 16, 26, .45);
}

/* ===== خلفية طولية (صورة شخص واقف) ===== */
.hero { background-position: center 18%; }
.hero-overlay {
  background: linear-gradient(180deg, rgba(var(--ov), .30) 0%, rgba(var(--ov), .55) 30%, rgba(var(--ov), .86) 58%, var(--bg) 100%);
}
@media (min-width: 900px) {
  /* على الحاسوب: الصورة كاملة في اليسار والنص في اليمين */
  .hero { background: var(--bg); }
  .hero::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 46%;
    background: var(--hero-bg, none) center 20% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 40%);
    mask-image: linear-gradient(to left, transparent 0%, #000 40%);
  }
  .hero-overlay { background: radial-gradient(ellipse at 75% 50%, rgba(var(--primary-rgb), .07), transparent 60%); }
  .hero-in { justify-content: flex-start; }
  .hero-card { width: 54%; max-width: 620px; }
}

/* ===== بطاقات الدورات (صورة + محتوى) ===== */
.course-list { display: grid; gap: 26px; }
.course-row { display: grid; grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.course-media { position: relative; background: var(--surface-2); aspect-ratio: 1280 / 700; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-row:hover .course-media img { transform: scale(1.04); }
.course-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), .25), transparent 60%), var(--ph-grad); }
.course-ph span { font: 400 5rem 'Alfa Slab One', serif; color: rgba(var(--tint), .12); }
.course-body { position: relative; padding: 26px 22px 24px; display: grid; gap: 10px; align-content: start; }
.course-body .course-num { position: static; margin-bottom: 4px; }
.course-body h3 { font-size: 1.35rem; margin: 0; }
.course-body p { margin: 0; }
.course-body .btn { justify-self: start; margin-top: 6px; }
.checks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--ok); margin-top: 4px; width: 18px; height: 18px; background: rgba(34, 195, 142, .12); border-radius: 50%; padding: 2px; }
@media (min-width: 900px) {
  .course-row { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .course-row:nth-child(even) .course-media { order: 2; }
  .course-media { aspect-ratio: auto; min-height: 340px; }
  .course-body { padding: 34px 32px; align-content: center; }
}
.course-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.wide { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 9; }

/* ===== بطاقات التواصل ===== */
.contact-grid { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 820px; margin: 26px auto 0; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-align: start;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); text-decoration: none; }
.contact-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.contact-ico .ico { width: 24px; height: 24px; }
.contact-whatsapp .contact-ico { background: #25d366; }
.contact-whatsapp:hover { border-color: #25d366; }
.contact-telegram .contact-ico { background: #229ed9; }
.contact-telegram:hover { border-color: #229ed9; }
.contact-txt { display: grid; line-height: 1.4; }
.contact-txt small { color: var(--muted); }
.contact-txt b { font-size: 1.12rem; letter-spacing: .5px; text-align: start; }

/* ===== لمسات فخامة ===== */
.hero-card h1 { background: var(--h1-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { position: relative; }
.en { display: inline-block; direction: ltr; font-size: .78em; font-weight: 700; padding: 0 8px; margin: 0 4px; border-radius: 6px; background: rgba(91, 140, 255, .14); color: var(--info-text); vertical-align: middle; line-height: 1.7; white-space: nowrap; }

/* ===== الفيديو الترحيبي وصفحة الإعلانات ===== */
.narrow-lg { max-width: 860px; }
.welcome { background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), .10), transparent 65%); }
.welcome-frame {
  padding: 8px; border-radius: 20px; margin: 0 auto 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 50px rgba(var(--primary-rgb), .18);
}
.welcome-frame .video-frame { border-radius: 14px; }
.video-empty { display: grid; place-items: center; background: var(--ph-grad); }
.video-empty span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--tint), .1); }
.video-empty .ico { width: 40px; height: 40px; color: #fff; }
.btn-pulse { animation: ctaPulse 2.2s ease-in-out infinite; font-size: 1.2rem; padding: 16px 38px; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(var(--primary-2-rgb), .3), 0 0 0 0 rgba(var(--primary-rgb), .45); } 50% { box-shadow: 0 10px 28px rgba(var(--primary-2-rgb), .3), 0 0 0 14px rgba(var(--primary-rgb), 0); } }
.welcome-page .logo-hero { margin-top: 6px; }
.welcome-coach { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; font-weight: 700; }
.welcome-coach img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.welcome-h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-bottom: 20px; }
.welcome-cta { width: 100%; max-width: 440px; }
.welcome-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } }

/* ===== زر تبديل الوضع الفاتح / الداكن ===== */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(var(--tint), .08); border: 1px solid var(--line); color: var(--text); padding: 0;
}
.theme-toggle:hover { background: rgba(var(--tint), .14); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}

/* ===== الباقة الشاملة (كل الدورات بزر تسجيل واحد) ===== */
.package { padding: 0; overflow: hidden; max-width: 920px; margin: 0 auto; border-color: rgba(var(--primary-rgb), .35); }
.package-head {
  text-align: center; padding: 30px 22px 26px; display: grid; justify-items: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), .16), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.package-head h3 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0; font-weight: 800; }
.package-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary);
}
.package-price { margin: 0; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; color: var(--primary); }
.package-list { display: grid; }
.package-item { display: grid; gap: 14px; padding: 24px 22px; border-bottom: 1px solid var(--line); }
.package-media { border-radius: 14px; overflow: hidden; aspect-ratio: 1280 / 700; background: var(--surface-2); }
.package-media img { width: 100%; height: 100%; object-fit: cover; }
.package-body { display: grid; gap: 8px; align-content: start; }
.package-body .course-num { position: static; }
.package-body h4 { font-size: 1.25rem; margin: 0; }
.package-body p { margin: 0; }
.package-foot { padding: 24px 22px 28px; text-align: center; }
@media (min-width: 900px) {
  .package-item { grid-template-columns: 300px 1fr; gap: 26px; padding: 28px 32px; }
  .package-item:not(:has(.package-media)) { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .package-head .btn, .package-foot .btn { width: 100%; } }
.package-pick { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--primary); background: rgba(var(--primary-rgb), .07); }
.package-pick > b { font-size: 1.1rem; }
.package-price-sm { margin: 0; }
.package-price-sm b { color: var(--primary); }
/* ===== فيديو فيسبوك: الريلز بإطار طولي ===== */
.video-frame:has(.fb-reel) { aspect-ratio: 9 / 16; max-width: 380px; margin-inline: auto; }

/* ===================================================================
   الإصدار 6: الخلفية العامة، الشعار الذهبي، الأشكال، اللغات، اللعبة، الشحن
   =================================================================== */

/* ---- الخلفية العامة: صورة المدرب خافتة وثابتة خلف كل الصفحات ---- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--site-bg, none) center 22% / cover no-repeat;
  opacity: var(--site-bg-opacity); filter: saturate(.7) blur(1.5px);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 20% 10%, rgba(var(--primary-rgb), .07), transparent 55%),
              radial-gradient(ellipse at 85% 90%, rgba(91, 140, 255, .08), transparent 55%);
}

/* ---- الشعار الدائري بإطار ذهبي ---- */
.avatar-ring.gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .18), 0 0 50px rgba(var(--primary-rgb), .45); animation: goldSpin 8s linear infinite; background-size: 200% 200%; }
.avatar-ring.gold img { border-color: #1a1204; }
@keyframes goldSpin { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.brand .brand-logo { width: 40px; height: 40px; border: 0; padding: 2px; background: var(--gold); box-shadow: 0 0 14px rgba(var(--primary-rgb), .45); }
.welcome-coach img { border: 0; padding: 2px; background: var(--gold); }

/* ---- الأشكال المعبّرة عن المجالات (مونتاج، سبونسور، تواصل، تجارة) ---- */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(var(--tint), .06); border: 1px solid rgba(var(--tint), .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: floaty 7s ease-in-out infinite; opacity: .85;
}
.shape .ico { width: 26px; height: 26px; }
.s-film  { top: 14%; inset-inline-start: 6%; color: #f5b83d; animation-delay: 0s; }
.s-play  { top: 32%; inset-inline-start: 14%; color: #ff5c6c; width: 42px; height: 42px; border-radius: 50%; animation-delay: -2s; }
.s-mega  { top: 62%; inset-inline-start: 5%; color: #5b8cff; animation-delay: -4s; }
.s-chart { top: 80%; inset-inline-start: 16%; color: #22c38e; animation-delay: -1s; }
.s-heart { top: 16%; inset-inline-end: 8%; color: #ff4f7b; border-radius: 50%; animation-delay: -3s; }
.s-cart  { top: 44%; inset-inline-end: 4%; color: #f5b83d; animation-delay: -5s; }
.s-fb    { top: 70%; inset-inline-end: 12%; color: #1877f2; animation-delay: -2.5s; }
.s-tt    { top: 86%; inset-inline-end: 4%; color: #25f4ee; animation-delay: -6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }
.timeline-deco { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 4px; opacity: .5; }
[dir="ltr"] .timeline-deco { transform: translateX(-50%); }
.timeline-deco i { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); animation: clip 3s ease-in-out infinite; }
.timeline-deco i:nth-child(1) { width: 38px; } .timeline-deco i:nth-child(2) { width: 22px; background: var(--accent); animation-delay: -.6s; }
.timeline-deco i:nth-child(3) { width: 54px; animation-delay: -1.2s; } .timeline-deco i:nth-child(4) { width: 18px; background: #22c38e; animation-delay: -1.8s; }
.timeline-deco i:nth-child(5) { width: 30px; background: #ff4f7b; animation-delay: -2.4s; }
@keyframes clip { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (max-width: 899px) {
  .shape { width: 40px; height: 40px; border-radius: 12px; opacity: .55; }
  .shape .ico { width: 20px; height: 20px; }
  .s-play, .s-chart, .s-tt { display: none; }
}
.skill-chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.skill-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: rgba(var(--tint), .07); border: 1px solid var(--line);
}
.skill-chips li:nth-child(1) .ico { color: #f5b83d; } .skill-chips li:nth-child(2) .ico { color: #5b8cff; }
.skill-chips li:nth-child(3) .ico { color: #ff4f7b; } .skill-chips li:nth-child(4) .ico { color: #22c38e; }
@media (min-width: 900px) { .skill-chips { justify-content: flex-start; } .hero-card { text-align: start; } .hero-card .avatar-ring { margin-inline: 0; } .hero-actions, .hero-card .social { justify-content: flex-start; } }
[dir="ltr"] .hero::before { left: auto; right: 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }

/* ---- اللغات والشريط العلوي ---- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(var(--tint), .05); }
.lang-switch a { padding: 6px 9px !important; border-radius: 0 !important; font-size: .78rem !important; font-weight: 800; color: var(--muted) !important; min-width: 30px; justify-content: center; }
.lang-switch a.active { background: var(--primary); color: var(--on-primary) !important; }
.nav .nav-ico.on { background: rgba(var(--tint), .1); }
@media (max-width: 760px) { .nav .nav-ico span { display: none; } .nav .nav-ico { padding: 9px; } }
@media (max-width: 420px) { .topbar-in { gap: 6px; } .brand .logo-text { font-size: 1.05rem; } .nav { gap: 3px; } .theme-toggle { width: 36px; height: 36px; } .lang-switch a { padding: 6px 7px !important; min-width: 26px; } .brand .brand-logo { width: 34px; height: 34px; } }
@media (max-width: 360px) { .brand .logo-text { display: none; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.footer-links a { color: var(--muted); font-weight: 600; }

/* ---- اربح تخفيضات ---- */
.earn-grid { max-width: 900px; margin: 0 auto 16px; }
.earn-card { display: grid; gap: 8px; justify-items: start; color: var(--text); transition: transform .2s, border-color .2s; }
.earn-card:hover { transform: translateY(-4px); border-color: var(--primary); text-decoration: none; }
.earn-card h3 { margin: 0; font-size: 1.2rem; }
.earn-card p { margin: 0; }
.earn-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); }
.earn-ico .ico { width: 28px; height: 28px; }

/* ---- بطاقة RedotPay ---- */
.redot-promo { display: grid; gap: 26px; align-items: center; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .redot-promo { grid-template-columns: 340px 1fr; padding: 34px; } }
.redot-text h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); margin-bottom: 8px; }
.redot-text .btn { margin-top: 10px; }
.redot-card-visual {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 18px; padding: 20px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(255, 90, 90, .55), transparent 45%), linear-gradient(135deg, #1a1f36, #2b0f14 70%, #5a0d16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: perspective(900px) rotateY(-10deg) rotateX(6deg); transition: transform .5s ease;
}
.redot-card-visual:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.redot-card-visual.small { max-width: 240px; padding: 14px; }
.rc-chip { width: 42px; height: 32px; border-radius: 7px; background: var(--gold); margin-bottom: 18%; }
.rc-brand { position: absolute; top: 18px; inset-inline-end: 20px; font-weight: 800; letter-spacing: .5px; direction: ltr; }
.rc-num { font: 700 1.05rem ui-monospace, Consolas, monospace; letter-spacing: 2px; }
.rc-visa { position: absolute; bottom: 16px; inset-inline-end: 20px; font: italic 900 1.4rem Georgia, serif; }
.redot-card-visual.small .rc-num { font-size: .8rem; } .redot-card-visual.small .rc-visa { font-size: 1.1rem; bottom: 10px; }
.topup-hero { display: grid; gap: 20px; align-items: center; margin-bottom: 18px; }
@media (min-width: 760px) { .topup-hero { grid-template-columns: 260px 1fr; } }
.rate-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--tint), .07); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.rate-badges .ico { color: var(--primary); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.price-summary { display: grid; gap: 2px; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.price-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: rgba(var(--tint), .03); }
.price-summary > div b { overflow-wrap: anywhere; }
.price-summary .ok b { color: var(--ok); }
.price-summary .total { background: rgba(var(--primary-rgb), .1); font-size: 1.1rem; }
.price-summary .total b { color: var(--primary); }

/* ---- النقاط والإحالة ---- */
.stack { display: grid; gap: 18px; align-content: start; }
.grid-account > aside.card { display: grid; gap: 10px; align-content: start; }
.points-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-2-rgb), .08)); border: 1px solid rgba(var(--primary-rgb), .35); margin: 6px 0; }
.points-box > div { display: grid; line-height: 1.3; }
.points-box b { font-size: 1.6rem; color: var(--primary); }
.points-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #5a3a00; flex: none; }
.points-ico .ico { width: 26px; height: 26px; }
.referral { border-color: rgba(var(--primary-rgb), .35); }
.ref-row { display: flex; width: 100%; margin-bottom: 12px; }
.ref-row code { flex: 1; min-width: 0; font-size: .85rem; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ref-stats > div { display: grid; text-align: center; padding: 10px; border-radius: 12px; background: rgba(var(--tint), .04); border: 1px solid var(--line); }
.ref-stats b { font-size: 1.5rem; color: var(--primary); }
.ref-stats span { color: var(--muted); font-size: .88rem; }
.points-log { list-style: none; padding: 0; margin: 0 0 10px; display: grid; }
.points-log li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.points-log li:last-child { border-bottom: 0; }
.points-log li > span, .points-log li > a { display: grid; min-width: 0; color: var(--text); }
.points-log small { color: var(--muted); font-size: .8rem; }
.points-log .plus { color: var(--ok); } .points-log .minus { color: var(--err); }
.meter { height: 10px; border-radius: 99px; background: rgba(var(--tint), .08); overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 99px; transition: width .6s ease; }
.trans-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.trans-box summary { cursor: pointer; font-weight: 700; }
.trans-box[open] { display: grid; gap: 10px; }

/* ---- اللعبة ---- */
.game-head { text-align: center; margin-bottom: 16px; }
.game-head h1 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.game-head h1 .ico { color: var(--primary); width: 1.2em; height: 1.2em; }
.game-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .game-layout { grid-template-columns: minmax(0, 520px) 1fr; justify-content: center; } }
.game-card { padding: 12px; }
.game-hud { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px 10px; font-weight: 700; font-size: .95rem; }
.game-hud b { color: var(--primary); }
.game-stage { position: relative; border-radius: 14px; overflow: hidden; }
#gameCanvas { display: block; width: 100%; height: auto; aspect-ratio: 480 / 640; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at center, rgba(11, 16, 32, .6), rgba(11, 16, 32, .9)); }
.game-msg h2 { margin: 0; }
.game-msg p { margin: 4px 0; }
.game-logo { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #5a3a00; animation: floaty 3s ease-in-out infinite; }
.game-logo .ico { width: 48px; height: 48px; }
.game-score { font: 800 3.2rem var(--font) !important; color: #f5b83d; line-height: 1.1; }
.game-won { font-size: 1.25rem; font-weight: 800; color: #7ff0c6; }
.game-overlay .muted { color: #c3cbe4; }
.leaders { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.leaders li { padding: 4px 0; }
.leaders li span { display: inline-block; min-width: 60%; }
.leaders b { color: var(--primary); float: inline-end; }
/* ---- إصلاحات الهاتف: شريط علوي مضغوط، وبطاقة RedotPay باتجاه ثابت مثل البطاقة الحقيقية ---- */
.redot-card-visual { direction: ltr; text-align: left; }
.rc-brand { inset-inline-end: auto; right: 20px; }
.rc-visa { inset-inline-end: auto; right: 20px; }
@media (max-width: 520px) {
  .brand .logo-text { display: none; }
  .nav { gap: 4px; }
  .nav .nav-cta { padding: 9px; }
}
@media (min-width: 900px) {
  /* على الحاسوب: الأشكال في الهامش الجانبي حتى لا تمر خلف النصوص والأزرار */
  .s-film { inset-inline-start: 1.5%; top: 22%; } .s-play { inset-inline-start: 2.5%; top: 42%; }
  .s-mega { inset-inline-start: 1.2%; top: 60%; } .s-chart { inset-inline-start: 2.8%; top: 78%; }
}

/* ===================================================================
   الإصدار 7: القاعة، الأسعار المنفردة، إعلانات الفيديو، أرباحي
   =================================================================== */

/* ---- اختيار الباقة أو دورة واحدة ---- */
.plan-choices .choice span { gap: 2px; }
.plan-choices .choice b { display: inline-flex; align-items: center; gap: 6px; }
.plan-choices .choice b .ico { color: var(--primary); }
.plan-price { font-style: normal; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.choice-pack { border-color: rgba(var(--primary-rgb), .45) !important; }
.single-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--tint), .04); border: 1px dashed var(--line); }
.single-buy b { color: var(--primary); }

/* ---- القاعة ---- */
.class-head { display: grid; gap: 12px; margin-bottom: 16px; }
.class-head h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0; }
.class-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.class-progress { height: 8px; border-radius: 99px; background: rgba(var(--tint), .08); overflow: hidden; }
.class-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #7ff0c6); transition: width .5s ease; }
.class-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; scrollbar-width: thin; }
.class-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 700; background: var(--surface); }
.class-tabs a.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-color: transparent; }
.class-tabs a:hover { text-decoration: none; }
.player-wrap { display: grid; gap: 14px; margin-bottom: 20px; scroll-margin-top: 80px; }
@media (min-width: 980px) { .player-wrap { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player-frame.vertical { aspect-ratio: 9 / 16; max-width: 380px; width: 100%; margin-inline: auto; }
.player-frame iframe, .player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info h2 { font-size: 1.2rem; margin: 0 0 6px; }
.lessons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.lesson {
  display: grid; gap: 6px; text-align: start; padding: 0 0 12px; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; transition: transform .2s, border-color .2s;
}
.lesson:hover { transform: translateY(-3px); border-color: var(--primary); }
.lesson.playing { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .35); }
.lesson-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--ph-grad) center / cover no-repeat; }
.lesson-play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(4px); transition: transform .2s; }
.lesson:hover .lesson-play { transform: scale(1.1); background: var(--primary); color: var(--on-primary); }
.lesson-play .ico { width: 26px; height: 26px; }
.lesson-num { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: rgba(0, 0, 0, .6); color: #fff; }
.lesson-done { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; display: none; place-items: center; background: var(--ok); color: #03281b; }
.lesson-done .ico { width: 18px; height: 18px; }
.lesson.done .lesson-done { display: grid; }
.lesson-title { font-weight: 700; padding: 0 12px; line-height: 1.45; }
.lesson-desc { color: var(--muted); font-size: .86rem; padding: 0 12px; line-height: 1.5; }
.apps-sec { margin-top: 26px; }
.apps-sec .section-title.small { display: flex; align-items: center; gap: 8px; }
.apps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.app-card { display: flex; align-items: center; gap: 12px; padding: 14px; box-shadow: none; }
.app-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); }
.app-ico img { width: 100%; height: 100%; object-fit: cover; }
.app-info { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.app-links { display: flex; gap: 6px; flex-wrap: wrap; }
.locked { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; }
.locked-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #5a3a00; }
.locked-ico .ico { width: 38px; height: 38px; }
.lightbox { place-items: center; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox .btn { position: absolute; top: 16px; inset-inline-end: 16px; }

/* ---- إعلانات الفيديو في اللعبة ---- */
.ads-card { display: grid; gap: 10px; }
.ad-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--tint), .03); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.ad-item:hover { border-color: var(--primary); }
.ad-thumb { width: 86px; aspect-ratio: 16 / 9; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ph-grad) center / cover; color: #fff; }
.ad-txt { display: grid; line-height: 1.4; }
.ad-txt small { color: var(--muted); }
.ad-txt strong { color: var(--primary); }
.ad-modal .modal-box { max-width: 560px; display: grid; gap: 12px; }
.ad-slot { overflow: hidden; }
.earn-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.earn-stats .stat b { font-size: 1.35rem; }
.lesson-admin .row-actions form { display: inline; }

/* ---- قائمة اللغات المنسدلة ---- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; background: rgba(var(--tint), .08); border: 1px solid var(--line); color: var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { background: var(--primary); color: var(--on-primary); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; min-width: 150px; padding: 6px;
  display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-list a { display: flex !important; gap: 10px; padding: 9px 12px !important; border-radius: 10px !important; color: var(--text) !important; font-weight: 600; }
.lang-list a b { min-width: 24px; color: var(--primary); }
.lang-list a.active { background: rgba(var(--primary-rgb), .12); }
@media (max-width: 420px) { .lang-menu summary { width: 36px; height: 36px; } }

/* ===================================================================
   الإصدار 8: المساعد الآلي، المحفظة، خدمة المواقع
   =================================================================== */
.chat-fab {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.6rem; background: linear-gradient(135deg, var(--accent), #8a5bff); color: #fff; box-shadow: 0 10px 30px rgba(91, 140, 255, .45);
}
.chat-panel {
  position: fixed; bottom: 86px; inset-inline-start: 16px; z-index: 46; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, var(--accent), #8a5bff); color: #fff; }
.chat-head div { display: grid; flex: 1; line-height: 1.3; }
.chat-head small { opacity: .85; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.3rem; }
.chat-x { border: 0; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; white-space: pre-line; line-height: 1.6; font-size: .94rem; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: rgba(var(--tint), .07); border-end-start-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-end-end-radius: 4px; }
.msg.typing { opacity: .6; }
.msg a { color: var(--accent); font-weight: 700; }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
.chat-chips button { white-space: nowrap; border: 1px solid var(--line); background: rgba(var(--tint), .04); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 600 .82rem var(--font); cursor: pointer; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { min-height: 42px; }
.wallet-link { color: var(--text); text-decoration: none !important; }
.wallet-link b { font-size: 1.25rem; }
.wallet-balance { display: grid; gap: 2px; padding: 16px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, rgba(34, 195, 142, .16), rgba(91, 140, 255, .1)); border: 1px solid rgba(34, 195, 142, .35); }
.wallet-balance b { font-size: 2rem; color: var(--ok); }
.service-hero { display: grid; gap: 24px; align-items: center; padding: 28px; }
@media (min-width: 900px) { .service-hero { grid-template-columns: 1.2fr 1fr; padding: 40px; } }
.service-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.service-price { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: var(--primary); margin: 6px 0 14px; }
.service-mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5c6c; } .mock-bar i:nth-child(2) { background: #f5b83d; } .mock-bar i:nth-child(3) { background: #22c38e; }
.mock-bar span { margin-inline-start: 8px; font-size: .8rem; color: var(--muted); direction: ltr; }
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-hero { height: 110px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent)); animation: clip 4s ease-in-out infinite; }
.mock-row { display: grid; grid-auto-flow: column; gap: 10px; }
.mock-row span { height: 60px; border-radius: 10px; background: rgba(var(--tint), .08); }
.feature-card { display: grid; gap: 8px; justify-items: start; }
.feature-card h3 { margin: 0; font-size: 1.1rem; }
.service-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--text); max-width: 980px; margin: 0 auto; border-color: rgba(91, 140, 255, .4); }
.service-promo:hover { text-decoration: none; border-color: var(--accent); }
.service-promo > span:nth-child(2) { display: grid; flex: 1; min-width: 220px; }
.service-promo .service-price { margin: 0; font-size: 1.4rem; }
.chat-log p { margin: 4px 0; }

/* ---- الإشعارات والاحتفال ---- */
.notice-pop { place-items: center; z-index: 95; }
.notice-pop .modal-box { max-width: 400px; display: grid; gap: 8px; animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.notice-ico { font-size: 2.6rem; animation: ring 1.2s ease-in-out 2; }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .notice-ico, .notice-pop .modal-box { animation: none; } }

/* ---- لوحة التحكم: أزرار سريعة، وكل التبويبات ظاهرة على الهاتف ---- */
.admin .topbar { position: relative; }
.admin .tabs { flex-wrap: wrap; overflow: visible; gap: 6px; }
.admin .tabs a { padding: 7px 12px; font-size: .88rem; background: rgba(var(--tint), .04); border: 1px solid var(--line); }
.admin .tabs a.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-color: transparent; }
.quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
.quick { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s; }
.quick:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.quick span { font-size: 1.6rem; }
.quick b { font-size: .98rem; }
.quick small { color: var(--muted); font-weight: 700; }
.quick small.hot { color: var(--err); font-size: 1.2rem; }
.quick-main { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(var(--primary-rgb), .18), rgba(var(--primary-2-rgb), .1)); border-color: rgba(var(--primary-rgb), .5); }
.quick-main b { font-size: 1.15rem; }
.howto { margin: 6px 0; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.7; }

/* ---- الفيديو المحمي في القاعة + الرفع ---- */
.player-frame .watermark {
  position: absolute; z-index: 3; pointer-events: none; user-select: none; -webkit-user-select: none;
  padding: 3px 10px; border-radius: 8px; font: 700 .8rem var(--font); color: rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .18); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; direction: ltr;
  transition: top 1.2s ease, left 1.2s ease;
}
.player-frame .fs-btn { position: absolute; z-index: 4; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.1rem; }
.player-frame:fullscreen, .player-frame:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; border-radius: 0; aspect-ratio: auto; }
.player-frame video { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.upload-card { border-color: rgba(var(--primary-rgb), .5); }
.upload-app { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.up-progress { display: grid; gap: 6px; }
.up-status { font-weight: 700; }
.storage { display: grid; gap: 4px; margin-bottom: 8px; }
.quick-warn { border-color: rgba(255, 92, 108, .45); }

/* ---- المدير داخل حساب متربص ---- */
.imp-bar { position: sticky; top: 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 14px; background: #8a5bff; color: #fff; font-weight: 700; font-size: .92rem; text-align: center; }
.imp-bar form { margin: 0; }
.order-actions-top { flex-wrap: wrap; }
.order-actions-top form { margin: 0; }
.user-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.user-head .card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ===== محفظة MZ Pay ===== */
.pay-card-visual {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 22px 18px; color: #fff; display: grid; gap: 4px;
  background: radial-gradient(circle at 90% 10%, rgba(var(--primary-rgb), .55), transparent 45%), radial-gradient(circle at 0% 100%, rgba(91, 140, 255, .5), transparent 50%), linear-gradient(135deg, #10172e, #1f1446 60%, #321244);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.pay-card-visual::after { content: ''; position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .04); }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pc-brand { font-weight: 800; letter-spacing: .5px; font-size: 1.1rem; }
.pc-chip { width: 44px; height: 32px; border-radius: 7px; background: var(--gold); }
.pc-label { opacity: .75; }
.pc-balance { font-size: clamp(1.9rem, 7vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.pc-alt { opacity: .85; font-weight: 600; }
.pc-bottom { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 700; letter-spacing: 1px; opacity: .9; font-size: .92rem; }
.rates-all summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.rates-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .rates-grid { grid-template-columns: 1fr 1fr; } }
.rates-grid li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(var(--tint), .04); font-size: .9rem; }
.rates-edit { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.rates-edit label { display: grid; gap: 4px; }
.pin-input { letter-spacing: 10px; font-size: 1.3rem; text-align: center; max-width: 220px; }

/* ===================================================================
   الإصدار 11: لمسات احترافية — شريط الثقة، كيف تبدأ، الأسئلة الشائعة، تذييل بأعمدة
   =================================================================== */
.trust-strip { border-block: 1px solid var(--line); background: var(--bg-2a); backdrop-filter: blur(6px); }
.trust-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding-block: 18px; }
.trust-in div { display: grid; justify-items: center; text-align: center; min-width: 90px; }
.trust-in b { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.trust-in span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.steps-pro { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 1000px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); counter-reset: s; }
.steps-pro li { position: relative; display: grid; gap: 6px; padding: 22px 18px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps-pro li span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); }
.steps-pro li b { font-size: 1.15rem; }
.steps-pro li p { margin: 0; font-size: .93rem; }
.faq { display: grid; gap: 10px; margin-bottom: 16px; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(var(--primary-rgb), .45); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.8; }
.pro-footer { text-align: start; padding: 40px 0 20px; background: var(--bg-2a); }
.footer-cols { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.fcol { display: grid; gap: 8px; align-content: start; }
.fcol h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text); }
.fcol a { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fcol a:hover { color: var(--primary); text-decoration: none; }
.fcol .ico { width: 18px; height: 18px; }
.fcol-brand .brand { margin-bottom: 4px; }
.fcol-brand p { margin: 0 0 6px; font-size: .92rem; }
.fcol-brand .social { justify-content: flex-start; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pay-badges span { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .78rem; font-weight: 800; color: var(--muted); background: rgba(var(--tint), .04); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
/* تحسينات عامة: عناوين أوضح، بطاقات أنعم، تركيز لوحة المفاتيح */
.section-title { letter-spacing: -.2px; }
.card { transition: border-color .2s, box-shadow .2s; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: rgba(var(--primary-rgb), .35); }
.owner-wallet { margin-bottom: 18px; align-items: stretch; }

/* ---- تنبيهات المدير ---- */
.bell { position: relative; font-size: 1.15rem; padding: 6px 10px !important; }
.bell-n { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--err); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.bell-n[hidden] { display: none; }
.notice-help p { margin: 0 0 10px; }
.notice-list { display: grid; gap: 8px; margin: 14px 0; }
.notice-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); box-shadow: none; }
.notice-row:hover { text-decoration: none; border-color: var(--primary); }
.notice-row.is-new { border-color: rgba(var(--primary-rgb), .6); background: rgba(var(--primary-rgb), .07); }
.notice-emoji { font-size: 1.6rem; }
.notice-body { flex: 1; display: grid; line-height: 1.5; }

/* ===================================================================
   تصميم 2: أنيق ومرتّب — شعار نظيف، أزرار متدرجة، بطاقات هادئة، بدون زخارف طفولية
   =================================================================== */
:root:not([data-theme]) .theme-toggle .i-sun { display: none; }
:root:not([data-theme]) .theme-toggle .i-moon { display: block; }
.logo-text { -webkit-text-stroke: 0 !important; text-shadow: none !important; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-family: var(--font) !important; font-weight: 800; letter-spacing: .5px; }
.brand .logo-text { font-size: 1.3rem; }
.btn { border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); box-shadow: 0 10px 26px rgba(var(--primary-rgb), .28); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(var(--primary-2-rgb), .32); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); }
.btn-pulse { animation: none !important; }
.card { border-radius: var(--radius); }
.topbar { background: rgba(var(--ov), .86) !important; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
.section-title::after { background: linear-gradient(90deg, var(--primary), var(--primary-2)); width: 64px; }
.eyebrow { background: rgba(var(--primary-rgb), .1); color: var(--primary); border-color: rgba(var(--primary-rgb), .25); }
.avatar-ring.gold { animation: none; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 18px 40px rgba(var(--primary-rgb), .25); }
.hero-shapes, .timeline-deco { display: none !important; }
.hero .logo-hero { display: none; }
.wa-float { animation: none; }
body::after { background: radial-gradient(ellipse at 15% 0%, rgba(var(--primary-rgb), .10), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(var(--primary-2-rgb), .08), transparent 55%); }
.game-overlay { background: radial-gradient(ellipse at center, rgba(10, 20, 32, .55), rgba(10, 20, 32, .88)); }
/* ===================================================================
   الواجهة الجديدة (v2): مرتبة وفخمة — واجهة بصورة، بطاقات دورات، باقة، خدمات مختصرة
   =================================================================== */
.v2 .section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: -8px auto 34px; }
.hero2 { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero2::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), .16), transparent 65%); pointer-events: none; }
.hero2-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero2-text h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.1; margin: 14px 0 12px; font-weight: 900; background: var(--h1-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-text .lead { font-size: 1.15rem; color: var(--lead); max-width: 540px; margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coach-line { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.coach-line img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .5); }
.coach-line span { display: grid; line-height: 1.3; text-align: start; }
.hero2-photo { position: relative; justify-self: center; width: min(100%, 420px); isolation: isolate; }
.hero2-photo img { width: 100%; height: auto; max-height: 520px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: 0 30px 70px rgba(var(--tint), .18); display: block; }
.hero2-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); opacity: .9; z-index: -1; }
.float-stat { position: absolute; display: grid; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 1.25; }
.float-stat b { font-size: 1.35rem; color: var(--primary); }
.float-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fs-1 { inset-inline-start: -26px; top: 18%; }
.fs-2 { inset-inline-end: -20px; bottom: 12%; }

.course-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(var(--primary-rgb), .16); }
.cc-media { position: relative; aspect-ratio: 16 / 9; background: var(--ph-grad); }
.cc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-num { position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .92); color: #0b8f84; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.cc-body { padding: 18px 20px 6px; flex: 1; }
.cc-body h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.4; }
.cc-desc { margin: 0 0 12px; font-size: .93rem; }
.course-card .checks { margin: 0; }
.course-card .checks li { font-size: .92rem; }
.cc-more summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: .9rem; margin: 6px 0; list-style: none; }
.cc-more summary::-webkit-details-marker { display: none; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px 20px; border-top: 1px solid var(--line); margin-top: 12px; }
.cc-price { font-size: 1.25rem; font-weight: 800; color: var(--text); }

.pack-banner { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: 26px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(var(--primary-2-rgb), .12)); border: 1px solid rgba(var(--primary-rgb), .3); }
.pack-banner h3 { margin: 8px 0 6px; font-size: 1.5rem; }
.pack-banner p { margin: 0; max-width: 520px; }
.pack-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; }
.pack-cta { display: grid; gap: 10px; justify-items: center; }
.pack-price { font-size: 1.9rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.why-text .section-title { text-align: start; }
.why-text .section-title::after { margin-inline: 0; }
.why-list { display: grid; gap: 12px; }
.why-item { display: flex; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.why-item b { display: block; margin-bottom: 2px; }
.why-item p { margin: 0; font-size: .93rem; }
.why-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.why-ico svg { width: 20px; height: 20px; }

.svc-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); max-width: 900px; margin: 0 auto; }
.svc-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-3px); border-color: rgba(var(--primary-rgb), .5); }
.svc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.svc-ico svg { width: 22px; height: 22px; }

.cta2 .cta-box { text-align: center; padding: 48px 24px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 24px 60px rgba(var(--primary-2-rgb), .3); }
.cta-box h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.4rem); color: #fff; }
.cta-box .lead { color: rgba(255, 255, 255, .92); margin: 0 0 22px; }
.cta-box .hero-actions { justify-content: center; }
.btn-light { background: #fff; color: #0f1f2e; font-weight: 800; }
.btn-light:hover { background: #f0fffd; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-outline-light svg { width: 18px; height: 18px; }
.video-hero { border-radius: 22px; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .hero2 { padding: 28px 0 40px; }
  .hero2-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero2-text .lead { margin-inline: auto; }
  .tags, .hero-actions, .coach-line { justify-content: center; }
  .hero2-photo { order: -1; width: min(74%, 300px); }
  .fs-1 { inset-inline-start: -14px; } .fs-2 { inset-inline-end: -10px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-text .section-title { text-align: center; } .why-text .section-title::after { margin-inline: auto; }
  .pack-banner { padding: 24px 20px; text-align: center; justify-content: center; }
  .v2 .section { padding: 52px 0; }
  .hero-actions .btn { flex: 1 1 200px; }
}
.admin-hall-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin: 0 0 16px; border-radius: 16px; background: rgba(var(--primary-2-rgb), .1); border: 1px dashed rgba(var(--primary-2-rgb), .45); font-weight: 600; }

/* لعبة السيارات: أزرار تحكم كبيرة ◀ ⚡ ▶ */
.game-pad { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.pad-btn { height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.6rem; font-weight: 900; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 6px 0 rgba(var(--tint), .08); transition: transform .08s, box-shadow .08s, background .15s; }
.pad-btn.down, .pad-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(var(--tint), .08); background: rgba(var(--primary-rgb), .15); }
.pad-nitro { --fuel: 0%; position: relative; overflow: hidden; display: grid; place-items: center; line-height: 1; color: #fff; background: #3a4656; border: 0; }
.pad-nitro::before { content: ""; position: absolute; inset: auto 0 0 0; height: var(--fuel); background: linear-gradient(0deg, #5bd1ff, #8b83ff); transition: height .25s; }
.pad-nitro > * { position: relative; }
.pad-nitro small { font-size: .62rem; letter-spacing: 2px; opacity: .85; }
.pad-nitro.ready { box-shadow: 0 0 0 3px rgba(139, 131, 255, .45), 0 6px 0 rgba(var(--tint), .08); }
.pad-nitro.on::before { height: 100%; background: linear-gradient(0deg, #ff7a59, #ffd166); }
.game-tips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; font-size: .85rem; color: var(--muted); margin: 6px 0; }
#gTilt.active { background: rgba(var(--primary-rgb), .15); border-color: var(--primary); color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .game-pad { max-width: 360px; margin-inline: auto; } }
.page-game .chat-fab, .page-game .wa-float { display: none; }

/* تطبيق المدير */
.app-dl { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff !important; font-weight: 700; }
.is-app .app-dl { display: none; }
@media (max-width: 520px) { .app-dl span { display: none; } }
.app-hero { display: flex; gap: 20px; align-items: flex-start; }
.app-hero-ico { border-radius: 24px; box-shadow: var(--shadow); flex: none; }
.app-hero .btn-lg { margin-top: 8px; }
@media (max-width: 600px) { .app-hero { flex-direction: column; align-items: center; text-align: center; } }
.app-steps { margin: 16px 0; }
.app-steps code { word-break: break-all; font-size: .85rem; }
.device-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
.device-list form { margin: 0; }

/* ===================================================================
   v17: أسعار واضحة + قسم RedotPay منفصل + خلفية الموقع بصورتك (خافتة و3D)
   =================================================================== */
/* السعر: ورقة نقدية + رقم كبير في قطعة واحدة + دج */
.price-tag { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; direction: rtl; }
.dz-note { width: 38px; height: 23px; flex: none; filter: drop-shadow(0 3px 6px rgba(11, 107, 75, .3)); transform: rotate(-6deg); }
.price-num { font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .5px; unicode-bidi: isolate; }
.price-cur { font-weight: 800; font-size: .72em; color: var(--muted); }
.cc-price .price-num { font-size: 1.45rem; color: var(--text); }
.pack-price { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); }
.pack-price .price-num { font-size: 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack-price .dz-note { width: 46px; height: 28px; }
.svc-card .price-tag { font-size: .95rem; color: var(--text); }
.svc-card .dz-note { width: 30px; height: 18px; }

/* قسم RedotPay المستقل */
.redot-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: 28px; color: #eaf3f8;
  background: radial-gradient(ellipse at 90% 0%, rgba(255, 90, 90, .35), transparent 55%), linear-gradient(135deg, #1a1f3a, #2a1330 60%, #3a1422); box-shadow: 0 24px 60px rgba(42, 19, 48, .35); overflow: hidden; }
.redot-box h2 { margin: 10px 0 8px; font-size: clamp(1.5rem, 4.5vw, 2.1rem); color: #fff; }
.redot-box p { margin: 0 0 16px; color: rgba(255, 255, 255, .85); }
.redot-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 700; }
.redot-badge svg { width: 16px; height: 16px; }
.redot-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.redot-steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.redot-steps b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #ff4d5e; color: #fff; flex: none; }
.redot-cta { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.redot-rate { display: grid; gap: 4px; }
.redot-rate small, .redot-limits { color: rgba(255, 255, 255, .75); }
.redot-rate > span { display: inline-flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; }
.redot-rate .price-cur { color: rgba(255, 255, 255, .8); }
.redot-cta .btn { width: 100%; }
@media (max-width: 760px) { .redot-box { grid-template-columns: 1fr; padding: 24px 18px; } }

/* الواجهة بدون صورة كبيرة: بطاقة زجاجية ثلاثية الأبعاد فوق خلفية الصورة */
.hero3d { padding: 64px 0 72px; perspective: 1200px; }
.hero3d::before { display: none; }
.hero3d .hero2-text { max-width: 780px; margin: 0 auto; text-align: center; }
.hero3d .hero2-text .lead { margin-inline: auto; }
.hero3d .tags, .hero3d .hero-actions, .hero3d .coach-line { justify-content: center; }
.hero-glass { padding: 40px 32px; border-radius: 32px; background: rgba(var(--ov), .62); border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px rgba(var(--tint), .12);
  transform: rotateX(var(--hrx, 0deg)) rotateY(var(--hry, 0deg)); transform-style: preserve-3d; transition: transform .3s ease-out; }
:root[data-theme="dark"] .hero-glass { border-color: rgba(255, 255, 255, .08); }
.hero-glass h1 { transform: translateZ(40px); }
.hero-glass .hero-actions { transform: translateZ(28px); }
@media (max-width: 860px) { .hero3d { padding: 26px 0 40px; } .hero-glass { padding: 28px 18px; border-radius: 26px; } }

/* الخلفية: صورتك خافتة مع عمق 3D (تتحرك ببطء مع التمرير والإصبع/الفأرة وإمالة الهاتف) */
:root { --site-bg-opacity: .16; }
:root[data-theme="dark"] { --site-bg-opacity: .12; }
body::before {
  inset: -7%;
  background-position: center 18%;
  filter: saturate(.85) contrast(1.02);
  transform: perspective(1100px) translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) rotateX(var(--bgrx, 0deg)) rotateY(var(--bgry, 0deg)) scale(1.08);
  transition: transform .35s ease-out;
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { body::before { transform: none; transition: none; } .hero-glass { transform: none; } }
/* الشريط العلوي ثابت (≈64px): الواجهة تبدأ تحته */
.hero3d { padding-top: 104px; }
@media (max-width: 860px) { .hero3d { padding-top: 80px; } }

/* ===================================================================
   v18 — تصميم GOLD الفاخر: أسود دافئ + ذهبي، والوضع الفاتح عاجي مع ذهبي
   (يعيد تعريف الألوان فقط، فكل الصفحات تتغير تلقائياً)
   =================================================================== */
:root, :root[data-theme="dark"] {
  --bg: #0b0a08;
  --bg-2: #12100c;
  --bg-2a: rgba(18, 16, 12, .88);
  --surface: #17140f;
  --surface-2: #201b13;
  --line: rgba(212, 175, 55, .16);
  --text: #f7f0df;
  --muted: #b9ad93;
  --primary: #d4af37;
  --primary-2: #f3d57a;
  --primary-rgb: 212, 175, 55;
  --primary-2-rgb: 243, 213, 122;
  --on-primary: #1a1405;
  --accent: #e7b24a;
  --ok: #3ccf91;
  --err: #ff6b6b;
  --warn: #f0b429;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ov: 11, 10, 8;
  --tint: 0, 0, 0;
  --ph-grad: linear-gradient(135deg, #2a2317, #15120d);
  --lead: #e2d7bf;
  --about: #e2d7bf;
  --ok-text: #7ee2b3;
  --err-text: #ffaaaa;
  --info-text: #f3d57a;
  --h1-grad: linear-gradient(100deg, #fff6d6 0%, #f3d57a 30%, #d4af37 60%, #a67c1f 100%);
  --gold: linear-gradient(135deg, #fbe7a1 0%, #e6c35c 30%, #d4af37 55%, #a67c1f 100%);
  --site-bg-opacity: .14;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbf8f1;
  --bg-2: #f4eee0;
  --bg-2a: rgba(244, 238, 224, .9);
  --surface: #ffffff;
  --surface-2: #faf6ec;
  --line: rgba(120, 90, 20, .14);
  --text: #1d1a14;
  --muted: #6d6452;
  --primary: #b8892b;
  --primary-2: #d4af37;
  --primary-rgb: 184, 137, 43;
  --primary-2-rgb: 212, 175, 55;
  --on-primary: #1a1405;
  --shadow: 0 16px 40px rgba(80, 60, 10, .10);
  --ov: 251, 248, 241;
  --tint: 60, 45, 10;
  --ph-grad: linear-gradient(135deg, #f6ecd2, #fbf6e8);
  --lead: #3d3527;
  --about: #3d3527;
  --info-text: #8a6516;
  --h1-grad: linear-gradient(100deg, #3a2c08 0%, #a67c1f 45%, #d4af37 100%);
  --site-bg-opacity: .10;
  color-scheme: light;
}

/* أزرار ذهبية لامعة */
.btn-primary { background: var(--gold); color: var(--on-primary) !important; border: 0; box-shadow: 0 10px 28px rgba(var(--primary-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .45); position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(var(--primary-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: transparent; border: 1px solid rgba(var(--primary-rgb), .45); color: var(--text); }
.btn-ghost:hover { background: rgba(var(--primary-rgb), .1); }
.logo-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; letter-spacing: 1px; }
.section-title::after { background: var(--gold); }
.eyebrow { background: rgba(var(--primary-rgb), .12); color: var(--primary); border-color: rgba(var(--primary-rgb), .35); }
.topbar { background: rgba(var(--ov), .82) !important; border-bottom: 1px solid var(--line); }
.card, .course-card, .why-item, .svc-card, .faq-item, .steps-pro li, .tags li { border-color: var(--line); }
.course-card:hover { box-shadow: 0 22px 50px rgba(var(--primary-rgb), .16); border-color: rgba(var(--primary-rgb), .45); }
.cc-num { background: var(--gold); color: var(--on-primary); }
.steps-pro li span, .svc-ico, .redot-steps b { background: var(--gold); color: var(--on-primary); }
.why-ico { background: rgba(var(--primary-rgb), .14); color: var(--primary); }
.trust-in b, .pack-price .price-num { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-stat b { color: var(--primary); }

/* الباقة GOLD: بطاقة ذهبية مميزة */
.pack-banner { background: radial-gradient(ellipse at 100% 0%, rgba(var(--primary-2-rgb), .22), transparent 55%), linear-gradient(135deg, #1b1b1f, #0e0e10); border: 1px solid rgba(var(--primary-rgb), .5); color: #f5f5f7; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(var(--primary-2-rgb), .25); }
.pack-banner h3 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.8rem; letter-spacing: .5px; }
.pack-banner .muted, .pack-banner .price-cur { color: #cfc2a3; }
.pack-tag { background: var(--gold); color: var(--on-primary); }

/* الدعوة الأخيرة: ذهبية */
.cta2 .cta-box { background: radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, .35), transparent 50%), var(--gold); color: var(--on-primary); box-shadow: 0 24px 60px rgba(var(--primary-rgb), .3); }
.cta-box h2 { color: var(--on-primary); }
.cta-box .lead { color: rgba(26, 20, 5, .8); }
.cta-box .btn-light { background: #141417; color: var(--primary-2); }
.cta-box .btn-outline-light { color: var(--on-primary); border-color: rgba(26, 20, 5, .55); }
.cta-box .btn-outline-light:hover { background: rgba(26, 20, 5, .08); }

/* الواجهة: الشعار كبير وواضح مع إطار ذهبي يدور وعمق 3D */
.hero-logo { position: relative; width: clamp(150px, 34vw, 230px); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; padding: 6px; transform: translateZ(60px); }
.hero-logo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary-d), var(--primary-2), var(--primary), var(--primary-d), var(--primary-2), var(--primary-d)); animation: goldspin 6s linear infinite; }
.hero-logo::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), .35), transparent 70%); z-index: -1; filter: blur(8px); }
.hero-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--bg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
@keyframes goldspin { to { transform: rotate(360deg); } }
.hero-glass { background: rgba(var(--ov), .58); border-color: rgba(var(--primary-rgb), .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(var(--primary-2-rgb), .12); }
.brand-logo { width: 44px !important; height: 44px !important; border-radius: 50%; box-shadow: 0 0 0 2px var(--primary); }
.coach-line img { box-shadow: 0 0 0 2px var(--primary); }
@media (prefers-reduced-motion: reduce) { .hero-logo::before { animation: none; } }

/* RedotPay يبقى بلونه الخاص (منفصل عن الدورات) لكن بلمسة ذهبية */
.redot-box { border: 1px solid rgba(var(--primary-rgb), .25); }
.admin-hall-bar { background: rgba(var(--primary-rgb), .1); border-color: rgba(var(--primary-rgb), .45); }
.app-dl { background: var(--gold); color: var(--on-primary) !important; }

/* محفظة المالك الحقيقية: بطاقة سوداء ذهبية + كشف الحساب */
.gold-card { background: radial-gradient(ellipse at 100% 0%, rgba(var(--primary-2-rgb), .35), transparent 55%), linear-gradient(135deg, #1b1b1f, #0b0b0d 70%) !important; border: 1px solid rgba(var(--primary-rgb), .55); color: #f5f5f7 !important; }
.gold-card .pc-balance .price-num { font-size: clamp(1.8rem, 6vw, 2.6rem); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-card .price-cur, .gold-card .pc-label, .gold-card .pc-alt { color: #cfc2a3; }
.gold-card .pc-chip { background: var(--gold); }
.t-ok .price-num { color: var(--ok-text); } .t-err .price-num { color: var(--err-text); }
.month-bars { display: flex; gap: 10px; align-items: flex-end; height: 160px; padding: 6px 0; }
.mb { flex: 1; display: grid; gap: 6px; justify-items: center; height: 100%; grid-template-rows: 1fr auto; }
.mb-bars { display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.mb-bars span { width: 14px; border-radius: 6px 6px 2px 2px; }
.mb-in, .dot-in { background: var(--gold); } .mb-out, .dot-out { background: #ff6b6b; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb), .12); }
.ledger { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ledger li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ledger form { margin: 0; }
.lg-main { display: grid; min-width: 0; } .lg-main b { overflow-wrap: anywhere; font-size: .95rem; }
.lg-in .lg-amt .price-num { color: var(--ok-text); } .lg-out .lg-amt .price-num { color: var(--err-text); }
.lg-amt { white-space: nowrap; font-weight: 800; }
@media (max-width: 520px) { .ledger li { grid-template-columns: auto 1fr; } .lg-amt { grid-column: 2; } .ledger form { grid-column: 2; justify-self: start; } }

/* رفع الفيديوهات: منطقة سحب وإفلات كبيرة + قائمة رفع لكل ملف */
.big-drop { min-height: 130px; display: grid !important; place-items: center; text-align: center; border: 2px dashed rgba(var(--primary-rgb), .5) !important; border-radius: 18px; transition: background .2s, border-color .2s; }
.big-drop.drag { background: rgba(var(--primary-rgb), .14); border-color: var(--primary) !important; }
.big-drop small { color: var(--muted); font-weight: 500; }
.up-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.up-queue li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.up-queue li b { overflow-wrap: anywhere; }
.up-queue li .meter, .up-queue li .q-status { grid-column: 1 / -1; }
.up-queue li.active { border-color: var(--primary); }
.up-queue li.done { border-color: rgba(60, 207, 145, .6); }
.up-queue li.fail { border-color: rgba(255, 107, 107, .7); }
.hero-logo { width: clamp(190px, 54vw, 270px); }

/* صفحة تحميل تطبيق الزبون */
.app-page { max-width: 760px; }
.app-land { text-align: center; padding: 36px 22px; display: grid; gap: 14px; justify-items: center; }
.app-land h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.4rem); background: var(--h1-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-land .lead { margin: 0; max-width: 520px; color: var(--lead); }
.app-land-ico { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 0 3px var(--primary), 0 20px 50px rgba(0, 0, 0, .4); }
.app-state { display: grid; gap: 10px; justify-items: center; width: 100%; }
.app-state[hidden] { display: none; }
.app-steps-ios { text-align: start; }
.app-perks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; text-align: start; }
.app-perks li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-weight: 600; }
.app-share { display: flex; gap: 20px; align-items: center; margin-top: 16px; }
.app-qr { width: 160px; flex: none; background: #fff; border-radius: 16px; padding: 8px; }
.app-qr svg { width: 100%; height: auto; display: block; }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.copy-row input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .app-share { flex-direction: column; text-align: center; } .app-qr { display: none; } }
.app-banner { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; border: 1px solid rgba(var(--primary-rgb), .45); background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), transparent); }
.app-banner img { width: 52px; height: 52px; border-radius: 14px; }
.app-banner > div { display: flex; align-items: center; gap: 12px; }
.is-app .app-banner, .is-app .app-link-foot { display: none !important; }

/* صفحة السحابة */
.cloud-status { display: flex; gap: 18px; align-items: center; }
.cloud-ico { font-size: 3rem; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: rgba(var(--primary-rgb), .1); flex: none; filter: grayscale(.6); }
.cloud-status.is-on .cloud-ico { filter: none; background: var(--gold); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .3); }
.cloud-info { flex: 1; min-width: 0; }
@media (max-width: 520px) { .cloud-status { flex-direction: column; text-align: center; } }

/* نقل درس/تطبيق إلى دورة أخرى */
.move-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.move-form select { flex: 1 1 160px; min-width: 0; padding: 6px 10px; font-size: .85rem; }
.app-card .move-form { flex-basis: 100%; }
.who-sees { font-size: .9rem; }

/* بطاقة التطبيق عند الزبون: الاسم واضح، والأزرار تحته بعرض كامل (لا تغطي الاسم على الهاتف) */
.apps .app-card { flex-wrap: wrap; align-items: flex-start; }
.apps .app-card .app-info { flex: 1 1 calc(100% - 70px); }
.apps .app-card .app-info b { font-size: 1.05rem; }
.apps .app-card .app-links { flex: 1 1 100%; gap: 8px; }
.apps .app-card .app-links .btn { flex: 1 1 auto; justify-content: center; }
.app-dl-btn { flex: 1 1 100% !important; padding: 12px 16px; font-size: 1rem; }
.app-dl-btn small { opacity: .75; font-weight: 600; }
.app-help { flex: 1 1 100%; font-size: .88rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.app-help summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.app-help ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.app-bundle { border-color: rgba(var(--primary-rgb), .45); color: var(--text); }
.app-bundle a { color: var(--primary); font-weight: 700; }
.app-ios-note { display: none; flex: 1 1 100%; margin: 0; font-size: .85rem; color: var(--muted); }
.is-ios .app-ios-note { display: block; }
.is-ios .app-dl-btn, .is-ios .app-help { display: none !important; }

/* دليل تثبيت التطبيقات بالصور (القاعة) */
.app-guide { border: 1px solid rgba(var(--primary-rgb), .5); margin-bottom: 16px; }
.app-guide > summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.app-guide > summary::-webkit-details-marker { display: none; }
.app-guide > summary span { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.app-guide > summary small { color: var(--muted); }
.gd-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.gd-step { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.gd-phone { width: 110px; height: auto; display: block; }
.gd-ring { animation: gdpulse 1.4s ease-in-out infinite; }
@keyframes gdpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gd-ring { animation: none; } }
.gd-txt b { display: flex; gap: 8px; align-items: flex-start; font-size: .98rem; line-height: 1.4; }
.gd-txt p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.gd-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gold); color: var(--on-primary); font-weight: 900; }
.gd-fix { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--primary-rgb), .08); border: 1px dashed rgba(var(--primary-rgb), .45); font-size: .9rem; }
.gd-fix ul { margin: 6px 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.app-guide-link { display: block; text-decoration: none; color: var(--primary) !important; font-weight: 700; text-align: center; }
/* الهاتف: الصورة كبيرة فوق الشرح حتى تُقرأ الأزرار بوضوح */
@media (max-width: 640px) {
  .gd-step { grid-template-columns: 1fr; justify-items: center; text-align: start; }
  .gd-phone { width: min(62vw, 230px); }
  .gd-txt { width: 100%; }
}

/* v22: حضوري/أونلاين، علامة الموقع الرسمي، قسم الثقة، خدمة الإعلان الممول */
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--on-primary); font-size: .7rem; font-weight: 900; vertical-align: middle; }
.cc-modes { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cc-modes span { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(var(--primary-rgb), .12); color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .3); }
.trust-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.trust-card { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.trust-card > span { font-size: 1.7rem; }
.trust-card b { font-size: 1.05rem; }
.trust-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.svc-featured { border-color: rgba(var(--primary-rgb), .55); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .15); }
.svc-featured .price-tag { font-size: .95rem; color: var(--text); }
.ads-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ads-plan { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); }
.ads-plan.is-best { border-color: rgba(var(--primary-rgb), .7); box-shadow: 0 18px 44px rgba(var(--primary-rgb), .18); }
.ap-badge { position: absolute; top: -12px; inset-inline-start: 18px; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: var(--on-primary); font-size: .78rem; font-weight: 800; }
.ap-usd b { font-size: 2.2rem; font-weight: 900; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-usd span { color: var(--muted); font-weight: 700; }
.ap-days { color: var(--muted); font-size: .92rem; }
.ap-price .price-num { font-size: 1.6rem; color: var(--text); }
.ads-plan .checks { margin: 0; }
.ads-mock { display: grid; gap: 10px; justify-items: center; }
.am-post { width: min(100%, 280px); border-radius: 16px; background: #fff; color: #1c1e21; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.am-head { display: flex; gap: 8px; align-items: center; padding: 10px; }
.am-head i { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); }
.am-head span { display: grid; line-height: 1.2; font-size: .85rem; }
.am-head small { color: #65676b; font-size: .72rem; }
.am-img { height: 130px; background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--primary-d)); }
.am-cta { margin: 10px; padding: 8px; border-radius: 8px; background: #1877f2; color: #fff; text-align: center; font-weight: 700; font-size: .85rem; }
.am-stats { display: flex; gap: 8px; }
.am-stats span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: .85rem; }
.mode-choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 12px; }

/* ===== «الدورات والخدمات»: مربعات جذابة ===== */
.offers-hero { text-align: center; padding: 72px 0 10px; max-width: 760px; margin: 0 auto; }
.offers-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0; background: var(--h1-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offers-hero .lead { color: var(--lead); }
.offers-h { display: grid; gap: 4px; margin: 34px 0 14px; font-size: 1.5rem; }
.offers-h small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.offers-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.offer { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.offer:hover { transform: translateY(-6px); border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 26px 60px rgba(var(--primary-rgb), .2); }
.offer-media { aspect-ratio: 16 / 9; background: var(--ph-grad); overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.offer:hover .offer-media img { transform: scale(1.06); }
.offer-art { display: grid; place-items: center; }
.offer-art span { font-size: 4rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); transition: transform .3s; }
.offer:hover .offer-art span { transform: scale(1.12) rotate(-6deg); }
.offer-gold .offer-art { background: radial-gradient(circle at 30% 20%, #fff4c8, transparent 45%), var(--gold); }
.offer-fb .offer-art { background: linear-gradient(135deg, #1877f2, #5b9dff); }
.offer-tt .offer-art { background: linear-gradient(135deg, #111, #25f4ee 60%, #fe2c55); }
.offer-rp .offer-art { background: linear-gradient(135deg, #2a1330, #ff4d5e); }
.offer-web .offer-art { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.offer-game .offer-art { background: linear-gradient(135deg, #1d2b4a, #6c63ff); }
.offer-gold { border: 2px solid rgba(var(--primary-rgb), .75); box-shadow: 0 24px 60px rgba(var(--primary-rgb), .25); }
.offer-body { padding: 16px 18px 6px; flex: 1; }
.offer-body h3 { margin: 8px 0 6px; font-size: 1.15rem; line-height: 1.4; }
.offer-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.offer-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(var(--primary-rgb), .14); color: var(--primary); font-size: .76rem; font-weight: 800; }
.offer-gold .offer-tag { background: var(--gold); color: var(--on-primary); }
.offer .cc-modes { margin: 8px 0 0; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px 18px; border-top: 1px solid var(--line); margin-top: 12px; }
.offer-price { display: grid; gap: 2px; }
.offer-price small { color: var(--muted); font-size: .75rem; font-weight: 700; }
.offer-price .price-num { font-size: 1.25rem; color: var(--text); }
.offer-free { font-size: 1.2rem; color: var(--ok-text); }
.offers-note { margin-top: 26px; }
.offers-in-account { margin: 18px 0; }
.offers-in-account > h2 { margin: 0 0 4px; }
/* تيك توك */
.tt-coins { display: grid; justify-items: center; gap: 4px; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, #111, #25f4ee 60%, #fe2c55); color: #fff; }
.tt-coins span { font-size: 4rem; } .tt-coins b { font-size: 2.4rem; }
.tt-packs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.tt-pack { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.tt-pack:hover { transform: translateY(-3px); border-color: var(--primary); }
.tt-pack b { font-size: 1.2rem; }

/* 🧮 حاسبة التكاليف */
.calc { margin-top: 30px; border: 1px solid rgba(var(--primary-rgb), .5); }
.calc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 12px 0; }
.calc-box { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; background: var(--surface-2); }
.calc-box legend { padding: 0 6px; font-weight: 800; }
.calc-box .check { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; }
.calc-box .check b { margin-inline-start: auto; color: var(--primary); white-space: nowrap; }
.calc-box .check input:disabled + * { opacity: .5; }
.calc-pack { padding: 8px; border-radius: 12px; background: rgba(var(--primary-rgb), .12); }
.calc-total { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 18px; background: #141417; border: 1px solid rgba(var(--primary-rgb), .6); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.calc-total > div { display: grid; gap: 2px; min-width: 0; }
.calc-total small { color: #cfc2a3; }
.calc-total strong { font-size: 1.8rem; font-weight: 900; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: start; }
#calcLines { overflow-wrap: anywhere; }

/* 🎧 الدليل الصوتي */
.vg-btn { border-color: rgba(var(--primary-rgb), .6) !important; }
.offers-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vg-modal { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
.vg-modal[hidden] { display: none; }
.vg-box { width: min(560px, 100%); max-height: 88vh; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; border: 1px solid rgba(var(--primary-rgb), .6); }
.vg-head { display: flex; align-items: center; gap: 12px; }
.vg-head > div { flex: 1; display: grid; }
.vg-wave { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.vg-wave i { width: 4px; height: 30%; border-radius: 2px; background: var(--gold); }
.is-playing .vg-wave i { animation: vgw 1s ease-in-out infinite; }
.vg-wave i:nth-child(2) { animation-delay: .15s; } .vg-wave i:nth-child(3) { animation-delay: .3s; } .vg-wave i:nth-child(4) { animation-delay: .45s; } .vg-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes vgw { 50% { height: 100%; } }
.vg-text { overflow: auto; margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: .95rem; line-height: 1.7; }
.vg-text li { cursor: pointer; padding: 4px 8px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.vg-text li.on { background: rgba(var(--primary-rgb), .16); color: var(--text); font-weight: 600; }
.vg-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.vg-audio { width: 100%; }
.follow-h { margin: 14px 0 6px; font-size: .95rem; }

/* 🎮 ألعاب للتسلية */
.games-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 20px 0; }
.game-tile { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 20px 14px; border-radius: 22px; color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.game-tile:hover, .game-tile.active { transform: translateY(-4px) scale(1.02); }
.game-tile.active { outline: 3px solid var(--primary); }
.gt-ico { font-size: 2.8rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.game-tile small { opacity: .9; font-size: .82rem; min-height: 2.4em; }
.gt-rc { background: linear-gradient(135deg, #3a1422, #ff4d5e); } .gt-mm { background: linear-gradient(135deg, #1d2b4a, #6c63ff); }
.gt-nb { background: linear-gradient(135deg, var(--primary-d), var(--primary)); } .gt-sn { background: linear-gradient(135deg, #0f766e, #22c38e); } .gt-xo { background: linear-gradient(135deg, #0b3a66, #1877f2); }
.game-stage-box { position: relative; display: grid; justify-items: center; gap: 12px; min-height: 200px; }
.game-stage-box[hidden] { display: none; }
.gm-head { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 420px; }
.gm-score { color: var(--muted); font-weight: 700; font-size: .9rem; }
.gm-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(11, 10, 8, .82); border-radius: inherit; color: #fff; font-size: 1.3rem; font-weight: 800; text-align: center; padding: 20px; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 380px); }
.mem-card { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--gold); cursor: pointer; font-size: 2rem; }
.mem-card span { visibility: hidden; } .mem-card.open span { visibility: visible; }
.mem-card.open { background: var(--surface-2); border: 2px solid var(--primary); } .mem-card.ok { background: rgba(60, 207, 145, .25); border-color: #3ccf91; }
.g2048 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 360px); padding: 8px; border-radius: 16px; background: #2a2317; touch-action: none; }
.g2048 .t { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: clamp(1rem, 6vw, 1.6rem); background: #3a3122; color: var(--on-primary); }
.t2 { background: var(--primary-2) !important; } .t4 { background: var(--primary-2) !important; } .t8 { background: var(--primary-2) !important; } .t16 { background: var(--primary) !important; } .t32 { background: #c99a2b !important; } .t64 { background: #b8892b !important; color: #fff !important; }
.t128, .t256, .t512 { background: #ff7a59 !important; color: #fff !important; } .t1024, .t2048, .t4096 { background: #ff4d5e !important; color: #fff !important; }
.snake-cv { border-radius: 14px; touch-action: none; max-width: 100%; }
.snake-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 48px); gap: 6px; }
.snake-pad button { border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 1.2rem; border: 1px solid var(--line); }
.snake-pad [data-d=U] { grid-column: 2; } .snake-pad [data-d=L] { grid-column: 1; grid-row: 2; } .snake-pad [data-d=D] { grid-column: 2; grid-row: 2; } .snake-pad [data-d=R] { grid-column: 3; grid-row: 2; }
.xo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 320px); }
.xo-cell { aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-size: 2.6rem; font-weight: 900; color: var(--text); cursor: pointer; }
.xo-cell.x { color: var(--primary); } .xo-cell.o { color: #5bd1ff; }

/* 📒 المحاسب */
.acc-periods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 14px; }
.acc-periods > a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .88rem; }
.acc-periods > a.active { background: var(--gold); color: var(--on-primary); border-color: transparent; }
.acc-custom { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.acc-custom input { width: auto; padding: 5px 8px; }
.acc-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 14px; }
.acc-card { display: grid; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.acc-card.on { outline: 2px solid var(--primary); }
.acc-card small { color: var(--muted); font-weight: 700; }
.acc-card .price-num { font-size: 1.5rem; }
.acc-card > span { color: var(--muted); font-size: .85rem; }
.acc-in { border-color: rgba(60, 207, 145, .5); } .acc-in .price-num { color: var(--ok-text); }
.acc-wait { border-color: rgba(240, 180, 41, .5); } .acc-wait .price-num { color: #f0b429; }
.acc-out .price-num { color: var(--err-text); }
.acc-total b { font-size: 1.8rem; }
.acc-mid { margin-bottom: 14px; }
.acc-types { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.acc-types li { position: relative; }
.acc-types a { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text); text-decoration: none; position: relative; z-index: 1; padding: 6px 8px; }
.acc-types i { position: absolute; inset: 0 auto 0 0; background: rgba(var(--primary-rgb), .14); border-radius: 10px; }
.acc-bars { height: 150px; }
.acc-bars .mb-bars span { width: 16px; }
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.acc-table th { text-align: start; padding: 8px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .82rem; }
.acc-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table tr { cursor: pointer; } .acc-table tbody tr:hover { background: rgba(var(--primary-rgb), .07); }
.acc-table td b, .acc-table td small { display: block; }
.acc-amt { white-space: nowrap; font-weight: 800; }
.acc-table tr.st-cancelled td { opacity: .6; }

/* 📲 تثبيت تطبيق MZ PRO: زر في الشريط العلوي + لافتة تلقائية */
.nav-install { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--on-primary) !important; font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); animation: navpulse 2.4s ease-in-out infinite; }
@keyframes navpulse { 50% { box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .15), 0 6px 18px rgba(var(--primary-rgb), .35); } }
.ni-short { display: none; }
@media (max-width: 520px) { .nav-install .ni-long { display: none; } .nav-install .ni-short { display: inline; } .nav-install { padding: 7px 10px; font-size: .8rem; } }
.is-app .nav-install, .app-installed .nav-install { display: none !important; }
@media (prefers-reduced-motion: reduce) { .nav-install { animation: none; } }
.install-banner { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 110; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 20px; background: #17171b; color: #f5f5f7; border: 1px solid rgba(var(--primary-rgb), .6); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: ibin .35s ease-out; }
.install-banner[hidden] { display: none; }
@keyframes ibin { from { transform: translateY(120%); } }
.install-banner img { border-radius: 14px; box-shadow: 0 0 0 2px var(--primary); }
.ib-txt { flex: 1 1 180px; display: grid; gap: 2px; }
.ib-txt small { color: #cfc2a3; }
.ib-act { display: flex; gap: 8px; flex-wrap: wrap; }
.install-banner .ib-ok { display: none; }
.install-banner.is-done .ib-ok { display: revert; }
.install-banner.is-done .ib-ask { display: none; }
.install-banner .btn-ghost { color: #f5f5f7; border-color: rgba(255, 255, 255, .25); }
.is-app .install-banner { display: none !important; }
.nav .nav-install .ni-short { display: none; } .nav .nav-install .ni-long { display: inline; } @media (max-width: 520px) { .nav .nav-install .ni-long { display: none; } .nav .nav-install .ni-short { display: inline; } }
code, .card code, .muted code { overflow-wrap: anywhere; word-break: break-all; }
.chat-log, .chat-log p, .order-body p { overflow-wrap: anywhere; word-break: break-word; } .orders > .card, .order-body { min-width: 0; max-width: 100%; }
/* وحدة إعلان Google AdSense */
.adsense-box{margin:24px auto;text-align:center;overflow:hidden;max-width:100%}
.adsense-box small{display:block;margin-bottom:4px;font-size:.75rem}

/* ===================================================================
   الآلة الحاسبة العلمية الذهبية MZ PRO
   =================================================================== */
.sc-modal { place-items: center; overflow-y: auto; }
.sc-body {
  position: relative; width: min(380px, calc(100vw - 24px)); margin: auto; padding: 16px 16px 12px; border-radius: 30px;
  background: linear-gradient(160deg, #fff1b8 0%, #f3cf6a 18%, #d4a437 45%, #b07d1f 72%, #e8c25a 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 rgba(80, 50, 5, .45), 0 0 0 1px #8a5d10;
  color: #2a1a02; font-family: 'Cairo', system-ui, sans-serif; animation: scIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
.sc-body::before { content: ""; position: absolute; inset: 6px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, .35); pointer-events: none; }
@keyframes scIn { from { transform: translateY(24px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sc-brand { flex: 1; display: grid; line-height: 1.05; }
.sc-brand b { font-family: 'Alfa Slab One', 'Cairo', serif; font-size: 1.55rem; letter-spacing: .06em; color: #3a2503; text-shadow: 0 1px 0 rgba(255, 245, 200, .9), 0 -1px 0 rgba(90, 55, 0, .5); }
.sc-brand small { font-size: .6rem; letter-spacing: .28em; font-weight: 800; color: #5b3d08; opacity: .85; }
.sc-solar { display: grid; grid-template-columns: repeat(4, 14px); gap: 2px; padding: 3px; border-radius: 5px; background: #2b1f10; box-shadow: inset 0 1px 3px #000; }
.sc-solar i { height: 16px; background: linear-gradient(180deg, #5a4630, #2e2217); border-radius: 1px; }
.sc-x { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(60, 35, 0, .18); color: #3a2503; font-size: 1rem; font-weight: 800; }
.sc-x:hover { background: rgba(60, 35, 0, .3); }
.sc-screen {
  padding: 8px 12px 10px; border-radius: 14px; margin-bottom: 14px; min-height: 96px; display: grid; gap: 2px; min-width: 0;
  background: linear-gradient(180deg, #1c1a12, #0b0a07); border: 3px solid #6e4c10;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 240, 190, .6);
}
.sc-flags { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 800; color: #c9a44c; letter-spacing: .06em; min-height: 1em; }
.sc-ans { color: #8f7a45; font-weight: 600; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-expr { color: #e9d9a8; font-size: 1.05rem; min-height: 1.5em; white-space: nowrap; overflow-x: auto; scrollbar-width: none; text-align: left; font-variant-numeric: tabular-nums; }
.sc-expr::-webkit-scrollbar { display: none; }
.sc-res { color: #ffd968; font-size: 2rem; font-weight: 800; text-align: right; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 0 14px rgba(255, 200, 70, .35); font-variant-numeric: tabular-nums; }
.sc-res.sc-err { color: #ff8a7a; text-shadow: none; }
.sc-res.sc-pop { animation: scPop .25s ease; }
@keyframes scPop { 50% { transform: scale(1.05); } }
.sc-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sc-k {
  height: 46px; min-width: 0; padding: 0; border-radius: 12px; border: 0; cursor: pointer; font: 700 1.05rem 'Cairo', system-ui, sans-serif; touch-action: manipulation;
  transition: transform .06s, box-shadow .06s, filter .15s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.sc-k:hover { filter: brightness(1.08); }
.k-n { background: linear-gradient(180deg, #2f2a20, #15120c); color: #f7e7b5; font-size: 1.25rem; box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .12); }
.k-fn { background: linear-gradient(180deg, #4a3c22, #2a2113); color: #f1cf73; font-size: .95rem; box-shadow: 0 4px 0 #120d04, inset 0 1px 0 rgba(255, 230, 160, .15); }
.k-op { background: linear-gradient(180deg, #fff3c4, #e2b54a); color: #3a2503; font-size: 1.35rem; box-shadow: 0 4px 0 #8a5d10, inset 0 1px 0 #fff; }
.k-ac { background: linear-gradient(180deg, #c8553f, #8d2a1a); color: #fff; box-shadow: 0 4px 0 #4d1208, inset 0 1px 0 rgba(255, 255, 255, .25); }
.k-eq { background: linear-gradient(180deg, #ffe89a, #f0b429 55%, #c98a12); color: #2a1a02; font-size: 1.5rem; box-shadow: 0 4px 0 #7a4f06, inset 0 1px 0 #fff, 0 0 18px rgba(255, 200, 60, .5); }
.sc-k:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.sc-foot { text-align: center; margin-top: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .18em; color: #5b3d08; opacity: .8; }
@media (max-width: 380px) { .sc-body { padding: 12px 10px 10px; } .sc-keys { gap: 6px; } .sc-k { height: 42px; } .sc-res { font-size: 1.7rem; } }
@media (max-height: 640px) { .sc-k { height: 38px; } .sc-screen { min-height: 80px; margin-bottom: 10px; } }
body.sc-open .chat-fab, body.sc-open .wa-float, body.sc-open .install-banner { visibility: hidden; }
.btn-calc { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); border: 0; }
.nav .nav-calc { color: var(--primary); }

/* الألعاب الإضافية (canvas) */
.gt-rd { background: linear-gradient(135deg, #1f2937, #f0b429); } .gt-bk { background: linear-gradient(135deg, #7c2d12, #f97316); }
.gt-pn { background: linear-gradient(135deg, #14532d, #22c55e); } .gt-pf { background: linear-gradient(135deg, #1e3a8a, #38bdf8); } .gt-fl { background: linear-gradient(135deg, #0e7490, #fde047); }
.g2-cv { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 16px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.g2-cv.g2-wide { max-width: 560px; }
.g2-pad { display: flex; gap: 12px; justify-content: center; width: 100%; max-width: 420px; }
.g2-btn { flex: 1; max-width: 110px; height: 60px; border-radius: 16px; border: 0; font-size: 1.6rem; font-weight: 800; color: #2a1a02; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #ffe89a, #d4a437); box-shadow: 0 5px 0 #8a5d10; }
.g2-btn.on { transform: translateY(4px); box-shadow: 0 1px 0 #8a5d10; }
.g2-btn.g2-jump { max-width: 140px; background: linear-gradient(180deg, #ffb199, #e0492a); color: #fff; box-shadow: 0 5px 0 #7a1f0c; }
@media (hover: hover) and (pointer: fine) { .g2-pad { opacity: .85; } }
.g2-pad { direction: ltr; }
#gameStage { scroll-margin-top: 80px; }
/* الدليل الصوتي: اختيار لغة الصوت */
.vg-box { display: flex; flex-direction: column; }
.vg-box .vg-text { flex: 1; min-height: 0; }
.vg-langbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .25); }
.vg-langbar label { font-weight: 700; white-space: nowrap; }
.vg-lang { flex: 1; min-width: 160px; width: auto; padding: 6px 10px; border-radius: 10px; font: inherit; font-weight: 700; }
.vg-voice { width: 100%; font-size: .75rem; }
.vg-voice:empty { display: none; }
.vg-audio[hidden] { display: none; }

/* الهاتف: الشريط العلوي لا يتجاوز الشاشة (الآلة الحاسبة وRedotPay موجودتان في الواجهة وأسفل الصفحة) */
@media (max-width: 480px) { .nav .nav-calc, .nav .nav-redot { display: none; } }
@media (max-width: 370px) { .nav .theme-toggle { display: none; } }
@media (max-width: 340px) { .nav .nav-install .ni-short { display: none; } }
.vg-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: var(--text); line-height: 1.7; }
.vg-voice { font-weight: 700; color: var(--primary); }

/* ===================================================================
   حساب الزبون: الصورة الشخصية + لون الخلفية + زر القاعة في الأعلى
   =================================================================== */
body.has-user-bg { background-image: radial-gradient(120% 70% at 50% 0%, rgba(var(--ubg), .5), transparent 70%), linear-gradient(180deg, rgba(var(--ubg), .3), rgba(var(--ubg), .12)); background-attachment: fixed; }
.acc-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; border: 1px solid rgba(var(--primary-rgb), .45); }
.acc-avatar { position: relative; width: 74px; height: 74px; flex: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-2), var(--primary)); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .5), 0 8px 20px rgba(0, 0, 0, .3); }
.acc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acc-avatar span { font-size: 2rem; font-weight: 800; color: var(--on-primary); }
.acc-avatar i { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .85rem; background: var(--surface); border: 2px solid var(--primary); }
.acc-hello { flex: 1; min-width: 150px; display: grid; gap: 2px; }
.acc-hello b { font-size: 1.25rem; }
.acc-hall { flex: 1 1 260px; justify-content: center; }
.acc-custom .acc-av-form, .acc-custom .acc-av-remove { display: inline-block; margin: 0 0 6px; }
.acc-bg-title { margin: 12px 0 8px; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; background: var(--sw, transparent); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); display: grid; place-items: center; font-size: 1.1rem; color: #fff; padding: 0; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--primary); }
.sw-default { background: var(--bg); color: var(--text); border-color: var(--line); }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.nav .nav-cta.has-avatar { padding: 4px 12px 4px 4px; }
[dir="rtl"] .nav .nav-cta.has-avatar { padding: 4px 4px 4px 12px; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--on-primary); }
@media (max-width: 760px) { .nav .nav-cta.has-avatar { padding: 3px; } }
@media (max-width: 600px) { .acc-hall { flex-basis: 100%; } }

/* ===================================================================
   الأسعار القديمة المشطوبة + روابط Play Store + الباقة الحضورية + الموقع الإلكتروني
   =================================================================== */
.price-pair { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; position: relative; }
.price-old { opacity: .55; text-decoration: none; position: relative; font-size: .82em; }
.price-old .price-tag { filter: grayscale(.6); }
.price-old::after { content: ""; position: absolute; inset-inline: -3px; top: 50%; height: 2px; background: #ef4444; transform: rotate(-8deg); border-radius: 2px; }
.price-save { position: absolute; top: -6px; inset-inline-end: -42px; background: #ef4444; color: #fff; font-weight: 800; font-size: .7rem; padding: 2px 6px; border-radius: 999px; }
.pack-price .price-save, .offer-gold .price-save { inset-inline-end: -46px; }
.cc-apps { margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(var(--tint), .05); border: 1px dashed rgba(var(--primary-rgb), .45); }
.cc-apps small { display: block; font-weight: 700; margin-bottom: 6px; }
.cc-apps > div { display: flex; flex-wrap: wrap; gap: 6px; }
.store-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #0b0b0d; color: #fff; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid #333; }
.store-btn:hover { border-color: var(--primary); }
.cc-special .cc-art { display: grid; place-items: center; min-height: 150px; font-size: 4rem; }
.cc-presence .cc-art { background: radial-gradient(circle at 30% 20%, rgba(var(--primary-2-rgb), .35), transparent 60%), linear-gradient(135deg, #3d2e0a, #0b0b0d); }
.cc-web .cc-art { background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(135deg, #0c4a6e, #041421); }
.cc-special { border: 1px solid rgba(var(--primary-rgb), .55); }
.cc-art .cc-num { font-size: 1rem; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-inline-end: 46px; }
.pass-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; padding: 6px; }
[dir="rtl"] .pass-wrap input { padding-inline-end: 12px; padding-left: 46px; }
[dir="rtl"] .pass-eye { inset-inline-end: auto; left: 6px; }
.choice-presence { border-color: rgba(var(--primary-rgb), .5) !important; }
.badge-best { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); font-size: .7rem; font-weight: 800; vertical-align: middle; }
.plan-price .price-pair { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-price .price-save { position: static; }

/* ===================================================================
   💬 رسائل الزبون ↔ الكوتش (نص + صوت)
   =================================================================== */
.msg-thread { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 8px 0; border-radius: 14px; background: rgba(var(--tint), .04); border: 1px solid var(--line); }
.msg-empty { margin: 20px 0; }
.msg-b { max-width: 82%; padding: 8px 12px; border-radius: 16px; display: grid; gap: 4px; }
.msg-b p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.msg-b small { opacity: .65; font-size: .72rem; }
.msg-b audio { width: 240px; max-width: 100%; height: 38px; }
.msg-b.mine { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-end-end-radius: 4px; }
.msg-b.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg-form { display: grid; gap: 8px; }
.msg-form textarea { resize: vertical; min-height: 56px; }
.msg-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-tools .btn-primary { margin-inline-start: auto; }
.msg-rec-state { display: inline-flex; align-items: center; gap: 6px; }
.msg-rec-state audio { height: 36px; max-width: 220px; }
.js-rec.is-rec { border-color: #ef4444 !important; color: #ef4444; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { opacity: .2; } }
.msg-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; }
.acc-msg { flex: 0 0 auto; }
.msg-admin { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.msg-list { max-height: 75vh; overflow-y: auto; display: grid; gap: 4px; align-content: start; }
.msg-conv { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text); }
.msg-conv:hover, .msg-conv.on { background: rgba(var(--primary-rgb), .12); }
.msg-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); overflow: hidden; }
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-who { flex: 1; display: grid; min-width: 0; }
.msg-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-open .msg-thread { max-height: 55vh; }
.msg-back { display: none; }
@media (max-width: 800px) {
  .msg-admin { grid-template-columns: 1fr; }
  .msg-admin.has-open .msg-list { display: none; }
  .msg-admin:not(.has-open) .msg-open { display: none; }
  .msg-back { display: inline-flex; }
}

/* ===================================================================
   🛠 لوحة التحكم الجديدة: قائمة جانبية مقسمة + رئيسية بالأرقام
   =================================================================== */
.adm2 .adm-top { position: sticky; top: 0; z-index: 50; }
.adm-top-in { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.adm-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; }
.adm-logo { width: 34px; height: 34px; border-radius: 10px; }
.adm-title { flex: 1; text-align: center; font-size: 1rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.adm-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.adm-side { position: sticky; top: 62px; align-self: start; height: calc(100vh - 62px); overflow-y: auto; padding: 14px 10px 30px; border-inline-end: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.adm-group { margin: 16px 10px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.adm-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 2px 0; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .15s; }
.adm-link:hover { background: rgba(var(--primary-rgb), .08); text-decoration: none; }
.adm-link.active { background: linear-gradient(135deg, rgba(var(--primary-rgb), .25), rgba(var(--primary-rgb), .08)); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
[dir="rtl"] .adm-link.active { box-shadow: inset -3px 0 0 var(--primary); }
.adm-ico { width: 26px; text-align: center; font-size: 1.05rem; }
.adm-n { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: #ef4444; color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; }
.adm-main { min-width: 0; padding-inline: 22px; max-width: 1200px; width: 100%; }
.adm-shade { display: none; }
@media (max-width: 900px) {
  .adm-burger { display: inline-grid; place-items: center; }
  .adm-wrap { grid-template-columns: 1fr; }
  .adm-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90; width: 280px; height: 100vh; transform: translateX(110%); transition: transform .25s ease; box-shadow: var(--shadow); }
  [dir="rtl"] .adm-side { transform: translateX(110%); }
  [dir="ltr"] .adm-side { transform: translateX(-110%); }
  .adm-open .adm-side { transform: none !important; }
  .adm-open .adm-shade { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); }
  .adm-main { padding-inline: 14px; }
  .adm-site span, .adm-title { display: none; }
}
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 20px; border-radius: 22px;
  background: radial-gradient(circle at 15% 0%, rgba(var(--primary-2-rgb), .25), transparent 55%), linear-gradient(135deg, #2a1f08, #0b0b0d); border: 1px solid rgba(var(--primary-rgb), .45); color: #fff; }
.dash-hero h1 { margin: 0 0 4px; font-size: 1.5rem; }
.dash-hero .muted { color: rgba(255, 255, 255, .7); }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.kpi:hover { transform: translateY(-2px); border-color: rgba(var(--primary-rgb), .6); text-decoration: none; }
.kpi > span { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(var(--primary-rgb), .12); }
.kpi small { display: block; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.5rem; }
.kpi-gold { background: linear-gradient(135deg, rgba(var(--primary-2-rgb), .2), var(--surface)); border-color: rgba(var(--primary-rgb), .55); }
.kpi-gold b { font-size: 1.15rem; }
.kpi-alert { border-color: rgba(239, 68, 68, .6); }
.kpi-alert > span { background: rgba(239, 68, 68, .15); }
.kpi-alert b { color: #ef4444; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.dash-row:hover { background: rgba(var(--primary-rgb), .08); text-decoration: none; }
.dash-amt { font-weight: 800; white-space: nowrap; }
.dash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dash-quick a { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; background: rgba(var(--tint), .04); border: 1px solid var(--line); font-size: 1.8rem; color: var(--text); text-decoration: none; text-align: center; transition: all .15s; }
.dash-quick a span { font-size: .85rem; font-weight: 700; }
.dash-quick a:hover { border-color: var(--primary); background: rgba(var(--primary-rgb), .1); transform: translateY(-2px); text-decoration: none; }
.dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: 12px; gap: 8px; } .kpi > span { width: 42px; height: 42px; font-size: 1.4rem; } .kpi b { font-size: 1.2rem; } }
/* القاعة: تطبيقات الدورة من Play Store */
.hall-store { margin: 14px 0; border: 1px solid rgba(var(--primary-rgb), .5); background: radial-gradient(circle at 10% 0%, rgba(52, 168, 83, .12), transparent 60%), var(--surface); }
.hall-store .section-title { margin-bottom: 4px; }
.hall-store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.hall-store-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #0b0b0d; border: 1px solid #333; color: #fff; text-decoration: none; transition: transform .15s, border-color .15s; }
.hall-store-btn:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.hall-store-btn span { display: grid; line-height: 1.3; }
.hall-store-btn b { font-size: 1.05rem; }
.hall-store-btn small { color: #a3a3a3; font-size: .78rem; }

/* ===================================================================
   🎵🖼 ملفات المتربص في القاعة + صفحة رفعها في لوحة التحكم
   =================================================================== */
.hall-res { margin: 14px 0; }
.hall-res-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hall-res-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid rgba(var(--primary-rgb), .5); cursor: pointer;
  background: linear-gradient(135deg, rgba(var(--primary-2-rgb), .18), var(--surface)); color: var(--text); font: 800 1.02rem 'Cairo', system-ui, sans-serif; font-size: 1.4rem; transition: transform .15s; }
.hall-res-btn span { font-size: 1rem; }
.hall-res-btn em { font-style: normal; font-size: .75rem; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }
.hall-res-btn:hover, .hall-res-btn.on { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(var(--primary-rgb), .25); }
.hall-res-panel { margin-top: 10px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.res-sounds { display: grid; gap: 8px; }
.res-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(var(--tint), .04); border: 1px solid var(--line); min-width: 0; }
.res-grid .res-card { flex-direction: column; align-items: stretch; }
.res-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #111; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-pack { display: grid; place-items: center; font-size: 2.5rem; }
.res-note { font-size: 1.8rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--primary-rgb), .12); flex: none; }
.res-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.res-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-info audio { width: 100%; height: 34px; margin-top: 4px; }
.res-dl { flex: none; justify-content: center; }
.res-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.res-drop { display: grid; justify-items: center; gap: 4px; padding: 26px 12px; border: 2px dashed rgba(var(--primary-rgb), .55); border-radius: 18px; cursor: pointer; text-align: center; transition: background .15s; }
.res-drop.over, .res-drop:hover { background: rgba(var(--primary-rgb), .08); }
.res-queue { display: grid; gap: 6px; margin: 8px 0; }
.res-up { display: grid; grid-template-columns: 1fr 120px 60px; align-items: center; gap: 8px; font-size: .82rem; }
.res-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-up b { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.res-up i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.res-up.done i { background: #22c55e; } .res-up.err small { color: #ef4444; }
.res-list { display: grid; gap: 8px; margin-top: 10px; }
.res-item { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.res-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.res-item audio { width: 70px; height: 32px; }
.res-item .res-ico { font-size: 2rem; text-align: center; }
.res-name { display: flex; gap: 4px; min-width: 0; } .res-name input { min-width: 0; }
@media (max-width: 500px) { .res-item { grid-template-columns: 56px 1fr auto; } .res-item > small { display: none; } .res-item img { width: 56px; height: 56px; } }
/* القاعة: صور الإعلان الممول + تكبير الصورة */
.hall-gal { margin: 14px 0; border: 1px solid rgba(24, 119, 242, .45); background: radial-gradient(circle at 90% 0%, rgba(24, 119, 242, .15), transparent 55%), var(--surface); }
.hall-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.gal-item { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #070a12; }
.gal-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-weight: 700; font-size: .88rem; color: #e8eefc; }
.gal-box { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; }
.gal-box[hidden] { display: none; }
.gal-box img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.gal-box p { color: #fff; font-weight: 700; margin: 10px 0 0; text-align: center; }
.gal-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* ===================================================================
   الدورات الجديدة: 💻 أونلاين | 🏫 حضوري | 🎓 كل دورة وحدها
   =================================================================== */
.packs2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 10px 0 34px; }
.pack2 { display: flex; flex-direction: column; border-radius: 26px; padding: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pack2::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; }
.pack2-online { border-color: rgba(24, 119, 242, .55); background: radial-gradient(circle at 100% 0%, rgba(24, 119, 242, .16), transparent 55%), var(--surface); }
.pack2-online::before { background: linear-gradient(90deg, #1877f2, #60a5fa); }
.pack2-presence { border-color: rgba(var(--primary-rgb), .65); background: radial-gradient(circle at 100% 0%, rgba(var(--primary-2-rgb), .18), transparent 55%), var(--surface); }
.pack2-presence::before { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.pack2 header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.pack2-ico { font-size: 2.4rem; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px; background: rgba(var(--tint), .06); }
.pack2-tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(var(--primary-rgb), .15); color: var(--primary); }
.pack2-online .pack2-tag { background: rgba(24, 119, 242, .15); color: #60a5fa; }
.pack2 h3 { margin: 6px 0 4px; font-size: 1.35rem; }
.pack2 header p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.pack2-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; flex: 1; }
.pack2-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--tint), .04); border: 1px solid var(--line); }
.pack2-list li > .ico { flex: none; color: #22c55e; }
.pack2-list li > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pack2-list small { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.pack2-list .redot-card { flex: none; }
.pack2 footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.pack2-price .price-tag { font-size: 1.35rem; }
.courses-one { margin-top: 10px; }
.cc-learn { display: block; margin: 8px 0 4px; font-size: .9rem; color: var(--primary); }
.cc-note { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .3); font-size: .86rem; font-weight: 700; }
.cc-note-rp { background: rgba(255, 45, 58, .07); border-color: rgba(255, 45, 58, .3); }
.cc-foot2 { display: grid; gap: 8px; }
.cc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.cc-mode { font-weight: 800; font-size: .85rem; white-space: nowrap; }
.cc-row .price-pair { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-row .price-save { position: static; }
.cc-row .price-old { font-size: .72em; }
.redot-card { display: inline-block; vertical-align: middle; border-radius: 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.redot-card-big { display: flex; justify-content: center; margin-bottom: 12px; }
.redot-card-big .redot-card { border-radius: 16px; transform: rotate(-4deg); max-width: 100%; height: auto; }
.redot-badge .redot-card { border-radius: 3px; }
.topup-card { display: flex; justify-content: center; margin-bottom: 14px; }
.topup-card .redot-card { border-radius: 16px; max-width: 100%; height: auto; }
.nav .nav-redot .redot-card { border-radius: 4px; filter: none; }
@media (max-width: 760px) { .packs2 { grid-template-columns: 1fr; } }
/* التسجيل: مجموعتان واضحتان */
.plan-groups { display: grid; gap: 14px; margin-bottom: 14px; }
.plan-group { padding: 12px; border-radius: 18px; border: 1px solid rgba(24, 119, 242, .4); background: rgba(24, 119, 242, .05); }
.plan-group-presence { border-color: rgba(var(--primary-rgb), .5); background: rgba(var(--primary-rgb), .05); }
.plan-group-h { font-weight: 800; margin-bottom: 8px; font-size: 1.02rem; }
.plan-place { margin: -4px 0 8px; }
.help-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; padding: 10px; border-radius: 14px; background: rgba(var(--primary-rgb), .1); border: 1px dashed rgba(var(--primary-rgb), .5); font-weight: 800; text-decoration: none; color: var(--text); }
/* رفع الوصل بضغطة */
.raw-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; text-align: center; cursor: pointer; }
.raw-drop input { display: none; }
.raw-big { font-size: 2.6rem; }
.raw-prev { display: block; max-width: 100%; max-height: 220px; margin: 10px auto 0; border-radius: 12px; border: 1px solid var(--line); }
.raw-prog { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: .85rem; }
.raw-prog b { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.raw-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #4ade80); transition: width .2s; }
.js-raw-up.is-err .raw-prog span { color: #ef4444; }
/* 🔗 ربط الحسابات */
.social-form { display: grid; gap: 8px; }
.social-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); border-inline-start: 4px solid var(--sc); margin: 0; }
.social-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--sc); color: #fff; }
.social-ico .ico { width: 24px; height: 24px; }
.social-in { display: grid; gap: 4px; min-width: 0; }
.social-in b { font-size: .9rem; }
.social-in em { font-style: normal; color: #22c55e; font-size: .78rem; }
.social-in input { min-width: 0; padding: 8px 10px; }
/* ❓ صفحة الشرح */
.help-page { max-width: 900px; }
.help-hero { text-align: center; margin-bottom: 16px; }
.help-hero h1 { margin: 4px 0; }
.help-video { margin: 0 auto 22px; max-width: 420px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(var(--primary-rgb), .5); box-shadow: var(--shadow); background: #000; }
.help-video video { display: block; width: 100%; height: auto; }
.help-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.help-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hs-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); }
.hs-ico { font-size: 1.8rem; flex: none; }
.help-steps b { font-size: 1.05rem; }
.help-steps p { margin: 2px 0 0; color: var(--muted); line-height: 1.7; }
/* صفوف الأسعار في بطاقة الدورة: النوع فوق، ثم السعر وزر التسجيل */
.cc-row { grid-template-columns: 1fr auto; row-gap: 4px; padding: 8px 10px; border-radius: 14px; background: rgba(var(--tint), .04); border: 1px solid var(--line); }
.cc-row .cc-mode { grid-column: 1 / -1; }
.cc-row .price-pair { display: flex; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.cc-row .price-pair > .price-tag:last-of-type { font-size: 1.15rem; }
.pack2-list .redot-card { border-radius: 5px; }
.cc-row .cc-price { min-width: 0; }
.cc-row .price-pair { flex-wrap: wrap; row-gap: 0; }
.cc-row .price-save { display: none; }
.cc-row .btn { white-space: nowrap; }

/* ثلاث باقات: GOLD 1 · GOLD 2 · الشاملة حضورياً */
.packs2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack2-gold2 { border-color: rgba(168, 85, 247, .55); background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, .16), transparent 55%), var(--surface); }
.pack2-gold2::before { background: linear-gradient(90deg, #a855f7, #d8b4fe); }
.pack2-gold2 .pack2-tag { background: rgba(168, 85, 247, .15); color: #c084fc; }
.pack2-online { border-width: 2px; }
.pack2-best { position: absolute; top: 14px; inset-inline-end: 14px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); font-weight: 800; font-size: .78rem; box-shadow: 0 4px 14px rgba(var(--primary-rgb), .4); }
@media (max-width: 1050px) { .packs2 { grid-template-columns: 1fr; } }

/* ===================================================================
   ✨ أزرار احترافية في كل الموقع: لمعة، ظل ثلاثي الأبعاد، حركة ناعمة
   =================================================================== */
.btn { position: relative; overflow: hidden; isolation: isolate; letter-spacing: .01em; border-radius: 14px;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background .22s ease, border-color .22s ease, filter .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .6); outline-offset: 3px; }
.btn[disabled], .btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }
/* لمعة تمر على الزر عند المرور */
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn:hover::after { left: 135%; }
.btn-ghost::after, .btn-danger-ghost::after { background: linear-gradient(100deg, transparent, rgba(var(--primary-rgb), .18), transparent); }
/* الزر الذهبي الرئيسي */
.btn-primary { background: var(--gold); color: var(--on-primary); border: 1px solid rgba(var(--primary-2-rgb), .75);
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), .34), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(var(--primary-rgb), .5), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(0, 0, 0, .35); filter: saturate(1.08); }
/* الزر الشفاف */
.btn-ghost { background: rgba(var(--tint), .06); color: var(--text); border: 1px solid rgba(var(--primary-rgb), .38); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(var(--primary-rgb), .12); border-color: rgba(var(--primary-rgb), .8); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
/* واتساب، نجاح، خطر، أبيض */
.btn-wa { background: linear-gradient(135deg, #5ee78f, #22c55e 45%, #128c3e); color: #fff; border: 1px solid rgba(134, 239, 172, .7); text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  box-shadow: 0 10px 24px rgba(34, 197, 94, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-wa:hover { box-shadow: 0 16px 34px rgba(34, 197, 94, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-success { background: linear-gradient(135deg, #6ee7b7, #10b981 55%, #047857); color: #fff; border: 1px solid rgba(110, 231, 183, .6); box-shadow: 0 10px 24px rgba(16, 185, 129, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-danger { background: linear-gradient(135deg, #fb7185, #e11d48 55%, #9f1239); color: #fff; border: 1px solid rgba(251, 113, 133, .6); box-shadow: 0 10px 24px rgba(225, 29, 72, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-danger-ghost:hover { background: rgba(255, 92, 108, .1); }
.btn-light { background: linear-gradient(180deg, #ffffff, #f1ece0); color: #2a1a02; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-lg { border-radius: 16px; padding: 15px 30px; }
.btn-sm { border-radius: 11px; }
.btn .ico { position: relative; z-index: 2; }

/* ===================================================================
   📞 أزرار التواصل المميزة
   =================================================================== */
.contact-x { margin: 0 auto; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cx-btn { --c1: #333; --c2: #111; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.cx-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.cx-btn:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 18px 38px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); text-decoration: none; }
.cx-btn:hover::after { left: 135%; }
.cx-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.cx-ico .ico { width: 28px; height: 28px; }
.cx-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.cx-txt b { font-size: 1.1rem; }
.cx-txt small { opacity: .92; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-go { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-weight: 800; }
.cx-wa { --c1: #4ade80; --c2: #128c3e; }
.cx-tg { --c1: #38bdf8; --c2: #1d6fa5; }
.cx-fb { --c1: #4f8ef7; --c2: #1452c4; }
.cx-yt { --c1: #ff4d4d; --c2: #b80d0d; }
.cx-ig { --c1: #f9a03f; --c2: #c13584; background: linear-gradient(135deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5); }
.cx-tt { --c1: #1f1f1f; --c2: #000; box-shadow: 0 12px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2), 3px 0 0 #fe2c55 inset, -3px 0 0 #25f4ee inset; }
.acc-contact .cx-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 480px) { .cx-grid { grid-template-columns: 1fr; } .cx-btn { padding: 12px 14px; } }

/* ===================================================================
   ③ خدماتنا: بطاقات احترافية (RedotPay · تيك توك · إعلان ممول)
   =================================================================== */
.svc2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc2 { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.svc2 h3 { margin: 0; font-size: 1.3rem; }
.svc2 p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .93rem; }
.svc2 .btn { margin-top: auto; }
.svc2-art { height: 150px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 4px; }
.svc2-tag { align-self: flex-start; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(var(--primary-rgb), .14); color: var(--primary); }
.svc2-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--tint), .05); border: 1px solid var(--line); }
.svc2-price small { color: var(--muted); font-weight: 700; }
.svc2-price .price-tag { font-size: 1.2rem; }
.svc2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.svc2-steps li { display: flex; align-items: center; gap: 8px; }
.svc2-steps b { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); }
.svc2-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.svc2-chips span { padding: 8px; border-radius: 12px; background: rgba(var(--tint), .05); border: 1px solid var(--line); font-size: .82rem; text-align: center; }
.svc2-plans { grid-template-columns: 1fr; }
.svc2-rp { border-color: rgba(255, 45, 58, .4); }
.svc2-rp .svc2-art { background: radial-gradient(circle at 70% 20%, rgba(255, 45, 58, .3), transparent 60%), linear-gradient(135deg, #1c1c1f, #050505); }
.svc2-rp .redot-card { transform: rotate(-6deg); border-radius: 14px; max-width: 90%; height: auto; }
.svc2-tt { border-color: rgba(37, 244, 238, .35); }
.svc2-tt .svc2-art { background: radial-gradient(circle at 25% 30%, rgba(37, 244, 238, .35), transparent 50%), radial-gradient(circle at 80% 70%, rgba(254, 44, 85, .4), transparent 50%), #050505; position: relative; }
.svc2-coins b { font: 900 3rem/1 var(--font); color: #fff; text-shadow: 3px 0 #fe2c55, -3px 0 #25f4ee; position: relative; z-index: 1; }
.svc2-coins .coin { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #7a4a00;
  background: radial-gradient(circle at 35% 30%, #fff4c0, #f5c542 45%, #c88a12); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 -3px 0 rgba(0, 0, 0, .15); animation: coinF 3s ease-in-out infinite; }
.svc2-coins .c1 { top: 18px; left: 22%; } .svc2-coins .c2 { bottom: 16px; right: 20%; animation-delay: .8s; } .svc2-coins .c3 { top: 30px; right: 14%; width: 34px; height: 34px; animation-delay: 1.6s; }
@keyframes coinF { 50% { transform: translateY(-8px) rotate(12deg); } }
.svc2-ads { border-color: rgba(24, 119, 242, .45); }
.svc2-ads .svc2-art { font-size: 4.2rem; background: radial-gradient(circle at 30% 30%, rgba(24, 119, 242, .45), transparent 60%), linear-gradient(135deg, #0b1d3d, #050a14); }
.svc2-more { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 1000px) { .svc2-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* 🎛 التحكم السريع في لوحة التحكم */
.quick-card { border: 1px solid rgba(var(--primary-rgb), .45); }
.quick-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qt { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint), .05); color: var(--text); font: 700 .92rem var(--font); cursor: pointer; transition: all .15s; }
.qt.on, .qt:hover { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); border-color: transparent; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.quick-grid label { font-weight: 700; font-size: .88rem; }
.quick-grid .q-old { opacity: .8; }
.quick-grid .q-old input { text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, .6); }
.quick-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.q-switch { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; margin: 0; }
.q-switch input { position: absolute; opacity: 0; pointer-events: none; }
.q-switch i { position: relative; width: 46px; height: 26px; flex: none; border-radius: 99px; background: #555; transition: background .2s; }
.q-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.q-switch input:checked + i { background: #22c55e; }
.q-switch input:checked + i::after { transform: translateX(20px); }
[dir="rtl"] .q-switch input:checked + i::after { transform: translateX(-20px); }
.q-switch span { font-weight: 700; }
/* 💳 الدفع في 3 خطوات + رفع الوصل بالكاميرا */
.pay-step { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-weight: 800; }
.ps-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--on-primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35); }
.rcpt-up { padding: 14px; border-radius: 18px; border: 2px dashed rgba(var(--primary-rgb), .55); background: rgba(var(--primary-rgb), .06); }
.rcpt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcpt-btns .btn { cursor: pointer; }
.rcpt-hint { display: block; text-align: center; margin-top: 8px; }
.rcpt-done { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #4ade80; font-weight: 800; text-align: center; }
@media (max-width: 520px) { .rcpt-btns { grid-template-columns: 1fr; } }
.stat-receipt { border-color: rgba(34, 197, 94, .55) !important; } .stat-receipt b { color: #22c55e; }
.svc2-chips span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.svc2-chips span b { font-size: .9rem; }
.svc2-chips .price-tag, .svc2-price .price-tag { background: none; border: 0; padding: 0; box-shadow: none; }
.pay-step .price-tag { background: none; border: 0; padding: 0; color: var(--primary); }

/* 🎧 الدليل الصوتي في الواجهة */
.vguide{margin:18px auto 0;max-width:520px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,rgba(var(--primary-rgb),.16),rgba(124,58,237,.12));border:1px solid rgba(var(--primary-rgb),.45);box-shadow:0 8px 24px rgba(0,0,0,.12);text-align:start}
.vguide-head{display:flex;gap:12px;align-items:center}
.vguide-head b{display:block;font-size:1.05rem}
.vguide-head small{display:block;opacity:.8;font-size:.85rem;margin-top:2px}
.vguide-ico{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:1.4rem;background:linear-gradient(135deg,var(--primary),#f5d77a);box-shadow:0 0 0 4px rgba(var(--primary-rgb),.25);animation:vgPulse 2.2s infinite}
@keyframes vgPulse{50%{box-shadow:0 0 0 9px rgba(var(--primary-rgb),0)}}
.vguide-langs{display:flex;gap:6px;margin:12px 0 8px;flex-wrap:wrap}
.vguide-langs button{flex:1;min-width:80px;padding:7px 10px;border-radius:999px;border:1px solid rgba(var(--primary-rgb),.5);background:transparent;color:inherit;font:inherit;font-size:.9rem;cursor:pointer}
.vguide-langs button.on{background:var(--primary);color:var(--on-primary);font-weight:700}
.vguide audio{width:100%;height:42px;display:block}
@media (prefers-reduced-motion:reduce){.vguide-ico{animation:none}}

/* 🎬 فيديوهان جنباً إلى جنب في الصفحة الرئيسية */
.video-duo.is-two{display:grid;grid-template-columns:repeat(2,minmax(0,380px));justify-content:center;gap:18px}
.video-duo.is-two .video-frame{width:100%;margin:0}
@media (max-width:560px){.video-duo.is-two{gap:8px}.video-duo.is-two .video-hero{border-radius:14px}}

/* ===================================================================
   v22 — 🎨 ألوان الموقع: الأبيض هو الأساس، والأحمر لون الزينة الافتراضي،
   والزائر يختار: أبيض/أسود + أحمر، أزرق، برتقالي، أخضر، بنفسجي، وردي، فيروزي، ذهبي، أسود وأبيض
   =================================================================== */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f5f6f8; --bg-2a: rgba(255, 255, 255, .92); --surface: #ffffff; --surface-2: #f7f8fa;
  --line: rgba(15, 23, 42, .10); --text: #111827; --muted: #5b6472; --lead: #374151; --about: #374151;
  --shadow: 0 14px 36px rgba(15, 23, 42, .08); --ov: 255, 255, 255; --tint: 15, 23, 42;
  --ph-grad: linear-gradient(135deg, #f1f3f6, #ffffff); --site-bg-opacity: .06;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --bg-2: #121216; --bg-2a: rgba(18, 18, 22, .9); --surface: #16161b; --surface-2: #1d1d24;
  --line: rgba(255, 255, 255, .09); --text: #f5f5f7; --muted: #a1a1aa; --lead: #d4d4d8; --about: #d4d4d8;
  --ov: 11, 11, 13; --tint: 0, 0, 0; --ph-grad: linear-gradient(135deg, #1d1d24, #121216);
}
:root[data-color="red"]    { --primary: #e11d2e; --primary-2: #ff5a5f; --primary-d: #a3121f; --primary-rgb: 225, 29, 46;  --primary-2-rgb: 255, 90, 95;  --on-primary: #fff; }
:root[data-color="blue"]   { --primary: #2563eb; --primary-2: #60a5fa; --primary-d: #1e40af; --primary-rgb: 37, 99, 235;  --primary-2-rgb: 96, 165, 250; --on-primary: #fff; }
:root[data-color="orange"] { --primary: #f97316; --primary-2: #fdba74; --primary-d: #c2410c; --primary-rgb: 249, 115, 22; --primary-2-rgb: 253, 186, 116; --on-primary: #fff; }
:root[data-color="green"]  { --primary: #16a34a; --primary-2: #4ade80; --primary-d: #166534; --primary-rgb: 22, 163, 74;  --primary-2-rgb: 74, 222, 128; --on-primary: #fff; }
:root[data-color="purple"] { --primary: #7c3aed; --primary-2: #a78bfa; --primary-d: #5b21b6; --primary-rgb: 124, 58, 237; --primary-2-rgb: 167, 139, 250; --on-primary: #fff; }
:root[data-color="pink"]   { --primary: #db2777; --primary-2: #f472b6; --primary-d: #9d174d; --primary-rgb: 219, 39, 119; --primary-2-rgb: 244, 114, 182; --on-primary: #fff; }
:root[data-color="teal"]   { --primary: #0d9488; --primary-2: #2dd4bf; --primary-d: #115e59; --primary-rgb: 13, 148, 136; --primary-2-rgb: 45, 212, 191; --on-primary: #fff; }
:root[data-color="gold"]   { --primary: #c9a227; --primary-2: #f3d57a; --primary-d: #8a6516; --primary-rgb: 201, 162, 39; --primary-2-rgb: 243, 213, 122; --on-primary: #1a1405; }
:root[data-color="mono"]   { --primary: #111111; --primary-2: #4b5563; --primary-d: #000000; --primary-rgb: 17, 17, 17;  --primary-2-rgb: 75, 85, 99;   --on-primary: #fff; }
:root[data-theme="dark"][data-color="mono"] { --primary: #f5f5f5; --primary-2: #d4d4d8; --primary-d: #a1a1aa; --primary-rgb: 245, 245, 245; --primary-2-rgb: 212, 212, 216; --on-primary: #111; }
:root[data-color] {
  --accent: var(--primary-2);
  --gold: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 50%, var(--primary-d) 100%);
  --h1-grad: linear-gradient(100deg, var(--primary-d) 0%, var(--primary) 55%, var(--primary-2) 100%);
  --info-text: var(--primary);
}
:root[data-theme="light"][data-color] { --h1-grad: linear-gradient(100deg, #111827 0%, var(--primary-d) 40%, var(--primary) 100%); }
:root[data-theme="light"][data-color="gold"] { --primary: #b8892b; --primary-rgb: 184, 137, 43; }
:root[data-theme="dark"][data-color="red"] { --primary: #ff3b4a; --primary-rgb: 255, 59, 74; }
:root[data-theme="dark"][data-color="blue"] { --primary: #3b82f6; --primary-rgb: 59, 130, 246; }

/* أزرار بلون الاختيار */
.btn-primary { color: var(--on-primary) !important; box-shadow: 0 10px 26px rgba(var(--primary-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(var(--primary-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* زينة حمراء خفيفة (تتبع اللون المختار): خط علوي للشريط، وخط تحت العناوين */
.topbar { box-shadow: inset 0 3px 0 var(--primary); }
.section-title::after { width: 64px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
:root[data-theme="light"] .hero-glass { background: rgba(255, 255, 255, .9); box-shadow: 0 20px 50px rgba(15, 23, 42, .08); border-color: rgba(var(--primary-rgb), .18); }
:root[data-theme="light"] .card, :root[data-theme="light"] .course-card { box-shadow: 0 6px 22px rgba(15, 23, 42, .05); }

/* نافذة اختيار الألوان */
.pal { position: relative; }
.pal .theme-toggle { font-size: 1.15rem; line-height: 1; }
.pal-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: -40px; z-index: 200; width: 236px; padding: 14px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0, 0, 0, .22); }
.pal-pop[hidden] { display: none; }
.pal-pop > b { display: block; margin-bottom: 10px; font-size: .95rem; }
.pal-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.pal-modes button { padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.pal-modes button.on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .35); font-weight: 700; }
.pal-sws { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pal-sw { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.pal-sw.on { box-shadow: 0 0 0 3px var(--text); }
.pal-red { background: #e11d2e; } .pal-blue { background: #2563eb; } .pal-orange { background: #f97316; } .pal-green { background: #16a34a; }
.pal-purple { background: #7c3aed; } .pal-pink { background: #db2777; } .pal-teal { background: #0d9488; } .pal-gold { background: linear-gradient(135deg, #f3d57a, #c9a227); }
.pal-mono { background: linear-gradient(135deg, #111 50%, #fff 50%); }

/* 📞 التواصل في أعلى الصفحة */
.hero-cx { margin: 16px auto 4px; max-width: 560px; }
.hero-cx > small { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 700; }
.hero-cx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cx-btn.cx-mini { justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 16px; }
.cx-btn.cx-mini .cx-ico { width: 38px; height: 38px; border-radius: 12px; }
.cx-btn.cx-mini .cx-ico .ico { width: 22px; height: 22px; }
.cx-btn.cx-mini b { font-size: 1.05rem; }
.btn-help-vid { border-width: 2px; border-color: rgba(var(--primary-rgb), .55); }
.hero2 .hero-actions { margin-top: 14px; }

/* طرق الدراسة الثلاث فوق الباقات */
.study-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto 22px; }
.sm-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); }
.sm-item > span { font-size: 1.6rem; }
.sm-item b { display: block; font-size: .98rem; }
.sm-item small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 720px) { .study-modes { grid-template-columns: 1fr; } }

/* تحميل Google Meet */
.meet-dl { margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--primary-rgb), .07); border: 1px dashed rgba(var(--primary-rgb), .4); }
.meet-dl b { display: block; font-size: .9rem; margin-bottom: 8px; }
.meet-dl div { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-dl a { flex: 1; min-width: 88px; text-align: center; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .85rem; text-decoration: none; }
.meet-dl a:hover { border-color: var(--primary); color: var(--primary); }
.svc2-warn { display: block; margin: -2px 0 10px; line-height: 1.5; }
#coach .coach-line { margin-bottom: 4px; }
#coach .vguide { margin-bottom: 26px; }

/* GOLD 1 بلون الموقع المختار، وشارة «الأفضل قيمة» فوق البطاقة بدل أن تغطي العنوان */
.pack2-online { border-color: rgba(var(--primary-rgb), .6); background: radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), .10), transparent 55%), var(--surface); }
.pack2-online::before { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.pack2-online .pack2-tag { background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.pack2 { overflow: visible; }
.pack2-best { top: -13px; inset-inline-end: 18px; z-index: 3; }
@media (max-width: 560px) {
  .hero-logo { width: 150px !important; height: 150px !important; }
  .hero2 h1 { font-size: 1.9rem; }
  .hero-cx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cx-btn.cx-mini { flex-direction: column; gap: 4px; padding: 10px 4px; }
  .cx-btn.cx-mini b { font-size: .85rem; }
  .study-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sm-item { flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; border-inline-start-width: 1px; border-top: 3px solid var(--primary); }
  .sm-item b { font-size: .82rem; } .sm-item small { font-size: .7rem; }
  .btn-help-vid { font-size: .95rem; }
}

/* بطاقتا التصوير والاستثمار + خطط الإعلان في سطر واحد */
.svc2-vid .svc2-art { font-size: 4.2rem; background: radial-gradient(circle at 70% 25%, rgba(225, 29, 46, .45), transparent 60%), linear-gradient(135deg, #1f0a0d, #050505); }
.svc2-inv .svc2-art { font-size: 4.2rem; background: radial-gradient(circle at 30% 30%, rgba(22, 163, 74, .45), transparent 60%), linear-gradient(135deg, #062012, #030a06); }
.svc2-vid { border-color: rgba(225, 29, 46, .35); } .svc2-inv { border-color: rgba(22, 163, 74, .35); }
.svc2-plans span { flex-direction: row; flex-wrap: wrap; gap: 6px; }

/* 🎬 صفحة فيديوهات الشرح */
.hv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 0 auto 14px; }
.hv-tab { display: grid; justify-items: center; gap: 2px; padding: 12px 10px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s; }
.hv-tab span { font-size: 1.6rem; } .hv-tab b { font-size: 1rem; } .hv-tab small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.hv-tab.on { border-color: var(--primary); box-shadow: 0 10px 26px rgba(var(--primary-rgb), .22); }
.hv-narr { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 26px; font-weight: 700; cursor: pointer; }
.hv-narr input { width: 20px; height: 20px; accent-color: var(--primary); }
.help-video video { width: 100%; max-height: 78vh; border-radius: 20px; background: #000; display: block; margin: 0 auto; }

/* ===================================================================
   v23 — ترتيب أوضح وأسهل للزبون (خصوصاً على الهاتف)
   =================================================================== */
/* 📋 لائحة الطلب تحت الواجهة مباشرة */
.order-steps { padding: 8px 0 10px; }
.os-box { max-width: 860px; margin: 0 auto; padding: 22px 20px; border-radius: 24px; background: var(--surface); border: 2px solid rgba(var(--primary-rgb), .35); box-shadow: 0 18px 44px rgba(var(--primary-rgb), .12); }
.os-box h2 { margin: 0 0 8px; font-size: 1.35rem; text-align: center; }
.os-note { margin: 0 auto 16px; max-width: 620px; padding: 10px 14px; border-radius: 14px; background: rgba(var(--primary-rgb), .08); color: var(--text); font-weight: 700; text-align: center; line-height: 1.6; }
.os-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.os-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.os-list li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 1.05rem; }
.os-list strong { display: block; font-size: .98rem; line-height: 1.4; }
.os-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; margin-top: 2px; }
.os-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.os-act .btn { flex: 1 1 240px; max-width: 380px; }
.os-login { margin: 12px 0 0; text-align: center; color: var(--muted); }
.os-login a { font-weight: 800; text-decoration: underline; }
@media (max-width: 900px) { .os-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .os-box { padding: 18px 14px; border-radius: 20px; }
  .os-box h2 { font-size: 1.15rem; }
  .os-list { grid-template-columns: 1fr; gap: 8px; }
  .os-list li { padding: 10px 12px; align-items: center; }
}

/* 📱 الشريط الثابت أسفل الهاتف */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; z-index: 120; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(var(--ov), .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 26px rgba(0, 0, 0, .10); }
  .mbar > a, .mbar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .74rem; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; font-size: 1.15rem; }
  .mbar span { font-size: .74rem; }
  .mbar .ico { width: 22px; height: 22px; }
  .mbar > .mbar-main { flex-direction: row; gap: 8px; background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--primary-d)); color: var(--on-primary); border: 0; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .35); }
  .mbar > .mbar-main span { font-size: .95rem; }
  .mbar > .mbar-wa { color: #16a34a; }
  .mbar > .on { border-color: var(--primary); color: var(--primary); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wa-float, .chat-fab { display: none !important; }
  .chat-panel { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  .install-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* روابط التذييل كبيرة وسهلة اللمس */
.pro-footer .fcol > a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 0; }
@media (max-width: 760px) {
  .pro-footer .footer-cols { gap: 14px; }
  .pro-footer nav.fcol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .pro-footer nav.fcol h4 { grid-column: 1 / -1; }
  .pro-footer .fcol > a { min-height: 44px; padding: 6px 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: .88rem; }
}
/* زر «+ نقاط أخرى» أكبر */
details.cc-more > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: rgba(var(--primary-rgb), .08); cursor: pointer; font-weight: 800; }

/* زر تثبيت التطبيق في الأعلى: هادئ حتى لا يزاحم زر الطلب */
.nav-install { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line); box-shadow: none !important; animation: none !important; }

/* الهاتف: بطاقات الباقات أقصر — نخفي تفاصيل كل عنصر ونُبقي العناوين */
@media (max-width: 560px) {
  .pack2-list li small { display: none; }
  .pack2-list li { padding: 10px 12px; }
  .pack2-list li .redot-card, .pack2-list li svg[viewBox] { max-width: 56px; }
  .section { padding-block: 34px; }
  .hero-cx { margin-top: 12px; }
}

/* خانات اختيار الملفات: زر واضح بدل الشكل الافتراضي للمتصفح */
input[type=file]:not(.file-drop *):not([hidden]) { width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px; border-radius: 14px; border: 1px dashed rgba(var(--primary-rgb), .45); background: var(--bg-2); color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
input[type=file]:not(.file-drop *)::file-selector-button { margin-inline-end: 10px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; cursor: pointer; }
/* رقم الهاتف كاملاً في أزرار التواصل (بدون قطع) */
.cx-txt small { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.45; }

/* 🚪 أزرار تسجيل الخروج: حمراء واضحة */
.btn-logout { background: transparent; color: #dc2626 !important; border: 2px solid rgba(220, 38, 38, .55); box-shadow: none; }
.btn-logout:hover { background: rgba(220, 38, 38, .08); border-color: #dc2626; }
.nav-logout { color: #dc2626 !important; }
.nav-logout-adm { background: #dc2626 !important; color: #fff !important; }
.adm-logout { margin-top: 10px; color: #dc2626 !important; border: 1px solid rgba(220, 38, 38, .35); border-radius: 12px; }
.adm-logout:hover { background: rgba(220, 38, 38, .08); }
@media (max-width: 760px) { .nav-logout span { display: none; } .nav-logout-adm { padding: 8px 10px; font-size: .8rem; white-space: nowrap; } .adm-top .brand span { display: none; } }
.adm-top .nav-logout-adm span { display: inline !important; }

/* ===================================================================
   v24 — لوحة أزرار مرتبة: كل دورة وكل خدمة في زر + شريط تواصل جانبي + «دليل الموقع»
   =================================================================== */
.home-menu { padding-top: 18px; }
.hm-note { max-width: 860px; margin: 0 auto 18px; padding: 10px 14px; border-radius: 14px; background: rgba(var(--primary-rgb), .08); text-align: center; font-weight: 700; line-height: 1.6; }
.hm-note a { font-weight: 900; text-decoration: underline; margin-inline-start: 6px; }
.hm-title { margin: 18px 0 10px; font-size: 1.2rem; text-align: center; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-width: 1100px; margin: 0 auto; }
.hm-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; text-align: start; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); transition: border-color .2s, box-shadow .2s, transform .15s; }
.hm-btn:hover { border-color: rgba(var(--primary-rgb), .6); transform: translateY(-2px); }
.hm-btn.on { border-color: var(--primary); background: rgba(var(--primary-rgb), .07); box-shadow: 0 12px 28px rgba(var(--primary-rgb), .2); }
.hm-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(var(--primary-rgb), .1); }
.hm-btn.on .hm-ico { background: var(--primary); }
.hm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hm-txt b { font-size: 1rem; line-height: 1.35; }
.hm-txt small { color: var(--muted); font-size: .8rem; }
.hm-arrow { flex: none; font-size: 1.3rem; color: var(--primary); transition: transform .2s; }
.hm-btn.on .hm-arrow { transform: rotate(180deg); }
.hm-panels { max-width: 1100px; margin: 18px auto 0; }
.hm-panel { scroll-margin-top: 80px; animation: hmIn .25s ease-out; }
.hm-panel > .pack2, .hm-panel > .svc2 { max-width: 640px; margin: 0 auto; }
.hm-panel .course-grid.one { grid-template-columns: minmax(0, 640px); justify-content: center; }
@keyframes hmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .hm-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-btn { flex-direction: column; text-align: center; gap: 6px; min-height: 112px; padding: 12px 8px; }
  .hm-txt b { font-size: .9rem; } .hm-txt small { font-size: .72rem; }
  .hm-arrow { display: none; }
}
.vguide[hidden] { display: none; }
.hero2 .vguide { margin-top: 16px; }

/* شريط التواصل الجانبي */
.srail { position: fixed; z-index: 115; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.srail-list { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(var(--ov), .9); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.srail-a { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--c1, #444), var(--c2, #222)); transition: transform .15s; }
.srail-a:hover { transform: scale(1.08); text-decoration: none; }
.srail-a .ico { width: 22px; height: 22px; }
.srail-a span { position: absolute; inset-inline-end: 52px; white-space: nowrap; padding: 4px 10px; border-radius: 8px; background: #111; color: #fff; font-size: .78rem; opacity: 0; pointer-events: none; transition: opacity .15s; }
.srail-a:hover span { opacity: 1; }
.srail-a.cx-wa { --c1: #4ade80; --c2: #16a34a; } .srail-a.cx-tg { --c1: #38bdf8; --c2: #0284c7; } .srail-a.cx-fb { --c1: #60a5fa; --c2: #1d4ed8; }
.srail-a.cx-yt { --c1: #f87171; --c2: #dc2626; } .srail-a.cx-tt { --c1: #333; --c2: #000; } .srail-a.cx-ig { --c1: #f472b6; --c2: #9333ea; }
.srail-tog { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: .95rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.srail .srail-open { display: none; }
.srail.closed .srail-list { display: none; }
.srail.closed .srail-open { display: inline; } .srail.closed .srail-close { display: none; }
.srail.closed .srail-tog { width: 44px; height: 44px; font-size: 1.2rem; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; border: 0; }
@media (max-width: 760px) { .srail { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); transform: none; inset-inline-end: 8px; } .srail-a { width: 40px; height: 40px; } }
.wa-float { display: none !important; }

/* زر COD QR بجانب الألوان */
.nav-qr { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--primary); color: var(--on-primary) !important; font-weight: 800; font-size: .85rem; text-decoration: none; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3); white-space: nowrap; }
.nav-qr:hover { text-decoration: none; filter: brightness(1.05); }
.nav-qr .nq-short { display: none; }
@media (max-width: 900px) { .nav-qr .nq-long { display: none; } .nav-qr .nq-short { display: inline; } .nav-qr { padding: 7px 10px; font-size: .78rem; } }

/* دليل الموقع */
.site-guide-wrap { margin: 34px auto 10px; }
.site-guide { border-radius: 22px; border: 2px solid rgba(var(--primary-rgb), .35); background: var(--surface); box-shadow: 0 14px 36px rgba(var(--primary-rgb), .1); overflow: hidden; scroll-margin-top: 80px; }
.site-guide > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.site-guide > summary::-webkit-details-marker { display: none; }
.site-guide > summary > span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary); }
.site-guide > summary b { font-size: 1.2rem; }
.site-guide > summary small { flex: 1; color: var(--muted); font-size: .82rem; }
.site-guide > summary i { font-style: normal; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.site-guide[open] > summary i { transform: rotate(180deg); }
.site-guide[open] > summary { border-bottom: 1px solid var(--line); }
.sg-body { padding: 6px 18px 18px; }
.sg-block { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.sg-block:last-child { border-bottom: 0; }
.sg-block > h3 { margin: 0 0 12px; font-size: 1.1rem; }
.sg-block .os-list { margin-bottom: 12px; }
.sg-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 14px; }
.sg-nums div { text-align: center; } .sg-nums b { display: block; font-size: 1.3rem; color: var(--primary); } .sg-nums span { font-size: .8rem; color: var(--muted); }
.sg-links .footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .site-guide > summary small { display: none; } .sg-body { padding: 4px 12px 14px; } }
.pro-footer { padding-top: 6px; }

/* صفحات الخدمات الجديدة */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.vs-item { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; display: grid; gap: 4px; }
.vs-item span { font-size: 1.8rem; } .vs-item small { color: var(--muted); }
.vs-order { margin-top: 18px; } .vs-price { font-size: 1.6rem; font-weight: 900; margin: 6px 0 12px; }
.vs-voice { margin: 8px auto 4px; }
.work-points { margin-bottom: 10px; }
.work-done .work-ok { font-size: 3rem; } .work-done .code { font-size: 1.2rem; padding: 2px 10px; border-radius: 8px; background: rgba(var(--primary-rgb), .1); }
.app-steps { margin: 8px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: .88rem; line-height: 1.8; }
/* لوحة التحكم: حجز العمل */
.job-list { display: grid; gap: 10px; }
.job-card > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; cursor: pointer; list-style: none; }
.job-card > summary::-webkit-details-marker { display: none; }
.job-st { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(var(--primary-rgb), .1); }
.job-new { border-inline-start: 4px solid var(--primary); } .job-accepted { border-inline-start: 4px solid #16a34a; } .job-rejected { opacity: .7; }
.job-body { margin-top: 12px; display: grid; gap: 12px; }
.job-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0; }
.job-info div { padding: 8px 10px; border-radius: 12px; background: var(--bg-2); } .job-info dt { font-size: .75rem; color: var(--muted); } .job-info dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.job-info .job-msg { grid-column: 1 / -1; }
.job-actions, .job-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.job-status { display: flex; flex-wrap: wrap; gap: 6px; }
.job-status .choice { flex: 1 1 120px; }
/* الهاتف: زر التواصل داخل الشريط السفلي بدل الزر العائم */
@media (max-width: 760px) {
  .mbar { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 5px; padding-inline: 8px; }
  .srail .srail-tog { display: none; }
  .srail { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .srail-list { flex-direction: row; flex-wrap: wrap; max-width: calc(100vw - 16px); }
}
@media (min-width: 761px) { .mbar .js-srail-m { display: none; } }
@media (max-width: 760px) { .mbar span { font-size: .66rem; white-space: nowrap; } .mbar > .mbar-main span { font-size: .82rem; } .mbar > .mbar-main { gap: 4px; padding: 4px 6px; } }
/* 🎬 فيديوهات شرح COD QR */
.qr-videos { margin: 6px 0 22px; }
.qr-video { margin: 0 0 16px; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.qr-video video { display: block; width: 100%; max-height: 80vh; background: #000; }
.qr-video figcaption { padding: 10px 14px; background: var(--surface); color: var(--text); font-weight: 800; }
.vid-title-form { display: grid; gap: 4px; }
.vid-title-form input { min-height: 38px; }

/* ===================================================================
   v25 — زر الدورة/الخدمة يفتح «صفحة» كاملة فوق الشاشة + زر رجوع ثابت
   =================================================================== */
.hm-panel:not([hidden]) { position: fixed; inset: 0; z-index: 140; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg); padding: 0 14px calc(24px + env(safe-area-inset-bottom)); animation: hmPage .22s ease-out; }
.hm-panel:not([hidden]) > *:not(.hm-view-bar) { max-width: 760px; margin-inline: auto; }
.hm-panel:not([hidden]) > .course-grid { max-width: 1100px; }
@keyframes hmPage { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
html.hm-open, html.hm-open body { overflow: hidden; }
html.hm-open .mbar, html.hm-open .srail, html.hm-open .chat-fab { display: none !important; }
.hm-view-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -14px 16px; padding: 10px 14px calc(10px); padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(var(--ov), .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.hm-view-bar b { flex: 1; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-back { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 900;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .3); }
.hm-view-foot { margin: 22px auto 6px; text-align: center; }
.hm-view-foot .hm-back { width: 100%; max-width: 520px; justify-content: center; background: var(--surface); color: var(--text); border: 2px solid rgba(var(--primary-rgb), .45); box-shadow: none; }

/* ===================================================================
   v26 — 💼 منصة العمل على الإنترنت (حساب الزبون + الإدارة)
   =================================================================== */
.work-have { margin-top: 10px; }
.work-acc { display: grid; gap: 16px; }
.wa-hero { display: grid; gap: 14px; border: 2px solid rgba(var(--primary-rgb), .3); }
.wa-hello { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-hello h1 { margin: 0; font-size: 1.4rem; }
.wa-hello p { margin: 2px 0 0; }
.wa-hello > div { flex: 1; min-width: 180px; }
.wa-av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; background: var(--primary); color: var(--on-primary); flex: none; }
.wa-st { padding: 6px 14px; border-radius: 999px; font-weight: 900; background: rgba(var(--primary-rgb), .1); }
.wa-st-accepted { background: rgba(22, 163, 74, .14); color: #15803d; }
.wa-st-rejected { background: rgba(220, 38, 38, .12); color: #dc2626; }
.wa-hero .hero-cx { margin: 0; max-width: none; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-actions .btn { flex: 1 1 200px; }
.wa-note { background: rgba(var(--primary-rgb), .06); line-height: 1.8; }
.wa-locked .wa-lock { font-size: 2.6rem; }
.wa-group { margin: 18px 0 10px; font-size: 1.1rem; }
.wa-group small { color: var(--muted); font-weight: 600; }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wa-grid-image { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.wa-item { display: grid; gap: 6px; padding: 10px; }
.wa-item video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; display: block; }
.wa-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: var(--bg-2); }
.wa-audio { height: 70px; display: grid; place-items: center; font-size: 2rem; border-radius: 14px; background: rgba(var(--primary-rgb), .08); }
.wa-item audio { width: 100%; }
.wa-title { font-size: .95rem; line-height: 1.4; }
.wa-dl { margin-top: 4px; }
/* الإدارة */
.job-link { border: 2px solid rgba(var(--primary-rgb), .3); }
.job-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 10px; }
.job-link-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); font-size: .9rem; }
.job-set, .job-edit { margin-top: 10px; }
.job-set > summary, .job-edit > summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.job-rcpt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg-2); }
.job-rcpt-img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.job-rc { background: rgba(234, 179, 8, .18) !important; }
.job-actions form, .job-rcpt form { margin: 0; }
.jf-order { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.jf-order input { width: 70px; min-height: 32px; padding: 4px 8px; }

/* 🧾 عارض الوصل */
.rcpt-view { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: rgba(0, 0, 0, .86); backdrop-filter: blur(4px); }
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--surface); color: var(--text); }
.rv-bar b { flex: 1; font-size: 1.05rem; }
.rv-body { flex: 1; overflow: auto; display: grid; place-items: center; padding: 12px; }
.rv-body img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 12px; background: #fff; cursor: zoom-in; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rv-body img.zoom { max-width: none; max-height: none; width: 180%; cursor: zoom-out; }
.rv-body iframe { width: min(900px, 100%); height: calc(100vh - 100px); border: 0; border-radius: 12px; background: #fff; }
.btn-rcpt { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #1a1205 !important; border: 0 !important; font-weight: 900; }
.dash-row-wrap { display: flex; align-items: center; gap: 8px; }
.dash-row-wrap .dash-row { flex: 1; min-width: 0; }

/* ===================================================================
   v27 — صورة الكوتش (واقف) خلفيةً لكل خدمة
   (الصورة من الإعدادات ← «صورة الخلفية»، وتصل عبر المتغير --site-bg)
   =================================================================== */
/* بطاقات الخدمات: الصورة في الجانب الأيسر تذوب في الخلفية الداكنة، وصورة الخدمة يميناً */
.svc2 > .svc2-art { position: relative; isolation: isolate; height: 190px; place-items: center start; padding-inline-start: 18px; overflow: hidden;
  background: radial-gradient(circle at 80% 30%, rgba(var(--primary-rgb), .28), transparent 60%), linear-gradient(135deg, #17171b, #070708) !important; }
.svc2 > .svc2-art::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 48%;
  background: var(--site-bg, none) center 22% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.svc2 > .svc2-art::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 52%; height: 4px; background: var(--primary); }
.svc2 > .svc2-art > svg, .svc2 > .svc2-art > img { max-width: 56%; height: auto; }
.svc2 > .svc2-art.svc2-coins { justify-content: start; }

/* واجهات صفحات الخدمات: الصورة في الجانب الأيسر، والكتابة يميناً */
.service-hero, .topup-hero, .page-vidsvc .help-hero, .page-work .help-hero, .page-apps .help-hero, .wa-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; }
.service-hero::before, .topup-hero::before, .page-vidsvc .help-hero::before, .page-work .help-hero::before, .page-apps .help-hero::before, .wa-hero::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 40%;
  background: var(--site-bg, none) center 18% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent); mask-image: linear-gradient(to right, #000 50%, transparent); }
.page-vidsvc .help-hero, .page-work .help-hero, .page-apps .help-hero { padding: 22px 18px; border: 1px solid var(--line); margin-bottom: 16px; background: var(--surface); }
@media (min-width: 700px) {
  .service-hero, .topup-hero, .page-vidsvc .help-hero, .page-work .help-hero, .page-apps .help-hero, .wa-hero { padding-inline-end: max(18px, 38%) !important; }
}
/* الهاتف: الصورة أوضح خلف الكتابة، مع طبقة فاتحة تحفظ وضوح النص */
@media (max-width: 699px) {
  .service-hero::before, .topup-hero::before, .page-vidsvc .help-hero::before, .page-work .help-hero::before, .page-apps .help-hero::before, .wa-hero::before {
    width: 62%; opacity: .5; -webkit-mask-image: linear-gradient(to right, #000 35%, transparent); mask-image: linear-gradient(to right, #000 35%, transparent); }
  .svc2 > .svc2-art::before { width: 55%; }
}
@media (max-width: 560px) { .dash-row-wrap { flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .dash-row-wrap .dash-row { flex: 1 1 100%; } .dash-row-wrap .js-rcpt { flex: 1 1 100%; justify-content: center; } }

/* ===================================================================
   v28 — خلفية الموقع: صورتك واقفاً (من «صورة الخلفية»)، شفافة وجميلة
   الحاسوب: الصورة كاملة في جانب الشاشة تذوب في الخلفية · الهاتف: خلف المحتوى بخفة
   =================================================================== */
:root { --site-bg-opacity: .26; }
:root[data-theme="dark"] { --site-bg-opacity: .2; }
body::before {
  inset: 0;
  background: var(--site-bg, none) left bottom / auto 100% no-repeat;
  filter: saturate(.95) contrast(1.03);
  transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 24%, transparent 46%);
  mask-image: linear-gradient(to right, #000 0%, #000 24%, transparent 46%);
}
/* الشاشات العريضة جداً: الصورة على الجانبين بشكل متوازن */
@media (min-width: 1500px) {
  body::before { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 26%, transparent 40%); mask-image: linear-gradient(to right, #000 0%, #000 26%, transparent 40%); }
}
@media (max-width: 760px) {
  :root { --site-bg-opacity: .16; }
  :root[data-theme="dark"] { --site-bg-opacity: .14; }
  body::before {
    background: var(--site-bg, none) center 25% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { body::before { transform: none !important; } }
/* ضبط: الصورة أوضح قليلاً، وبعيدة عن شريط التواصل الجانبي */
:root { --site-bg-opacity: .3; }
:root[data-theme="dark"] { --site-bg-opacity: .22; }
@media (min-width: 761px) { body::before { background-position: left 76px bottom; } }
@media (max-width: 760px) { :root { --site-bg-opacity: .24; } :root[data-theme="dark"] { --site-bg-opacity: .2; } }
@media (min-width: 761px) {
  body::before { transform: none !important; transition: none; background-position: left 8px bottom; background-size: auto 96%; }
}
:root[data-theme="light"] { --site-bg-opacity: .4; } @media (max-width: 760px) { :root[data-theme="light"] { --site-bg-opacity: .28; } }
@media (min-width: 761px) { body::before { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(36vh - 20px), transparent calc(64vh - 20px)) !important; mask-image: linear-gradient(to right, #000 0, #000 calc(36vh - 20px), transparent calc(64vh - 20px)) !important; } }

/* 🏅 الشهادة: بطاقة صغيرة أنيقة تحت أزرار الواجهة، تفتح الشهادة كبيرة */
.cert-badge { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 16px auto 0; padding: 8px 10px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid rgba(201, 162, 39, .55); box-shadow: 0 10px 26px rgba(201, 162, 39, .16); transition: transform .2s, box-shadow .2s; text-align: start; }
.cert-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 162, 39, .26); text-decoration: none; }
.cert-badge img { flex: none; width: 112px; height: auto; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.cert-badge span { display: grid; gap: 2px; min-width: 0; }
.cert-badge b { font-size: 1rem; color: #a07c12; }
:root[data-theme="dark"] .cert-badge b { color: #e6c35c; }
.cert-badge small { color: var(--muted); font-size: .78rem; direction: ltr; text-align: start; }
.cert-badge em { font-style: normal; font-size: .78rem; color: var(--primary); font-weight: 800; }
.cert-mini img { width: 100%; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 560px) { .cert-badge img { width: 92px; } }

/* ===================================================================
   v29 — 💼 Viva Rise: شعار دائري + الرتب الأربع + الشعار مرسوم في خلفية الخدمة
   =================================================================== */
.viva-logo { border-radius: 50%; box-shadow: 0 10px 30px rgba(212, 175, 55, .35), 0 0 0 4px rgba(212, 175, 55, .18); background: #0a1a36; }
.hm-logo { width: 46px; height: 46px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(212, 175, 55, .6); }
.hm-btn[data-panel="job"] .hm-ico { background: #0a1a36; padding: 0; overflow: hidden; }

/* الشعار مرسوخ في خلفية الخدمة (الواجهة الخارجية) */
.svc2-viva { position: relative; overflow: hidden; isolation: isolate; }
.svc2-viva::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; inset-inline-start: -90px; bottom: -110px; border-radius: 50%;
  background: url("viva/viva-logo-256.png") center / cover no-repeat; opacity: .09; filter: grayscale(.15); pointer-events: none; }
.svc2-viva > .svc2-art { background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, .45), transparent 62%), linear-gradient(135deg, #0a1a36, #050b18) !important; place-items: center !important; padding: 0 !important; }
.svc2-viva > .svc2-art::before { display: none; }
.svc2-viva > .svc2-art .viva-logo { width: 150px; height: 150px; }

/* صفحة التسجيل */
.page-viva .help-hero.viva-hero { text-align: center; padding-inline-end: 18px !important; isolation: isolate; }
.page-viva .help-hero.viva-hero::before { width: 100%; inset-inline-end: 0; opacity: .08; -webkit-mask-image: none; mask-image: none;
  background: url("viva/viva-logo-256.png") center / 420px no-repeat; }
.viva-hero .viva-logo { width: 120px; height: 120px; margin: 0 auto 10px; display: block; }
.viva-tasks { margin-bottom: 18px; }
.viva-steps { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .viva-steps { grid-template-columns: 1fr; } }
.viva-money { font-weight: 800; margin: 6px 0 4px; }
.viva-slogan { margin: 0; color: var(--primary); font-weight: 900; }
.viva-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.viva-rank { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 10px 26px rgba(0, 0, 0, .06); transition: transform .2s, border-color .2s; }
.viva-rank:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .7); }
.viva-rank.on { border-color: var(--primary); box-shadow: 0 14px 34px rgba(var(--primary-rgb), .25); }
.viva-rank.vip { border-color: rgba(212, 175, 55, .8); }
.viva-img { display: block; background: #0a1a36; }
.viva-img img { display: block; width: 100%; aspect-ratio: 3 / 2.4; object-fit: cover; object-position: center 38%; }
.viva-body { display: grid; gap: 8px; padding: 12px 14px 14px; align-content: start; }
.viva-n { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: rgba(212, 175, 55, .18); color: #9a7413; }
:root[data-theme="dark"] .viva-n { color: #e6c35c; }
.viva-body h3 { margin: 0; font-size: 1.2rem; }
.viva-body h3 small { color: var(--muted); font-size: .8rem; font-weight: 700; }
.viva-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.viva-facts li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); font-size: .9rem; }
.viva-facts b { font-size: 1rem; }
.viva-pick { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.wa-rank { margin: 4px 0 0; font-weight: 900; color: var(--primary); }
.wa-av.viva-logo { width: 56px; height: 56px; object-fit: cover; }
.job-rank { background: rgba(212, 175, 55, .2) !important; }
.page-viva main { max-width: 1180px; }
.page-viva .viva-hero, .page-viva .viva-tasks, .page-viva #join, .page-viva .os-note { max-width: 860px; margin-inline: auto; }
.viva-ranks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .viva-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .viva-ranks { gap: 8px; } .viva-body { padding: 10px; } .viva-body h3 { font-size: 1rem; } .viva-facts li { flex-direction: column; align-items: flex-start; gap: 0; font-size: .78rem; padding: 6px 8px; } .viva-body .btn-lg { padding: 10px; font-size: .9rem; } }

/* 🎬 معرض خدمة Viva Rise + التواصل */
.viva-show, .viva-contact { max-width: 860px; margin: 18px auto 0; }
.vs-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.vs-tab { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.vs-tab span { font-size: 1.6rem; } .vs-tab b { font-size: .98rem; } .vs-tab small { color: var(--muted); font-size: .75rem; }
.vs-tab.on { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .18); }
.vs-pane { display: grid; gap: 12px; }
.vs-video { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vs-image { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.vs-audio { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vs-item { margin: 0; padding: 8px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.vs-item video { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; display: block; }
.vs-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.vs-item audio { width: 100%; }
.vs-mic { height: 54px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 12px; background: rgba(var(--primary-rgb), .08); }
.vs-item figcaption { font-weight: 800; font-size: .88rem; text-align: center; }
.vc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cx-btn.cx-call { --c1: #f87171; --c2: #dc2626; }
.cx-btn.cx-call .cx-ico { font-size: 1.5rem; }
@media (max-width: 700px) { .vc-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .vs-video, .vs-audio { grid-template-columns: 1fr; } .vs-image { grid-template-columns: 1fr 1fr; } }

/* 🎉 احتفال الترحيب (Viva Rise) */
.celebrate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(14, 40, 86, .88), rgba(3, 8, 20, .95)); animation: celIn .35s ease-out; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate.out { opacity: 0; transition: opacity .45s; }
.cel-card { position: relative; z-index: 1; width: min(440px, 100%); padding: 26px 22px 20px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(160deg, rgba(20, 50, 100, .92), rgba(8, 18, 40, .95)); border: 2px solid rgba(212, 175, 55, .8); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(212, 175, 55, .25);
  animation: celPop .6s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.cel-logo { width: 110px; height: 110px; margin: -70px auto 6px; display: block; border: 4px solid #d4af37; animation: celSpin 1.2s ease-out .3s both; }
.cel-big { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 900; line-height: 1.1; background: linear-gradient(135deg, #fff3b0, #f5d77a 40%, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; animation: celPulse 1.4s ease-in-out infinite; }
.cel-card h2 { margin: 8px 0 4px; font-size: 1.45rem; color: #fff; }
.cel-name { margin: 0; font-weight: 800; color: #f5d77a; font-size: 1.1rem; }
.cel-rank { margin: 10px auto 0; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(212, 175, 55, .18); border: 1px solid rgba(212, 175, 55, .6); font-weight: 900; }
.cel-next { margin: 14px 0 16px; color: #dbe6ff; line-height: 1.7; font-size: .95rem; }
@keyframes celIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celPop { from { opacity: 0; transform: scale(.6) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes celSpin { from { transform: rotate(-200deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes celPulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cel-card, .cel-logo, .cel-big { animation: none; } }
.cel-big { background: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; }
.cel-txt { background: linear-gradient(135deg, #fff3b0, #f5d77a 40%, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cel-emo { display: inline-block; animation: celPulse 1s ease-in-out infinite; }

/* 🔤 السعر بالحروف + 🎙 تسجيل صوتي تحت السعر */
.price-words { display: block; margin-top: 2px; font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.5; text-align: start; }
.pack2 footer .price-words, .cc-price .price-words { color: var(--primary); }
.viva-facts .viva-words { background: none; padding: 0 10px; margin-top: -4px; }
.price-voice { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 10px; border-radius: 14px; background: rgba(var(--primary-rgb), .07); border: 1px dashed rgba(var(--primary-rgb), .4); }
.price-voice .pv-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); font-size: 1.1rem; }
.price-voice > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.price-voice small { font-weight: 800; font-size: .78rem; }
.price-voice audio { width: 100%; height: 36px; }
.cc-foot .price-voice { margin: 0 0 6px; }
/* لوحة التحكم: الزيارات + تسجيلات الأسعار */
.vis-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.vis-kpis .kpi { display: grid; gap: 2px; }
.vis-kpis .kpi b { font-size: 1.6rem; }
.vis-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; overflow-x: auto; padding-top: 6px; }
.vc-col { flex: 1 0 28px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.vc-col i { display: block; width: 70%; min-height: 3px; border-radius: 8px 8px 2px 2px; background: linear-gradient(to top, var(--primary), var(--primary-2)); }
.vc-col b { font-size: .75rem; } .vc-col small { font-size: .65rem; color: var(--muted); }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.vis-grid h3 { margin: 0 0 8px; font-size: 1rem; }
.vis-row { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.vis-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.vis-filter input[name=q] { flex: 1 1 200px; }
.table-wrap { overflow-x: auto; }
.vis-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.vis-table th, .vis-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.pa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pa-item { display: grid; gap: 8px; }
.pa-item.has { border-color: rgba(22, 163, 74, .45); }
.pa-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.pa-item audio { width: 100%; }
.pa-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pa-act form { margin: 0; }
.vc-col { max-width: 56px; } .vis-chart { justify-content: center; }
/* 🎙 زر التسجيل الصوتي تحت كل سعر (التحكم السريع) */
.q-cell { display: grid; gap: 6px; align-content: start; }
.q-cell > label { margin: 0; }
.q-cell.q-old input { text-decoration: line-through; color: var(--muted); }
.q-voice { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(var(--primary-rgb), .06); border: 1px dashed rgba(var(--primary-rgb), .35); }
.q-voice audio { width: 100%; height: 34px; }
.q-voice-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.q-voice-btns .btn { flex: 1; }

/* v30: صوت تحت سعر كل دورة + أزرار الدورة لا تنكسر على الهاتف */
.video-row .q-voice { margin-bottom: 8px; }
.video-row .row-actions.wrap .btn { white-space: normal; text-align: center; min-width: 0; }
@media (max-width: 520px) { .video-row .row-actions.wrap .btn-primary { flex-basis: 100%; } }

/* v31: التسجيل — الاختيار المحدد مسبقاً يظهر كبطاقة صغيرة بدل القائمة */
.reg-pick { display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(var(--primary-rgb), .35); background: rgba(var(--primary-rgb), .06); }
.reg-pick small { color: var(--muted); font-weight: 700; }
.reg-pick b { font-size: 1.05rem; }
.reg-pick .plan-price { font-style: normal; }

/* v31: 🎵 زر الموسيقى + 🔔 تفعيل إشعارات الهاتف */
.music-btn { position: fixed; inset-inline-start: 12px; bottom: 84px; z-index: 60; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(var(--primary-rgb), .35); background: var(--card, #fff); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 1.1rem; cursor: pointer; opacity: .85; }
.music-btn.off { opacity: .55; filter: grayscale(1); }
@media (min-width: 900px) { .music-btn { bottom: 18px; } }
.push-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(var(--primary-rgb), .07); border: 1px solid rgba(var(--primary-rgb), .35); }
.push-box[hidden] { display: none; }
.push-box span { display: grid; gap: 2px; }
.push-box small { color: var(--muted); }
.push-box.ok { justify-content: center; font-weight: 700; color: #15803d; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); }
.pass-wrap input::-ms-reveal, .pass-wrap input::-ms-clear { display: none; }

/* v32: تحميل التطبيقات من داخل فيسبوك/تيك توك — دعوة لفتح الصفحة في Chrome */
.iab-warn { display: grid; gap: 8px; padding: 12px 14px; margin: 10px 0; border-radius: 14px; background: #fff7e6; border: 1px solid #f5c26b; color: #7a4b00; font-weight: 600; }
.iab-warn .btn { justify-self: start; }

/* v32: 🇩🇿 علم الجزائر — صغير، يتموّج ببطء شديد، بإطار ناعم */
.dz-flag { display: inline-flex; vertical-align: middle; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.08); position: relative; line-height: 0; transform-origin: left center; animation: dzWave 5s ease-in-out infinite; }
.dz-flag svg { display: block; }
.dz-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 60%); background-size: 250% 100%; animation: dzShine 6s ease-in-out infinite; pointer-events: none; }
.dz-brand { margin-inline-start: 8px; }
.dz-acc { margin-inline-start: 4px; }
@keyframes dzWave { 0%, 100% { transform: perspective(60px) rotateY(0deg) skewY(0deg); } 50% { transform: perspective(60px) rotateY(-8deg) skewY(-1.5deg); } }
@keyframes dzShine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .dz-flag, .dz-flag::after { animation: none; } }
