﻿
 
 

/* =========================
        MAIN CONTAINER
        ========================= */
 

/* =========================
        HEADER
        ========================= */

.top-header {
    position: sticky;
    top: 0;
    /*z-index: 999;*/
    background: #050505;
    border-bottom: 1px solid #111;
}

.top-tabs {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 18px ;
}

.tab {
    color: #999;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: .3s;
}

    .tab:hover {
        color: #fff;
    }

.active-tab {
    color: #f4b64f;
    font-weight: 600;
}

    .active-tab::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -18px;
        width: 100%;
        height: 2px;
        background: #f4b64f;
        border-radius: 10px;
    }

.search {
    margin-left: auto;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
        SECTION TITLE
        ========================= */

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 22px 20px 18px;
}

/* =========================
        FILTER BUTTONS
        ========================= */

.filters {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.filter-btn {
    background: #111;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

    .filter-btn.active {
        background: #1d1d1d;
        border: 1px solid #444;
    }

/* =========================
        TABLE HEAD
        ========================= */

.table-head {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 0 20px;
    margin-bottom: 8px;
    color: #888;
    font-size: 13px;
}

/* =========================
        COIN ROW
        ========================= */

.coin-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #111;
}

.coin-name {
    font-size: 18px;
    font-weight: 700;
}

.coin-volume {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.coin-price {
    font-size: 18px;
    font-weight: 600;
}

.coin-usd {
    font-size: 12px;
    color: #999;
}

.change-box {
    justify-self: end;
    min-width: 80px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.red-bg {
    background: #ff2f5b;
}

.green-bg {
    background: #00c26f;
}

/* =========================
        OVERVIEW GRID
        ========================= */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    padding: 0 20px;
}

.card {
    background: #090909;
    border: 1px solid #171717;
    border-radius: 14px;
    padding: 18px;
}

.card-title {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 14px;
}

.big-text {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.red-text {
    text-align: center;
    color: #ff2f5b;
    margin-top: 6px;
}

.green-text {
    text-align: center;
    color: #00d084;
    margin-top: 6px;
}

/* =========================
        FEAR GREED
        ========================= */

.fear-wrap {
    display: flex;
    justify-content: center;
}

.fear-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient( #00d084 0deg, #8bc34a 100deg, #ffc107 200deg, #ff5722 300deg, #00d084 360deg );
    display: flex;
    align-items: center;
    justify-content: center;
}

.fear-inner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #090909;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.fear-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* =========================
        CHART
        ========================= */

.chart-box {
    padding: 20px;
}

/* =========================
        PERFORMANCE
        ========================= */

.performance {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    padding: 0 20px;
    margin-top: 20px;
}

.bar-wrap {
    text-align: center;
    flex: 1;
}

.bar-value {
    font-size: 15px;
    margin-bottom: 10px;
}

.bar {
    width: 14px;
    margin: auto;
    border-radius: 20px;
}

.green-bar {
    background: #00d084;
}

.red-bar {
    background: #ff2f5b;
}

.bar-label {
    margin-top: 10px;
    font-size: 11px;
    color: #999;
}

/* =========================
        RISE FALL
        ========================= */

.rise-fall {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 18px;
}

.progress-bar {
    display: flex;
    height: 8px;
    border-radius: 30px;
    overflow: hidden;
    margin: 0 20px;
}

.progress-green {
    width: 18%;
    background: #00d084;
}

.progress-red {
    width: 82%;
    background: #ff2f5b;
}

/* =========================
        RANKING TABS
        ========================= */

.ranking-tabs {
    display: flex;
    gap: 24px;
    padding: 0 20px 18px;
}

.rank-tab {
    color: #999;
    cursor: pointer;
    position: relative;
    font-size: 16px;
}

.active-rank {
    color: #fff;
    font-weight: 600;
}

    .active-rank::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 100%;
        height: 2px;
        background: #f4b64f;
    }


@media(max-width:768px) {

    .container {
        max-width: 100%;
        border: none;
        padding-bottom: 100px;
    }

    /* HEADER */

    .top-tabs {
        gap: 24px;
        padding: 16px 14px;
    }

    .tab {
        font-size: 16px;
    }

    .search {
        font-size: 20px;
    }

    /* SECTION */

    .section-title {
        font-size: 17px;
        margin: 18px 14px 14px;
    }

    /* FILTER */

    .filters {
        padding: 0 14px 16px;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* TABLE */

    .table-head {
        padding: 0 14px;
        font-size: 12px;
    }

    .coin-row {
        padding: 14px;
        grid-template-columns: 1.4fr 1fr .8fr;
    }

    .coin-name {
        font-size: 14px;
    }

    .coin-volume {
        font-size: 11px;
    }

    .coin-price {
        font-size: 14px;
    }

    .coin-usd {
        font-size: 11px;
    }

    .change-box {
        min-width: 70px;
        font-size: 13px;
        padding: 7px 10px;
    }

    /* OVERVIEW */

    .overview-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
        gap: 12px;
    }

    .card {
        padding: 16px;
    }

    .big-text {
        font-size: 22px;
    }

    /* PERFORMANCE */

    .performance {
        padding: 0 10px;
        gap: 4px;
        overflow-x: auto;
    }

    .bar-value {
        font-size: 12px;
    }

    .bar-label {
        font-size: 10px;
    }

    .rise-fall {
        font-size: 16px;
        padding: 16px 14px;
    }

    .progress-bar {
        margin: 0 14px;
    }

    /* RANK TAB */

    .ranking-tabs {
        padding: 0 14px 16px;
        gap: 18px;
    }

    .rank-tab {
        font-size: 15px;
    }

    /* FOOTER */

    .bottom-menu {
        max-width: 100%;
        height: 72px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .menu-item {
        font-size: 10px;
    }

    .menu-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .trade-wrapper {
        top: -20px;
    }

    .trade-center {
        width: 58px;
        height: 58px;
    }

    .trade-inner {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .trade-label {
        font-size: 10px;
    }
}

