@keyframes slideInZoom {
    0% {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    60% {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
    75% {
        transform: translateX(0) translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateX(0) translateY(-50%) scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    25% {
        transform: translateY(-50%) translateX(-5px);
    }
    75% {
        transform: translateY(-50%) translateX(5px);
    }
}

.hpt-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    display: flex;
    align-items: center;
    animation: slideInZoom 1.2s ease-out;
}

.hpt-container.shake {
    animation: shake 0.5s ease-in-out;
}

.hpt-tab {
    background: #C85A54;
    padding: 20px 10px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hpt-tab:hover {
    background: #B34B45;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.4);
}

.hpt-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 16px;
    color: #FFF;
    letter-spacing: 2px;
}

.hpt-content {
    position: absolute;
    right: 100%;
    top: 0;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    background: #333;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.hpt-container:hover .hpt-content {
    width: 200px;
}

.hpt-inner {
    width: 200px;
    padding: 20px;
}

.hpt-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #FAE4C2;
    line-height: 1.3;
}

.hpt-description {
    margin: 0 0 15px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #F2F2F2;
}

.hpt-button {
    display: inline-block;
    background: #C85A54;
    color: #FFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.hpt-button:hover {
    background: #B34B45;
    color: #FFF;
}

.hpt-mobile {
    display: none;
}

@keyframes slideInMobile {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hpt-container {
        display: none;
    }
    
    .hpt-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #C85A54;
        z-index: 999999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        animation: slideInMobile 0.8s ease-out;
    }
    
    .hpt-mobile-link {
        display: block;
        padding: 12px 20px;
        text-align: center;
        color: #FFF;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
    }
    
    .hpt-mobile-link:hover {
        color: #FFF;
        opacity: 0.9;
    }
}