/*
 * Avalist Theme — Home (front-page) styles.
 *
 * Порт з _source/html/Avalist Home.html.
 * Усі бренд-значення підмінено на --av-* токени з av-tokens.css
 * (fallback-значення збережені для сумісності).
 * Всі класи мають префікс av-.
 *
 * @package Avalist_Theme
 */

/* ─── Локальні змінні (fallback якщо av-tokens.css не завантажився) ─── */
:root {
  --av-bg:         #0b1a07;
  --av-bg2:        #0e2208;
  --av-card:       #112208;
  --av-card-2:     rgba(255,255,255,.04);
  --av-border:     rgba(255,255,255,.08);
  --av-border-green: rgba(115,174,32,.28);
  --av-text:       #fff;
  --av-text-body:  rgba(255,255,255,.65);
  --av-text-muted: rgba(255,255,255,.38);
  --av-green:      #73AE20;
  --av-green-hover:#5b8a18;
  --av-green-soft: rgba(115,174,32,.15);
  --av-green-dim:  #3d6b1e;
  --av-sidebar-width: 224px;
  --av-radius-md:  10px;
  --av-accent-glow: rgba(115,174,32,.32);
  --av-accent-mid:  rgba(115,174,32,.14);
}

html { scroll-behavior: auto; }
body {
  font-family: var(--av-font, 'Exo 2', sans-serif);
  background: var(--av-bg);
  color: var(--av-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
avalist-header { display: block; height: 52px; min-height: 52px; position: relative; z-index: 10; }

/* ═══ INTRO ═══ */
.av-intro {
  min-height: calc(100vh - 52px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  position: relative;
  background: var(--av-bg);
  border-bottom: 1px solid var(--av-border);
  overflow: hidden;
}
.av-intro::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(115,174,32,.12) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  pointer-events: none;
}
.av-intro-inner {
  position: relative; z-index: 1;
  max-width: 760px; text-align: center;
}

/* ─── Intro Planet ─── */
.av-intro-planet {
  position: relative; width: 240px; height: 240px;
  margin: 0 auto 36px;
  display: flex; align-items: center; justify-content: center;
}
.av-ip-glow {
  position: absolute; inset: 40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(115,174,32,.45) 0%, rgba(115,174,32,.12) 50%, transparent 75%);
  animation: avIpGlow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes avIpGlow { 0%,100% { opacity:.55; transform:scale(.88); } 50% { opacity:1; transform:scale(1.1); } }
.av-ip-logo {
  width: 92px; height: 92px; object-fit: contain;
  position: relative; z-index: 5;
  filter: drop-shadow(0 0 20px rgba(115,174,32,.55));
  animation: avIpFloat 5s ease-in-out infinite;
}
@keyframes avIpFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
.av-ip-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.av-ip-r1 { inset: -4px;  border: 1px dashed rgba(115,174,32,.42); animation: avIpSpin 22s linear infinite; }
.av-ip-r2 { inset: -44px; border: 1px solid rgba(115,174,32,.2);   animation: avIpSpinRev 36s linear infinite; }
.av-ip-r3 { inset: -88px; border: 1px dashed rgba(115,174,32,.12); animation: avIpSpin 60s linear infinite; }
@keyframes avIpSpin    { to { transform: rotate(360deg);  } }
@keyframes avIpSpinRev { to { transform: rotate(-360deg); } }
.av-ip-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.av-ip-o1 { inset: -4px;  animation: avIpSpinRev 7s linear infinite; }
.av-ip-o2 { inset: -44px; animation: avIpSpin 13s linear infinite; }
.av-ip-o3 { inset: -88px; animation: avIpSpinRev 22s linear infinite; }
.av-ip-orbit .av-ip-dot { position: absolute; border-radius: 50%; }
.av-ip-o1 .av-ip-dot { top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: #9fd43a; box-shadow: 0 0 18px #73AE20, 0 0 32px rgba(115,174,32,.5); }
.av-ip-o2 .av-ip-dot { top: 50%; right: -5px; transform: translateY(-50%); width: 9px; height: 9px; background: var(--av-green); box-shadow: 0 0 12px var(--av-green); }
.av-ip-o3 .av-ip-dot { bottom: -4px; left: 30%; width: 6px; height: 6px; background: rgba(115,174,32,.75); box-shadow: 0 0 10px rgba(115,174,32,.6); }
.av-ip-o3 .av-ip-dot.av-ip-d2 { bottom: auto; top: 25%; left: auto; right: -3px; width: 4px; height: 4px; background: rgba(159,212,58,.7); }

.av-intro-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--av-green); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 30px;
  border: 1px solid var(--av-border-green);
  background: rgba(115,174,32,.08);
}
.av-intro-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--av-green); box-shadow: 0 0 8px var(--av-green); }
.av-intro h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.04;
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 22px;
}
.av-intro h1 em { font-style: normal; color: var(--av-green); position: relative; display: inline-block; }
.av-intro h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--av-green), transparent);
}
.av-intro p { font-size: 17px; line-height: 1.7; color: var(--av-text-body); font-weight: 300; max-width: 560px; margin: 0 auto; }
.av-intro-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--av-text-muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.av-intro-cue svg { animation: avBounce 2s ease-in-out infinite; }
@keyframes avBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ═══ JOURNEY ═══ */
.av-journey-sec { position: relative; height: 430vh; }

