/* Guardian · تصميم فاخر: خلفية متحركة، بطاقات زجاجية، توهجات، وتدرجات */
:root {
  --bg: #05070d;
  --glass: rgba(14, 20, 34, .6);
  --glass-strong: rgba(10, 14, 24, .85);
  --line: rgba(59, 130, 246, .14);
  --line-strong: rgba(59, 130, 246, .28);
  --hover: rgba(59, 130, 246, .09);
  --text: #eef4ff;
  --muted: #94a3b8;
  --violet: #3b82f6;
  --blue: #60a5fa;
  --cyan: #dbeafe;
  --pink: #64748b;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --grad: linear-gradient(135deg, var(--violet) 0%, var(--pink) 45%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(191, 219, 254, .08));
  --radius-xl: 26px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
/* الخلفية المتحركة */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%; filter: blur(90px); opacity: .35;
}
body::before { background: radial-gradient(circle, var(--violet), transparent 70%); top: -20vw; right: -15vw; animation: drift 18s ease-in-out infinite alternate; }
body::after { background: radial-gradient(circle, var(--cyan), transparent 70%); bottom: -25vw; left: -15vw; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, -4vh) scale(1.12); } }
a { color: inherit; }

/* الشريط العلوي */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px;
  background: rgba(7, 10, 18, .6); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 800; font-size: 19px; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.logo {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--grad);
  box-shadow: 0 0 22px rgba(96, 165, 250, .55);
}
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

