#magazine {
    margin: 0 auto;
    transition: margin-left 0.2s;
}

#magazine .page {
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    cursor: pointer; /* Indicates the whole page (especially edges) is clickable */
}

/* Sidebar & Animation States */
#tocSidebar {
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#book-viewport-wrapper {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* TOC Open States */
.toc-open #tocSidebar {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .toc-open #book-viewport-wrapper {
        transform: translateX(140px);
    }
}

/* UI Elements */
#tocList::-webkit-scrollbar {
    width: 4px;
}
#tocList::-webkit-scrollbar-track {
    background: transparent;
}
#tocList::-webkit-scrollbar-thumb {
    background-color: #e5e5e5;
    border-radius: 20px;
}

.premium-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    color: white;
    background: linear-gradient(to right, #ec4899, #e11d48);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
    user-select: none;
}

.premium-btn:hover {
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.premium-btn:active {
    transform: translateY(0);
}

/* Update or Add to premium-flip.css */
.premium-btn:disabled {
    background: #e5e5e5;       /* Light grey background */
    color: #a3a3a3;            /* Darker grey text */
    background-image: none;    /* Remove the pink gradient */
    box-shadow: none;          /* Remove the glowing shadow */
    cursor: not-allowed;
    transform: none;           /* Prevent movement */
    opacity: 1;                /* Keep it solid (not transparent) */
}