/* Приховати Journey-блок на мобільних — анімація scroll-driven не адаптована до малих екранів */
@media (max-width: 768px) {
  .av-journey-sec { display: none; }
}
.av-j-pin {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; background: #090f05;
}
.av-j-bg-r {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(115,174,32,.18) 0%, rgba(115,174,32,.04) 40%, transparent 70%);
  transition: background 1.2s ease;
}
.av-j-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 70%);
}
.av-j-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: visible;
}
.av-j-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 28px 48px 22px; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26,14,6,.92) 0%, transparent 100%);
}
.av-j-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--av-green); margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.av-j-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--av-green); box-shadow: 0 0 8px var(--av-green); }
.av-j-htitle {
  font-size: clamp(26px, 3vw, 42px); font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
}
.av-j-htitle em { font-style: normal; color: var(--av-green, #73AE20); transition: color .8s ease; }
.av-j-cards { position: absolute; inset: 0; z-index: 3; }
.av-j-card {
  position: absolute;
  width: clamp(220px, 20vw, 295px);
  background: rgba(18,8,2,.93);
  border-radius: 14px;
  padding: 18px 20px 15px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212,136,42,.22);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .42s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
  cursor: pointer;
}
.av-j-card-step {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.av-j-card-num-big {
  font-size: 38px; font-weight: 900; line-height: .85; letter-spacing: -.02em;
  opacity: .22; font-variant-numeric: tabular-nums;
}
.av-j-card-icon { font-size: 30px; line-height: 1; margin-bottom: 7px; }
.av-j-card-name {
  font-size: clamp(14px, 1.3vw, 17px); font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; line-height: 1.2; margin-bottom: 2px;
}
.av-j-card-sub {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.72); margin-bottom: 10px; line-height: 1.35;
}
.av-j-card-desc {
  font-size: clamp(13px, 1.2vw, 15px); line-height: 1.7;
  color: rgba(255,255,255,.68); font-weight: 300;
}
.av-j-bot {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-size: clamp(16px, 2vw, 22px); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--av-green, #73AE20); white-space: nowrap; pointer-events: none;
  transition: opacity .3s, color .8s ease;
  text-shadow: 0 0 30px var(--av-accent-glow, rgba(115,174,32,.3));
}

/* ═══ SCROLL SECTION ═══ */
.av-scroll-section {
  position: relative; height: 580vh;
  background: var(--av-bg);
  transition: background 1.1s ease;
}
.av-pinned {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden;
}

/* Background layers */
.av-bg-radial {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(115,174,32,.18) 0%, rgba(115,174,32,.04) 35%, transparent 70%);
  transition: opacity .6s, background 1.1s ease;
}
.av-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.av-bg-noise {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='.5'/></svg>");
}

