/* Пакет Z2: тема ZAPCHASTIST AI — поверх стилів ядра. Лише змінні й кілька точкових правил; розмітка та сама.
   Палітра з лого: тло rgb(var(--p-n0)), неон-бірюза rgb(var(--p-brand)), фіолет rgb(var(--p-ai)), проміжний синій rgb(var(--p-brand)). Заголовки — Tektur. */
:root {
  /* P6-PALETTE: палітра ZAPCHASTIST — ті самі 11 токенів, свої бренд, ШІ і фони */
  --p-brand: 55, 251, 254; --p-ai: 160, 81, 244; --p-n0: 11, 13, 18; --p-n1: 18, 21, 30; --p-n2: 26, 31, 43;
  /* лендінг */
  --bg: rgb(var(--p-n0)); --bg2: rgb(var(--p-n0)); --glass: rgba(var(--p-n1), 0.72); --glass2: rgba(var(--p-n2), 0.8);
  --line: rgba(var(--p-brand), 0.14); --line2: rgba(var(--p-t2), 0.18);
  --ac: rgb(var(--p-brand)); --ac2: rgb(var(--p-brand)); --vi: rgb(var(--p-ai)); --hot: rgb(var(--p-t0));
  /* кабінет */
  --bg-0: rgb(var(--p-n0)); --bg-1: rgb(var(--p-n1)); --bg-2: rgb(var(--p-n2)); --accent: rgb(var(--p-brand)); --accent-2: rgb(var(--p-brand));
  --accent-bg: rgba(var(--p-brand), 0.15); --ai-gen: rgb(var(--p-ai)); --line-2: rgba(var(--p-t2), 0.18);
  /* спільне */
  --font-display: 'Tektur', 'Inter', system-ui, sans-serif;
}
html, body { background-color: rgb(var(--p-n0)); }
.aurora { background: radial-gradient(42% 36% at 72% 18%, rgba(55, 251, 254, .12), transparent 70%), radial-gradient(38% 32% at 14% 58%, rgba(160, 81, 244, .16), transparent 70%); }
h1, h2, h3, .kicker, .eyebrow b { letter-spacing: .01em; }
/* заголовки — шрифтом бренду */
h1, h2 { font-family: var(--font-display); letter-spacing: 0; }
/* лендінг: замість кільця ORBITA на першому екрані — голова-знак бренду */
.hero-stage .hero-ring { display: none; }
.hero-stage::before { content: ""; position: absolute; left: 0; top: 0; width: min(calc(94vw / var(--z, 1)), 760px); height: min(calc(92svh / var(--z, 1)), 860px); transform: translate(-50%, -52%); pointer-events: none; opacity: .24;
  background: url(/brand/zap/head-lg.webp?v=b8fd7737f980) center / contain no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, rgb(var(--p-n0)) 60%, transparent 100%); mask-image: radial-gradient(closest-side, rgb(var(--p-n0)) 60%, transparent 100%); }
