.wrap {
    min-height: 100vh;
    max-width: 1580px;
    margin: 100px auto;
    padding: 0 40px;
}

@media (max-width: 1580px) {
    .wrap {
        margin: 80px auto;
        padding: 0 40px;
    }
}


h1 {
    font-size: 24px;
    margin: 0 0 16px;
}

.hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    margin-top: 10px;
}

/* Modern filter panel styles */
.controls {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.controls-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.controls-right {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: block;
    gap: 8px;
    align-items: center;
}

.filter-label {
    min-width: 84px;
    color: var(--color);
    font-size: 16px;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-muted);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.chip .close {
    opacity: 0.6;
    cursor: pointer;
    font-weight: 700;
}

.range-inputs {
    display: flex;
    gap: 8px;
}

.muted-note {
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (max-width: 980px) {
    .controls {
        grid-template-columns: 1fr;
    }

    .controls-right {
        order: 2;
        width: 100%;
    }
}

.table-container {

    /*background: var(--color-bg);*/
    /*backdrop-filter: blur(8px);*/
    /*border: 1px solid var(--color-border);*/
    border-radius: 0px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0, 0, 12, 0.35);*/
    color: var(--color-muted);
}


.scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
    min-height: 200px;
}

table {

    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* desktop/tablet */
}

thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    padding: 14px 8px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

/* Sort indicator styles */
thead th.sort-indicator::after {
    content: '↓';
    margin-left: 8px;
    padding-right: 6px;
    font-size: 0.8em;
    color: transparent;
}

thead th.sorted-desc {
    color: var(--color);
}

thead th.sorted-asc::after {
    content: '↑';
    color: var(--color);
}

thead th.sorted-asc {
    color: var(--color);
}

thead th.sorted-desc::after {
    content: '↓';
    color: var(--color);
}

tbody td {
    font-size: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
    white-space: nowrap;
    position: relative;
}


/*tbody td a {*/
/*    padding: 12px 8px;*/
/*    height: 41px;*/
/*    width: 1500px;*/
/*    display: flex;*/
/*    position: absolute;*/
/*    z-index: 100;*/
/*    top: 0;*/
/*    left: 0;*/
/*}*/

tbody td a:hover {
}

tbody tr:hover {
    background: var(--color-surface);
}

th:first-child {
    min-width: 250px;
    color: var(--color-muted);
}

td:first-child {
    min-width: 250px;
    color: var(--color);


}

.table-img {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: -2px;
    width: 400px;
    overflow: hidden;
    /*text-overflow: fade( white, 50%);*/
}

.table-img-alt {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    font-size: 6px;
    text-align: center;
    text-overflow: ellipsis;
    background: var(--color-surface);
    border-radius: 10px;

}


.table-img-alt p {
    font-size: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    height: 18px;
    width: 18px;
    margin-right: 10px;
    border-radius: 20px;
    font-weight: 600;
    background: var(--color-surface);
}


td:first-child img {
    margin-right: 10px;
    border-radius: 10px;

}

td:nth-child(3), td:nth-child(6), td:nth-child(7), td:nth-child(8) {
    color: var(--color);
    font-weight: 500;
}


td {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.foot {
    color: var(--color);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Mobile: transform rows into cards */
@media (max-width: 700px) {
    .sf{
        display: flex;
        flex-direction: row;
        flex-flow: nowrap;
    }
    /*th:first-child{*/
    /*    max-width: 300px;*/
    /*    color: var(--color-muted);*/
    /*}*/
    /*td:first-child{*/
    /*    max-width: 300px;*/
    /*    color: var(--color-muted);*/
    /*}*/
    /*.wrap*/
    /*{*/
    /*    margin-top: 10px;*/
    /*    padding: 20px;*/
    /*}*/
    .hint {
        margin-bottom: 10px;
    }

    .table-container {
        border-radius: 10px;
        padding: 0;
    }

    .scroll {
        overflow-x: visible;
    }

    table {
        min-width: 0;
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;

        padding: 0px;
    }

    tbody tr {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 10px;
        padding: 10px 10px 6px;
    }

    tbody td {
        /*max-width: 100px;*/
        display: grid;
        grid-template-columns: 100px 1fr; /* label | value */
        gap: 8px;
        padding: 6px 4px;
        border-bottom: none;
        white-space: normal;
    }

    tbody td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-weight: 500;
        letter-spacing: 0.2px;
    }

    /* Make the first field stand out as a “title” */
    tbody td:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        grid-template-columns: 1fr;
        color: var(--color);
        font-weight: 500;
        padding-top: 2px;
    }

    tbody td:first-child::before {
        display: none;
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    td:first-child img {
        margin-top: 3px;
        height: 40px;
        margin-right: 10px;
        border-radius: 20px;

    }
    .table-img-alt{
        margin-top: 3px;
        height: 40px;
        width: 40px;
        margin-right: 10px;
        border-radius: 20px;

    }

    .table-img-alt p {
        font-size: 12px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        height: 40px;
        width: 40px;
        margin-right: 10px;
        border-radius: 20px;
        font-weight: 600;
        background: var(--color-surface);
    }
}

#advancedFiltersPanel {
    display: none;
    position: fixed;
    overflow: scroll;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2025;
    background: var(--color-bg);
    padding-top: 60px;

}

