/* Ensure stacking order is correct */
#particleGrid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#daoGraph {
    overflow: visible !important;
    position: relative;
    z-index: 2;
    isolation: isolate;
    height: 400px !important;
}


#responseMsg {
    min-height: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#responseMsg:not(:empty) {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#responseMsg strong {
    color: #f87171;
}

.grecaptcha-badge {
    position: fixed !important;
    bottom: 15px !important;
    right: 35px !important;
    z-index: 1 !important;
    transform: scale(0.9);
    transform-origin: bottom right;
}

#auditLog {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.3;
    word-break: break-word;
    white-space: pre-wrap;
}

.tab-btn.active {
    opacity: 0.8;
    transform: scale(1.05);
}


@keyframes shineMove {
    0% {
        transform: translate3d(-3%, -2%, 0) rotate(1.5deg);
        opacity: 0.22;
    }

    50% {
        transform: translate3d(4%, 3%, 0) rotate(2deg);
        opacity: 0.28;
    }

    100% {
        transform: translate3d(-2%, 1%, 0) rotate(1.2deg);
        opacity: 0.21;
    }
}

/**/
.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.acc-item {
    position: relative;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
    transition: border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}

.acc-item.open {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
}

.acc-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.acc-icon {
    transition: transform .3s ease;
}

.acc-item.open .acc-icon {
    transform: rotate(180deg);
    color: #ff007c;
}

.acc-btn span {
    background: none;
    color: #e2e8f0;
    transition: color .3s ease, background .3s ease;
}

.acc-btn:hover span {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #ff007c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.acc-item.open .acc-btn span {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #ff007c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

/* Минимально: acc-panel скрыт, overflow hidden чтобы GSAP резал содержимое */
.acc-panel {
    position: relative;
    overflow: hidden;
    /* важно: hidden чтобы не вылазило */
    height: 0;
    /* стартовая высота */
    opacity: 0;
    will-change: height, opacity, transform;
}

/* когда открыт, мы в JS поставим height: auto после анимации */
.acc-item.open .acc-panel {
    /* не задаём max-height/transition здесь — JS управляет */
}

.acc-content {
    padding: 0 1.5rem 1rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    word-break: break-word;
}


/*
    .accordion {
      max-width: 800px;
      margin: 0 auto;
    }

    .acc-item {
      border-radius: 12px;
      background: rgba(17, 24, 39, 0.85);
      margin-bottom: 16px;
      overflow: hidden;
      position: relative;
      box-shadow: 0 0 5px rgba(14, 165, 233, 0.2);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .acc-item:hover {
      box-shadow: 0 0 5px rgba(14, 165, 233, 0.4);
      transform: translateY(-2px);
    }

    .acc-btn {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 1rem 1.5rem;
      background: transparent;
      border: none;
      color: #e2e8f0;
      font-family: 'Manrope', sans-serif;
      font-size: clamp(1rem, 2vw, 1.25rem);
      cursor: pointer;
      text-align: left;
      transition: color 0.25s ease;
    }

    .acc-btn:hover span {
      background: linear-gradient(90deg, #0ea5e9, #ff007c);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .acc-icon {
      transition: transform 0.3s ease, color 0.3s ease;
      color: #38bdf8;
    }

    .acc-item.open .acc-icon {
      transform: rotate(180deg);
      color: #ff007c;
    }

    .acc-btn span {
      background: none;
      color: #e2e8f0;
      transition: color .3s ease, background .3s ease;
    }

    .acc-item.open .acc-btn span {
      background: linear-gradient(90deg, #0ea5e9, #38bdf8, #ff007c);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
    }

    .acc-panel {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-8px);
      transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    }

    .acc-item.open .acc-panel {
      max-height: 500px;
      opacity: 1;
      transform: translateY(0);
    }

    .acc-content {
      padding: 1rem 1.5rem;
      color: #94a3b8;
      font-family: 'Inter', sans-serif;
      line-height: 1.6;
    }*/

/* По умолчанию — горизонтальная анимация */
.animated-arrow-container {
    animation: dataFlowHorizontal 2.5s linear infinite;
}

.animated-arrow-container svg {
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* Мобильная версия — вертикальная анимация */
@media (max-width: 768px) {
    .animated-arrow-container {
        animation: dataFlowVertical 2.5s linear infinite;
    }

    .animated-arrow-container svg {
        transform: rotate(90deg);
        /* стрелка повернута вниз */
    }
}

/* Пример анимаций */
@keyframes dataFlowHorizontal {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes dataFlowVertical {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}


@keyframes dataFlowHorizontal {
    0% {
        opacity: 0.4;
        transform: translateX(-20px);
    }

    50% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0.4;
        transform: translateX(20px);
    }
}

#holderToggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.25rem;
    overflow: hidden;
}

#holderToggle .slider-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    /* немного шире */
    border-radius: 9999px;
    background: var(--accent-cyan);
    transition: transform 0.35s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    z-index: 1;
}

/* идеальный выезд */
#holderToggle.active-left .slider-bg {
    transform: translateX(0);
}

#holderToggle.active-right .slider-bg {
    transform: translateX(calc(100% + 1px));
}


#holderToggle .toggle-btn {
    position: relative;
    z-index: 2;
    flex: 1 1 50%;
    text-align: center;
    border-radius: 9999px;
    transition: color 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

#holderToggle.active-left [data-mode="off"],
#holderToggle.active-right [data-mode="on"] {
    color: #fff;
    font-weight: 600;
}

#holderToggle.active-left [data-mode="on"],
#holderToggle.active-right [data-mode="off"] {
    color: var(--color-muted);
}

#glowLight {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    will-change: transform, opacity;
    animation: glowFloat 2s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes glowFloat {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.55;
        filter: blur(60px) drop-shadow(0 0 18px rgba(0, 255, 200, 0.15));
    }

    25% {
        transform: translate(-50%, 8px);
        opacity: 0.65;
    }

    50% {
        transform: translate(-50%, 40px);
        opacity: 0.6;
        filter: blur(70px) drop-shadow(0 0 30px rgba(0, 255, 200, 0.25));
    }

    75% {
        transform: translate(-50%, 8px);
        opacity: 0.62;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    #glowLight {
        animation: none;
    }
}