/* кабінет: у шапці — голова-знак замість сфери; під час пошуку вона «дихає» */
.brand .lg { display: none !important; }
.brand .om-b .om-orb { display: inline-block !important; }
.brand .om-logo img, .om-logo img { border-radius: 0; box-shadow: none; object-fit: contain; object-position: 50% 50%; transform: none; }
.brand .om-logo img { width: 120%; height: 120%; }
body.searching .brand .om-logo { animation: zap-scan 1.1s ease-in-out infinite; }
@keyframes zap-scan { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { body.searching .brand .om-logo { animation: none; } }
/* екран входу: тло й кнопки в палітрі бренду */
.au { background: radial-gradient(60% 50% at 80% 0%, rgba(var(--p-ai), 0.16), transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(var(--p-brand), 0.1), transparent 70%), rgb(var(--p-n0)) !important; }
.au-ink, .au-go { background: linear-gradient(135deg, rgb(var(--p-brand)), rgb(var(--p-brand)) 72%, rgb(var(--p-ai))) !important; }
.btn-orbita-primary { background: linear-gradient(135deg, rgba(var(--p-brand), 0.24) 0%, rgba(var(--p-brand), 0.38) 100%); }

/* L2 (Дмитро 11.11): анімація пошуку — сканер замість кільця ORBITA. Рух лише transform і opacity. */
.mini-ring { display: none !important; }
.zscan { display: block; position: relative; height: 244px; margin: 8px 0 10px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(var(--p-brand), 0.3);
  background: linear-gradient(rgba(var(--p-brand), 0.06) 1px, transparent 1px) 0 0 / 100% 19px, linear-gradient(90deg, rgba(var(--p-brand), 0.06) 1px, transparent 1px) 0 0 / 19px 100%,
    radial-gradient(120% 90% at 50% 0, rgba(var(--p-ai), 0.22), transparent 62%), linear-gradient(180deg, rgb(var(--p-n0)), rgb(var(--p-n0))); box-shadow: inset 0 0 26px rgba(var(--p-ai), 0.16); }
.zscan::after { content: "SCAN"; position: absolute; left: 10px; top: 9px; font: 600 9px/1 var(--font-display, 'Tektur'), system-ui, sans-serif; letter-spacing: .22em; color: rgba(var(--p-brand), 0.8); }
/* H1 (Дмитро 11.11): у сканері — голова робота (head-scan.js): промінь іде по окулярах, у лінзах змінюються картинки, у прискореному пошуку голова повертається. */
.zscan .zhead { position: absolute; inset: 0; }
/* кабінет: портал пошуку (web/portal.js) — голова робота зі скан-променем замість галактики */
.orp-core > .orp-disc, .orp-core > .orp-eye, .orp-core > .orp-ring, .orp-core > .orp-sparks, .orp-core > .orp-emb { opacity: 0 !important; animation: none !important; }
.orp-core::before { content: ""; position: absolute; inset: 3%; border-radius: 24%; border: 1px solid rgba(55, 251, 254, .45);
  background: url(/brand/zap/head-lg.webp?v=b8fd7737f980) center / 84% no-repeat, radial-gradient(circle at 50% 30%, rgba(160, 81, 244, .3), rgba(7, 9, 30, .95) 72%);
  box-shadow: 0 0 34px rgba(55, 251, 254, .22), inset 0 0 26px rgba(160, 81, 244, .22); }
.orp-core > .orp-glow { opacity: 1 !important; z-index: 2; inset: 6% 8% auto 8% !important; height: 11%; border-radius: 6px !important; filter: none !important;
  background: linear-gradient(180deg, rgba(55, 251, 254, 0), rgba(55, 251, 254, .26) 72%, rgba(236, 255, 255, .95)) !important; animation: zs-v 1.7s cubic-bezier(.45, 0, .55, 1) infinite alternate !important; mix-blend-mode: screen; }
@keyframes zs-v { from { transform: translateY(0); } to { transform: translateY(690%); } }
@media (prefers-reduced-motion: reduce) { .orp-core > .orp-glow { animation: none !important; } }
/* H3: скрипт голови підключився (.zh-on) — у порталі та сама жива голова замість нерухомого малюнка з променем */
.orp-core.zh-on::before { background: radial-gradient(circle at 50% 30%, rgba(160, 81, 244, .3), rgba(7, 9, 30, .95) 72%); }
.orp-core.zh-on > .orp-glow { display: none !important; }
.orp-core > .zhead-orp { inset: 5% !important; border-radius: 0 !important; z-index: 1; }

/* D85 (Дмитро 15.11): у ZAPCHASTIST без мотивів ORBITA RING (орбіти, супутники, кільця) і без постійного руху.
   Рух лишається лише там, де щось відбувається: іде пошук (body.searching), завантаження, «потрібна увага» на дашборді. */
/* «ШІ-агент активний»: крапка без орбіти; під час пошуку — дихає */
.orb { border-color: rgba(var(--p-brand), 0.35); }
.orb i { display: none; }
body.searching .orb::before { animation: zap-scan 1.1s ease-in-out infinite; }
/* аватар у шапці, Профілі й на картці кабінету — без кілець із супутником */
.acc-av > i, .pf-ring, .cab-ring { display: none !important; }
/* «Помічник» — голова-знак бренду замість планети з орбітою */
.fb-ic b, .fb-ic u { display: none !important; }
.fb-ic::before { inset: 0 !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important;
  background: url(/brand/zap/head.webp?v=cdd8d1e76834) center / contain no-repeat !important; }
/* «Запрошення», «API для CRM» — без обертових орбіт і «пінгу» */
.rf-hero::after, .oapi::before { display: none !important; }
.oa-ic-lg::after { animation: none !important; opacity: 0 !important; }
/* GHOST — нерухомий, поки не працює */
.gh-card, .gh-card *, .gh-card::before, .gh-card::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { body.searching .orb::before { animation: none; } }
/* екран входу: без орбіт із супутниками і без постійного блиску рамки й кнопки */
.au-orbits, .au-stars { display: none !important; }
.au-card::before, .au-go::after { animation: none !important; }

/* D90 (Дмитро 15.11): анімації ZAPCHASTIST — свої, не орбіти ORBITA. Сканер: промінь іде по фіолетових окулярах голови-знака
   (шапка, вхід, «Помічник») і вертикальна лінія сканера — по напису ZAPCHASTIST AI (літери під нею світяться). Раз на 6 с; лише
   transform, opacity і зсув фону. Вимкнений рух у системі — усе нерухоме. */
/* напис: вертикальна смуга сканера замість діагонального відблиску ORBITA */
html .om .om-glint { display: block; opacity: 1; clip-path: polygon(8% 0, 15% 0, 15% 100%, 8% 100%); animation: zap-scan-x 6s linear infinite 1.2s; }
html .om .om-glint span { color: #ECFFFF; text-shadow: 0 0 .25em rgb(var(--p-ai)), 0 0 .7em rgb(var(--p-brand)); animation: zap-scan-xi 6s linear infinite 1.2s; }
html .om .om-glint::after { content: ""; position: absolute; top: -18%; bottom: -18%; left: 11.5%; width: 2px; border-radius: 2px;
  background: linear-gradient(rgb(var(--p-brand)), rgb(var(--p-ai))); box-shadow: 0 0 6px rgb(var(--p-ai)), 0 0 12px rgb(var(--p-brand)); animation: zap-scan-line 6s linear infinite 1.2s; }
@keyframes zap-scan-x { 0% { transform: translateX(-20%); } 38%, 100% { transform: translateX(100%); } } /* ті самі точки й ритм, що й у літер, — смуга не «з'їжджає» */
@keyframes zap-scan-line { 0% { opacity: 0; } 4%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes zap-scan-xi { 0% { transform: translateX(20%); } 38%, 100% { transform: translateX(-100%); } }
/* окуляри голови-знака: промінь зліва направо по лінзах */
html .om-logo, html .fb-ic { position: relative; }
html .om-logo::after, html .fb-ic::after { content: ""; position: absolute; pointer-events: none; mix-blend-mode: screen; border-radius: 40% 40% 46% 46% / 50%;
  background: linear-gradient(90deg, transparent 0 38%, rgba(var(--p-ai), .55) 45%, rgba(236, 255, 255, .95) 50%, rgba(var(--p-brand), .55) 55%, transparent 62% 100%) 100% 0 / 300% 100% no-repeat;
  opacity: 0; animation: zap-goggles 6s ease-in-out infinite 1.2s; }
html .om-logo::after { left: 19%; width: 63%; top: 31%; height: 20%; }
html .fb-ic::after { display: block !important; left: 25%; width: 52%; top: 34%; height: 17%; border-radius: 40% 40% 46% 46% / 50% !important; box-shadow: none !important;
  background: linear-gradient(90deg, transparent 0 38%, rgba(var(--p-ai), .55) 45%, rgba(236, 255, 255, .95) 50%, rgba(var(--p-brand), .55) 55%, transparent 62% 100%) 100% 0 / 300% 100% no-repeat !important;
  animation: zap-goggles 6s ease-in-out infinite 3.2s !important; }
@keyframes zap-goggles { 0% { background-position: 100% 0; opacity: 0; } 4% { opacity: 1; } 30% { background-position: 0 0; opacity: 1; } 36%, 100% { background-position: 0 0; opacity: 0; } }
/* під час пошуку — промінь частіше (як у сканері пошуку) */
html body.searching .om-logo::after { animation-duration: 1.6s; animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) { html .om .om-glint, html .om .om-glint span, html .om .om-glint::after, html .om-logo::after, html .fb-ic::after { animation: none !important; opacity: 0 !important; } }