/*#advancedFiltersPanel .scroll {*/
/*    max-width: 480px;*/
/*    margin: auto;*/
/*    background: var(--color-surface);*/
/*    border-radius: 16px;*/
/*    box-shadow: 0 6px 36px #000c;*/
/*    padding: 22px 18px 16px;*/
/*    position: relative;*/
/*    backdrop-filter: blur(100px);*/
/*}*/

#advancedFiltersPanel .scroll-filters {
    position: relative;
    width: 100vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    min-height: 150vh;
    padding: 40px;
}



.h2-desktop{
    display: block;
}
.h2-mobile{
    display: none;
}
@media (max-width: 700px) {
    .h2-desktop{
        display: none;
    }
    .h2-mobile{
        display: block;
    }
    #advancedFiltersPanel {

        padding-top: 0px;

    }

}



input {
    background: var(--color-surface);
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

input[type="number"] {
    outline: none;
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    background: var(--color-surface);
}

#af_best_strategy {
    background: #313335;
}

#af_best_strategy:after {
    background: var(--color-bg);
}

/*.pagination{*/
/*    width: 100%;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

.apply-row{
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 12, 0), rgba(0, 0, 12, 100)) !important;
    backdrop-filter: blur(8px);
    width: 100vw;
    border: 1px solid var(--color-border);

}

.apply-row div{
    position: relative;
    left: 50%;
    transform: translate(-50%);
    bottom: 0;
    max-width: 700px;
    width: 100%;      /* stretches to parent’s width */
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    flex-direction: column;

    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: space-between;*/
    /*padding: 10px 20px;*/
    /*border-top: 1px solid var(--color-border);*/
    /*gap: 10px;*/
}

.apply-row button{
    width: 250px;
    margin-top: 10px;
}




.learn-more {
    margin-top: 100px;
}




/*.wrap {*/
/*    min-height: 50vh;*/
/*    max-width: 1300px;*/

/*    margin: 100px auto;*/
/*    padding: 0 40px;*/
/*    display: flex;*/
/*    justify-content: start;*/
/*}*/

.wrap-1{
    max-width: 1580px;
}

.wrap-2{
    /*width: 100%;*/
    display:none;
    width: 100%;
    max-width: 400px;
    padding-left: 80px;
}

.wrap-2 .catalog{
    border-radius: 20px;
    width: 100%;
    /*min-height: 700px;*/
    padding: 15px 20px;
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wrap-2 .catalog a{
    padding: 5px;
    width: 100%;
    text-decoration: none;
    user-select: none;
    color: rgba(255, 255, 255, 0.7);
}

.wrap-2 .catalog a p{
    color: var(--color-muted);
    font-size: 13px;
    margin-top: 5px;
}


.wrap h1 {
    margin-top: 0px;
    font-size: 30px;
    padding-bottom: 16px;
}

.wrap h4 {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    /*padding-left: 2px;*/
}

.wrap h5{
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    margin-top: 20px;
}

.wrap .wrap-line{
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    margin: 60px 0 40px;
}

.wrap .wrap-line h6{
    font-weight: 400;
    color: var(--color-muted);
    font-size: 13px;
    text-align: start;
    margin-bottom: 15px;
    margin-top: -25px;
}

.wrap .main-text{
    color: rgba(255, 255, 255, 0.5);
    font-weight: 250;
    font-size: 15px;
    letter-spacing: 0.1px;
    line-height: 1.2;
    text-align: justify;
}


.wrap #page-img{
    margin-top: 50px;
    margin-bottom: 10px;
    max-width: 800px
}

.wrap #page-img-text{
    color: rgba(255, 255, 255, 0.5);
}


@media (max-width: 1580px) {
    .wrap {
        margin: 80px auto;
        padding: 0 40px;
    }

    .wrap h1{
        font-size: 30px;
    }

    .wrap h4{
        font-size: 16px;
    }
}

@media (max-width: 1300px) {

    .wrap{
        flex-direction: column;
    }
    .wrap-1{
        max-width: 1300px;
    }
    .wrap-2{
        /*width: 100%;*/
        width: 100%;
        max-width: 1300px;
        padding-left: 00px;
    }


    .wrap-2 .catalog{
        border-radius: 20px;
        width: 100%;
        /*min-height: 700px;*/
        padding: 20px 25px;
        background-color: var(--color-surface);
        display: flex;
        flex-direction: row;
        flex-flow: row wrap;
        gap: 12px;
    }
    .wrap-2 .catalog a{
        min-width: 350px;
        max-width: 350px;
    }
}

