/* =============================================================================
   shell.css — оболочка WEWO: Мой профиль, Тарифы, AI Agents, Центр уведомлений.
   Тёмный премиум-язык проекта (blue/indigo/violet/cyan, glass, soft glow).
   Опирается на токены theme.css (--wv-*). Адаптив + Telegram — в конце файла.
   ============================================================================= */

/* Общие обёртки-страницы: центрируем и даём воздух, шапку не трогаем. */
.ag-wrap, .pf-wrap, .pr-wrap {
  max-width: 1080px; margin: 0 auto; padding: 32px 24px 60px;
  color: var(--wv-text, #EAECF5);
}

/* ============================ AI AGENTS ============================= */
/* Единый визуальный язык: тёмная глубина, blue→indigo→violet→cyan, glass, soft glow. */
#agentsView { --agc1: #4DA6FF; --agc2: #7C6CF6; --agc3: #A855F7; --agc4: #22D3EE; }
.ag-wrap { position: relative; }

/* HERO — минимум текста, максимум воздуха. */
.ag-hero { text-align: center; padding: 40px 0 34px; }
.ag-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  color: #bfe0ff; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(127, 178, 255, .32);
  background: linear-gradient(90deg, rgba(77,166,255,.12), rgba(168,85,247,.12));
}
.ag-eyebrow { display: block; margin-top: 22px; font-size: 13px; font-weight: 700;
  letter-spacing: .32em; color: var(--wv-mute, #9AA0B6); }
.ag-title {
  margin: 12px auto 14px; max-width: 16ch; font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(120deg, #cfe6ff, #A855F7 55%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-sub { max-width: 600px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--wv-mute, #9AA0B6); }

/* ------- Флагманская демо-панель (интерфейс цифрового сотрудника) ------- */
.ag-demo {
  position: relative; max-width: 860px; margin: 0 auto 12px; overflow: hidden;
  border: 1px solid rgba(127, 178, 255, .22); border-radius: 24px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(77,166,255,.14), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(168,85,247,.14), transparent 60%),
    linear-gradient(180deg, rgba(20,22,34,.92), rgba(13,14,22,.92));
  box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.ag-demo-top { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ag-demo-brand { display: flex; align-items: center; gap: 14px; }
.ag-demo-name { font-size: 14px; font-weight: 800; letter-spacing: .12em; color: #eaf1ff; }
.ag-demo-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 700; letter-spacing: .08em; color: #7FE0A8; }
.ag-led { width: 8px; height: 8px; border-radius: 50%; background: #57D9A3; box-shadow: 0 0 10px #57D9A3; }
.ag-demo-state[data-state="thinking"] { color: #ffd27a; } .ag-demo-state[data-state="thinking"] .ag-led { background: #ffb454; box-shadow: 0 0 10px #ffb454; }
.ag-demo-state[data-state="listening"] { color: #7Fb2ff; } .ag-demo-state[data-state="listening"] .ag-led { background: #4DA6FF; box-shadow: 0 0 10px #4DA6FF; }
.ag-demo-state[data-state="speaking"] { color: #c9a6ff; } .ag-demo-state[data-state="speaking"] .ag-led { background: #A855F7; box-shadow: 0 0 10px #A855F7; }
.ag-demo-badge { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #9AA0B6;
  padding: 4px 10px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.2); }
.ag-demo-badge.sm { border: 0; padding: 0; letter-spacing: .04em; font-weight: 600; text-transform: none; }
.ag-demo-badge.center { display: block; text-align: center; margin-top: 8px; }

.ag-demo-body { display: grid; grid-template-columns: 200px 1fr; gap: 8px; padding: 26px 22px; }

/* AI Agent Orb — цифровая сущность, не персонаж. */
.ag-orb-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ag-orb { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.ag-orb-glow { position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,166,255,.5), transparent 65%); filter: blur(8px);
  opacity: .7; transition: opacity .5s ease, background .5s ease; }
.ag-orb-core { position: relative; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bfe0ff, #4DA6FF 45%, #7C6CF6 80%);
  box-shadow: 0 0 30px rgba(77,166,255,.6), inset 0 0 18px rgba(255,255,255,.25);
  animation: agBreath 3.6s ease-in-out infinite; }
.ag-orb-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(127,178,255,.35); }
.ag-orb-ring.r1 { inset: 8px; } .ag-orb-ring.r2 { inset: 22px; border-color: rgba(168,85,247,.3); }
@keyframes agBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes agSpin { to { transform: rotate(360deg); } }
/* Состояния орба. */
.ag-orb[data-state="thinking"] .ag-orb-core { background: radial-gradient(circle at 35% 30%, #ffe6b0, #ffb454 50%, #7C6CF6 85%); animation-duration: 1.6s; }
.ag-orb[data-state="thinking"] .ag-orb-glow { background: radial-gradient(circle, rgba(255,180,84,.45), transparent 65%); }
.ag-orb[data-state="thinking"] .ag-orb-ring { animation: agSpin 3s linear infinite; }
.ag-orb[data-state="speaking"] .ag-orb-core { background: radial-gradient(circle at 35% 30%, #e6ccff, #A855F7 50%, #22D3EE 90%); }
.ag-orb[data-state="speaking"] .ag-orb-glow { background: radial-gradient(circle, rgba(168,85,247,.5), transparent 65%); opacity: .95; }
.ag-orb[data-state="listening"] .ag-orb-glow { background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); }
.ag-orb[data-state="completed"] .ag-orb-core { background: radial-gradient(circle at 35% 30%, #c8f7e2, #57D9A3 55%, #4DA6FF 90%); animation: none; }
.ag-orb[data-state="completed"] .ag-orb-glow { background: radial-gradient(circle, rgba(87,217,163,.45), transparent 65%); }

/* Waveform — активна в listening/speaking. */
.ag-wave { display: flex; align-items: center; gap: 3px; height: 24px; opacity: .25; transition: opacity .4s ease; }
.ag-wave i { width: 3px; height: 6px; border-radius: 3px; background: linear-gradient(#7Fb2ff, #A855F7); }
.ag-orb-wrap:has(+ .ag-demo-main) .ag-wave i { will-change: height; }
.ag-orb[data-state="speaking"] ~ .ag-wave, .ag-orb[data-state="listening"] ~ .ag-wave { opacity: 1; }
.ag-orb[data-state="speaking"] ~ .ag-wave i, .ag-orb[data-state="listening"] ~ .ag-wave i { animation: agWave 1s ease-in-out infinite; }
.ag-wave i:nth-child(odd) { animation-delay: .15s; } .ag-wave i:nth-child(3n) { animation-delay: .3s; } .ag-wave i:nth-child(4n) { animation-delay: .45s; }
@keyframes agWave { 0%,100% { height: 5px; } 50% { height: 22px; } }
.ag-orb-label { font-size: 12.5px; color: var(--wv-mute, #9AA0B6); text-align: center; }

/* Разговор + контекст. */
.ag-demo-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-client { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ag-client-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wv-mute, #9AA0B6); }
.ag-client-n { font-size: 16px; font-weight: 700; }
.ag-client-req { font-size: 12px; color: var(--wv-mute, #9AA0B6); }
.ag-bubble { padding: 14px 16px; border-radius: 4px 16px 16px 16px; font-size: 14.5px; line-height: 1.5;
  color: #eaf1ff; background: linear-gradient(135deg, rgba(77,166,255,.16), rgba(168,85,247,.16));
  border: 1px solid rgba(127,178,255,.24); }
.ag-ctx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ag-ctx { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--wv-line, rgba(255,255,255,.07)); }
.ag-ctx.wide { grid-column: 1 / -1; }
.ag-ctx-l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--wv-mute, #9AA0B6); }
.ag-ctx-v { font-size: 15px; font-weight: 700; } .ag-ctx-v.hi { color: #57D9A3; }
.ag-demo-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 4px; }
.ag-ok { font-size: 13.5px; font-weight: 700; color: #57D9A3; }
.ag-next { font-size: 13.5px; font-weight: 700; color: #9CC4FF; }

/* ------- Секции ------- */
.ag-sec { max-width: 880px; margin: 0 auto; padding: 46px 0 6px; }
.ag-h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; text-align: center; margin: 0 0 10px; }
.ag-p { max-width: 620px; margin: 0 auto; font-size: 14.5px; line-height: 1.6; color: var(--wv-mute, #9AA0B6); text-align: center; }
.ag-p.center { text-align: center; }

/* Context Engine — вертикальная архитектура с бегущим светом. */
.ag-engine { max-width: 520px; margin: 26px auto 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.ag-eng-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.ag-src { font-size: 12.5px; padding: 8px 13px; border-radius: 999px; color: #cfe0ff;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.03); }
.ag-eng-beam { width: 2px; height: 30px; position: relative; overflow: hidden; background: rgba(127,178,255,.14); }
.ag-eng-beam span { position: absolute; left: 0; width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, var(--agc1), var(--agc3), transparent); animation: agBeam 1.8s linear infinite; }
@keyframes agBeam { from { top: -40%; } to { top: 100%; } }
.ag-eng-core { padding: 14px 22px; border-radius: 14px; font-weight: 800; letter-spacing: .06em; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, rgba(77,166,255,.9), rgba(168,85,247,.9)); box-shadow: 0 14px 34px rgba(124,108,246,.4); }
.ag-eng-node { padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 13.5px; letter-spacing: .04em;
  border: 1px solid rgba(127,178,255,.3); background: rgba(127,178,255,.08); color: #eaf1ff; }
.ag-eng-action { border-color: rgba(87,217,163,.35); background: rgba(87,217,163,.10); color: #d8ffee; }

/* Сравнение обычный AI vs WEWO. */
.ag-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.ag-cmp { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.02); }
.ag-cmp.wewo { border-color: rgba(127,178,255,.35); background: linear-gradient(180deg, rgba(77,166,255,.08), rgba(168,85,247,.06)); }
.ag-cmp-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wv-mute, #9AA0B6); }
.ag-cmp-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.ag-cmp-chain span { padding: 6px 11px; border-radius: 9px; background: rgba(255,255,255,.05); font-weight: 600; }
.ag-cmp-chain b { color: var(--wv-mute, #9AA0B6); font-weight: 400; }
.ag-cmp.wewo .ag-cmp-chain span { background: rgba(127,178,255,.14); color: #eaf1ff; }

/* Центральная цепочка с бегущим светом. */
.ag-flow2 { position: relative; display: flex; justify-content: space-between; align-items: center;
  max-width: 720px; margin: 8px auto 26px; padding: 0 6px; }
.ag-flow2::before { content: ""; position: absolute; left: 6%; right: 6%; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--agc1), var(--agc2), var(--agc3), var(--agc4)); opacity: .28; border-radius: 2px; }
.ag-flow2::after { content: ""; position: absolute; top: 10px; width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #cfe6ff, transparent); filter: blur(1px);
  animation: agRun 3.4s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes agRun { 0% { left: 4%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
.ag-f2 { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.ag-f2-d { width: 12px; height: 12px; border-radius: 50%; background: #0e1018; border: 2px solid var(--agc1);
  box-shadow: 0 0 12px rgba(77,166,255,.5); }
.ag-f2:nth-child(2) .ag-f2-d { border-color: var(--agc2); }
.ag-f2:nth-child(3) .ag-f2-d { border-color: var(--agc3); }
.ag-f2:nth-child(4) .ag-f2-d { border-color: var(--agc3); }
.ag-f2:nth-child(5) .ag-f2-d { border-color: var(--agc4); }
.ag-f2-t { font-size: 12.5px; font-weight: 600; color: #cfe0ff; text-align: center; }

/* Демо-сценарий. */
.ag-scenario { max-width: 560px; margin: 0 auto; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.02); }
.ag-scn-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ag-scn-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px;
  font-size: 13.5px; line-height: 1.5; color: var(--wv-mute, #cbd2e6); }
.ag-scn-steps li::marker { color: #7Fb2ff; font-weight: 700; }

/* Human handoff. */
.ag-handoff { max-width: 760px; margin: 22px auto 0; text-align: center; }
.ag-ho-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ag-ho-node { padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.03); color: #eaf1ff; }
.ag-ho-node.warn { border-color: rgba(255,180,84,.4); color: #ffd27a; background: rgba(255,180,84,.08); }
.ag-ho-node.hand { border-color: rgba(168,85,247,.5); color: #e6ccff; background: rgba(168,85,247,.12); font-weight: 800; }
.ag-ho-chain b { color: var(--wv-mute, #9AA0B6); }
.ag-ho-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ag-tag { font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); color: var(--wv-mute, #cbd2e6); }
.ag-tag.hot { color: #ffb0b0; border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.ag-tag.act { color: #9CC4FF; border-color: rgba(127,178,255,.4); background: rgba(127,178,255,.1); }

/* Карточки цифровых сотрудников. */
.ag-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ag-card { position: relative; padding: 22px 20px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  border-radius: 20px; background: linear-gradient(180deg, rgba(25,26,40,.6), rgba(16,17,26,.5));
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.ag-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--agc1), var(--agc3), var(--agc4)); opacity: 0; transition: opacity .22s ease; }
.ag-card:hover { border-color: rgba(127,178,255,.4); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.4), 0 0 40px rgba(77,166,255,.12); }
.ag-card:hover::after { opacity: 1; }
.ag-card-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  color: #e6ecff; background: linear-gradient(135deg, rgba(77,166,255,.2), rgba(168,85,247,.2)); }
.ag-card-ic svg { width: 24px; height: 24px; }
.ag-card-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #7Fb2ff; }
.ag-card-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 6px; }
.ag-card-d { font-size: 13.5px; line-height: 1.5; color: var(--wv-mute, #9AA0B6); }
.ag-soon { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #ffd9a0; padding: 3px 9px; border-radius: 999px; background: rgba(255,180,84,.14); border: 1px solid rgba(255,180,84,.3); }

/* Future workforce. */
.ag-future { text-align: center; }
.ag-stages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 18px; }
.ag-stage { display: flex; flex-direction: column; gap: 3px; padding: 14px 20px; border-radius: 16px;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.02); min-width: 150px; }
.ag-stage.on { border-color: rgba(127,178,255,.5); background: linear-gradient(180deg, rgba(77,166,255,.1), rgba(168,85,247,.08)); box-shadow: 0 0 30px rgba(77,166,255,.16); }
.ag-stage-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--wv-mute, #9AA0B6); }
.ag-stage-v { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ag-stage-arr { color: var(--wv-mute, #9AA0B6); font-size: 18px; }

/* ============================ ПРОФИЛЬ ============================== */
.pf-top { margin-bottom: 16px; }
.pf-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.pf-sub { font-size: 14px; color: var(--wv-mute, #9AA0B6); margin: 0; }
.pf-load { padding: 40px 0; text-align: center; color: var(--wv-mute, #9AA0B6); }

.pf-card {
  margin-bottom: 12px; padding: 15px 18px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  border-radius: 16px; background: linear-gradient(180deg, rgba(25,26,40,.55), rgba(18,19,31,.4));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pf-h { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.pf-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .05); }
.pf-row:first-of-type { border-top: 0; }
.pf-l { font-size: 13.5px; color: var(--wv-mute, #9AA0B6); }
.pf-v { font-size: 13.5px; font-weight: 500; text-align: right; min-width: 0; }
.pf-empty { color: var(--wv-mute, #9AA0B6); font-style: italic; font-weight: 400; }
/* Тонкая честная подпись вместо кнопок-обманок */
.pf-hint { font-size: 12.5px; line-height: 1.5; color: var(--wv-mute, #8B90A8); margin: 8px 0 0; }

.pf-id { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pf-av { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #4DA6FF, #A855F7); color: #fff; font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(77, 166, 255, .35); }
.pf-id-n { font-size: 18px; font-weight: 700; }
.pf-id-s { font-size: 13px; color: var(--wv-mute, #9AA0B6); }

.pf-note { font-size: 12.5px; line-height: 1.5; color: var(--wv-mute, #9AA0B6); margin: 0 0 8px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pf-btn {
  min-height: 38px; padding: 0 16px; border: 1px solid var(--wv-line-2, rgba(255,255,255,.18));
  border-radius: 11px; cursor: pointer; background: rgba(127, 178, 255, .10); color: #cfe0ff;
  font: inherit; font-size: 13.5px; font-weight: 600; margin-top: 12px;
  transition: background .16s ease, border-color .16s ease;
}
.pf-btn:hover { background: rgba(127, 178, 255, .18); }
.pf-btn.ghost { background: transparent; color: var(--wv-mute, #9AA0B6); }
.pf-btn.danger { background: rgba(255, 107, 107, .10); color: #ff9a9a; border-color: rgba(255,107,107,.3); }
.pf-actions .pf-btn { margin-top: 0; }
/* Неактивный вид (честно: функция ещё не готова) — выглядит недоступной */
.pf-btn.is-soon { display: inline-flex; align-items: center; gap: 8px; cursor: default;
  background: transparent; color: var(--wv-mute, #8B90A8); border-color: rgba(255,255,255,.08); }
.pf-btn.is-soon:hover { background: transparent; }
.pf-soon { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wv-mute, #8B90A8); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: 2px 7px; }

.pf-langs { display: flex; gap: 10px; }
.pf-lang { min-height: 38px; padding: 0 16px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  border-radius: 11px; background: none; color: var(--wv-mute, #9AA0B6); font: inherit; font-weight: 600; cursor: pointer; }
.pf-lang.is-on { border-color: rgba(127, 178, 255, .5); color: #cfe0ff; background: rgba(127, 178, 255, .10); }
.pf-lang.is-soon { display: inline-flex; align-items: center; gap: 8px; cursor: default; opacity: .8; }
.pf-lang[disabled] { cursor: default; }

/* Настройки уведомлений — сетка категории × каналы. */
.pf-np { margin-top: 6px; }
.pf-np-row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
.pf-np-head { color: var(--wv-mute, #9AA0B6); font-size: 12px; border-top: 0; text-align: center; }
.pf-np-head span:first-child { text-align: left; }
.pf-np-cat { font-size: 13.5px; font-weight: 500; }
.pf-np-row > span { text-align: center; }
.pf-np-cb { width: 18px; height: 18px; accent-color: #4DA6FF; cursor: pointer; }
.pf-np-cb:disabled { cursor: default; opacity: .4; }

/* Подключения — компактный список-роадмап, без кнопок-обманок. */
.pf-conns { margin-top: 2px; }
.pf-conn { display: flex; align-items: center; gap: 12px; padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.05); }
.pf-conn:first-of-type { border-top: 0; }
.pf-conn-n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; }
.pf-conn-s { font-size: 12px; font-weight: 600; }
.pf-conn-s.ok { color: #57D9A3; }
.pf-conn-s.warn { color: #FFB454; }
.pf-conn-s.off { color: var(--wv-mute, #8B90A8); font-weight: 500; }

/* ============================= ТАРИФЫ ============================== */
.pr-top { text-align: center; margin-bottom: 26px; }
.pr-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.pr-sub { font-size: 14px; color: var(--wv-mute, #9AA0B6); margin: 0; }
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 24px 20px;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); border-radius: 20px;
  background: linear-gradient(180deg, rgba(25,26,40,.55), rgba(18,19,31,.4)); }
.pr-card.accent { border-color: rgba(127, 178, 255, .5); box-shadow: 0 20px 50px rgba(77,166,255,.14); }
.pr-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #4DA6FF, #A855F7); }
.pr-name { font-size: 15px; font-weight: 800; letter-spacing: .06em; color: #cfe0ff; }
.pr-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 16px; }
.pr-feats { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pr-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.4; color: var(--wv-text, #EAECF5); }
.pr-feats svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #57D9A3; }
.pr-btn { min-height: 46px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  color: #cfe0ff; background: rgba(127,178,255,.12); border: 1px solid rgba(127,178,255,.3); }
.pr-card.accent .pr-btn { background: linear-gradient(135deg, #4DA6FF, #A855F7); color: #fff; border: 0; }

/* ======================== ЦЕНТР УВЕДОМЛЕНИЙ ======================== */
.notif-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--wv-text, #EAECF5);
  cursor: pointer; margin-right: 10px; }
.notif-bell:hover { background: rgba(255,255,255,.10); }
.notif-bell svg { width: 20px; height: 20px; }
.notif-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; background: #FF5B5B; color: #fff;
  font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px rgba(10,11,20,.9); }

.notif-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); }
.notif-overlay[hidden] { display: none; }
.notif-panel[hidden] { display: none; }
.notif-panel { position: fixed; top: 0; right: 0; z-index: 210; width: min(400px, 92vw); height: 100%;
  display: flex; flex-direction: column; background: rgba(14, 15, 24, .98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid var(--wv-line, rgba(255,255,255,.08)); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  padding-top: env(safe-area-inset-top, 0px); }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.notif-h-t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.notif-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06);
  color: var(--wv-text, #EAECF5); font-size: 16px; cursor: pointer; }
.notif-tabs { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.notif-tabs::-webkit-scrollbar { display: none; }
.notif-tab { flex: 0 0 auto; min-height: 34px; padding: 0 14px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  border-radius: 999px; background: none; color: var(--wv-mute, #9AA0B6); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.notif-tab.is-on { color: #cfe0ff; border-color: rgba(127,178,255,.5); background: rgba(127,178,255,.10); }
.notif-list { flex: 1; overflow-y: auto; padding: 8px 16px calc(env(safe-area-inset-bottom,0px) + 20px); display: flex; flex-direction: column; gap: 10px; }
.notif-empty { padding: 40px 10px; text-align: center; color: var(--wv-mute, #9AA0B6); font-size: 14px; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  border-radius: 14px; background: rgba(255,255,255,.02); }
.notif-dot { width: 8px; height: 8px; flex: none; margin-top: 6px; border-radius: 50%; background: #4DA6FF; }
.notif-item.lvl-critical .notif-dot { background: #FF6B6B; }
.notif-item.lvl-warning .notif-dot { background: #FFB454; }
.notif-item.lvl-opportunity .notif-dot { background: #57D9A3; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.notif-t { font-size: 14px; line-height: 1.4; }
.notif-go { align-self: flex-start; min-height: 34px; padding: 0 14px; border: 1px solid rgba(127,178,255,.35);
  border-radius: 10px; background: rgba(127,178,255,.12); color: #cfe0ff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.notif-go:hover { background: rgba(127,178,255,.2); }

/* ============================== ТОСТ =============================== */
.wewo-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 300;
  padding: 12px 20px; border-radius: 14px; background: rgba(20, 22, 34, .98); color: #EAF1FF;
  border: 1px solid var(--wv-line-2, rgba(255,255,255,.18)); box-shadow: 0 18px 44px rgba(0,0,0,.5);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; max-width: 88vw; text-align: center; }
.wewo-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================== АДАПТИВ ============================= */
@media (max-width: 900px) {
  .ag-cards { grid-template-columns: repeat(2, 1fr); }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ag-wrap, .pf-wrap, .pr-wrap { padding: 20px 16px 40px; }
  .ag-cards { grid-template-columns: 1fr; }
  .pr-grid { grid-template-columns: 1fr; }
  /* Демо-панель: орб над разговором. */
  .ag-demo-body { grid-template-columns: 1fr; padding: 20px 16px; gap: 18px; }
  .ag-orb-wrap { flex-direction: row; justify-content: flex-start; gap: 14px; }
  .ag-orb { width: 84px; height: 84px; } .ag-orb-core { width: 48px; height: 48px; }
  .ag-orb-label { text-align: left; }
  .ag-compare { grid-template-columns: 1fr; }
  .ag-hero { padding: 26px 0 22px; }
  .ag-sec { padding: 34px 0 4px; }
  /* Цепочка света — прокрутка по горизонтали, без переполнения страницы. */
  .ag-flow2 { overflow-x: auto; gap: 14px; justify-content: flex-start; }
  .ag-flow2 > .ag-f2 { min-width: 84px; }
  .ag-stages { gap: 8px; } .ag-stage { min-width: 0; flex: 1 1 40%; }
  .pf-row { flex-direction: column; gap: 2px; }
  .pf-v { text-align: left; }
  .notif-panel { width: 100%; }
  /* Новым разделам — отступ снизу под таб-бар. */
  #agentsView, #profileView, #pricingView {
    padding-bottom: calc(var(--tabbar-h, 58px) + env(safe-area-inset-bottom, 0px) + 12px);
  }
}
/* Экономим ресурсы на движении. */
@media (prefers-reduced-motion: reduce) {
  .ag-orb-core, .ag-orb-ring, .ag-eng-beam span, .ag-flow2::after, .ag-wave i { animation: none !important; }
}
body.in-telegram #agentsView,
body.in-telegram #profileView,
body.in-telegram #pricingView {
  padding-top: var(--tg-top, 0px);
  padding-bottom: calc(var(--tabbar-h, 58px) + env(safe-area-inset-bottom, 0px) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  .ag-step, .wewo-toast { transition: none; }
}

/* ===================== AI AGENTS — LEVEL 2 (доп. компоненты) ===================== */

/* Industry switcher */
.ag-switch-wrap { text-align: center; margin: 6px auto 22px; }
.ag-switch-l { display: block; font-size: 13px; color: var(--wv-mute, #9AA0B6); margin-bottom: 12px; }
.ag-switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--wv-line, rgba(255,255,255,.08)); }
.ag-sw { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: none;
  color: var(--wv-mute, #9AA0B6); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s ease, color .16s ease; }
.ag-sw:hover { color: #cfe0ff; }
.ag-sw.is-on { background: linear-gradient(135deg, #4DA6FF, #A855F7); color: #fff; box-shadow: 0 8px 22px rgba(124,108,246,.35); }

/* «Живой» пошаговый процесс внутри demo */
.ag-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.06); }
.ag-step2 { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  opacity: .4; transition: opacity .4s ease; }
.ag-step2-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--wv-line, rgba(255,255,255,.1)); font-size: 12px; font-weight: 700;
  color: var(--wv-mute, #9AA0B6); background: rgba(255,255,255,.03); transition: all .4s ease; }
.ag-step2-t { font-size: 11px; line-height: 1.3; color: var(--wv-mute, #9AA0B6); }
.ag-step2.done { opacity: .85; }
.ag-step2.done .ag-step2-n { border-color: rgba(87,217,163,.5); color: #57D9A3; }
.ag-step2.now { opacity: 1; }
.ag-step2.now .ag-step2-n { border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #4DA6FF, #A855F7); box-shadow: 0 0 16px rgba(77,166,255,.6); }
.ag-step2.now .ag-step2-t { color: #eaf1ff; }

/* Context Engine — радиальное ядро с источниками вокруг */
.ag-radial { position: relative; width: min(440px, 88vw); height: min(440px, 88vw); margin: 26px auto 10px; }
.ag-radial::before { content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(77,166,255,.35), transparent 40%, rgba(168,85,247,.35), transparent 80%);
  animation: agRotate 14s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); opacity: .8; }
@keyframes agRotate { to { transform: rotate(360deg); } }
.ag-radial-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; font-size: 18px; font-weight: 800;
  letter-spacing: .04em; color: #fff;
  background: radial-gradient(circle at 35% 30%, #bfe0ff, #7C6CF6 60%, #A855F7);
  box-shadow: 0 0 50px rgba(124,108,246,.5), inset 0 0 30px rgba(255,255,255,.16); }
.ag-radial-core small { display: block; font-size: 9px; letter-spacing: .14em; opacity: .9; margin-top: 3px; }
.ag-radial .ag-src { position: absolute; animation: agPulse 3s ease-in-out infinite; }
.ag-radial .o1 { top: 0; left: 50%; transform: translate(-50%,0); }
.ag-radial .o2 { top: 14%; right: 2%; animation-delay: .3s; }
.ag-radial .o3 { top: 50%; right: 0; transform: translate(0,-50%); animation-delay: .6s; }
.ag-radial .o4 { bottom: 14%; right: 2%; animation-delay: .9s; }
.ag-radial .o5 { bottom: 0; left: 50%; transform: translate(-50%,0); animation-delay: 1.2s; }
.ag-radial .o6 { bottom: 14%; left: 2%; animation-delay: 1.5s; }
.ag-radial .o7 { top: 50%; left: 0; transform: translate(0,-50%); animation-delay: 1.8s; }
.ag-radial .o8 { top: 14%; left: 2%; animation-delay: 2.1s; }
@keyframes agPulse { 0%,100% { border-color: var(--wv-line, rgba(255,255,255,.08)); box-shadow: none; }
  50% { border-color: rgba(127,178,255,.5); box-shadow: 0 0 16px rgba(77,166,255,.25); } }
.ag-eng-tail { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.ag-eng-arr { color: var(--wv-mute, #9AA0B6); font-size: 16px; }

/* Context Memory */
.ag-mem { max-width: 460px; margin: 22px auto 0; }
.ag-mem-card { position: relative; padding: 22px; border-radius: 20px;
  border: 1px solid rgba(127,178,255,.22); background: linear-gradient(180deg, rgba(25,26,40,.7), rgba(16,17,26,.6)); }
.ag-mem-card .ag-demo-badge.sm { position: absolute; top: 16px; right: 16px; }
.ag-mem-n { font-size: 18px; font-weight: 800; margin-bottom: 14px; padding-right: 60px; }
.ag-mem-rows { display: flex; flex-direction: column; gap: 9px; }
.ag-mem-r { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ag-mem-r span { color: var(--wv-mute, #9AA0B6); } .ag-mem-r b { font-weight: 600; }
.ag-mem-next { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; gap: 12px; }
.ag-mem-next span { color: var(--wv-mute, #9AA0B6); font-size: 13px; } .ag-mem-next b { color: #9CC4FF; }

/* One request → multiple actions */
.ag-chain { max-width: 560px; margin: 22px auto 0; padding: 20px 22px; border-radius: 18px;
  border: 1px solid var(--wv-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.02); }
.ag-chain-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.ag-chain-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; color: var(--wv-mute, #cbd2e6); }
.ag-chain-steps li::marker { color: #7Fb2ff; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .ag-chain-steps li { animation: agRise .5s ease both; }
  .ag-chain-steps li:nth-child(1){animation-delay:.05s} .ag-chain-steps li:nth-child(2){animation-delay:.15s}
  .ag-chain-steps li:nth-child(3){animation-delay:.25s} .ag-chain-steps li:nth-child(4){animation-delay:.35s}
  .ag-chain-steps li:nth-child(5){animation-delay:.45s} .ag-chain-steps li:nth-child(6){animation-delay:.55s}
  .ag-chain-steps li:nth-child(7){animation-delay:.65s}
}
@keyframes agRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Human handoff + HOT LEAD card */
.ag-handoff2 { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: center;
  max-width: 820px; margin: 24px auto 0; }
.ag-ho-flow { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ag-ho-flow b { transform: rotate(90deg); color: var(--wv-mute, #9AA0B6); }
.ag-hotlead { position: relative; padding: 22px; border-radius: 20px; border: 1px solid rgba(255,107,107,.32);
  background: linear-gradient(180deg, rgba(40,20,26,.7), rgba(20,14,18,.6)); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.ag-hot-badge { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #ffb0b0; }
.ag-hot-n { font-size: 19px; font-weight: 800; margin: 6px 0 12px; }
.ag-hot-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ag-hot-r { display: flex; justify-content: space-between; font-size: 14px; }
.ag-hot-r span { color: var(--wv-mute, #9AA0B6); } .ag-hot-r b { font-weight: 700; }
.ag-hot-note { font-size: 13px; color: #ffd27a; margin-bottom: 14px; }
.ag-hot-btn { width: 100%; min-height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #FF6B6B, #A855F7); color: #fff; font: inherit; font-weight: 700; }

/* Карточки-сотрудники: identity + role + единый мягкий статус */
.ag-card-role { font-size: 12.5px; color: #9CC4FF; margin-bottom: 8px; }
.ag-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.ag-card-st { font-size: 11px; letter-spacing: .02em; color: var(--wv-mute, #9AA0B6); }

/* Финальный блок AI Workforce */
.ag-wf { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.ag-wf-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ag-wf-roles span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--wv-line, rgba(255,255,255,.08));
  background: rgba(255,255,255,.03); font-size: 13.5px; font-weight: 600; }
.ag-wf-arr { color: var(--wv-mute, #9AA0B6); font-size: 20px; }
.ag-wf-core { padding: 16px 30px; border-radius: 16px; font-size: 18px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, #4DA6FF, #7C6CF6, #A855F7); box-shadow: 0 18px 44px rgba(124,108,246,.4); }

/* Мобайл (Level 2) */
@media (max-width: 600px) {
  .ag-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px 18px; }
  .ag-steps .ag-step2 { scroll-snap-align: start; }
  .ag-handoff2 { grid-template-columns: 1fr; }
  .ag-radial { width: min(340px, 82vw); height: min(340px, 82vw); }
  .ag-radial-core { width: 118px; height: 118px; font-size: 15px; }
  .ag-radial .ag-src { font-size: 11px; padding: 6px 9px; }
  .ag-switch { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-radial::before, .ag-radial .ag-src { animation: none !important; }
}
