/* ------------------------------------------------------------------ *
 *  EYEHACK · монохромная тема «глаз»                                  *
 *  Подключается после app.css и только переопределяет визуал.         *
 * ------------------------------------------------------------------ */

:root {
  --base: #050506;
  --elevated: #0b0b0e;
  --elevated-2: #101014;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --primary: #f4f6fa;
  --muted: rgba(244, 246, 250, 0.5);
  --muted-2: rgba(244, 246, 250, 0.3);
  --accent: #e9edf5;
  --accent-soft: rgba(233, 237, 245, 0.1);
  --success: #3ddc84;
  --warn: #ffc857;
  --info: #8fb8ff;
  --danger: #ff4d4d;
}

body {
  background: var(--base);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 255, 255, 0.045), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 255, 255, 0.03), transparent 55%);
}

/* зерно поверх интерфейса — как на референсе */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  background-size: 140px 140px;
}

.sidebar {
  background: #070709;
  border-right-color: rgba(255, 255, 255, 0.07);
}

.brand img {
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
}

/* логотип-глаз: контейнер со сканирующей линией и свечением при наведении */
.brand-eye {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-eye img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: filter 0.35s ease, transform 0.35s ease;
}
.brand:hover .brand-eye img,
.auth-brand:hover .brand-eye img {
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.6)) brightness(1.08);
  transform: scale(1.05);
}
.brand-eye::after {
  content: "";
  position: absolute;
  left: -60%;
  right: -60%;
  top: 0;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: eyeScan 15s ease-in-out infinite;
}

.auth-eye-logo {
  width: 46px;
  height: 46px;
}

@keyframes eyeScan {
  0%, 84% { transform: translateY(-160%) rotate(-6deg); opacity: 0; }
  86% { opacity: 0.95; }
  95% { transform: translateY(460%) rotate(-6deg); opacity: 0.7; }
  100% { transform: translateY(460%) rotate(-6deg); opacity: 0; }
}

.brand-name { letter-spacing: 0.02em; }
.brand-sub { letter-spacing: 0.16em; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #07070a;
  font-weight: 600;
}
.btn.primary:hover { background: #ffffff; border-color: #ffffff; }

::selection { background: rgba(233, 237, 245, 0.22); }

/* лёгкое свечение активного пункта меню */
.nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* компактный сайдбар */
.app { grid-template-columns: 216px 1fr; }
.sidebar { padding: 14px 10px 10px; }
.brand { padding: 2px 4px 14px; gap: 9px; }
.brand-name { font-size: 14px; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.12em; }
.nav { gap: 2px; }
.nav-item { padding: 7px 9px; border-radius: 9px; font-size: 13px; gap: 9px; }
.nav-icon { width: 16px; font-size: 13px; }
.nav-group-title { font-size: 9.5px; padding: 0 8px 5px; }

/* раскрывающийся блок «Ещё» */
.nav-more { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 8px; }
.nav-more > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: "▾"; font-size: 11px; transition: transform 0.18s ease; opacity: 0.7; }
.nav-more[open] > summary::after { transform: rotate(180deg); }
.nav-more > summary:hover { background: rgba(255, 255, 255, 0.04); color: var(--primary); }
.nav-more-count {
  margin-left: auto;
  margin-right: 4px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted-2);
}
.nav-more .nav-item {
  padding: 6px 9px;
  font-size: 12.5px;
}

/* прогресс — нейтральный, красный оставляем только опасным действиям */
.progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.85));
}

.btn.danger {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.4);
  color: #ff8f8f;
}
.btn.danger:hover { background: rgba(255, 77, 77, 0.22); color: #ffb3b3; }

/* фоновый глаз на дашборде отключён — интерфейс чище */
.content > *:not(.overview-eye) {
  position: relative;
}

/* страница входа: глаз по центру с ореолом */
.auth-wrap {
  background:
    radial-gradient(900px 520px at 50% 12%, rgba(255, 255, 255, 0.07), transparent 65%),
    var(--base) !important;
}

.auth-card {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.auth-eye {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.auth-eye img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  filter: drop-shadow(0 0 42px rgba(255, 255, 255, 0.28));
  animation: eyePulse 4.5s ease-in-out infinite;
}
.auth-eye .eye-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.auth-eye .eye-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@keyframes eyePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