/* Connecting SVG */
.av-lines-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* Center */
.av-center {
  position: absolute; left: 50%; top: calc(50% + 18px); transform: translate(-50%,-50%);
  width: 200px; height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 5;
}
.av-center-rings { position: absolute; inset: -90px; pointer-events: none; }
.av-center-rings::before,
.av-center-rings::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(115,174,32,.18);
}
.av-center-rings::after { inset: 30px; border-color: rgba(115,174,32,.28); }
.av-center-rings .av-rr3 { position: absolute; inset: 60px; border-radius: 50%; border: 1px dashed rgba(115,174,32,.22); animation: avSpin 60s linear infinite; }
@keyframes avSpin    { to { transform: rotate(360deg);  } }
@keyframes avSpinRev { to { transform: rotate(-360deg); } }
.av-center-rings .av-rr4 { position: absolute; inset: -30px; border-radius: 50%; border: 1px solid rgba(115,174,32,.1); animation: avSpinRev 90s linear infinite; }
.av-center-pulse {
  position: absolute; inset: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(115,174,32,.35) 0%, transparent 65%);
  animation: avCPulse 4s ease-in-out infinite;
}
@keyframes avLogoCCW  { to { transform: rotate(-360deg); } }
@keyframes avLogoImgCW { to { transform: rotate(360deg); } }
@keyframes avCPulse { 0%,100% { transform:scale(.9); opacity:.5; } 50% { transform:scale(1.15); opacity:.9; } }
.av-center-logo {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(115,174,32,.05) 60%, transparent 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--av-accent-glow, rgba(115,174,32,.32));
  box-shadow: 0 0 60px rgba(115,174,32,.25), inset 0 0 30px rgba(115,174,32,.08);
  backdrop-filter: blur(4px);
  z-index: 2;
  animation: avLogoCCW 22s linear infinite;
}
.av-center-logo img {
  width: 108px; height: 108px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(115,174,32,.4));
  animation: avLogoImgCW 22s linear infinite;
}
.av-center-label {
  position: absolute; bottom: -58px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  white-space: nowrap; text-align: center;
}
.av-cl-group {
  font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--av-green, #73AE20); transition: color .5s ease;
}
.av-cl-sub {
  font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--av-text-muted);
}
.av-cl-sub::before, .av-cl-sub::after {
  content: ''; display: inline-block; width: 16px; height: 1px;
  background: var(--av-accent-glow, rgba(115,174,32,.32)); vertical-align: middle; margin: 0 8px;
  transition: background .5s ease;
}

/* Tool cards */
.av-orbit { position: absolute; inset: 0; z-index: 3; }
.av-tool-card {
  position: absolute; left: 50%; top: calc(50% + 18px);
  width: clamp(152px, 16vw, 240px);
  background: rgba(14,26,7,.93);
  border: 1px solid rgba(115,174,32,.2);
  border-radius: 11px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .4s ease, box-shadow .4s ease, width .4s cubic-bezier(.4,0,.2,1), padding .4s cubic-bezier(.4,0,.2,1);
}
.av-tool-card.tc-active {
  width: 280px;
  padding: 16px 18px 14px;
  border-color: var(--av-green, #73AE20);
  box-shadow: 0 0 0 2px var(--av-accent-glow, rgba(115,174,32,.32)), 0 0 52px var(--av-accent-mid, rgba(115,174,32,.14)), 0 16px 44px rgba(0,0,0,.65);
  z-index: 10 !important;
  pointer-events: auto;
}
.av-tool-card .tc-row { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.av-tool-card .tc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--av-accent-mid, rgba(115,174,32,.14));
  border: 1px solid var(--av-accent-glow, rgba(115,174,32,.3));
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.av-tool-card.tc-active .tc-icon { width: 44px; height: 44px; border-radius: 10px; font-size: 24px; }
.av-tool-card .tc-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--av-green, #73AE20);
}
.av-tool-card .tc-name { font-size: 14px; font-weight: 700; color: var(--av-text); line-height: 1.25; margin-top: 2px; }
.av-tool-card.tc-active .tc-name { font-size: 15px; margin-top: 3px; line-height: 1.2; }
.av-tool-card .tc-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; line-height: 1.5;
  color: rgba(255,255,255,.52); font-weight: 300; margin-top: 6px;
}
.av-tool-card.tc-active .tc-desc { -webkit-line-clamp: 4; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 8px; }
.av-tc-feats { display: none; list-style: none; margin: 9px 0 0; padding: 0; }
.av-tc-feats li {
  font-size: 10px; color: rgba(255,255,255,.55);
  padding: 2px 0 2px 13px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04); line-height: 1.35;
}
.av-tc-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--av-green, #73AE20); font-size: 10px; }
.av-tc-arrow { display: none; }
.av-tool-card.tc-active .av-tc-feats { display: block; }
.av-tool-card.tc-active .av-tc-arrow {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--av-green); margin-top: 10px; cursor: pointer;
}

