.bots-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.bots-filter_name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0;
}

.bots-filter_active > a {
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
}

.bots-filter_name > li > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.bots-add > button {

    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bots-filter_checkbox {
    display: flex;
    gap: 24px;
    align-items: center;
}
.bots-filter_checkbox > label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bots-filter_checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 50%;
    outline: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bots-filter_checkbox input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}
.bots-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.bots-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bots-item {
    height: min-content;
    position: relative;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, rgba(69, 46, 107, 0.4) 40%, #7974E1 100%);
}

/* Все ваши оригинальные стили остаются без изменений */
.bots-item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bots-item_header > div > p, .bots-item_author > p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.bots-item_header > div, .bots-item_author, .bots-item_content > div:last-child {
    display: flex;
    gap: 4px;
    align-items: center;
}

.bots-item_header > div > h6 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.bots-item_header > p {
    font-size: 16px;
    font-weight: 600;
}

.bots-item_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bots-item_author > img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.bots-item_footer {
    text-align: center;
    transition: transform 0.3s ease;
}

/* Модифицированные стили для попапа */
.bots-item_popup {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
            max-height 0.4s ease-out,
            opacity 0.3s ease,
            padding 0.3s ease;
    transform-origin: top;
}

.bots-item.active .bots-item_popup {
    max-height: 500px; /* Автоматически подстроится под контент */
    opacity: 1;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bots-item.active .bots-item_footer {
    transform: rotate(180deg);
}

.toggle-popup {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bots-item.active .toggle-popup {
    transform: rotate(180deg);
}

.bots-item_popup > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guides {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guides > div, .guides > a {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.guides > div > p, .guides > a {
    font-size: 14px;
}
.bots-filter_form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.bots-filter_form > button {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 12px;
    border: none;
    outline: none;
    width: 70%;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    transition: all .3s ease-in-out;
    text-transform: uppercase;
}

.bots-filter_form > button:hover {
    background-color: rgba(255, 255, 255, 0.4);

}
input[type="text"], input[type="number"] {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 10px 8px;
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
    background: transparent;
    outline: none;
    font-size: 12px;
}


textarea {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
    background: transparent;
    outline: none;
    font-size: 12px;
    resize: none;
}

input:focus, input:active {
    border: none;
}
.modal, .modal-auth, .modal-ref {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(26, 0, 51, 0.5);
    backdrop-filter: blur(15px);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.modal-auth.active {
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal.active {
    display: block;
}

body.active {
    overflow: hidden;
}

.auth-content, .calendar-content {
    width: 60%;
    background-color: rgba(47, 13, 89, 1);
    display: flex;
    padding: 48px;
    border-radius: 12px;
    gap: 96px;
}

.auth-text {
    width: 100%;
}

.login {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login > input {
    border-radius: 12px;
    border-top: 1px solid #fff;
    padding: 12px 24px;
    font-size: 20px;
    width: auto;
}

.login > button {
    font-size: 14px;
    border-radius: 12px;
    background-color: rgba(120, 115, 225, 0.4);
    padding: 16px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
}

.login > button:hover {
    background-color: rgba(120, 115, 225, 0.7);

}

.auth-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-text > p {
    font-size: 12px;
}
.auth-text > p > a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}
.auth-text > .title-main > h1 {
    font-size: 20px;
}
.auth-text > .title-main > p {
    font-size: 14px;
}
.add-setting {
    position: absolute;
    right: 0;
    width: 360px;
    height: 100vh;
    background-color: rgba(94, 1, 212, 0.28);
    backdrop-filter: blur(42px);
    padding: 32px 16px;
    overflow-y: scroll;
}

.add-setting > .title-main > h1 {
    font-size: 20px;
}
.instructions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.instructions > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.instructions_images {
    display: flex;
    gap: 12px;
}

.instructions_images > div {
    width: 157px;
    height: 100px;
    overflow: hidden;
}
.instructions_images > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.guides > div:hover, .guides > a:hover {
    background-color: rgba(120, 115, 225, 0.4);
}

.instructions_image {
    height: 108px;
    width: 326px;
}

.instructions_image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.settings-back {
    display: none;
}

.register-text > h3 {
    font-size: 20px;
    font-weight: 400;
    margin-top: 24px;
    margin-bottom: 24px;
}

.register-text > ul {
    padding-left: 0;
}

.register-text > ul > li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 12px;
}

.register-text > ul > li > a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}
.register-text > a {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.register-text > a::after {
    content: url("../images/arrow.svg");
}


.bots-filter_active {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Стили для кнопки лайка */
.like-button {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
}

.like-button:hover {
    color: #ff4757;
}

.like-button.liked {
    color: #ff4757;
}

.like-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.like-count {
    font-size: 14px;
}

.auth-bots {
    display: none;
}

.auth-bots_blur > .bots-item_popup {
    filter: blur(0px);
}

.guides-auth {
    display: none;
}


@media screen and (max-width: 1100px) {
    .modal-calendar {
        display: none;
        position: absolute;
        top: -100px;
        left: -100px;
        background-color: rgba(26, 0, 51, 0.5);
        backdrop-filter: blur(15px);
        width: 120%;
        height: 100vh;
        z-index: 100000000000;
    }
    .modal-calendar.active {
        display: flex;
        justify-content: center;
        align-items: center;
    }


    .events-custom .main_content, .events-custom .sidebar-3 > .top_news,  .events-custom .sidebar-3 > .bonus{
        display: none;
    }

    .bots-list {
        margin-top: 32px;
        grid-template-columns: repeat(2, 1fr);
    }
    .add-setting {
        width: 100%;
    }

    .sidebar-2 {
        display: none;
    }

    .bots-filter {
        flex-direction: column;
        gap: 32px;
    }


    .settings-back {
        display: block;
        margin-top: 16px;
        background-color: transparent;
        border: none;
        outline: none;
        transform: rotate(-180deg);
        text-align: end;
    }

    .bots-add {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .bots-list {
        margin-top: 32px;
        grid-template-columns: repeat(1, 1fr);
    }

    #bybit-uid {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    #bybit-uid::before {
        content: url("../images/key.png");
    }

    .modal-calendar {
        width: 150%;
    }
}