/* ==========================================================================
   شعار CYS «عين الماسح» — الألوان من الثيم (الأحمر بـ Cyber Engineering)
   ========================================================================== */
.eye-logo { display: block; width: 100%; height: 100%; overflow: visible; }
.eye-logo .el-hex { fill: none; stroke: var(--primary); stroke-width: 3.2; stroke-linejoin: round; }
.eye-logo .el-hex-fill { fill: color-mix(in srgb, var(--primary) 14%, #0B0B0D); }
.eye-logo .el-white { fill: #0B0B0D; }
.eye-logo .el-lid { fill: none; stroke: #F3EEEE; stroke-width: 2.6; stroke-linejoin: round; }
.eye-logo .el-iris-c { fill: color-mix(in srgb, var(--primary) 80%, #000); }
.eye-logo .el-ring {
  fill: none; stroke: color-mix(in srgb, var(--primary) 60%, #fff); stroke-width: 1.5; stroke-dasharray: 3 2.5;
  transform-box: fill-box; transform-origin: center; animation: el-spin 9s linear infinite;
}
.eye-logo .el-pupil { fill: #0B0B0D; }
.eye-logo .el-glint { fill: #F3EEEE; }
.eye-logo .el-scan { fill: var(--primary); opacity: .75; animation: el-scan 3.6s ease-in-out infinite alternate; }

/* قطع خاصة ببعض الثيمات (آيلاينر Sakura، عين القطة بـ Anime): مخفية بالأساس */
.eye-logo :is(.el-liner, .el-wing, .el-cat-iris, .el-slit, .el-cat-glint, .el-cat-glint2, .el-cat-line, .el-cat-wing) { display: none; }

/* Sakura: آيلاينر غامق وجناح بالزاوية (يرمش ويا العين لأنه داخل نفس المجموعة) */
:root[data-theme="sakura"]:not(.eye-rage) .eye-logo .el-liner { display: inline; fill: none; stroke: #2A1420; stroke-width: 3.6; stroke-linecap: round; }
:root[data-theme="sakura"]:not(.eye-rage) .eye-logo .el-wing { display: inline; fill: #2A1420; }

/* البؤبؤ يتحرك بنعومة — الـ JS يحدد وين */
.eye-logo .el-iris { transition: transform .18s ease-out; }

/* الرمشة: الجفن يتسكر لخط ويرجع */
.eye-logo .el-eye { transform-box: view-box; transform-origin: 50px 50px; transition: transform .07s ease-in; }
.eye-logo.blink .el-eye, html.eyes-shut .eye-logo .el-eye { transform: scaleY(.07); }
html.eyes-shut .eye-logo .el-eye { transition-duration: .2s; }

@keyframes el-spin { to { transform: rotate(360deg); } }
@keyframes el-scan { from { transform: translateY(-22px); } to { transform: translateY(22px); } }

/* صندوق الشعار: الشعار نفسه بيه السداسي، فما نحتاج خلفية */
.brand-mark.has-eye,
:root[data-theme] .brand-mark.has-eye,
:root[data-theme] .auth-art .brand-mark.has-eye {
  background: transparent !important; box-shadow: none !important; border-radius: 0; padding: 0;
}
.brand-mark.has-eye { width: 44px; height: 44px; }
.auth-brand .brand-mark.has-eye { width: 76px; height: 76px; }
.auth-art .brand-mark.has-eye { width: 46px; height: 46px; }
.brand:hover .brand-mark.has-eye { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .eye-logo .el-ring, .eye-logo .el-scan { animation: none; }
  .eye-logo .el-iris, .eye-logo .el-eye { transition: none; }
}

/* ---------- «العين تزعل»: حمرة + اهتزاز + ليزر (eye-rage.js) ---------- */
html.eye-rage .eye-logo .el-hex { stroke: #FF2424; }
html.eye-rage .eye-logo .el-hex-fill { fill: #3A0606; }
html.eye-rage .eye-logo .el-iris-c { fill: #FF1A1A; }
html.eye-rage .eye-logo .el-ring { stroke: #FFB3B3; animation-duration: .9s; }
html.eye-rage .eye-logo .el-scan { fill: #FF2424; animation-duration: .5s; }
html.eye-rage .eye-logo .el-lid { stroke: #FF6B6B; }
html.eye-rage .eye-logo { filter: drop-shadow(0 0 6px rgba(255, 30, 30, .85)); }
html.eye-rage .eye-logo .el-iris { transition-duration: .08s; }
.eye-rage-shake { animation: eye-rage-shake .09s linear infinite; }
@keyframes eye-rage-shake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-1.6px, 1px) rotate(-2deg); }
  50% { transform: translate(1.4px, -1.2px) rotate(1.5deg); }
  75% { transform: translate(-1px, -1px) rotate(-1deg); }
  100% { transform: translate(1.2px, 1.4px) rotate(2deg); }
}
.eye-rage-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147483000; }
/* المؤشر انفجر: يختفي لحد ما يتحرك الماوس */
html.cursor-gone, html.cursor-gone * { cursor: none !important; }