/* Active info panel (hidden) */
.av-active-panel { display: none !important; }

/* Background watermark */
.av-bg-watermark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: clamp(140px, 22vw, 320px); font-weight: 900; line-height: .9;
  color: rgba(115,174,32,.05); letter-spacing: .02em; text-transform: uppercase;
  z-index: 0; pointer-events: none; white-space: nowrap;
  transition: opacity .28s ease, transform .28s ease;
  font-family: var(--av-font, 'Exo 2', sans-serif);
  user-select: none;
}

/* Stage top bar */
.av-stage-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 30px 40px 14px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
}
.av-st-num {
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--av-green); white-space: nowrap;
  padding: 7px 14px; border: 1px solid var(--av-border-green);
  border-radius: 30px; background: rgba(115,174,32,.06);
  backdrop-filter: blur(4px);
}
.av-st-mid { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.av-st-title {
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.08;
  letter-spacing: .01em; text-transform: uppercase;
  transition: opacity .22s ease, transform .22s ease;
}
.av-st-title em { font-style: normal; color: var(--av-green); }
.av-st-desc { display: none; transition: opacity .22s ease, transform .22s ease; }
.av-st-count {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--av-text-muted); white-space: nowrap; text-align: right;
  padding: 9px 14px; border: 1px solid var(--av-border);
  border-radius: 30px; background: rgba(255,255,255,.02);
}
.av-st-count strong { color: var(--av-green); font-size: 18px; font-weight: 800; display: inline-block; margin-right: 4px; vertical-align: -2px; font-variant-numeric: tabular-nums; }

/* Stage indicators */
.av-ind {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10px; color: var(--av-text-muted); letter-spacing: .16em;
  font-weight: 700; opacity: .5; transition: all .35s;
  font-variant-numeric: tabular-nums;
}
.av-ind.active { color: var(--av-green, #73AE20); opacity: 1; }
.av-ind.passed { opacity: .7; }
.av-ind-bar {
  width: 38px; height: 3px; background: rgba(255,255,255,.12);
  border-radius: 2px; overflow: hidden; position: relative;
}
.av-ind-bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  background: var(--av-green, #73AE20); width: var(--fill, 0%);
  transition: none;
}
.av-ind.passed .av-ind-bar::after { background: color-mix(in srgb, var(--av-green) 45%, transparent); }
.av-ind-num { font-size: 10px; letter-spacing: .18em; line-height: 1; }

/* Scroll hint */
.av-scroll-hint {
  position: absolute; bottom: 24px; right: 36px; z-index: 4;
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--av-text-muted);
  display: flex; align-items: center; gap: 10px;
  transition: opacity .3s;
}
.av-arrow {
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--av-green));
  position: relative;
}
.av-arrow::after {
  content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 14px;
  background: var(--av-green);
  animation: avScrollLine 1.6s ease-in-out infinite;
}
@keyframes avScrollLine { 0% { transform:translateX(0); opacity:1; } 100% { transform:translateX(20px); opacity:0; } }

