/* =====================================================
   TECHMINEHUB LIVE BLOCKS
=====================================================*/

.live-blocks-fixed{

    position:fixed;

    top:180px;

    right:16px;

    width:230px;

    z-index:1150;

}

/* ================= CARD ================= */

.live-blocks-card{

    position:relative;

    overflow:hidden;

    background:linear-gradient(180deg,#101826,#162233);

    border:1px solid rgba(96,182,255,.10);

    border-radius:18px;

    box-shadow:

    0 16px 40px rgba(0,0,0,.40);

}

.live-blocks-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:3px;

    background:linear-gradient(

        90deg,

        #2d8cff,

        #5ab6ff,

        #7b4dff

    );

}

.live-blocks-card::after{

    content:"";

    position:absolute;

    right:-70px;

    top:-70px;

    width:180px;

    height:180px;

    border-radius:50%;

    background:

    radial-gradient(circle,

    rgba(45,140,255,.15),

    transparent 70%);

}

/* ================= HEADER ================= */

.live-blocks-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 14px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.live-blocks-title{

    margin:0;

    color:#fff;

    font-size:.82rem;

    font-weight:800;

}

.live-blocks-badge{

    display:flex;

    align-items:center;

    gap:6px;

    padding:5px 10px;

    border-radius:20px;

    background:rgba(45,140,255,.12);

    border:1px solid rgba(45,140,255,.20);

    color:#7fc4ff;

    font-size:.58rem;

    font-weight:700;

    text-transform:uppercase;

}

.live-blocks-badge::before{

    content:"";

    width:7px;

    height:7px;

    border-radius:50%;

    background:#22d36e;

    animation:liveBlocksPulse 1.2s infinite;

}

/* ================= LIST ================= */

.live-blocks-list{

    max-height:calc(100vh - 220px);

    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:8px;

    padding:12px;

}

.live-blocks-list::-webkit-scrollbar{

    width:6px;

}

.live-blocks-list::-webkit-scrollbar-thumb{

    background:#2d8cff;

    border-radius:20px;

}

/* ================= ROW ================= */

.live-block-item{

    display:grid;

    grid-template-columns:1fr auto;

    gap:10px;

    align-items:center;

    padding:10px 12px;

    border-radius:12px;

    background:linear-gradient(180deg,#162235,#101826);

    border:1px solid rgba(255,255,255,.05);

    transition:.25s;

}

.live-block-item:hover{

    transform:translateY(-2px);

    border-color:#2d8cff;

    background:#182840;

}

.live-block-height{

    color:#fff;

    font-size:.74rem;

    font-weight:800;

}

.live-block-time{

    margin-top:4px;

    color:#8ea7c5;

    font-size:.62rem;

}

.live-block-reward{

    color:#5ab6ff;

    font-size:.70rem;

    font-weight:800;

    white-space:nowrap;

}

.live-blocks-empty{

    padding:18px;

    text-align:center;

    color:#8ea7c5;

    font-size:.70rem;

}

/* ================= NEW BLOCK ================= */

.live-block-item.is-new{

    animation:newBlockGlow 1.2s ease-in-out 3;

}

@keyframes newBlockGlow{

    0%,100%{

        border-color:rgba(45,140,255,.15);

        box-shadow:none;

    }

    50%{

        border-color:#2d8cff;

        box-shadow:

        0 0 18px rgba(45,140,255,.35);

    }

}

@keyframes liveBlocksPulse{

    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;

    }

}

/* ================= RESPONSIVE ================= */

@media(max-width:1500px){

    .live-blocks-fixed{

        width:200px;

    }

}

@media(max-width:1200px){

    .live-blocks-fixed{

        display:none;

    }

}