.nia-anchor {
    display: block;
    position: relative;
    top: -90px;
    visibility: hidden;
    height: 0;
    width: 0;
}

.nia-floating-nav {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 260px;
    max-height: 70vh;
    overflow-y: auto;
}

.nia-link {
    border: none;
    background: #56548c;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nia-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.nia-link:focus {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.nia-link-top {
    background: #3f3d6b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .nia-floating-nav {
        right: 12px;
        bottom: 12px;
        max-width: 220px;
        max-height: 60vh;
    }

    .nia-link {
        font-size: 12px;
        padding: 9px 10px;
    }
}

.nia-hidden {
    display: none !important;
}

.nia-toggle-button {
    position: fixed;
    right: 20px;
    bottom: calc(20px + 70vh + 16px);
    z-index: 100000;
    border: none;
    background: #2f2d52;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nia-toggle-button:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.nia-toggle-button:focus {
    outline: 2px solid #222;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .nia-toggle-button {
        right: 12px;
        bottom: calc(12px + 60vh + 12px);
        font-size: 12px;
        padding: 9px 10px;
    }
}