#hist_container.hisFixed {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100vh;
    background: #101214;
    color: #f3f3f3;
    z-index: 99999;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
}

#hist_container.hisFixed.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#hist_container .containerHistory {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

#hist_container .cleanHis {
    position: sticky;
    top: 0;
    z-index: 3;
    display: block;
    width: 100%;
    padding: 15px 48px 15px 16px;
    border: 0;
    cursor: pointer;
    background: #1d2227;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 700;
}

#hist_container .cleanHis:hover {
    background: #a81d1d;
}

#hist_container .closeHis {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

#hist_container .closeHis span {
    display: inline-block;
    line-height: 1;
    font-size: 22px;
    transform: translateY(-1px);
}

#hist_container .hisPosts {
    padding: 0 12px 16px;
}

#hist_container .hisEmpty {
    margin: 18px 0 0;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

#hist_container .hisEmpty h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #fff;
}

#hist_container .hisEmpty span {
    display: block;
    font-size: 13px;
    line-height: 1.55;
}

#hist_container .hisApp {
    margin-top: 14px;
}

#hist_container .hisC {
    display: flex;
    gap: 10px;
    align-items: stretch;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

#hist_container .hisC:hover {
    background: rgba(255, 255, 255, 0.1);
}

#hist_container .hisC .left {
    width: 120px;
    min-width: 120px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
}

#hist_container .hisC .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#hist_container .hisC .right {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

#hist_container .hisC .right .hisNome {
    display: block;
    flex: 1;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

#hist_container .hisC .right .hisNome:hover {
    text-decoration: underline;
}

#hist_container .hisC .right .removeHis {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

#hist_container .hisC .right .removeHis:hover {
    background: #c93030;
}

.openHis,
.openHism {
    cursor: pointer;
}

.dhd-floating-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99998;
    border: 0;
    border-radius: 999px;
    padding: 11px 15px;
    background: #1668dc;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.dhd-floating-btn:hover {
    background: #0f56b7;
}

@media (max-width: 870px) {
    #hist_container.hisFixed {
        width: 100vw;
    }

    #hist_container .hisC .left {
        width: 102px;
        min-width: 102px;
        height: 64px;
    }
}

@media (max-width: 580px) {
    #hist_container .hisC {
        gap: 8px;
    }

    #hist_container .hisC .left {
        display: none;
    }

    #hist_container .hisC .right .hisNome {
        font-size: 13px;
    }
}

.user_profile_us #hist_container.hisFixed {
    position: relative;
    width: 100%;
    height: 500px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    right: auto;
}

.user_profile_us #hist_container .closeHis {
    display: none;
}