/* Bottom bar */
.av-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 40px 16px;
}
.av-indicators { display: flex; gap: 20px; align-items: center; }
.av-ss-ecosystem-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(115,174,32,.65); white-space: nowrap;
}
.av-ss-ecosystem-label::before, .av-ss-ecosystem-label::after {
  content: ''; display: block; height: 1px; width: 44px; flex-shrink: 0;
  background: rgba(115,174,32,.22);
}

/* Ping ripple */
@keyframes avPingRipple { 0% { transform:scale(.8); opacity:.9; } 100% { transform:scale(2.8); opacity:0; } }
.av-center-ping {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(115,174,32,.7); pointer-events: none;
  animation: avPingRipple .9s ease-out forwards;
}

/* Stage number pulse */
@keyframes avStNumPulse {
  0%   { transform:scale(1); box-shadow:0 0 0 0 var(--av-accent-glow, rgba(115,174,32,.32)); }
  40%  { transform:scale(1.07); box-shadow:0 0 0 6px transparent; }
  100% { transform:scale(1); }
}
.av-st-num.pulse { animation: avStNumPulse .42s cubic-bezier(.34,1.4,.64,1); }

/* ══ PAGE (Sidebar + Main) ══ */
.av-page {
  display: grid;
  grid-template-columns: var(--av-sidebar-width, 224px) 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

/* ══ SIDEBAR ══ */
.av-sidebar {
  width: var(--av-sidebar-width, 224px);
  border-right: 1px solid var(--av-border);
  padding: 20px 12px;
  position: sticky; top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  background: var(--av-bg);
  scrollbar-width: thin; scrollbar-color: var(--av-border) transparent;
}
.av-sb-group { margin-bottom: 16px; }
.av-sb-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--av-text-muted); padding: 0 8px; margin-bottom: 7px; display: block;
}
.av-sb-pill {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: 7px; border: none; background: transparent; cursor: pointer;
  font-family: var(--av-font, 'Exo 2', sans-serif); font-size: 13px; font-weight: 500;
  color: var(--av-text-body); text-align: left;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.av-sb-pill:hover {
  background: rgba(255,255,255,.06);
  color: var(--av-text);
  box-shadow: inset 2px 0 0 rgba(115,174,32,.45);
}
.av-sb-pill.active {
  background: var(--av-green-soft, rgba(115,174,32,.15));
  color: var(--av-green); font-weight: 700;
  border-left: 3px solid var(--av-green); padding-left: 7px;
}
.av-sb-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.av-sb-div { height: 1px; background: var(--av-border); margin: 10px 4px; }

/* ══ MAIN ══ */
.av-page .av-main { padding: 24px 28px 60px; min-width: 0; max-width: 1080px; }
.av-breadcrumb { font-size: 12px; color: var(--av-text-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }
.av-bc-current { color: var(--av-text); font-weight: 600; }

/* ══ FEATURED ══ */
.av-featured {
  background: var(--av-card);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md, 10px);
  margin-bottom: 20px;
  overflow: hidden;
}
.av-fc-top { display: grid; grid-template-columns: 1fr 300px; }
.av-fc-left { padding: 26px 30px; border-right: 1px solid var(--av-border); }
.av-fc-eye {
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--av-green); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.av-fc-eye::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--av-green); flex-shrink: 0; }
.av-fc-title { font-size: 24px; font-weight: 800; color: var(--av-text); line-height: 1.2; margin-bottom: 10px; letter-spacing: -.01em; }
.av-fc-desc { font-size: 13px; color: var(--av-text-body); line-height: 1.7; margin-bottom: 16px; }
.av-fc-feats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.av-fc-feat { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--av-text-body); }
.av-fc-feat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--av-green); flex-shrink: 0; margin-top: 6px; }
.av-fc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.av-btn-ps {
  padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  background: var(--av-green); color: #fff;
  border: 1px solid rgba(115,174,32,.3); cursor: pointer;
  font-family: var(--av-font, 'Exo 2', sans-serif);
  transition: background .18s, transform .18s, box-shadow .18s, border-color .18s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  position: relative; overflow: hidden;
}
.av-btn-ps::after {
  content: '';
  position: absolute; top: -10%; left: 0;
  width: 40%; height: 120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  pointer-events: none;
  transform: translateX(-180%) skewX(-20deg);
}
.av-btn-ps:hover {
  background: var(--av-green-hover, #5b8a18);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(115,174,32,.55);
  box-shadow: 0 0 22px rgba(115,174,32,.38), 0 6px 20px rgba(0,0,0,.35);
}
.av-btn-ps:hover::after { animation: av-btn-shimmer .55s ease forwards; }
.av-btn-ps:active { transform: translateY(0) scale(.97) !important; transition-duration: .07s !important; }
.av-btn-gs {
  padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--av-green), var(--av-green));
  background-position: left center;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  color: var(--av-green);
  border: 1px solid var(--av-border-green); cursor: pointer;
  font-family: var(--av-font, 'Exo 2', sans-serif); text-decoration: none;
  position: relative; overflow: hidden;
  transition: background-size .24s cubic-bezier(.4,0,.2,1), border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.av-btn-gs::after {
  content: '';
  position: absolute;
  top: -10%; left: 0;
  width: 40%; height: 120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  pointer-events: none;
  transform: translateX(-180%) skewX(-20deg);
}
.av-btn-gs:hover {
  background-size: 100% 100%;
  border-color: rgba(115,174,32,.65);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(115,174,32,.22), 0 4px 12px rgba(0,0,0,.28);
}
.av-btn-gs:hover::after { animation: av-btn-shimmer .55s ease forwards; }
.av-btn-gs:active { transform: translateY(0) scale(.97) !important; transition-duration: .07s !important; }
.av-fc-right { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(115,174,32,.04); }
.av-fc-stat { background: var(--av-card); border: 1px solid var(--av-border); border-radius: 8px; padding: 12px 14px; }
.av-fc-stat-q { font-size: 12px; color: var(--av-text-body); line-height: 1.45; margin-bottom: 5px; }
.av-fc-stat-a { font-size: 13px; font-weight: 700; color: var(--av-green); line-height: 1.3; }
.av-fc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.av-fc-tag  { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--av-green-soft); color: var(--av-green); border: 1px solid var(--av-border-green); }
.av-fc-tag2 { background: rgba(115,174,32,.08); color: rgba(115,174,32,.7); border-color: rgba(115,174,32,.15); }