/* التخطيط */
.layout { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 60px); }
.side {
  background: rgba(7, 10, 18, .55); backdrop-filter: blur(14px); border-left: 1px solid var(--line);
  padding: 16px; overflow: auto;
}
.side h3 { color: var(--muted); font-size: 11px; margin: 22px 8px 8px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.side a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
  border-radius: 12px; text-decoration: none; margin-bottom: 4px; transition: .2s; color: var(--text);
}
.side a:hover { background: var(--hover); transform: translateX(-3px); }
.side a.on { background: linear-gradient(90deg, rgba(59, 130, 246, .22), transparent); box-shadow: inset 3px 0 0 var(--violet); }
.main { padding: 26px; max-width: 1280px; width: 100%; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1 { margin: 0; font-size: 26px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; letter-spacing: .2px; }
h2 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.desc { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.loading { color: var(--muted); }

/* الهيدر */
.hero {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--radius-xl);
  padding: 30px 32px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 32px; letter-spacing: -.3px; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 1; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .08; pointer-events: none;
}
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* البطاقات */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px; margin-bottom: 16px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .25s, transform .25s, box-shadow .3s;
}
.card:hover { box-shadow: 0 30px 60px -28px rgba(59, 130, 246, .45), var(--shadow); }
.card:hover { border-color: var(--line-strong); }
.card.err { border-color: var(--bad); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat {
  position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow); transition: transform .25s;
}
.stat::after {
  content: ""; position: absolute; top: -40%; left: -20%; width: 80px; height: 180%;
  background: var(--grad); opacity: .12; transform: rotate(18deg);
}
.stat:hover { transform: translateY(-3px); }
.stat span { color: var(--muted); font-size: 13px; }
.stat { border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--glass); }
.stat b {
  display: block; font-size: 34px; margin-top: 8px; font-weight: 900; letter-spacing: -.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login { max-width: 440px; margin: 80px auto; text-align: center; padding: 36px; }
.login h1 { justify-content: center; margin-bottom: 10px; }

/* مستوى الأمان */
.score { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score .pct {
  font-size: 44px; font-weight: 900; min-width: 120px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bar { height: 12px; background: rgba(255, 255, 255, .06); border-radius: 99px; overflow: hidden; flex: 1; min-width: 200px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; box-shadow: 0 0 18px rgba(191, 219, 254, .6); transition: width .6s; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.check {
  display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.check.on { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.check:not(.on) { color: var(--muted); }

/* التبويبات */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a {
  padding: 9px 16px; border-radius: 999px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); font-size: 14px; background: rgba(255, 255, 255, .02); transition: .2s;
}
.tabs a:hover { color: var(--text); border-color: var(--line-strong); }
.tabs a.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(96, 165, 250, .8); }

/* الأزرار */
.btn {
  background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 16px; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; transition: .2s;
}
.btn:hover { border-color: var(--violet); transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--violet); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -10px rgba(96, 165, 250, .9); }
.btn.warn { border-color: rgba(251, 191, 36, .5); color: var(--warn); }
.btn.bad { border-color: rgba(251, 113, 133, .5); color: var(--bad); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.row-f { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.row-f input { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; transition: .2s;
}
.chip:hover { color: var(--text); }
.chip.on { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 8px 20px -10px var(--cyan); }

/* الحقول */
input, select, textarea {
  background: rgba(5, 8, 15, .7); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: inherit; width: 100%; transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-size: 14px; }
.field > span:first-child { color: var(--muted); }

/* المفاتيح */
.toggle {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer;
}
.toggle:last-child { border-bottom: 0; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 46px; height: 26px; background: rgba(255, 255, 255, .08); border-radius: 99px; position: relative; flex-shrink: 0; transition: .25s; }
.switch::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #cbd3f0; transition: .25s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.toggle input:checked + .switch { background: var(--grad); box-shadow: 0 0 16px rgba(191, 219, 254, .45); }
.toggle input:checked + .switch::after { right: 23px; background: #fff; }
.savebar {
  position: sticky; bottom: 0; padding: 22px 0 10px; text-align: left;
  background: linear-gradient(transparent, var(--bg) 40%);
}

/* الشارات */
.badge {
  padding: 4px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted);
}
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge.bad { color: var(--bad); border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .08); }

/* عناصر القوائم */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-item > div { flex: 1; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item small { color: var(--muted); display: block; word-break: break-word; font-size: 12px; margin-top: 2px; }
.srv {
  display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 10px; text-decoration: none; background: rgba(255, 255, 255, .025); transition: .2s;
}
.srv:hover { border-color: var(--violet); transform: translateX(-3px); }
.srv img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-strong); }
.srv .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--hover); }
.srv div { flex: 1; min-width: 0; }
.srv small { display: block; color: var(--muted); }

/* السجلات */
.log { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.log:last-child { border-bottom: 0; }
.log small { color: var(--muted); }
.log p { margin: 5px 0; white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
pre {
  background: rgba(5, 8, 15, .75); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  white-space: pre-wrap; max-height: 420px; overflow: auto; direction: ltr; text-align: left; line-height: 1.7;
}

/* التنبيه */
.toast {
  position: fixed; bottom: 22px; left: 22px; background: var(--glass-strong); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 18px; opacity: 0;
  transform: translateY(12px); transition: .3s; pointer-events: none; max-width: 380px; z-index: 9;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(52, 211, 153, .5); }
.toast.bad { border-color: rgba(251, 113, 133, .5); }

/* تنسيق الجوال */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-left: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .score .pct { font-size: 34px; }
}

/* ===== طبقة التصميم الفاخرة ===== */
/* شريط علوي زجاجي بخط ذهبي سفلي */
.top {
  background: linear-gradient(180deg, rgba(8, 12, 22, .85), rgba(7, 10, 18, .6));
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(180deg, rgba(8, 12, 22, .85), rgba(7, 10, 18, .6)), linear-gradient(90deg, transparent, rgba(59, 130, 246, .6), transparent);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.logo { background: linear-gradient(135deg, #bfdbfe, #3b82f6 50%, #1e3a8a); color: #111; box-shadow: 0 0 26px rgba(59, 130, 246, .45); }
.brand { background: linear-gradient(90deg, #e2e8f0, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* قائمة جانبية أنظف */
.side { background: linear-gradient(180deg, rgba(9, 13, 24, .9), rgba(6, 9, 16, .7)); border-left: 1px solid rgba(59, 130, 246, .12); }
.side h3 { color: #94a3b8; letter-spacing: 1.6px; }
.side a.on { background: linear-gradient(90deg, rgba(59, 130, 246, .2), transparent); box-shadow: inset 3px 0 0 #3b82f6; }
.side a.on::before { background: #bfdbfe; box-shadow: 0 0 12px #bfdbfe; }

/* عناوين الصفحات */
h1 { letter-spacing: -.3px; }
.card h2 { color: #e2e8f0; }

/* أزرار ذهبية */
.btn.primary { background: linear-gradient(135deg, #bfdbfe, #3b82f6 55%, #1e3a8a); color: #04060c; border: 0; font-weight: 800; box-shadow: 0 12px 28px -12px rgba(59, 130, 246, .75); }
.btn.primary:hover { box-shadow: 0 16px 36px -10px rgba(59, 130, 246, .9); }
.tabs a.on { background: linear-gradient(135deg, #bfdbfe, #3b82f6 55%, #1e3a8a); color: #04060c; font-weight: 800; border: 0; }

/* مفاتيح التشغيل ذهبية */
.toggle input:checked + .switch { background: linear-gradient(135deg, #bfdbfe, #3b82f6); box-shadow: 0 0 16px rgba(59, 130, 246, .5); }

/* إطار البطاقات بخط ذهبي خفيف */
.card, .stat, .stat-big { border-color: rgba(59, 130, 246, .14); }
.card:hover, .stat-big:hover { border-color: rgba(59, 130, 246, .4); }

/* حدود الحقول والتركيز ذهبية */
input:focus, select:focus, textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }

/* ===== معاينة هوية البوت ===== */
.bot-preview {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--glass-strong); margin-top: 6px;
}
.bot-banner {
  height: 150px; background: linear-gradient(120deg, #3a2e0f, #1e3a8a 40%, #3b82f6 70%, #1a1407);
  background-size: 200% 200%; animation: flow 10s linear infinite;
}
.bot-meta { display: flex; align-items: flex-end; gap: 14px; padding: 0 20px 16px; margin-top: -40px; }
.bot-avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900;
  color: #04060c; background: linear-gradient(135deg, #bfdbfe, #3b82f6 55%, #1e3a8a);
  border: 5px solid var(--glass-strong); box-shadow: 0 0 26px rgba(59, 130, 246, .45);
}
.bot-meta b { font-size: 20px; display: block; }
.bot-tag {
  display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 800;
  background: #5865f2; color: #fff;
}

/* ===== الصفحة الرئيسية ===== */
.home-hero { text-align: center; padding: 34px 10px 28px; }
.home-hero h1 { justify-content: center; font-size: 40px; font-weight: 900; margin: 16px 0 10px; letter-spacing: -.5px; }
.home-hero p { color: var(--muted); margin: 0; font-size: 15px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .08);
}
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-big {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius-xl);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--glass);
  box-shadow: var(--shadow);
}
.stat-big .stat-ico {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 24px;
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .3);
}
.stat-big span { color: var(--muted); font-size: 13px; display: block; }
.stat-big b { font-size: 30px; font-weight: 900; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 14px; }
.sec-head h2 { margin: 0; font-size: 18px; }
.pill {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .08); white-space: nowrap;
}
.pill.blue { color: #93c5fd; border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .08); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cards-grid .srv {
  flex-direction: column; text-align: center; padding: 22px 16px; margin: 0; border-radius: var(--radius-xl);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--glass);
}
.cards-grid .srv:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-3px); }
.cards-grid .srv img, .cards-grid .srv .ico { width: 72px; height: 72px; }
.cards-grid .srv b { font-size: 15px; }
.cards-grid .srv small { font-size: 13px; }

/* ===== قائمة الكلمات بالفئات ===== */
.wf-block { display: grid; gap: 10px; }
.wf-block.off .wf-words { opacity: .45; }
.wf-words { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 8px; }
.wf-word {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid; white-space: nowrap;
}
.wf-insult { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.wf-slander { color: #fdba74; border-color: rgba(251, 146, 60, .35); background: rgba(251, 146, 60, .08); }
.wf-mock { color: #fde68a; border-color: rgba(253, 230, 138, .35); background: rgba(253, 230, 138, .08); }
.wf-custom { color: #93c5fd; border-color: rgba(192, 132, 252, .35); background: rgba(192, 132, 252, .08); }

/* ===== سلم العقوبات ===== */
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px;
  border-radius: 16px; border: 1px solid rgba(59, 130, 246, .3); background: linear-gradient(135deg, rgba(59, 130, 246, .1), transparent);
}
.step b {
  grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad); color: #111; font-size: 18px;
}
.step span { font-weight: 700; }
.step small { color: var(--muted); }

/* ===== عناوين الأقسام ===== */
.sec-title {
  display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; font-size: 18px; font-weight: 800;
  background: linear-gradient(90deg, #bfdbfe, var(--gold-2, #3b82f6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(59, 130, 246, .5), transparent); }

/* ===== فئات فلتر الكلمات ===== */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wf-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: .25s;
}
.wf-cat:hover { border-color: var(--line-strong); }
.wf-cat.on { border-color: rgba(59, 130, 246, .45); background: linear-gradient(135deg, rgba(59, 130, 246, .12), transparent); }
.wf-cat b { display: block; font-size: 15px; }
.wf-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.wf-cat .switch { flex-shrink: 0; }
.wf-cat input:checked + .switch { background: var(--grad); box-shadow: 0 0 16px rgba(59, 130, 246, .45); }
.wf-cat input:checked + .switch::after { right: 23px; background: #fff; }

/* ===== لمسات إضافية: توهج، لمعة، تدرج متحرك ===== */
::selection { background: rgba(59, 130, 246, .45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* حواف متحركة للهيدر */
.hero { isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--violet), var(--cyan), var(--blue), var(--violet));
  background-size: 300% 300%; animation: flow 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55;
}
@keyframes flow { to { background-position: 300% 50%; } }

/* توهج يتبع الماوس على البطاقات */
.card::before, .stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .14), transparent 45%);
}
.card:hover::before, .stat:hover::before { opacity: 1; }
.stat:hover { box-shadow: 0 26px 60px -22px rgba(59, 130, 246, .55), var(--shadow); border-color: var(--line-strong); }

/* لمعة على الأزرار الأساسية */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn.primary:hover::after { left: 130%; }
.btn.primary:hover { filter: brightness(1.08); }

/* مؤشر نشط في القائمة الجانبية */
.side a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; transition: .2s;
}
.side a.on::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.side a:hover::before { background: var(--violet); }

/* أرقام الإحصائيات تتحرك تدرجها */
.stat b, .score .pct { background-size: 200% 200%; animation: flow 8s ease infinite; }

/* تفاصيل */
.tabs a.on { position: relative; }
.badge.ok, .badge.bad, .badge.warn { font-weight: 600; }
.card h2 { letter-spacing: .2px; }
input::placeholder, textarea::placeholder { color: rgba(152, 162, 199, .6); }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, body::before, body::after { animation: none !important; transition: none !important; }
}
