/* Monetrax visitor statistics */

#monetrax-live-stats {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: "Open Sans", Arial, sans-serif;
}

/* Компактний стан */
#monetrax-live-stats .mtx-compact {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 78px;
    height: 34px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid rgba(15, 183, 255, .18);
    border-radius: 8px;
    background: rgba(10, 25, 47, .96);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
    cursor: default;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#monetrax-live-stats:hover .mtx-compact {
    border-color: rgba(15, 183, 255, .35);
    box-shadow: 0 10px 30px rgba(0,0,0,.30);
}

#monetrax-live-stats .mtx-online-label {
    color: #91a1b2;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

#monetrax-live-stats .mtx-online-value {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}

#monetrax-live-stats .mtx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.65);
    flex: 0 0 7px;
    animation: mtxPulse 2s infinite;
}

@keyframes mtxPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34,197,94,.45);
    }
    50% {
        box-shadow: 0 0 11px rgba(34,197,94,.85);
    }
}

/* Розгорнута статистика */
#monetrax-live-stats .mtx-details {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: 225px;
    box-sizing: border-box;
    padding: 15px 17px;
    border: 1px solid rgba(15, 183, 255, .18);
    border-radius: 10px;
    background: rgba(10, 25, 47, .98);
    color: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

#monetrax-live-stats:hover .mtx-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#monetrax-live-stats .mtx-title {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #9bb0c6;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

#monetrax-live-stats .mtx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

#monetrax-live-stats .mtx-label {
    color: #91a1b2;
    font-size: 9px;
    letter-spacing: .65px;
    white-space: nowrap;
}

#monetrax-live-stats .mtx-value {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

#monetrax-live-stats .mtx-mini-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34,197,94,.55);
}

#monetrax-live-stats .mtx-divider {
    height: 1px;
    margin: 5px 0;
    background: rgba(255,255,255,.08);
}

/* Маленький трикутник */
#monetrax-live-stats .mtx-details::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: rgba(10,25,47,.98);
    border-right: 1px solid rgba(15,183,255,.18);
    border-bottom: 1px solid rgba(15,183,255,.18);
    transform: rotate(45deg);
}

/* Телефон */
@media (max-width: 575px) {
    #monetrax-live-stats {
        right: 10px;
        bottom: 10px;
    }

    #monetrax-live-stats .mtx-compact {
        min-width: 72px;
        height: 32px;
        padding: 0 9px;
    }

    #monetrax-live-stats .mtx-details {
        width: 205px;
        padding: 13px 14px;
    }

    #monetrax-live-stats .mtx-label {
        font-size: 8px;
    }

    #monetrax-live-stats .mtx-value {
        font-size: 12px;
    }
}
