@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

main {
    flex: 1;
    margin-top: 24px;
    margin-bottom: 14px;
    margin-right: 14px;
    padding: 24px;
    background-color: #0D0D0D;
    border: 1px solid #202020;
    overflow-y: auto;
    border-radius: 22px;
    height: calc(100vh - 24px - 14px);
    scrollbar-width: thin;
    scrollbar-color: #1C1C1C transparent;
    position: relative;
}

main::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: #1C1C1C;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover {
    background: #2C2C2C;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

main .where {
    color: #fff;
    font-weight: 400;
    font-size: 12px;
}

main .where span { 
    color: #868686;
}

.popup{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 22px;
    padding: 20px;
    position: fixed;
    z-index: 9999;
    background: #030303B2;
    backdrop-filter: blur(5px);
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out;

    &.active{
        opacity: 1;
        pointer-events: auto;
    }

    & .popup-container{
        max-width: 558px;
        max-height: 900px;
        width: 100%;
        border: 1px solid rgba(20, 20, 20, 1);
        border-radius: 18px;
        background: rgba(18, 18, 18, 1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;

        &::-webkit-scrollbar {
            width: 4px;
            left: -2px;
            position: absolute;
        }

        &::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 10px;

        }

        &::-webkit-scrollbar-thumb {
            background: #1C1C1C;
            border-radius: 10px;
        }

        & .popup-header{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: -8px;

            & p{
                color: rgba(255, 255, 255, 1);
                font-size: 16px;
                font-weight: 500;
                display: flex;
                flex-direction: column;
                gap: 4px;

                & span{
                    color: rgba(134, 134, 134, 1);
                    font-size: 12px;
                }
            }

            & .close-popup{
                border: 1px solid rgba(32, 32, 32, 1);
                border-radius: 10px;
                background: rgba(13, 13, 13, 1);
                padding: 7px;
                display: flex;
                cursor: pointer;
            }
        }

        & .popup-block{
            display: flex;
            flex-direction: column;
            gap: 15px;

            &.part{
                display: none;

                &.active{
                    display: flex;
                }
            }

            & h3{
                color: #ffffff;
                font-size: 14px;
                font-weight: 500;

                &.blue{
                    color: rgba(22, 149, 244, 1);
                }

                &.green{
                    color: rgba(52, 199, 89, 1);
                }

                &.purple{
                    color: rgba(154, 88, 246, 1);
                }
            }

            & .popup-block-content{
                display: flex;
                gap: 10px;
                align-items: flex-end;



                &:has(label.dots){
                    gap: 20px;
                }

                & > label{
                    display: flex;
                    flex-direction: column;
                    gap: 7px;
                    color: rgba(134, 134, 134, 1);
                    font-size: 12px;
                    font-weight: 400;
                    width: 100%;
                    min-width: 0;
                    position: relative;

                    & > div{
                        display: flex;
                        gap: 6px;
                        align-items: center;
                    }

                    & span{
                        display: flex;
                        justify-content: space-between;

                        &.white{
                            color: rgba(255, 255, 255, 1);
                            font-size: 12px;
                            line-height: 15px;
                        }

                        &.format{
                            border-radius: 100px;
                            background: rgba(22, 149, 244, 0.1);
                            padding: 6px 10px;
                            color: rgba(22, 149, 244, 1);
                            font-size: 10px;
                            font-weight: 500;
                            line-height: 12px;
                        }
                    }

                    & input, & select{
                        border: 1px solid rgba(32, 32, 32, 1);
                        border-radius: 12px;
                        background: rgba(13, 13, 13, 1);
                        padding: 13px;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 17px;

                        &.white{
                            color: #ffffff;
                        }
                    }

                    & input{
                        color: rgba(134, 134, 134, 1);

                        &::placeholder{
                            color: rgba(134, 134, 134, 0.25);
                        }

                        &.green{
                            color: rgba(52, 199, 89, 1);

                            &::placeholder{
                                color: rgba(52, 199, 89, 1);
                            }
                        }

                        &[type=number]{
                            color: #ffffff;
                        }

                    }

                    &:has(select){
                        &:after {
                            content: url("/assets/img/arrow-select.svg");
                            display: block;
                            position: absolute;
                            height: 20px;
                            top: calc(100% - 32px);
                            right: 6px;
                            pointer-events: none;
                        }
                    }

                    & select{
                        color: rgba(255, 255, 255, 1);
                        outline: none;
                        appearance: none;
                    }

                    & .popup-search{
                        padding: 12px 16px 12px 44px;

                        &::placeholder{
                            color: rgba(134, 134, 134, 1);
                        }
                    }

                    & .search-dropdown {
                        position: absolute;
                        top: calc(100% + 4px);
                        left: 0;
                        right: 0;
                        background-color: #121212;
                        border: 1px solid #202020;
                        border-radius: 12px;
                        padding: 4px;
                        max-height: 200px;
                        overflow-y: auto;
                        z-index: 100;
                    }

                    & .search-item {
                        padding: 10px 12px;
                        color: #868686;
                        font-size: 14px;
                        cursor: pointer;
                        border-radius: 8px;
                        transition: all 0.2s ease;
                    }

                    & .search-item:hover {
                        background-color: #1C1C1C;
                        color: #fff;
                    }

                    & .btns {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 3px;
                        padding: 13px;
                        width: 100%;

                        border: 1px solid rgba(32, 32, 32, 1);
                        border-radius: 12px;
                        background: rgba(13, 13, 13, 1);

                        cursor: pointer;
                        user-select: none;
                        transition: background 0.2s;

                        &.purple{
                            color: rgba(154, 88, 246, 1);
                        }

                        &.blue{
                            color: rgba(22, 149, 244, 1);
                        }

                        & p {
                            font-size: 14px;
                            font-weight: 500;
                            line-height: 17px;
                        }
                    }

                    & > input[type="radio"] {
                        display: none;
                    }

                    & > input[type="radio"]:checked + label.btns {
                        color: #fff;

                        &.purple{
                            background: rgba(154, 88, 246, 1);
                        }

                        &.blue{
                            background: rgba(22, 149, 244, 1);
                        }
                    }

                    & > label.dots {
                        display: flex;
                        gap: 6px;
                        align-items: center;
                        position: relative;
                        cursor: pointer;
                        user-select: none;

                        &:before{
                            content: '';
                            border: 1px solid rgba(69, 69, 69, 1);
                            border-radius: 3px;
                            width: 15px;
                            height: 15px;
                        }

                        &:after{
                            content: '';
                            width: 9px;
                            height: 9px;
                            border-radius: 1px;
                            background: rgba(255, 56, 60, 1);
                            position: absolute;
                            left: 4px;
                            opacity: 0;
                        }

                        & p{
                            color: rgba(255, 255, 255, 1);
                            font-size: 12px;
                            line-height: 15px;
                            white-space: nowrap;
                        }
                    }

                    & > input[type="radio"]:checked + label.dots {

                        &:before{
                            border: 1px solid rgba(255, 56, 60, 0.5);
                            border-radius: 3px;
                        }

                        &:after{
                            opacity: 1;
                        }
                    }
                }

                & > ul{
                    display: flex;
                    flex-direction: column;
                    gap: 7px;
                    padding-left: 21px;
                    list-style: none;
                    position: relative;

                    & li{
                        color: rgba(134, 134, 134, 1);
                        font-size: 12px;
                        line-height: 15px;

                        & span{
                            color: #1695F4;
                        }

                        &:before{
                            content: url("/assets/img/ul.svg");
                            position: absolute;
                            left: 1px;
                        }
                    }
                }

                & > p{
                    display: flex;
                    flex-direction: column;
                    color: rgba(134, 134, 134, 1);
                    font-family: "DM Mono", sans-serif;
                    font-size: 12px;

                    & span{
                        color: rgba(52, 199, 89, 1);
                        font-family: "DM Mono", sans-serif;
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 130%;
                        max-width: 301px;
                    }
                }

                & .sub-block{
                    display: flex;
                    font-family: "Inter", sans-serif;
                    flex-direction: column;
                    font-size: 14px;
                    font-weight: 500;
                    border: 1px solid rgba(32, 32, 32, 1);
                    border-radius: 12px;
                    background: rgba(13, 13, 13, 1);
                    width: 100%;
                    padding: 13px;

                    &.green{
                        color: rgba(52, 199, 89, 1);
                    }

                    &.purple{
                        color: rgba(154, 88, 246, 1);
                    }

                    & span{
                        color: rgba(134, 134, 134, 1);
                        font-family: "Inter", sans-serif;
                        font-size: 12px;
                        font-weight: 400;
                    }
                }

                table tr td:first-child{
                    padding-right: 15px;

                    color: rgba(22, 149, 244, 1);
                    font-family: "DM Mono", sans-serif;
                    font-size: 12px;
                    font-weight: 400;
                    line-height: 16px;
                }

                table tr td{
                    color: rgba(134, 134, 134, 1);
                    font-size: 12px;
                    font-weight: 400;
                    line-height: 15px;
                    padding-bottom: 8px;
                }

                &.ones{
                    flex-wrap: wrap;

                    & label{
                        &.first{
                            flex: 3;
                        }
                        &.second{
                            flex: 2;
                        }
                        &.third{
                            flex: 1;
                        }
                    }

                    & > div:not(.param-row){
                        border-radius: 12px;
                        background: rgba(154, 88, 246, 1);
                        min-width: 46px;
                        min-height: 46px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        transition: .2s linear;

                        &:hover{
                            background: rgb(138, 79, 221);
                        }
                    }

                    & .param-row{
                        display: flex;
                        gap: 10px;
                        align-items: flex-end;
                        width: 100%;

                        & > label{
                            display: flex;
                            flex-direction: column;
                            gap: 7px;
                            color: rgba(134, 134, 134, 1);
                            font-size: 12px;
                            font-weight: 400;
                            position: relative;

                            &.first{ flex: 3; }
                            &.second{ flex: 2; }
                            &.third{ flex: 1; }

                            & input, & select{
                                border: 1px solid rgba(32, 32, 32, 1);
                                border-radius: 12px;
                                background: rgba(13, 13, 13, 1);
                                padding: 13px;
                                font-size: 14px;
                                font-weight: 500;
                                line-height: 17px;
                                color: rgba(134, 134, 134, 1);
                            }

                            & input::placeholder{
                                color: rgba(134, 134, 134, 0.25);
                            }

                            & select{
                                color: rgba(255, 255, 255, 1);
                                outline: none;
                                appearance: none;
                            }

                            &:has(select):after{
                                content: url("/assets/img/arrow-select.svg");
                                display: block;
                                position: absolute;
                                height: 20px;
                                top: calc(100% - 32px);
                                right: 6px;
                                pointer-events: none;
                            }
                        }

                        & .remove-param-btn{
                            border-radius: 12px;
                            background: rgba(246, 88, 88, 0.15);
                            min-width: 46px;
                            min-height: 46px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            cursor: pointer;
                            transition: .2s linear;
                            color: rgba(246, 88, 88, 1);
                            font-size: 20px;

                            &:hover{
                                background: rgba(246, 88, 88, 0.3);
                            }
                        }
                    }
                }

                &.end-btns{
                    justify-content: space-between;
                    align-items: center;

                    &:not(:has(div:nth-child(2))){
                        justify-content: flex-end;
                    }

                    & > div{
                        display: flex;
                        gap: 10px;
                        align-items: center;

                        & div{
                            display: flex;
                            align-items: center;
                            gap: 3px;
                            color: rgba(255, 255, 255, 1);
                            font-size: 12px;
                            font-weight: 400;
                        }

                        & input[type=checkbox]{
                            display: none;
                        }

                        & label {
                            cursor: pointer;
                            text-indent: -9999px;
                            border: 1px solid rgba(32, 32, 32, 1);
                            border-radius: 111111px;
                            width: 42px;
                            height: 24px;
                            background: rgba(13, 13, 13, 1);
                            display: block;
                            position: relative;
                            transition: .2s linear;
                        }

                        & label:after {
                            content: '';
                            position: absolute;
                            top: 3px;
                            left: 4px;
                            width: 16px;
                            height: 16px;
                            background: rgba(32, 32, 32, 1);
                            border-radius: 90px;
                            transition: 0.3s;
                        }

                        & input:checked + label {
                            background: #34C759;
                        }

                        & input:checked + label:after {
                            left: calc(100% - 4px);
                            transform: translateX(-100%);
                        }

                        & .close-popup{
                            border: 1px solid rgba(32, 32, 32, 1);
                            border-radius: 100px;
                            background: rgba(13, 13, 13, 1);
                            padding: 10px 13px;
                            color: rgba(255, 255, 255, 1);
                            font-size: 14px;
                            font-weight: 500;
                            cursor: pointer;
                        }

                        & button{
                            border-radius: 100px;
                            background: rgba(154, 88, 246, 1);
                            padding: 10px 13px;
                            border: none;
                            outline: none;
                            display: flex;
                            align-items: center;
                            gap: 6px;
                            color: rgba(255, 255, 255, 1);
                            font-size: 14px;
                            font-weight: 500;
                            cursor: pointer;

                            &.blue{
                                background: rgba(22, 149, 244, 1);
                            }

                            &.green{
                                background: rgba(52, 199, 89, 1);
                            }

                            &.red{
                                background: rgba(255, 56, 60, 1);
                            }
                        }
                    }
                }

                & .warning{
                    display: flex;
                    gap: 7px;
                    border: 1px solid rgba(32, 32, 32, 1);
                    border-radius: 12px;
                    background: rgba(13, 13, 13, 1);
                    padding: 13px;

                    & p{
                        color: rgba(255, 56, 60, 1);
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 17px;
                        display: flex;
                        flex-direction: column;
                        gap: 7px;

                        & span{
                            color: rgba(255, 56, 60, 0.7);
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }
}

.page-title {
    color: #fff;
    font-weight: 500;
    font-size: 24px;
    margin-top: 20px;
}

.page-desc {
    font-weight: 400;
    margin-top: 4px;
    color: #868686;
    font-size: 14px;
}

.stats-block {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stats-block .stats {
    background-color: #121212;
    width: 100%;
    min-height: 190px;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #141414;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stats-block .stats .stats-header {
    margin-bottom: 12px;
}

.stats-block .stats .stats-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stats-block .stats .stats-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.all-profit {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin-top: 10px;
}

.all-profit-desc {
    font-weight: 400;
    color: #868686;
    font-size: 14px;
    margin-top: 4px;
}

.all-profit-percent.up {
    background-color: #34c75928;
    color: #34C759;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 6px 3px;
    width: 60px;
    justify-content: center;
}

.all-profit-percent.down {
    background-color: #ff383b24;
    color: #FF383C;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 6px 3px;
    width: 60px;
    justify-content: center;
}

.stats-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.graphs {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.graphs .graph {
    background-color: #121212;
    border-radius: 18px;
    border: 1px solid #141414;
    padding: 20px;
    width: 100%;
}

.graphs .graph .graph-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.graphs .graph .graph-desc {
    font-size: 12px;
    color: #868686;
    font-weight: 400;
    margin-top: 4px;
}

.chart-container {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
}

.chart {
    width: 100%;
    height: auto;
    display: block;
}

.activity {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.activity .activity-block {
    background-color: #121212;
    border-radius: 18px;
    border: 1px solid #141414;
    padding: 20px;
    width: 100%;
}

.activity .activity-block  .activity-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.activity .activity-block  .activity-desc {
    font-size: 12px;
    color: #868686;
    font-weight: 400;
    margin-top: 4px;
}

.activity .activity-block .social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    
}

.activity .activity-block .social .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.activity .activity-block .social .circle.blue {
    background-color: #3B82F6;
}

.activity .activity-block .social .circle.purple {
    background-color: #874ED6;
}

.activity .activity-block .social .circle.green {
    background-color: #10B981;
}

.activity .activity-block .social .circle.orange {
    background-color: #F59E0B;
}

.activity .activity-block .social .circle.violet {
    background-color: #6155F5;
}

.activity .activity-block .social .social-block .social-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.activity .activity-block .social .social-block .social-desc {
    font-size: 12px;
    color: #868686;
    font-weight: 400;
    margin-top: 2px;
}

.activity .activity-block .social {
    width: 100%;
}

p.social-percent {
    margin-left: auto;
}

p.social-percent {
    border-radius: 100px;
    font-weight: 500;
    font-size: 12px;
    width: 40px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

p.social-percent.blue{
    color: #3B82F6;
    background-color: #3B82F61A;
}

p.social-percent.purple {
    background-color: #874ED61A;
    color: #874ED6;
}

p.social-percent.green {
    background-color: #10B9811A;
    color: #10B981;
}

p.social-percent.orange {
    background-color: #F59E0B1A;
    color: #F59E0B;
}

p.social-percent.violet {
    background-color: #6155F51A;
    color: #6155F5;
}

.orders {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orders .order {
    background: #1B1B1B;
    border-radius: 14px;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.order.active {
    background-color: #9A58F6;
}

.orders .order .order-title {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.orders .order .order-desc {
    font-size: 12px;
    font-weight: 400;
    color: #868686;
    margin-top: 5px;
}

.orders .order.active .order-desc {
    color: #fff;
}

.order-time {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #FFFFFF80;
    font-size: 12px;
    font-weight: 400;
}