#c-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    padding: 14px 50px;
    cursor: pointer;
    background: #201f35; /* статичный фон кнопки */
    color: #ffffff;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    min-width: 320px;
    border-radius: 9999px; /* идеально круглая */
    z-index: 0;
    overflow: hidden;
    border: none;
}

/* Анимированная рамка */
#c-btn::before {
    content: "";
    position: absolute;
    inset: 0; /* растягиваем по всем сторонам */
    border-radius: inherit;
    padding: 3px; /* толщина рамки целыми пикселями */
    background: linear-gradient(
        120deg,
        #d946ef,
        #a855f7,
        #22d3ee,
        #a855f7,
        #d946ef
    );
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask: 
        linear-gradient(#000 0 0) content-box, 
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}

/* Внутренний слой, чтобы фон был виден, а рамка — только градиент */
#c-btn::after {
    content: "";
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    right: 2.5px;
    bottom: 2.5px;
    border-radius: inherit;
    background: #201f35; /* повторяем фон кнопки */
    z-index: -1;
}

/* Hover — усиление свечения */
#c-btn:hover::before {
    filter: brightness(1.2);
}

/* Active */
#c-btn:active {
    transform: translateY(1px);
}

/* Иконка слева */
#c-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

/* Текст */
#c-btn .text {
    white-space: nowrap;
}

/* Анимация рамки */
@keyframes borderFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
