/* =====================================================
   TECHMINEHUB CHART
=====================================================*/

.chart-section{

    margin-top:10px;

}

.chart-card{

    position:relative;

    background:linear-gradient(180deg,#101826,#162233);

    border:1px solid rgba(96,182,255,.08);

    border-radius:18px;

    padding:16px;

    overflow:hidden;

    transition:.30s;

    box-shadow:
    0 12px 35px rgba(0,0,0,.35);

}

.chart-card::before{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:3px;

    background:linear-gradient(
        90deg,
        #2d8cff,
        #5ab6ff,
        #7b4dff
    );

}

.chart-card::after{

    content:"";

    position:absolute;

    right:-80px;
    top:-80px;

    width:180px;
    height:180px;

    border-radius:50%;

    background:
    radial-gradient(circle,
    rgba(45,140,255,.15),
    transparent 70%);

    pointer-events:none;

}

.chart-card:hover{

    border-color:#2d8cff;

    box-shadow:

    0 16px 40px rgba(0,0,0,.45),

    0 0 25px rgba(45,140,255,.18);

}

/* ================= HEADER ================= */

.chart-header{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:12px;

    margin-bottom:14px;

}

.chart-title{

    margin:0;

    color:#fff;

    font-size:1rem;

    font-weight:800;

}

.chart-subtitle{

    margin-top:3px;

    color:#8ea7c5;

    font-size:.72rem;

}

.chart-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:5px 10px;

    border-radius:30px;

    background:rgba(45,140,255,.12);

    border:1px solid rgba(45,140,255,.20);

    color:#7fc4ff;

    font-size:.65rem;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:1px;

}

.chart-badge::before{

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:#22d36e;

    animation:chartLive 1.2s infinite;

}

@keyframes chartLive{

    0%{

        transform:scale(.9);

        opacity:.5;

    }

    50%{

        transform:scale(1.3);

        opacity:1;

        box-shadow:

        0 0 12px rgba(34,211,110,.8);

    }

    100%{

        transform:scale(.9);

        opacity:.5;

    }

}

/* ================= CHART ================= */

.chart-wrap{

    position:relative;

    z-index:2;

    height:300px;

    padding-top:4px;

}

.chart-wrap canvas{

    width:100%!important;

    height:100%!important;

}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    .chart-wrap{

        height:260px;

    }

}

@media(max-width:768px){

    .chart-card{

        padding:14px;

        border-radius:16px;

    }

    .chart-header{

        flex-direction:column;

        align-items:flex-start;

        gap:8px;

    }

    .chart-wrap{

        height:220px;

    }

}

@media(max-width:480px){

    .chart-title{

        font-size:.90rem;

    }

    .chart-subtitle{

        font-size:.65rem;

    }

    .chart-badge{

        font-size:.58rem;

        padding:4px 8px;

    }

    .chart-wrap{

        height:190px;

    }

}