/* ══ TOOLS GRID ══ */
.av-tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.av-tc {
  background: var(--av-card);
  border: 1px solid var(--av-border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .18s;
}
.av-tc:hover {
  transform: translateY(-2px);
  border-color: rgba(115,174,32,.42);
  box-shadow: 0 8px 24px rgba(115,174,32,.12), 0 0 0 1px rgba(115,174,32,.16);
  text-decoration: none;
}
.av-tc-icon-box {
  width: 42px; height: 42px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.av-tc-name { font-size: 13px; font-weight: 600; color: var(--av-text); margin-bottom: 5px; line-height: 1.3; }
.av-tc-desc { font-size: 11px; color: var(--av-text-muted); line-height: 1.5; margin-bottom: 10px; }
.av-tc-cat { font-size: 11px; font-weight: 500; color: var(--av-text-muted); }

/* ══ KB SECTION ══ */
.av-kb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.av-kb-sec-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--av-text-muted); }
.av-kb-link { font-size: 13px; color: var(--av-green); text-decoration: none; font-weight: 600; transition: color .15s, opacity .15s; }
.av-kb-link:hover,
.av-kb-link:focus-visible { color: var(--av-green-hover); opacity: .95; text-decoration: none; outline: none; }
.av-kb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.av-kb-card {
  background: var(--av-card); border: 1px solid var(--av-border);
  border-radius: 8px; padding: 16px; transition: border-color .15s, transform .15s, background .15s, box-shadow .15s;
  color: inherit; display: flex; flex-direction: column; min-height: 142px;
}
.av-kb-card:hover,
.av-kb-card:focus-within {
  border-color: rgba(115,174,32,.48);
  background: rgba(115,174,32,.05);
  box-shadow: 0 8px 24px rgba(115,174,32,.1), 0 0 0 1px rgba(115,174,32,.16);
  transform: translateY(-2px);
  outline: none;
}
.av-kb-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--av-green); margin-bottom: 7px; display: flex; align-items: center; gap: 4px; text-decoration: none; width: fit-content; }
.av-kb-cat::before { content: '•'; }
.av-kb-cat:hover,
.av-kb-cat:focus-visible { color: #9ada3a; outline: none; }
.av-kb-title { font-size: 14px; font-weight: 700; color: var(--av-text); margin-bottom: 7px; line-height: 1.35; text-decoration: none; }
.av-kb-title:hover,
.av-kb-title:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: rgba(115,174,32,.7); outline: none; }
.av-kb-excerpt { color: var(--av-text-muted); display: -webkit-box; font-size: 11px; line-height: 1.45; margin-bottom: 12px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.av-kb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--av-text-muted); margin-top: auto; }
.av-kb-tag { padding: 2px 7px; border-radius: 4px; background: rgba(115,174,32,.1); color: var(--av-green); border: 1px solid rgba(115,174,32,.16); font-size: 10px; font-weight: 700; text-decoration: none; }
.av-kb-tag:hover,
.av-kb-tag:focus-visible { background: rgba(115,174,32,.18); border-color: rgba(115,174,32,.48); color: #9ada3a; outline: none; }
.av-lv-b { padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; background: rgba(34,197,94,.1); color: #86efac; }
.av-lv-m { padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; background: rgba(59,130,246,.1); color: #93c5fd; }
.av-lv-p { padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; background: rgba(139,92,246,.1); color: #c4b5fd; }
.av-kb-empty { padding: 32px; text-align: center; color: var(--av-text-muted); font-size: 13px; grid-column: span 3; }

/* ══ KB CATS GRID ══ */
.av-kb-cats-section { padding: 40px 0 0; border-top: 1px solid var(--av-border); margin-top: 40px; }
.av-kb-cats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.av-kb-cats-title { font-size: 17px; font-weight: 800; color: var(--av-text); letter-spacing: -.01em; }
.av-kb-cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.av-kb-cat-card {
  background: var(--av-card); border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md, 10px);
  padding: 16px; cursor: pointer; transition: all .18s;
  text-decoration: none; color: inherit; display: block;
}
.av-kb-cat-card:hover,
.av-kb-cat-card:focus-visible {
  border-color: rgba(115,174,32,.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(115,174,32,.12), 0 0 0 1px rgba(115,174,32,.18);
  background: rgba(17,34,8,.96);
  outline: none;
}
.av-kb-cat-icon { font-size: 22px; margin-bottom: 9px; }
.av-kb-cat-name { font-size: 12px; font-weight: 700; color: var(--av-text); margin-bottom: 3px; }
.av-kb-cat-desc { font-size: 11px; color: var(--av-text-muted); line-height: 1.5; margin-bottom: 8px; }
.av-kb-cat-count { font-size: 11px; color: var(--av-green); font-weight: 600; }

/* ══ TOOL MODAL ══ */
.av-t-modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.av-t-modal-bg.open { opacity: 1; pointer-events: auto; }
.av-t-modal {
  width: 100vw; max-height: 100vh; height: 100vh;
  background: rgba(10,16,6,.98);
  border: none; border-radius: 0;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: none;
  transform: scale(.97) translateY(30px);
  transition: transform .3s cubic-bezier(.34,1.2,.64,1);
}
.av-t-modal-bg.open .av-t-modal { transform: scale(1) translateY(0); }
.av-t-modal-head {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.av-t-modal-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.av-t-modal-info { flex: 1; min-width: 0; }
.av-t-modal-cat { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.av-t-modal-name { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.av-t-modal-sub { font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-top: 4px; opacity: .7; }
.av-t-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 16px; line-height: 1;
  transition: all .18s; flex-shrink: 0;
}
.av-t-modal-close:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  transform: scale(1.08);
}
.av-t-modal-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.av-t-modal-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.65); font-weight: 300; margin-bottom: 20px; }
.av-t-carousel {
  border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.av-t-carousel-track { display: flex; transition: transform .38s cubic-bezier(.4,0,.2,1); }
.av-t-carousel-slide {
  min-width: 100%; height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,.25); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.05);
}
.av-t-carousel-slide svg { opacity: .25; }
.av-t-carousel-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.av-t-car-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 13px; transition: all .18s;
}
.av-t-car-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  transform: scale(1.1);
}
.av-t-car-dots { display: flex; gap: 6px; align-items: center; }
.av-t-car-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer; transition: all .2s;
}
.av-t-car-dot.active { background: var(--av-green, #73AE20); transform: scale(1.3); }

/* ══ LOGIN MODAL ══ */
.av-mo {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 10000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.av-mo.open { display: flex; }
.av-mb {
  background: var(--av-card);
  border: 1px solid var(--av-border-green);
  border-radius: 14px; padding: 38px 44px;
  text-align: center; max-width: 390px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.av-mb img { height: 68px; margin-bottom: 12px; object-fit: contain; }
.av-mb-t { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; font-family: var(--av-font, 'Exo 2', sans-serif); }
.av-mb-s {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(115,174,32,.7); margin-bottom: 16px; font-family: var(--av-font, 'Exo 2', sans-serif);
}
.av-mb-n { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; line-height: 1.65; font-family: var(--av-font, 'Exo 2', sans-serif); }
.av-gb {
  display: flex; align-items: center; gap: 10px;
  margin: 0 auto; padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; background: rgba(255,255,255,.06);
  cursor: pointer; font-size: 14px; font-weight: 500; color: #fff;
  width: 100%; justify-content: center;
  font-family: var(--av-font, 'Exo 2', sans-serif); transition: background .15s;
  text-decoration: none;
}
.av-gb:hover { background: rgba(255,255,255,.12); }
.av-mb-f { font-size: 12px; color: rgba(255,255,255,.18); margin-top: 16px; font-family: var(--av-font, 'Exo 2', sans-serif); }

/* FC animation */
@keyframes avFcIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.av-fc-anim { animation: avFcIn .22s ease; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1200px) {
  .av-tools-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 980px) {
  .av-stage-top { padding: 18px 24px 12px; grid-template-columns: auto 1fr; gap: 14px; }
  .av-st-count { grid-column: 1 / -1; text-align: left; justify-self: start; font-size: 10px; padding: 6px 12px; }
  .av-tool-card { width: clamp(140px, 15vw, 220px); }
  .av-indicators { gap: 10px; }
  .av-ind-bar { width: 30px; }
  .av-scroll-hint { display: none; }
}
@media (max-width: 720px) {
  .av-stage-top { padding: 14px 18px 10px; }
  .av-st-title { font-size: 18px; }
  .av-st-desc { display: none; }
  .av-center { width: 160px; height: 160px; }
  .av-center-logo { width: 110px; height: 110px; }
  .av-center-logo img { width: 74px; height: 74px; }
  .av-tool-card { width: clamp(128px, 14vw, 190px); padding: 8px 10px; }
  .av-tool-card .tc-desc { display: none; }
  .av-indicators { gap: 8px; }
  .av-ind-num { display: none; }
  .av-ind-bar { width: 24px; }
  .av-page { grid-template-columns: 1fr; }
  .av-sidebar { display: none; }
  .av-fc-top { grid-template-columns: 1fr; }
  .av-fc-right { display: none; }
  .av-tools-grid { grid-template-columns: repeat(2,1fr); }
  .av-kb-cats-grid { grid-template-columns: repeat(2,1fr); }
  .av-kb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .av-j-header { padding: 20px 24px 16px; }
  .av-j-card { padding: 14px 15px 12px; }
}
