#pro-fixed-toc {
    position: fixed;
    top: 100px;
    right: 35px;
    width: 290px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    z-index: 10000;
    transition: box-shadow 0.3s, right 0.3s;
    font-size: 15px;
}
#pro-fixed-toc.toc-left { left: 35px; right: auto; }
#pro-fixed-toc .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}
#pro-fixed-toc .toc-title {
    font-weight: bold;
    font-size: 1.18em;
	margin-left: 38px;
}
#pro-fixed-toc .toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 26px; height: 26px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 8l4.5 4 4.5-4"/></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}
#pro-fixed-toc.collapsed .toc-list { display: none; }
#pro-fixed-toc.collapsed .toc-toggle { transform: rotate(-90deg);}
#pro-fixed-toc .toc-list ul {
    margin: 0;
    list-style: none;
	padding-left: 10px;
	padding-right: 10px;
}
#pro-fixed-toc .toc-list ul li {
    margin-bottom: 6px;
    line-height: 1.5;
	margin-right: 10px;
}
#pro-fixed-toc .toc-list ul li.active > a {
    color: var(--toc-accent, #c0392b);
    font-weight: bold;
    border-left: 3px solid var(--toc-accent, #c0392b);
    padding-left: 6px;
}
#pro-fixed-toc .toc-list ul li a {
    text-decoration: none;
    color: var(--toc-accent, #1769aa);
    display: block;
    transition: color 0.2s;
	font-weight: normal !important;
}
#pro-fixed-toc .toc-list ul li a:hover {
    color: #222;
}

/* Style: Rounded */
#pro-fixed-toc.toc-style-round {
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1.5px solid #ccc;
}

/* Style: Modern */
#pro-fixed-toc.toc-style-modern {
    border-radius: 18px;
    box-shadow: 0 6px 40px rgba(27,41,77,0.17);
    border: none;
    background: linear-gradient(120deg,#f8fafc 90%,#d1d5db 100%);
}
#pro-fixed-toc.toc-style-modern .toc-title {
    color: #2d3748;
    letter-spacing: 1px;
}

/* --- MOBILE FULLSCREEN MODE --- */
#pro-fixed-toc.toc-mobile-full {
    position: fixed !important;
    left: 0 !important; right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    z-index: 99999;
    padding: 0 0 0 0;
    display: flex;
    flex-direction: column;
    animation: slideInFromLeft 0.3s;
}
@keyframes slideInFromLeft {
    from { transform: translateX(-100vw);}
    to   { transform: translateX(0);}
}
#pro-fixed-toc.toc-mobile-full .toc-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
    font-size: 1.2em;
    position: relative;
}
#pro-fixed-toc.toc-mobile-full .toc-list {
    padding: 24px 18px;
    overflow-y: auto;
    flex: 1;
    font-size: 1.15em;
}

/* --- MOBILE ICON CĂN GIỮA CẠNH TRÁI --- */
.toc-mobile-icon {
    display: none;
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 14px rgba(0,0,0,0.16);
    width: 48px; height: 48px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.toc-mobile-icon svg {
    display: block;
    margin: auto;
}

@media (max-width: 1024px) {
    #pro-fixed-toc:not(.show-mobile):not(.toc-mobile-full) { display: none !important; }
    #pro-fixed-toc.collapsed-mobile:not(.toc-mobile-full) { display: none !important; }
    .toc-mobile-icon { display: flex !important; }
    #pro-fixed-toc.toc-mobile-full { display: flex !important; }
}
@media (min-width: 1025px) {
    #pro-fixed-toc {
        display: block !important;
    }
    .toc-mobile-icon {
        display: none !important;
    }
}
